Waterflow
Visualize water in terrain
|
Used as a skycube for the program. More...
#include <myDrawable.h>
Inherits myDrawable.
Public Member Functions | |
SkyCube (GLuint program) | |
Simple constructor just passes the program along. | |
virtual void | draw () |
Draw call for the skycube. | |
virtual void | update () |
No update funtion for this one. | |
Private Attributes | |
Model * | model |
The model, a cube(!) |
Used as a skycube for the program.
Probably only need one of these in the program.
Definition at line 79 of file myDrawable.h.
SkyCube::SkyCube | ( | GLuint | program | ) |
Simple constructor just passes the program along.
program | The program to use when drawing the drawable |
Definition at line 165 of file myDrawable.cpp.
void SkyCube::draw | ( | ) | [virtual] |
Draw call for the skycube.
Very simple just need to send the texture ID for the sky texture as uniform.
Implements myDrawable.
Definition at line 171 of file myDrawable.cpp.
virtual void SkyCube::update | ( | ) | [inline, virtual] |
No update funtion for this one.
Could possibly be used to animate a moving sky or something awesome.
Implements myDrawable.
Definition at line 91 of file myDrawable.h.