Skip to content

Instantly share code, notes, and snippets.

@prophile
Created May 10, 2009 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prophile/109745 to your computer and use it in GitHub Desktop.
Save prophile/109745 to your computer and use it in GitHub Desktop.
/**
* 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