Created
May 10, 2009 21:11
-
-
Save prophile/109745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Draws a star-field that covers the whole screen | |
* @param depth The depth of the star-field, for parallax | |
*/ | |
void DrawStarfield ( float depth ); | |
/** | |
* Sets the 3D ambient lighting environment | |
* @param col The colour of the ambient light | |
* @param angle The angle of the ambient light, in radians | |
*/ | |
void SetAmbientLight ( colour col, float angle ); | |
/** | |
* Clears all point lights | |
*/ | |
void ClearPointLights (); | |
/** | |
* Adds a point light | |
* @param location The location of the point light | |
* @param radius The size of the point light | |
* @param col The colour of the point light | |
*/ | |
void AddPointLight ( vec2 location, float radius, colour col ); | |
/** | |
* Draws a 3D model | |
* @param model The name of the model to draw | |
* @param animation The animation of the model | |
* @param frame The frame of the animation | |
* @param location The location at which to draw the model | |
* @param size The size of the model | |
* @param rotation The rotation of the model, in radians | |
* @param bank The banking of the model, in radians | |
* @param tint Extra tint to be applied | |
*/ | |
void DrawModel ( const std::string& model, const std::string& animation, int frame, vec2 location, vec2 size, float rotation, float bank, colour tint ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment