Kohi Game Engine
render_view_packet Struct Reference

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 viewportvp
 A pointer to the viewport to be used. More...
 
const render_viewview
 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_datageometries
 The geometries to be drawn. More...
 
u32 terrain_geometry_count
 The number of terrain geometries to be drawn. More...
 
geometry_render_dataterrain_geometries
 The terrain geometries to be drawn. More...
 
u32 debug_geometry_count
 The number of debug geometries to be drawn. More...
 
geometry_render_datadebug_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...
 

Detailed Description

A packet for and generated by a render view, which contains data about what is to be rendered.

Field Documentation

◆ ambient_colour

vec4 ambient_colour

The current scene ambient colour, if applicable.

◆ custom_shader_name

const char* custom_shader_name

The name of the custom shader to use, if applicable. Otherwise 0.

◆ debug_geometries

geometry_render_data* debug_geometries

The debug geometries to be drawn.

◆ debug_geometry_count

u32 debug_geometry_count

The number of debug geometries to be drawn.

◆ extended_data

void* extended_data

Holds a pointer to freeform data, typically understood both by the object and consuming view.

◆ geometries

geometry_render_data* geometries

The geometries to be drawn.

◆ geometry_count

u32 geometry_count

The number of geometries to be drawn.

◆ projection_matrix

mat4 projection_matrix

The current projection matrix.

◆ skybox_data

skybox_packet_data skybox_data

The data for the current skybox.

◆ terrain_geometries

geometry_render_data* terrain_geometries

The terrain geometries to be drawn.

◆ terrain_geometry_count

u32 terrain_geometry_count

The number of terrain geometries to be drawn.

◆ terrains

struct terrain** terrains

◆ view

const render_view* view

A constant pointer to the view this packet is associated with.

◆ view_matrix

mat4 view_matrix

The current view matrix.

◆ view_position

vec3 view_position

The current view position, if applicable.

◆ vp

struct viewport* vp

A pointer to the viewport to be used.


The documentation for this struct was generated from the following file: