ScummVM API documentation
Stark::Gfx::TinyGLActorRenderer Class Reference
Inheritance diagram for Stark::Gfx::TinyGLActorRenderer:
Stark::VisualActor Stark::Visual

Public Member Functions

 TinyGLActorRenderer (TinyGLDriver *gfx)
 
void render (const Math::Vector3d &position, float direction, const LightEntryArray &lights) override
 
- Public Member Functions inherited from Stark::VisualActor
void setModel (Model *model)
 
void setTexture (Gfx::TextureSet *texture)
 
void setTextureFacial (Gfx::TextureSet *textureFacial)
 
void setNewFace (char shape)
 
void setAnimHandler (AnimHandler *animHandler)
 
void setTime (uint32 time)
 
void setCastShadow (bool cast)
 
bool intersectRay (const Math::Ray &ray, const Math::Vector3d &position, float direction)
 
Common::Rect getBoundingRect (const Math::Vector3d &position3d, float direction) const
 
virtual void render (const Math::Vector3d &position, float direction, const Common::Array< Gfx::LightEntry *> &lights)=0
 
- Public Member Functions inherited from Stark::Visual
 Visual (VisualType type)
 
template<class T >
T * get ()
 

Protected Types

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

Protected Member Functions

void clearVertices ()
 
void uploadVertices ()
 
ActorVertexcreateModelVBO (const Model *model)
 
uint32 * createFaceEBO (const Face *face)
 
void setLightArrayUniform (const LightEntryArray &lights)
 
Math::Vector3d getShadowLightDirection (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 Member Functions inherited from Stark::VisualActor
Math::Matrix4 getModelMatrix (const Math::Vector3d &position, float direction) const
 
const Gfx::TextureresolveTexture (const Material *material) const
 

Protected Attributes

TinyGLDriver_gfx
 
ActorVertex_faceVBO
 
FaceBufferMap _faceEBO
 
- Protected Attributes inherited from Stark::VisualActor
AnimHandler_animHandler
 
Model_model
 
Gfx::TextureSet_textureSet
 
Gfx::TextureSet_textureSetFacial
 
char _faceTextureName
 
uint32 _time
 
bool _modelIsDirty
 
bool _castsShadow
 

Additional Inherited Members

- Public Types inherited from Stark::Visual
enum  VisualType {
  kImageXMG = 2, kRendered = 3, kImageText = 4, kSmackerStream = 5,
  kActor = 6, kSmackerFMV = 7, kEffectFish = 8, kEffectBubbles = 9,
  kEffectFirefly = 10, kExplodingImage = 100, kFlashingImage = 101
}
 
- Static Public Attributes inherited from Stark::VisualActor
static const VisualType TYPE = Visual::kActor
 

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