22 #ifndef STARK_GFX_TINYGL_ACTOR_H 23 #define STARK_GFX_TINYGL_ACTOR_H 25 #include "engines/stark/gfx/renderentry.h" 26 #include "engines/stark/visual/actor.h" 27 #include "engines/stark/gfx/tinygl.h" 29 #include "graphics/tinygl/tinygl.h" 31 #include "common/hashmap.h" 32 #include "common/hash-ptr.h" 74 void render(
const Math::Vector3d &position,
float direction,
const LightEntryArray &lights)
override;
81 ActorVertex *_faceVBO;
82 FaceBufferMap _faceEBO;
85 void uploadVertices();
86 ActorVertex *createModelVBO(
const Model *model);
87 uint32 *createFaceEBO(
const Face *face);
90 Math::Vector3d getShadowLightDirection(
const LightEntryArray &lights,
const Math::Vector3d &actorPosition, Math::Matrix3 worldToModelRot);
92 bool getPointLightContribution(
LightEntry *light,
const Math::Vector3d &actorPosition,
93 Math::Vector3d &direction,
float weight = 1.0f);
94 bool getDirectionalLightContribution(
LightEntry *light, Math::Vector3d &direction);
95 bool getSpotLightContribution(
LightEntry *light,
const Math::Vector3d &actorPosition, Math::Vector3d &direction);
101 #endif // STARK_GFX_TINYGL_ACTOR_H
Definition: renderentry.h:44
Definition: tinyglactor.h:39
Definition: tinyglactor.h:69