|
enum | MaterialProperty {
PROPERTY_METAL
, PROPERTY_METAL_THIN
, PROPERTY_SLIME
, PROPERTY_TILE
,
PROPERTY_GRATE
, PROPERTY_WOOD
, PROPERTY_COMPUTER
, PROPERTY_GLASS
,
PROPERTY_SNOW
, PROPERTY_GRASS
, PROPERTY_CONCRETE
, PROPERTY_FLESH
} |
|
enum | TextureType { TEXTURE_NONE
, TEXTURE_SAME
, TEXTURE_SOURCE
} |
|
enum | VertexFormats : vertexformat_t {
VERTEX_STATIC
, VERTEX_DYNAMIC
, VERTEX_SPRITE
, VERTEX_LINE
,
VERTEX_LAST
} |
|
enum | MaterialTypes : materialtype_t {
MATERIAL_TEXTURE
, MATERIAL_TEXTURE_ALPHA
, MATERIAL_LIGHTMAP
, MATERIAL_MSDF
,
MATERIAL_GLYPH
, MATERIAL_WATER
, MATERIAL_FLAT_COLOR
, MATERIAL_LAST
} |
|
enum | MaterialFilter { FILTER_NEAREST
, FILTER_LINEAR
} |
|
enum | renderflags : uint32_t {
FLAG_NO_RENDER = 0
, FLAG_RENDER = 1
, FLAG_DRAW_INDEXED = 4
, FLAG_REVERSE_SORT = 8
,
FLAG_TRANSPARENT = 16
, FLAG_NO_DEPTH_TEST = 32
, FLAG_NO_DIRECTIONAL = 64
, FLAG_DRAW_LINES = 128
,
FLAG_DISABLE_LIGHTING = 256
} |
| Flags for DrawListObjects. More...
|
|
enum | ColorMode { COLORMODE_R
, COLORMODE_RG
, COLORMODE_RGB
, COLORMODE_RGBA
} |
| Texture color mode. More...
|
|
enum | TextureFilter { TEXTUREFILTER_NEAREST
, TEXTUREFILTER_LINEAR
, TEXTUREFILTER_LINEAR_MIPMAPPED
} |
| Texture filters. More...
|
|
|
Hashmap< Animation * > | animation_list ("model name list", 500) |
|
uint8_t * | MakeNewErrorTexture (vec3 color1, vec3 color2) |
| Generates a new error texture. More...
|
|
StaticModelData * | MakeNewErrorModel () |
| Generates a new error model. More...
|
|
void | Init () |
| Initializes the rendering system. More...
|
|
void | Render () |
| Renders a single frame. More...
|
|
void | SetSunDirection (color_t direction, layer_t layer) |
| Sets the sun direction. More...
|
|
void | SetSunColor (color_t color, layer_t layer) |
| Sets the sun color. More...
|
|
void | SetAmbientColor (color_t color, layer_t layer) |
| Sets the ambient color. More...
|
|
void | SetScreenSize (float width, float height) |
|
void | SetViewFov (float fov, layer_t layer) |
|
float | GetViewFov (layer_t layer) |
|
void | SetOrthoRatio (float ratio, layer_t layer) |
|
void | SetViewDistance (float dist, layer_t layer) |
|
float | GetViewDistance (layer_t layer) |
|
void | SetViewPosition (vec3 position, layer_t layer) |
| Sets the view position. More...
|
|
void | SetViewRotation (quat rotation, layer_t layer) |
| Sets the view rotation. More...
|
|
vec3 | GetViewPosition (layer_t layer) |
| Returns the view position for a given layer. More...
|
|
quat | GetViewRotation (layer_t layer) |
| Returns the view rotation for a given layer. More...
|
|
void | AddLine (vec3 from, vec3 to, vec3 color) |
|
void | AddLineMarker (vec3 location, vec3 color) |
|
void | AddLineAABB (vec3 min, vec3 max, vec3 center, quat rotation, vec3 color) |
|
void | AddSphere (vec3 pos, float radius, color_t color) |
|
void | AddCylinder (vec3 pos, float height, float radius, color_t color) |
|
void | AddCube (vec3 pos, float height, float radius, color_t color) |
|
void | Project (const vec3 &point, vec3 &result, layer_t layer) |
|
vec3 | ProjectInverse (vec3 point, layer_t layer) |
|
vertexformat_t | RegisterVertexFormat (const char *name) |
|
materialtype_t | RegisterMaterialType (const char *name) |
|
vertexformat_t | FindVertexFormat (const char *name) |
|
materialtype_t | FindMaterialType (const char *name) |
|
const char * | GetVertexFormatName (vertexformat_t type) |
|
const char * | GetMaterialTypeName (materialtype_t type) |
|
const color_t | COLOR_WHITE (1.0f, 1.0f, 1.0f) |
|
const color_t | COLOR_RED (1.0f, 0.0f, 0.0f) |
|
const color_t | COLOR_GREEN (0.0f, 1.0f, 0.0f) |
|
const color_t | COLOR_BLUE (0.0f, 0.0f, 1.0f) |
|
const color_t | COLOR_YELLOW (1.0f, 1.0f, 0.0f) |
|
const color_t | COLOR_PINK (1.0f, 0.0f, 1.0f) |
|
const color_t | COLOR_CYAN (0.0f, 1.0f, 1.0f) |
|
const color_t | COLOR_BLACK (0.0f, 0.0f, 0.0f) |
|
const color_t | COLOR_GRAY (0.3f, 0.3f, 0.3f) |
|
void | RegisterVertexDefinition (vertexformat_t format, VertexDefinition definition) |
| Registers a VertexDefinition for a specified vertex format. More...
|
|
VertexDefinition | GetVertexDefinition (vertexformat_t format) |
| Returns a previously registered VertexDefinition. More...
|
|
|
StackPool< uint8_t > | animation_pool ("animation keyframe pool", 1024 *1024) |
|
const size_t | BONE_COUNT = 30 |
|
struct { |
vec3 tram::Render::view_position = {0.0f, 0.0f, 0.0f} |
|
quat tram::Render::view_rotation = {1.0f, 0.0f, 0.0f, 0.0f} |
|
float tram::Render::view_fov = 60.0f |
|
float tram::Render::near_plane = 0.01f |
|
float tram::Render::far_plane = 250.0f |
|
float tram::Render::ortho_ratio = 1.0f |
|
vec3 tram::Render::sun_direction = {0.0f, 1.0f, 0.0f} |
|
vec3 tram::Render::sun_color = {1.0f, 1.0f, 1.0f} |
|
vec3 tram::Render::ambient_color = {0.0f, 0.0f, 0.0f} |
|
mat4 tram::Render::projection = mat4(1.0f) |
|
mat4 tram::Render::view = mat4(1.0f) |
|
} | view_properties [7] |
|
bool | THIRD_PERSON = false |
|
bool | DRAW_RENDER_DEBUG = false |
|
vertexarray_t | colorlines_vertex_array = {.generic = 0} |
|
drawlistentry_t | colorlines_entry |
|
std::vector< LineVertex > | colorlines |
|