ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::Gfx::OpenGLSPropRenderer Class Reference

#include <openglsprop.h>

Inheritance diagram for Stark::Gfx::OpenGLSPropRenderer:
Collaboration diagram for Stark::Gfx::OpenGLSPropRenderer:

List of all members.

Public Member Functions

 OpenGLSPropRenderer (Driver *gfx)
 ~OpenGLSPropRenderer () override
void render (const Math::Vector3d &position, float direction, const LightEntryArray &lights) override

Protected Types

typedef Common::HashMap< const
Face *, GLuint > 
FaceBufferMap

Protected Member Functions

void clearVertices ()
void uploadVertices ()
GLuint createFaceVBO ()
GLuint createFaceEBO (const Face *face)
void setLightArrayUniform (const LightEntryArray &lights)

Protected Attributes

Driver_gfx
OpenGL::Shader_shader
bool _modelIsDirty
GLuint _faceVBO
FaceBufferMap _faceEBO

Detailed Description

Definition at line 44 of file openglsprop.h.


Member Typedef Documentation

Definition at line 52 of file openglsprop.h.


Constructor & Destructor Documentation

Stark::Gfx::OpenGLSPropRenderer::OpenGLSPropRenderer ( Driver gfx  )  [explicit]

Definition at line 36 of file openglsprop.cpp.

Stark::Gfx::OpenGLSPropRenderer::~OpenGLSPropRenderer (  )  [override]

Definition at line 45 of file openglsprop.cpp.


Member Function Documentation

void Stark::Gfx::OpenGLSPropRenderer::clearVertices (  )  [protected]

Definition at line 112 of file openglsprop.cpp.

GLuint Stark::Gfx::OpenGLSPropRenderer::createFaceEBO ( const Face face  )  [protected]

Definition at line 137 of file openglsprop.cpp.

GLuint Stark::Gfx::OpenGLSPropRenderer::createFaceVBO (  )  [protected]

Definition at line 131 of file openglsprop.cpp.

void Stark::Gfx::OpenGLSPropRenderer::render ( const Math::Vector3d position,
float  direction,
const LightEntryArray lights 
) [override, virtual]

Implements Stark::VisualProp.

Definition at line 51 of file openglsprop.cpp.

void Stark::Gfx::OpenGLSPropRenderer::setLightArrayUniform ( const LightEntryArray lights  )  [protected]

Definition at line 141 of file openglsprop.cpp.

void Stark::Gfx::OpenGLSPropRenderer::uploadVertices (  )  [protected]

Definition at line 122 of file openglsprop.cpp.


Member Data Documentation

Definition at line 58 of file openglsprop.h.

Definition at line 54 of file openglsprop.h.

Definition at line 57 of file openglsprop.h.

Definition at line 55 of file openglsprop.h.


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


Generated on Sat Mar 23 2019 05:09:07 for ResidualVM by doxygen 1.7.1
curved edge   curved edge