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

Stark::Gfx::OpenGLSActorRenderer Class Reference

#include <openglsactor.h>

Inheritance diagram for Stark::Gfx::OpenGLSActorRenderer:
Collaboration diagram for Stark::Gfx::OpenGLSActorRenderer:

List of all members.

Public Member Functions

 OpenGLSActorRenderer (OpenGLSDriver *gfx)
virtual ~OpenGLSActorRenderer ()
void render (const Math::Vector3d &position, float direction, const LightEntryArray &lights) override

Protected Types

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

Protected Member Functions

void clearVertices ()
void uploadVertices ()
GLuint createModelVBO (const Model *model)
GLuint createFaceEBO (const Face *face)
void setBonePositionArrayUniform (OpenGL::Shader *shader, const char *uniform)
void setBoneRotationArrayUniform (OpenGL::Shader *shader, const char *uniform)
void setLightArrayUniform (const LightEntryArray &lights)
void setShadowUniform (const LightEntryArray &lights, const Math::Vector3d &actorPosition, Math::Matrix3 worldToModelRot)
bool getPointLightContribution (LightEntry *light, const Math::Vector3d &actorPosition, Math::Vector3d &direction, float weight=1.0f)
bool getDirectionalLightContribution (LightEntry *light, Math::Vector3d &direction)
bool getSpotLightContribution (LightEntry *light, const Math::Vector3d &actorPosition, Math::Vector3d &direction)

Protected Attributes

OpenGLSDriver * _gfx
OpenGL::Shader_shader
OpenGL::Shader_shadowShader
GLuint _faceVBO
FaceBufferMap _faceEBO

Detailed Description

Definition at line 43 of file openglsactor.h.


Member Typedef Documentation

Definition at line 51 of file openglsactor.h.


Constructor & Destructor Documentation

Stark::Gfx::OpenGLSActorRenderer::OpenGLSActorRenderer ( OpenGLSDriver *  gfx  ) 

Definition at line 38 of file openglsactor.cpp.

Stark::Gfx::OpenGLSActorRenderer::~OpenGLSActorRenderer (  )  [virtual]

Definition at line 46 of file openglsactor.cpp.


Member Function Documentation

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

Definition at line 156 of file openglsactor.cpp.

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

Definition at line 211 of file openglsactor.cpp.

GLuint Stark::Gfx::OpenGLSActorRenderer::createModelVBO ( const Model model  )  [protected]

Definition at line 176 of file openglsactor.cpp.

bool Stark::Gfx::OpenGLSActorRenderer::getDirectionalLightContribution ( LightEntry light,
Math::Vector3d direction 
) [protected]

Definition at line 396 of file openglsactor.cpp.

bool Stark::Gfx::OpenGLSActorRenderer::getPointLightContribution ( LightEntry light,
const Math::Vector3d actorPosition,
Math::Vector3d direction,
float  weight = 1.0f 
) [protected]

Definition at line 364 of file openglsactor.cpp.

bool Stark::Gfx::OpenGLSActorRenderer::getSpotLightContribution ( LightEntry light,
const Math::Vector3d actorPosition,
Math::Vector3d direction 
) [protected]

Definition at line 410 of file openglsactor.cpp.

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

Definition at line 53 of file openglsactor.cpp.

void Stark::Gfx::OpenGLSActorRenderer::setBonePositionArrayUniform ( OpenGL::Shader shader,
const char *  uniform 
) [protected]

Definition at line 215 of file openglsactor.cpp.

void Stark::Gfx::OpenGLSActorRenderer::setBoneRotationArrayUniform ( OpenGL::Shader shader,
const char *  uniform 
) [protected]

Definition at line 236 of file openglsactor.cpp.

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

Definition at line 258 of file openglsactor.cpp.

void Stark::Gfx::OpenGLSActorRenderer::setShadowUniform ( const LightEntryArray lights,
const Math::Vector3d actorPosition,
Math::Matrix3  worldToModelRot 
) [protected]

Definition at line 308 of file openglsactor.cpp.

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

Definition at line 167 of file openglsactor.cpp.


Member Data Documentation

Definition at line 56 of file openglsactor.h.

OpenGLSDriver* Stark::Gfx::OpenGLSActorRenderer::_gfx [protected]

Definition at line 53 of file openglsactor.h.


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


Generated on Sat Jan 12 2019 05:05:17 for ResidualVM by doxygen 1.7.1
curved edge   curved edge