Kohi Game Engine
|
A packet for and generated by a render view, which contains data about what is to be rendered. More...
#include <renderer_types.h>
Data Fields | |
struct viewport * | vp |
A pointer to the viewport to be used. More... | |
const render_view * | view |
A constant pointer to the view this packet is associated with. More... | |
mat4 | view_matrix |
The current view matrix. More... | |
mat4 | projection_matrix |
The current projection matrix. More... | |
vec3 | view_position |
The current view position, if applicable. More... | |
vec4 | ambient_colour |
The current scene ambient colour, if applicable. More... | |
skybox_packet_data | skybox_data |
The data for the current skybox. More... | |
u32 | geometry_count |
The number of geometries to be drawn. More... | |
geometry_render_data * | geometries |
The geometries to be drawn. More... | |
u32 | terrain_geometry_count |
The number of terrain geometries to be drawn. More... | |
geometry_render_data * | terrain_geometries |
The terrain geometries to be drawn. More... | |
u32 | debug_geometry_count |
The number of debug geometries to be drawn. More... | |
geometry_render_data * | debug_geometries |
The debug geometries to be drawn. More... | |
struct terrain ** | terrains |
const char * | custom_shader_name |
The name of the custom shader to use, if applicable. Otherwise 0. More... | |
void * | extended_data |
Holds a pointer to freeform data, typically understood both by the object and consuming view. More... | |
A packet for and generated by a render view, which contains data about what is to be rendered.
vec4 ambient_colour |
The current scene ambient colour, if applicable.
const char* custom_shader_name |
The name of the custom shader to use, if applicable. Otherwise 0.
geometry_render_data* debug_geometries |
The debug geometries to be drawn.
u32 debug_geometry_count |
The number of debug geometries to be drawn.
void* extended_data |
Holds a pointer to freeform data, typically understood both by the object and consuming view.
geometry_render_data* geometries |
The geometries to be drawn.
u32 geometry_count |
The number of geometries to be drawn.
mat4 projection_matrix |
The current projection matrix.
skybox_packet_data skybox_data |
The data for the current skybox.
geometry_render_data* terrain_geometries |
The terrain geometries to be drawn.
u32 terrain_geometry_count |
The number of terrain geometries to be drawn.
struct terrain** terrains |
const render_view* view |
A constant pointer to the view this packet is associated with.
mat4 view_matrix |
The current view matrix.
vec3 view_position |
The current view position, if applicable.
struct viewport* vp |
A pointer to the viewport to be used.