OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
physics.cs File Reference

Go to the source code of this file.

Classes

struct  SphereInstance
 

Macros

#define RANGE   20.0
 
#define RANGE_Y   10.0
 

Functions

 layout (local_size_x=128) in
 
 layout (location=0) uniform uint uNumBoundingBoxes
 
 layout (std430, binding=0) buffer SphereInstances
 
void compute_collision (inout vec3 pos, float radius, inout vec3 velocity)
 
void main ()
 

Variables

precision highp float
 
precision highp int
 
 spheres
 

Macro Definition Documentation

#define RANGE   20.0

Definition at line 44 of file physics.cs.

#define RANGE_Y   10.0

Definition at line 45 of file physics.cs.

Function Documentation

void compute_collision ( inout vec3  pos,
float  radius,
inout vec3  velocity 
)

Definition at line 47 of file physics.cs.

layout ( local_size_x  = 128)
layout ( location  = 0)
layout ( std430  ,
binding  = 0 
)

Definition at line 39 of file physics.cs.

void main ( )

Definition at line 77 of file physics.cs.

Variable Documentation

precision highp float

Definition at line 26 of file physics.cs.

precision highp int

Definition at line 27 of file physics.cs.

spheres

Definition at line 42 of file physics.cs.