Classes | |
| struct | model |
Macros | |
| #define | DEFAULT_GLOBAL_EYE_STEP 1.0f |
| #define | DEFAULT_GLOBAL_EYE_X 1.0f |
| #define | DEFAULT_GLOBAL_EYE_Y (-5.0f) |
| #define | DEFAULT_GLOBAL_EYE_Z (-30.0f) |
| #define | DEFAULT_GLOBAL_CENTER_STEP 1.0f |
| #define | DEFAULT_GLOBAL_CENTER_X 0.0f |
| #define | DEFAULT_GLOBAL_CENTER_Y 0.0f |
| #define | DEFAULT_GLOBAL_CENTER_Z 0.0f |
| #define | DEFAULT_GLOBAL_UP_STEP 1.0f |
| #define | DEFAULT_GLOBAL_UP_X 0.0f |
| #define | DEFAULT_GLOBAL_UP_Y 1.0f |
| #define | DEFAULT_GLOBAL_UP_Z 0.0f |
Typedefs | |
| typedef struct model * | Model |
Functions | |
| Model | allocModel (const char *path) |
| void | renderModel (Model model) |
| void | renderAllModels () |
| size_t | readModelToBuffer (const char *path, float *p, unsigned int n) |
| void | renderTriangleVertexSeq (float *p, unsigned int nVertices) |
| void | changeSize (int w, int h) |
| void | renderScene () |
| void | xml_load_and_set_env (const char *filename) |
| void | engine_run (int argc, char **argv) |
| int | main (int argc, char **argv) |
Variables | |
| static float | globalAngle = 0 |
| static float | globalRotateX = 0 |
| static float | globalRotateY = 0 |
| static float | globalRotateZ = 0 |
| static float | globalTranslateX = 0 |
| static float | globalTranslateY = 0 |
| static float | globalTranslateZ = 0 |
| static float | globalScaleX = 1 |
| static float | globalScaleY = 1 |
| static float | globalScaleZ = 1 |
| static float | globalEyeX = DEFAULT_GLOBAL_EYE_X |
| static float | globalEyeY = DEFAULT_GLOBAL_EYE_Y |
| static float | globalEyeZ = DEFAULT_GLOBAL_EYE_Z |
| static float | globalCenterX = DEFAULT_GLOBAL_CENTER_X |
| static float | globalCenterY = DEFAULT_GLOBAL_CENTER_Y |
| static float | globalCenterZ = DEFAULT_GLOBAL_CENTER_Z |
| static float | globalUpX = DEFAULT_GLOBAL_UP_X |
| static float | globalUpY = DEFAULT_GLOBAL_UP_Y |
| static float | globalUpZ = DEFAULT_GLOBAL_UP_Z |
| static float | globalFOV = 45.0f |
| static float | globalNear = 1.0f |
| static float | globalFar = 1000.0f |
| static std::vector< Model > | globalModels |
| static std::vector< float > | globalOperations |
| #define DEFAULT_GLOBAL_CENTER_STEP 1.0f |
| #define DEFAULT_GLOBAL_CENTER_X 0.0f |
| #define DEFAULT_GLOBAL_CENTER_Y 0.0f |
| #define DEFAULT_GLOBAL_CENTER_Z 0.0f |
| #define DEFAULT_GLOBAL_EYE_STEP 1.0f |
| #define DEFAULT_GLOBAL_EYE_X 1.0f |
| #define DEFAULT_GLOBAL_EYE_Y (-5.0f) |
| #define DEFAULT_GLOBAL_EYE_Z (-30.0f) |
| #define DEFAULT_GLOBAL_UP_STEP 1.0f |
| #define DEFAULT_GLOBAL_UP_X 0.0f |
| #define DEFAULT_GLOBAL_UP_Y 1.0f |
| #define DEFAULT_GLOBAL_UP_Z 0.0f |
| Model allocModel | ( | const char * | path | ) |
References model::nVertices, and model::vertices.
Referenced by load_xml1(), and operations_render().
| void changeSize | ( | int | w, |
| int | h | ||
| ) |
References globalFar, globalFOV, and globalNear.
Referenced by engine_run().
| void engine_run | ( | int | argc, |
| char ** | argv | ||
| ) |
References changeSize(), renderScene(), and xml_load_and_set_env().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
References engine_run().
| size_t readModelToBuffer | ( | const char * | path, |
| float * | p, | ||
| unsigned int | n | ||
| ) |
| void renderAllModels | ( | ) |
References globalModels, and renderModel().
| void renderModel | ( | Model | model | ) |
References model::nVertices, and model::vertices.
Referenced by operations_render(), and renderAllModels().
| void renderScene | ( | void | ) |
References globalAngle, globalCenterX, globalCenterY, globalCenterZ, globalEyeX, globalEyeY, globalEyeZ, globalOperations, globalRotateX, globalRotateY, globalRotateZ, globalScaleX, globalScaleY, globalScaleZ, globalTranslateX, globalTranslateY, globalTranslateZ, globalUpX, globalUpY, globalUpZ, and operations_render().
Referenced by engine_run().
| void renderTriangleVertexSeq | ( | float * | p, |
| unsigned int | nVertices | ||
| ) |
| void xml_load_and_set_env | ( | const char * | filename | ) |
References globalOperations, operations_load_xml(), and operations_render().
Referenced by engine_run().
|
static |
Referenced by renderScene().
|
static |
Referenced by load_xml1(), operations_render(), and renderScene().
|
static |
Referenced by load_xml1(), operations_render(), and renderScene().
|
static |
Referenced by load_xml1(), operations_render(), and renderScene().
|
static |
Referenced by load_xml1(), operations_render(), and renderScene().
|
static |
Referenced by load_xml1(), operations_render(), and renderScene().
|
static |
Referenced by load_xml1(), operations_render(), and renderScene().
|
static |
Referenced by changeSize(), load_xml1(), and operations_render().
|
static |
Referenced by changeSize(), load_xml1(), and operations_render().
|
static |
Referenced by load_xml1(), and renderAllModels().
|
static |
Referenced by changeSize(), load_xml1(), and operations_render().
|
static |
Referenced by renderScene(), and xml_load_and_set_env().
|
static |
Referenced by renderScene().
|
static |
Referenced by renderScene().
|
static |
Referenced by renderScene().
|
static |
Referenced by renderScene().
|
static |
Referenced by renderScene().
|
static |
Referenced by renderScene().
|
static |
Referenced by renderScene().
|
static |
Referenced by renderScene().
|
static |
Referenced by renderScene().
|
static |
Referenced by load_xml1(), operations_render(), and renderScene().
|
static |
Referenced by load_xml1(), operations_render(), and renderScene().
|
static |
Referenced by load_xml1(), operations_render(), and renderScene().