#include <scene.h>
Public Member Functions | |
| void | addPTObject (Object *o) |
| Add partially transparent object. | |
| void | addSurfaceObject (Object *o) |
| Add surface object. | |
| void | init () |
| void | draw () |
| Scene () | |
Public Attributes | |
| AdsoTexture * | groundTex |
| AdsoTexture * | earthTex |
| AdsoTexture * | sunTex |
| AdsoHierSurf * | hs |
| int | draw_shadows |
| int | draw_far_objects |
| int | draw_vehicle |
| int | draw_surface |
| Camera | eye |
| int | starCount |
| Star * | stars |
| v3f | earthV1 |
| v3f | earthV2 |
| v3f | earthV3 |
| v3f | earthV4 |
| v3f | sunPos |
| float | farObjectDistance |
| GLuint | groundTI |
| GLuint | earthTI |
| GLuint | shadowTI |
| GLuint | photonTI |
| int | ground_shadows |
| GLubyte * | shadowMap |
| int | shadowMapDim |
| float | shadowMapSize |
| float | subShadowSize |
| int | clearShadow1X |
| int | clearShadow1Y |
| int | clearShadow1Dim |
| int | clearShadow1 |
| int | clearShadow2X |
| int | clearShadow2Y |
| int | clearShadow2Dim |
| int | clearShadow2 |
| v3f | lightPos |
The scene defines the environment containing the planet and background objects as well as objects on the planet (vehicles, epsilon object), The scene is responsible for drawing the planet and background objects and calling the draw method in each object registered in the scene.
|
|
|
|
|
Add partially transparent object.
|
|
|
Add surface object.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.2