|
Waterflow
Visualize water in terrain
|
Contains functions for drawing and updating an entity. More...
#include <myDrawable.h>
Inherited by HeightMap, and SkyCube.
Public Member Functions | |
| myDrawable (GLuint program) | |
| Simple constructor just sets the program. | |
| virtual void | draw ()=0 |
| Use this to specify the way to draw the entity. | |
| virtual void | update ()=0 |
| Use this to specify the way to update the entity. | |
Static Public Member Functions | |
| static void | setLights () |
| Set the lights used in the program. | |
| static void | setTextures (GLuint *size) |
| Set the textures used in the program. | |
Protected Attributes | |
| GLuint | program |
| The program that should be used to draw. | |
Static Protected Attributes | |
| static GLuint | lightBuffer |
| The uniform buffer containing the lights. | |
| static LightParams | lightParam [2] |
| The CPU copy of the light information. | |
| static GLuint | texIDs [TOTAL_TEXTURES] |
| The texture ID's used in the program. | |
Contains functions for drawing and updating an entity.
This is an abstact class that contains some basics for all drawable objects and is used as a base for more specific drawables.
Definition at line 49 of file myDrawable.h.