Waterflow
Visualize water in terrain
SkyCube Class Reference

Used as a skycube for the program. More...

#include <myDrawable.h>

Inherits myDrawable.

List of all members.

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(!)

Detailed Description

Used as a skycube for the program.

Probably only need one of these in the program.

Definition at line 79 of file myDrawable.h.


Constructor & Destructor Documentation

SkyCube::SkyCube ( GLuint  program)

Simple constructor just passes the program along.

Parameters:
programThe program to use when drawing the drawable

Definition at line 165 of file myDrawable.cpp.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations