OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
scene.cpp File Reference
#include "scene.hpp"
#include "mesh.hpp"
#include <algorithm>
#include <stdlib.h>

Go to the source code of this file.

Classes

struct  OccluderSorter
 
struct  SphereInstance
 

Macros

#define PHYSICS_GROUP_SIZE   128
 
#define SPHERE_INSTANCES_X   24
 
#define SPHERE_INSTANCES_Y   24
 
#define SPHERE_INSTANCES_Z   24
 
#define SPHERE_INSTANCES   (SPHERE_INSTANCES_X * SPHERE_INSTANCES_Y * SPHERE_INSTANCES_Z)
 
#define SPHERE_RADIUS   0.30f
 
#define SPHERE_VERT_PER_CIRC_LOD0   24
 
#define SPHERE_VERT_PER_CIRC_LOD1   20
 
#define SPHERE_VERT_PER_CIRC_LOD2   16
 
#define SPHERE_VERT_PER_CIRC_LOD3   12
 
#define UNIFORM_MVP_LOCATION   0
 
#define UNIFORM_COLOR_LOCATION   1
 
#define UNIFORM_LIGHT_DIR_LOCATION   2
 
#define Z_NEAR   1.0f
 
#define Z_FAR   500.0f
 

Variables

static const unsigned verts_per_circ []
 

Macro Definition Documentation

#define PHYSICS_GROUP_SIZE   128

Definition at line 28 of file scene.cpp.

#define SPHERE_INSTANCES   (SPHERE_INSTANCES_X * SPHERE_INSTANCES_Y * SPHERE_INSTANCES_Z)

Definition at line 34 of file scene.cpp.

#define SPHERE_INSTANCES_X   24

Definition at line 31 of file scene.cpp.

#define SPHERE_INSTANCES_Y   24

Definition at line 32 of file scene.cpp.

#define SPHERE_INSTANCES_Z   24

Definition at line 33 of file scene.cpp.

#define SPHERE_RADIUS   0.30f

Definition at line 36 of file scene.cpp.

#define SPHERE_VERT_PER_CIRC_LOD0   24

Definition at line 39 of file scene.cpp.

#define SPHERE_VERT_PER_CIRC_LOD1   20

Definition at line 40 of file scene.cpp.

#define SPHERE_VERT_PER_CIRC_LOD2   16

Definition at line 41 of file scene.cpp.

#define SPHERE_VERT_PER_CIRC_LOD3   12

Definition at line 42 of file scene.cpp.

#define UNIFORM_COLOR_LOCATION   1

Definition at line 46 of file scene.cpp.

#define UNIFORM_LIGHT_DIR_LOCATION   2

Definition at line 47 of file scene.cpp.

#define UNIFORM_MVP_LOCATION   0

Definition at line 45 of file scene.cpp.

#define Z_FAR   500.0f

Definition at line 230 of file scene.cpp.

#define Z_NEAR   1.0f

Definition at line 229 of file scene.cpp.

Variable Documentation

const unsigned verts_per_circ[]
static
Initial value:
= {
}
#define SPHERE_VERT_PER_CIRC_LOD0
Definition: scene.cpp:39
#define SPHERE_VERT_PER_CIRC_LOD3
Definition: scene.cpp:42
#define SPHERE_VERT_PER_CIRC_LOD2
Definition: scene.cpp:41
#define SPHERE_VERT_PER_CIRC_LOD1
Definition: scene.cpp:40

Definition at line 49 of file scene.cpp.