|
Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <cassert>#include <Ult/DynamicModel.h>#include <Ult/Effect/Effect.h>#include <Ult/Effect/TextureShader.h>#include <Ult/Input.h>#include <Ult/Renderer/OpenGLRenderer.h>#include <Ult/SceneGraph.h>#include <Ult/Shapes/Shapes.h>#include <Ult/GeometryNode.h>#include <Ult/TransformationNode.h>Macros | |
| #define | WINDOW_NAME "Scene Graph Test" |
| #define | WINDOW_CLASS "UPGCLASS" |
| #define | WINDOW_WIDTH 800 |
| #define | WINDOW_HEIGHT 600 |
| #define | WINDOW_FULLSCREEN 0 |
Functions | |
| void | DemoResize (int width, int height) |
| bool | DemoInitialize (Ult::RenderParams ¶ms) |
| void | DemoUpdate () |
| void | DemoRender () |
| void | DemoShutdown () |
| int | main () |
Variables | |
| Ult::DynamicModel | gGameModel [4] |
| Ult::Handle< Ult::ModelResourceTag > | gBoxDataHandle |
| Ult::Handle< Ult::EffectResourceTag > | gTex1EffectHandle |
| ULT_MODEL_RESOURCE_MANAGER | gModelManager |
| ULT_EFFECT_RESOURCE_MANAGER | gEffectManager |
| Ult::SceneGraph | gSceneGraph |
| int | gXRot = 0 |
| int | gOldXRot = 0 |
| int | gYRot = 0 |
| int | gOldYRot = 0 |
| Ult::OpenGLRenderer | gRender |
| bool | gQuitDemo = false |
| #define WINDOW_CLASS "UPGCLASS" |
| #define WINDOW_FULLSCREEN 0 |
| #define WINDOW_HEIGHT 600 |
| #define WINDOW_NAME "Scene Graph Test" |
| #define WINDOW_WIDTH 800 |
| bool DemoInitialize | ( | Ult::RenderParams & | params | ) |
| void DemoRender | ( | ) |
| void DemoResize | ( | int | width, |
| int | height ) |
| void DemoShutdown | ( | ) |
| void DemoUpdate | ( | ) |
| int main | ( | ) |
| Ult::Handle<Ult::ModelResourceTag> gBoxDataHandle |
| ULT_EFFECT_RESOURCE_MANAGER gEffectManager |
| Ult::DynamicModel gGameModel[4] |
| ULT_MODEL_RESOURCE_MANAGER gModelManager |
| int gOldXRot = 0 |
| int gOldYRot = 0 |
| bool gQuitDemo = false |
| Ult::OpenGLRenderer gRender |
| Ult::SceneGraph gSceneGraph |
| Ult::Handle<Ult::EffectResourceTag> gTex1EffectHandle |
| int gXRot = 0 |
| int gYRot = 0 |