gramods
Public Member Functions | Public Attributes | List of all members
gramods::gmGraphics::CubeSceneRenderer::Impl Struct Reference
Inheritance diagram for gramods::gmGraphics::CubeSceneRenderer::Impl:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmGraphics::CubeSceneRenderer::Impl:
Collaboration graph
[legend]

Public Member Functions

void setup ()
 
void render (const Camera &camera, const Eigen::Affine3f &Mm)
 
void getNearFar (const Camera &camera, const Eigen::Affine3f &Mm, float &near, float &far)
 
void teardown ()
 
void update (clock::time_point time, size_t frame) override
 Called by updateAll to make the object up-to-date. More...
 
- Public Member Functions inherited from gramods::gmCore::Updateable
 Updateable (int priority=0)
 Configures the Updateable properties to the specified priority. More...
 

Public Attributes

GLuint vertex_shader_id = 0
 
GLuint fragment_shader_id = 0
 
GLuint program_id = 0
 
GLuint vao_id = 0
 
GLuint vbo_id [2] = { 0, 0 }
 
float cube_size = 0.1f
 
float cube_set_size = 1.f
 
bool animate = true
 
double animation_secs = 0.0
 
bool is_setup = false
 
bool is_functional = false
 

Additional Inherited Members

- Public Types inherited from gramods::gmCore::Updateable
typedef std::chrono::steady_clock clock
 
- Static Public Member Functions inherited from gramods::gmCore::Updateable
static void updateAll (clock::time_point t=clock::now(), std::optional< size_t > frame=std::nullopt)
 Updates all currently instanciated updateable objects. More...
 

Member Function Documentation

◆ update()

void gramods::gmGraphics::CubeSceneRenderer::Impl::update ( clock::time_point  t,
size_t  frame 
)
overridevirtual

Called by updateAll to make the object up-to-date.

Implements gramods::gmCore::Updateable.


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