Loading...
Searching...
No Matches
hellfire::RenderingUtils Class Reference

#include <RenderingUtils.h>

Collaboration diagram for hellfire::RenderingUtils:

Static Public Member Functions

static void set_standard_uniforms (Shader &shader, const glm::mat4 &model, const glm::mat4 &view, const glm::mat4 &projection, float time=0.0f)
 
static void set_view_projection_uniforms (Shader &shader, const glm::mat4 &view, const glm::mat4 &projection, float time=0.0f)
 
static void upload_lights_to_shader (Shader &shader, OGLRendererContext &renderer_context)
 
static bool is_valid_mesh (const std::shared_ptr< Mesh > &mesh)
 

Detailed Description

Utility class containing shared rendering functionality. Used by composition in both RenderableComponent and InstancedRenderableComponent.

Definition at line 16 of file RenderingUtils.h.

Member Function Documentation

◆ is_valid_mesh()

static bool hellfire::RenderingUtils::is_valid_mesh ( const std::shared_ptr< Mesh > &  mesh)
inlinestatic

Definition at line 67 of file RenderingUtils.h.

◆ set_standard_uniforms()

static void hellfire::RenderingUtils::set_standard_uniforms ( Shader shader,
const glm::mat4 &  model,
const glm::mat4 &  view,
const glm::mat4 &  projection,
float  time = 0.0f 
)
inlinestatic

Definition at line 18 of file RenderingUtils.h.

◆ set_view_projection_uniforms()

static void hellfire::RenderingUtils::set_view_projection_uniforms ( Shader shader,
const glm::mat4 &  view,
const glm::mat4 &  projection,
float  time = 0.0f 
)
inlinestatic

Definition at line 27 of file RenderingUtils.h.

◆ upload_lights_to_shader()

static void hellfire::RenderingUtils::upload_lights_to_shader ( Shader shader,
OGLRendererContext renderer_context 
)
inlinestatic

Definition at line 35 of file RenderingUtils.h.


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