ScummVM API documentation
Stark::Gfx::TinyGLDriver Class Reference
Inheritance diagram for Stark::Gfx::TinyGLDriver:
Stark::Gfx::Driver

Public Member Functions

void init () override
 
void setScreenViewport (bool noScaling) override
 
void setViewport (const Common::Rect &rect) override
 
void clearScreen () override
 
void flipBuffer () override
 
TexturecreateTexture () override
 
BitmapcreateBitmap (const Graphics::Surface *surface=nullptr, const byte *palette=nullptr) override
 
VisualActorcreateActorRenderer () override
 
VisualPropcreatePropRenderer () override
 
SurfaceRenderercreateSurfaceRenderer () override
 
FadeRenderercreateFadeRenderer () override
 
void start2DMode ()
 
void end2DMode ()
 
void set3DMode () override
 
bool computeLightsEnabled () override
 
Common::Rect getViewport () const
 
Common::Rect getUnscaledViewport () const
 
void setupLights (const LightEntryArray &lights)
 
Graphics::SurfacegetViewportScreenshot () const override
 
bool supportsModdedAssets () const override
 
- Public Member Functions inherited from Stark::Gfx::Driver
bool computeScreenViewport ()
 
Common::Rect getScreenViewport ()
 
Common::Rect gameViewport () const
 
bool isPosInScreenBounds (const Common::Point &point) const
 
Common::Point convertCoordinateCurrentToOriginal (const Common::Point &point) const
 
uint scaleWidthOriginalToCurrent (uint width) const
 
uint scaleHeightOriginalToCurrent (uint height) const
 
uint scaleWidthCurrentToOriginal (uint width) const
 
uint scaleHeightCurrentToOriginal (uint width) const
 

Additional Inherited Members

- Static Public Member Functions inherited from Stark::Gfx::Driver
static Drivercreate ()
 
static const Graphics::PixelFormat getRGBAPixelFormat ()
 
- Static Public Attributes inherited from Stark::Gfx::Driver
static const int32 kOriginalWidth = 640
 
static const int32 kOriginalHeight = 480
 
static const int32 kTopBorderHeight = 36
 
static const int32 kGameViewportHeight = 365
 
static const int32 kBottomBorderHeight = 79
 
static const int32 kGameViewportWidth = 640
 
- Static Protected Member Functions inherited from Stark::Gfx::Driver
static void flipVertical (Graphics::Surface *s)
 
- Protected Attributes inherited from Stark::Gfx::Driver
Common::Rect _screenViewport
 
bool _computeLights
 

Member Function Documentation

◆ createTexture()

Texture* Stark::Gfx::TinyGLDriver::createTexture ( )
overridevirtual

Create a new texture for 3D

The caller is responsible for freeing it.

Implements Stark::Gfx::Driver.

◆ createBitmap()

Bitmap* Stark::Gfx::TinyGLDriver::createBitmap ( const Graphics::Surface surface = nullptr,
const byte *  palette = nullptr 
)
overridevirtual

Create a new bitmap for 2D

The caller is responsible for freeing it.

Implements Stark::Gfx::Driver.

◆ createActorRenderer()

VisualActor* Stark::Gfx::TinyGLDriver::createActorRenderer ( )
overridevirtual

Create a new actor renderer

The caller is responsible for freeing it.

Implements Stark::Gfx::Driver.

◆ createPropRenderer()

VisualProp* Stark::Gfx::TinyGLDriver::createPropRenderer ( )
overridevirtual

Create a new prop renderer

The caller is responsible for freeing it.

Implements Stark::Gfx::Driver.

◆ createSurfaceRenderer()

SurfaceRenderer* Stark::Gfx::TinyGLDriver::createSurfaceRenderer ( )
overridevirtual

Create a new surface renderer

The caller is responsible for freeing it.

Implements Stark::Gfx::Driver.

◆ createFadeRenderer()

FadeRenderer* Stark::Gfx::TinyGLDriver::createFadeRenderer ( )
overridevirtual

Create a new fade renderer

The caller is responsible for freeing it.

Implements Stark::Gfx::Driver.

◆ getViewportScreenshot()

Graphics::Surface* Stark::Gfx::TinyGLDriver::getViewportScreenshot ( ) const
overridevirtual

Grab a screenshot of the currently active viewport as defined by setViewport

Implements Stark::Gfx::Driver.


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