|
| void | tram::Render::Init () |
| | Initializes the rendering system. More...
|
| |
| void | tram::Render::Render () |
| | Renders a single frame. More...
|
| |
| void | tram::Render::Project (const vec3 &point, vec3 &result, layer_t layer) |
| | Projects a point into screen coordinates. More...
|
| |
| vec3 | tram::Render::ProjectInverse (vec3 point, layer_t layer) |
| | Reverses screen coordinates into world coordinates. More...
|
| |
| void | tram::Render::SetSunDirection (color_t direction, layer_t layer) |
| | Sets the sun direction. More...
|
| |
| void | tram::Render::SetSunColor (color_t color, layer_t layer) |
| | Sets the sun color. More...
|
| |
| void | tram::Render::SetAmbientColor (color_t color, layer_t layer) |
| | Sets the ambient color. More...
|
| |
| void | tram::Render::SetScreenSize (float width, float height) |
| |
| void | tram::Render::SetOrthoRatio (float ratio, layer_t layer) |
| |
| void | tram::Render::SetViewFov (float fov, layer_t layer) |
| |
| float | tram::Render::GetViewFov (layer_t layer) |
| |
| void | tram::Render::SetViewDistance (float dist, layer_t layer) |
| |
| float | tram::Render::GetViewDistance (layer_t layer) |
| |
| void | tram::Render::SetViewPosition (vec3 position, layer_t layer) |
| | Sets the view position. More...
|
| |
| void | tram::Render::SetViewRotation (quat rotation, layer_t layer) |
| | Sets the view rotation. More...
|
| |
| vec3 | tram::Render::GetViewPosition (layer_t layer) |
| | Returns the view position for a given layer. More...
|
| |
| quat | tram::Render::GetViewRotation (layer_t layer) |
| | Returns the view rotation for a given layer. More...
|
| |
| const color_t | tram::Render::COLOR_WHITE (1.0f, 1.0f, 1.0f) |
| |
| const color_t | tram::Render::COLOR_RED (1.0f, 0.0f, 0.0f) |
| |
| const color_t | tram::Render::COLOR_GREEN (0.0f, 1.0f, 0.0f) |
| |
| const color_t | tram::Render::COLOR_BLUE (0.0f, 0.0f, 1.0f) |
| |
| const color_t | tram::Render::COLOR_YELLOW (1.0f, 1.0f, 0.0f) |
| |
| const color_t | tram::Render::COLOR_PINK (1.0f, 0.0f, 1.0f) |
| |
| const color_t | tram::Render::COLOR_CYAN (0.0f, 1.0f, 1.0f) |
| |
| const color_t | tram::Render::COLOR_BLACK (0.0f, 0.0f, 0.0f) |
| |
| const color_t | tram::Render::COLOR_GRAY (0.3f, 0.3f, 0.3f) |
| |
| void | tram::Render::AddLine (vec3 from, vec3 to, vec3 color) |
| | Draws a line for a single frame. More...
|
| |
| void | tram::Render::AddLineMarker (vec3 location, vec3 color) |
| | Draws a cross marker for a single frame. More...
|
| |
| void | tram::Render::AddLineAABB (vec3 min, vec3 max, vec3 center, quat rotation, vec3 color) |
| | Draws an AABB box for a single frame. More...
|
| |
| void | tram::Render::AddSphere (vec3 pos, float radius, color_t color) |
| | Draws a sphere for a single frame. More...
|
| |
| void | tram::Render::AddCylinder (vec3 pos, float height, float radius, color_t color) |
| | Draws a cylinder for a single frame. More...
|
| |
| void | tram::Render::AddCube (vec3 pos, float height, float radius, color_t color) |
| | Draws a cube for a single frame. More...
|
| |
| void | tram::Render::AddText (vec3 pos, const char *text, color_t color) |
| | Draws text, in 3D space, for a single frame. More...
|
| |
| void | tram::Render::AddText (float x, float y, const char *text, color_t color) |
| | Draws text, on the screen, for a single frame. More...
|
| |
| vertexformat_t | tram::Render::RegisterVertexFormat (const char *name) |
| | Allocates a new vertex format. More...
|
| |
| materialtype_t | tram::Render::RegisterMaterialType (const char *name) |
| | Allocates a new material type. More...
|
| |
| vertexformat_t | tram::Render::FindVertexFormat (const char *name) |
| | Finds an already allocated vertex format by its name. More...
|
| |
| materialtype_t | tram::Render::FindMaterialType (const char *name) |
| | Finds an already material type format by its name. More...
|
| |
| const char * | tram::Render::GetVertexFormatName (vertexformat_t type) |
| | Finds an allocated vertex format's name. More...
|
| |
| const char * | tram::Render::GetMaterialTypeName (materialtype_t type) |
| | Finds an allocated material type's name. More...
|
| |