CG-Project2
Loading...
Searching...
No Matches
RenderComponent Class Reference

This Component is used to render a mesh in the ogl::Window. It stores the render call that will be called by systems. More...

#include <Component.hpp>

Inheritance diagram for RenderComponent:
Collaboration diagram for RenderComponent:

Public Member Functions

void setRenderCall (const std::function< void()> &func)
 Sets the render call that will be used.
void call ()
 This method calls the render callback if is defined.
 RenderComponent ()
 Instance basic Component.

Detailed Description

This Component is used to render a mesh in the ogl::Window. It stores the render call that will be called by systems.

Member Function Documentation

◆ setRenderCall()

void RenderComponent::setRenderCall ( const std::function< void()> & func)
inline

Sets the render call that will be used.

Parameters
funca callback function

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