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

Wintermute::BaseRenderer3D Class Reference

#include <base_renderer3d.h>

Inheritance diagram for Wintermute::BaseRenderer3D:
Collaboration diagram for Wintermute::BaseRenderer3D:

List of all members.

Public Member Functions

 BaseRenderer3D (BaseGame *inGame=nullptr)
 ~BaseRenderer3D () override
bool setAmbientLightColor (uint32 color)
bool setDefaultAmbientLightColor ()
virtual void setAmbientLight ()=0
virtual int maximumLightsCount ()=0
virtual void enableLight (int index)=0
virtual void disableLight (int index)=0
virtual void setLightParameters (int index, const Math::Vector3d &position, const Math::Vector3d &direction, const Math::Vector4d &diffuse, bool spotlight)=0
virtual void setSpriteBlendMode (Graphics::TSpriteBlendMode blendMode)=0
virtual void enableCulling ()=0
virtual void disableCulling ()=0
virtual bool enableShadows ()=0
virtual bool disableShadows ()=0
virtual void displayShadow (BaseObject *object, const Math::Vector3d &light, bool lightPosRelative)=0
virtual bool stencilSupported ()=0
Rect32 getViewPort () override
Graphics::PixelFormat getPixelFormat () const override
void fade (uint16 alpha) override
 Fade the screen to black.
void initLoop () override
virtual bool setProjection2D ()=0
virtual void resetModelViewTransform ()=0
virtual void setWorldTransform (const Math::Matrix4 &transform)=0
void project (const Math::Matrix4 &worldMatrix, const Math::Vector3d &point, int &x, int &y)
Math::Ray rayIntoScene (int x, int y)
Math::Matrix4 lastProjectionMatrix ()
virtual Mesh3DScreateMesh3DS ()=0
virtual MeshXcreateMeshX ()=0
virtual ShadowVolumecreateShadowVolume ()=0
bool drawSprite (BaseSurfaceOpenGL3D &tex, const Rect32 &rect, float zoomX, float zoomY, const Vector2 &pos, uint32 color, bool alphaDisable, Graphics::TSpriteBlendMode blendMode, bool mirrorX, bool mirrorY)
virtual bool drawSpriteEx (BaseSurfaceOpenGL3D &tex, const Rect32 &rect, const Vector2 &pos, const Vector2 &rot, const Vector2 &scale, float angle, uint32 color, bool alphaDisable, Graphics::TSpriteBlendMode blendMode, bool mirrorX, bool mirrorY)=0
virtual void renderSceneGeometry (const BaseArray< AdWalkplane * > &planes, const BaseArray< AdBlock * > &blocks, const BaseArray< AdGeneric * > &generics, const BaseArray< Light3D * > &lights, Camera3D *camera)=0
virtual void renderShadowGeometry (const BaseArray< AdWalkplane * > &planes, const BaseArray< AdBlock * > &blocks, const BaseArray< AdGeneric * > &generics, Camera3D *camera)=0
Math::Matrix3 build2dTransformation (const Vector2 &center, float angle)

Public Attributes

uint32 _ambientLightColor
bool _overrideAmbientLightColor

Protected Attributes

Math::Matrix4 _lastViewMatrix
Math::Matrix4 _projectionMatrix3d
Rect32 _viewport3dRect

Detailed Description

Definition at line 48 of file base_renderer3d.h.


Constructor & Destructor Documentation

Wintermute::BaseRenderer3D::BaseRenderer3D ( Wintermute::BaseGame inGame = nullptr  ) 

Definition at line 28 of file base_renderer3d.cpp.

Wintermute::BaseRenderer3D::~BaseRenderer3D (  )  [override]

Definition at line 31 of file base_renderer3d.cpp.


Member Function Documentation

Math::Matrix3 Wintermute::BaseRenderer3D::build2dTransformation ( const Vector2 center,
float  angle 
)

Definition at line 99 of file base_renderer3d.cpp.

virtual Mesh3DS* Wintermute::BaseRenderer3D::createMesh3DS (  )  [pure virtual]
virtual MeshX* Wintermute::BaseRenderer3D::createMeshX (  )  [pure virtual]
virtual ShadowVolume* Wintermute::BaseRenderer3D::createShadowVolume (  )  [pure virtual]
virtual void Wintermute::BaseRenderer3D::disableCulling (  )  [pure virtual]
virtual void Wintermute::BaseRenderer3D::disableLight ( int  index  )  [pure virtual]
virtual bool Wintermute::BaseRenderer3D::disableShadows (  )  [pure virtual]
virtual void Wintermute::BaseRenderer3D::displayShadow ( BaseObject object,
const Math::Vector3d light,
bool  lightPosRelative 
) [pure virtual]
bool Wintermute::BaseRenderer3D::drawSprite ( BaseSurfaceOpenGL3D tex,
const Rect32 rect,
float  zoomX,
float  zoomY,
const Vector2 pos,
uint32  color,
bool  alphaDisable,
Graphics::TSpriteBlendMode  blendMode,
bool  mirrorX,
bool  mirrorY 
)

Definition at line 91 of file base_renderer3d.cpp.

virtual bool Wintermute::BaseRenderer3D::drawSpriteEx ( BaseSurfaceOpenGL3D tex,
const Rect32 rect,
const Vector2 pos,
const Vector2 rot,
const Vector2 scale,
float  angle,
uint32  color,
bool  alphaDisable,
Graphics::TSpriteBlendMode  blendMode,
bool  mirrorX,
bool  mirrorY 
) [pure virtual]
virtual void Wintermute::BaseRenderer3D::enableCulling (  )  [pure virtual]
virtual void Wintermute::BaseRenderer3D::enableLight ( int  index  )  [pure virtual]
virtual bool Wintermute::BaseRenderer3D::enableShadows (  )  [pure virtual]
void Wintermute::BaseRenderer3D::fade ( uint16  alpha  )  [override, virtual]

Fade the screen to black.

Parameters:
alpha amount to fade by (alpha value of black)

Implements Wintermute::BaseRenderer.

Definition at line 68 of file base_renderer3d.cpp.

Graphics::PixelFormat Wintermute::BaseRenderer3D::getPixelFormat (  )  const [override, virtual]

Implements Wintermute::BaseRenderer.

Definition at line 64 of file base_renderer3d.cpp.

Rect32 Wintermute::BaseRenderer3D::getViewPort (  )  [override, virtual]

Implements Wintermute::BaseRenderer.

Definition at line 60 of file base_renderer3d.cpp.

void Wintermute::BaseRenderer3D::initLoop (  )  [override, virtual]

Reimplemented from Wintermute::BaseRenderer.

Definition at line 72 of file base_renderer3d.cpp.

Math::Matrix4 Wintermute::BaseRenderer3D::lastProjectionMatrix (  )  [inline]

Definition at line 89 of file base_renderer3d.h.

virtual int Wintermute::BaseRenderer3D::maximumLightsCount (  )  [pure virtual]
void Wintermute::BaseRenderer3D::project ( const Math::Matrix4 worldMatrix,
const Math::Vector3d point,
int &  x,
int &  y 
)

Definition at line 48 of file base_renderer3d.cpp.

Math::Ray Wintermute::BaseRenderer3D::rayIntoScene ( int  x,
int  y 
)

Definition at line 77 of file base_renderer3d.cpp.

virtual void Wintermute::BaseRenderer3D::renderSceneGeometry ( const BaseArray< AdWalkplane * > &  planes,
const BaseArray< AdBlock * > &  blocks,
const BaseArray< AdGeneric * > &  generics,
const BaseArray< Light3D * > &  lights,
Camera3D camera 
) [pure virtual]
virtual void Wintermute::BaseRenderer3D::renderShadowGeometry ( const BaseArray< AdWalkplane * > &  planes,
const BaseArray< AdBlock * > &  blocks,
const BaseArray< AdGeneric * > &  generics,
Camera3D camera 
) [pure virtual]
virtual void Wintermute::BaseRenderer3D::resetModelViewTransform (  )  [pure virtual]
virtual void Wintermute::BaseRenderer3D::setAmbientLight (  )  [pure virtual]
bool Wintermute::BaseRenderer3D::setAmbientLightColor ( uint32  color  ) 

Definition at line 34 of file base_renderer3d.cpp.

bool Wintermute::BaseRenderer3D::setDefaultAmbientLightColor (  ) 

Definition at line 41 of file base_renderer3d.cpp.

virtual void Wintermute::BaseRenderer3D::setLightParameters ( int  index,
const Math::Vector3d position,
const Math::Vector3d direction,
const Math::Vector4d diffuse,
bool  spotlight 
) [pure virtual]
virtual bool Wintermute::BaseRenderer3D::setProjection2D (  )  [pure virtual]
virtual void Wintermute::BaseRenderer3D::setSpriteBlendMode ( Graphics::TSpriteBlendMode  blendMode  )  [pure virtual]
virtual void Wintermute::BaseRenderer3D::setWorldTransform ( const Math::Matrix4 transform  )  [pure virtual]
virtual bool Wintermute::BaseRenderer3D::stencilSupported (  )  [pure virtual]

Member Data Documentation


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


Generated on Sat Sep 26 2020 05:04:13 for ResidualVM by doxygen 1.7.1
curved edge   curved edge