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 > 

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
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 158 of file openglsactor.cpp.

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

Definition at line 213 of file openglsactor.cpp.

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

Definition at line 178 of file openglsactor.cpp.

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

Definition at line 398 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 366 of file openglsactor.cpp.

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

Definition at line 412 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 217 of file openglsactor.cpp.

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

Definition at line 238 of file openglsactor.cpp.

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

Definition at line 260 of file openglsactor.cpp.

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

Definition at line 310 of file openglsactor.cpp.

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

Definition at line 169 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 Sep 12 2020 05:05:21 for ResidualVM by doxygen 1.7.1
curved edge   curved edge