ScummVM API documentation
TwinE::Renderer Class Reference

Public Member Functions

 Renderer (TwinEEngine *engine)
 
void init (int32 w, int32 h)
 
void setCameraRotation (int32 x, int32 y, int32 z)
 
IVec2 rotate (int32 side, int32 forward, int32 angle) const
 
void setLightVector (int32 angleX, int32 angleY, int32 angleZ)
 
IVec3 longWorldRot (int32 x, int32 y, int32 z)
 
IVec3 worldRotatePoint (const IVec3 &vec)
 
void fillVertices (int16 vtop, int16 vbottom, uint8 renderType, uint16 color)
 
void renderPolygons (const CmdRenderPolygon &polygon, ComputedVertex *vertices)
 
IVec3 projectPoint (const IVec3 &pos)
 
void projIso (IVec3 &pos, int32 x, int32 y, int32 z)
 
IVec3 projectPoint (int32 cX, int32 cY, int32 cZ)
 
void setFollowCamera (int32 transPosX, int32 transPosY, int32 transPosZ, int32 cameraAlpha, int32 cameraBeta, int32 cameraGamma, int32 cameraZoom)
 
void setPosCamera (int32 x, int32 y, int32 z)
 
IVec3 setAngleCamera (int32 x, int32 y, int32 z)
 
IVec3 setInverseAngleCamera (int32 x, int32 y, int32 z)
 
IVec3 setBaseRotation (const IVec3 &rot)
 
void setProjection (int32 x, int32 y, int32 depthOffset, int32 scaleX, int32 scaleY)
 
void setIsoProjection (int32 x, int32 y, int32 scale)
 
bool affObjetIso (int32 x, int32 y, int32 z, int32 angleX, int32 angleY, int32 angleZ, const BodyData &bodyData, Common::Rect &modelRect)
 
bool renderIsoModel (const IVec3 &pos, int32 angleX, int32 angleY, int32 angleZ, const BodyData &bodyData, Common::Rect &modelRect)
 
void renderBehaviourModel (int32 boxLeft, int32 boxTop, int32 boxRight, int32 boxBottom, int32 y, int32 angle, const BodyData &bodyData, ActorMoveStruct &move)
 
void drawObj3D (const Common::Rect &rect, int32 y, int32 angle, const BodyData &bodyData, ActorMoveStruct &move)
 
void draw3dObject (int32 x, int32 y, const BodyData &bodyData, int32 angle, int32 cameraZoom)
 Render an inventory item.
 
void asmTexturedTriangleNoClip (const ComputedVertex vertexCoordinates[3], const ComputedVertex textureCoordinates[3], const uint8 *holomapImage, uint32 holomapImageSize)
 

Member Function Documentation

◆ rotate()

IVec2 TwinE::Renderer::rotate ( int32  side,
int32  forward,
int32  angle 
) const

Calculate offset for the side and forward distances by the given angle of an actor

Parameters
sideActor current X coordinate
forwardActor current Z coordinate
angleActor angle to rotate

◆ renderBehaviourModel()

void TwinE::Renderer::renderBehaviourModel ( int32  boxLeft,
int32  boxTop,
int32  boxRight,
int32  boxBottom,
int32  y,
int32  angle,
const BodyData bodyData,
ActorMoveStruct move 
)
Parameters
angleA value of -1 means that the model is automatically rotated

◆ drawObj3D()

void TwinE::Renderer::drawObj3D ( const Common::Rect rect,
int32  y,
int32  angle,
const BodyData bodyData,
ActorMoveStruct move 
)
Parameters
angleA value of -1 means that the model is automatically rotated

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