Public Member Functions | |
| virtual void | init ()=0 |
| bool | computeScreenViewport () |
| virtual void | setScreenViewport (bool noScaling)=0 |
| virtual void | setViewport (const Common::Rect &rect)=0 |
| Common::Rect | getScreenViewport () |
| Common::Rect | gameViewport () const |
| virtual void | clearScreen ()=0 |
| virtual void | flipBuffer ()=0 |
| virtual Texture * | createTexture ()=0 |
| virtual Bitmap * | createBitmap (const Graphics::Surface *surface=nullptr, const byte *palette=nullptr)=0 |
| virtual VisualActor * | createActorRenderer ()=0 |
| virtual VisualProp * | createPropRenderer ()=0 |
| virtual SurfaceRenderer * | createSurfaceRenderer ()=0 |
| virtual FadeRenderer * | createFadeRenderer ()=0 |
| 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 |
| virtual Graphics::Surface * | getViewportScreenshot () const =0 |
| virtual void | set3DMode ()=0 |
| virtual bool | computeLightsEnabled ()=0 |
| virtual bool | supportsModdedAssets () const |
Static Public Member Functions | |
| static Driver * | create () |
| static const Graphics::PixelFormat | getRGBAPixelFormat () |
Static Protected Member Functions | |
| static void | flipVertical (Graphics::Surface *s) |
Protected Attributes | |
| Common::Rect | _screenViewport |
| bool | _computeLights |
|
inline |
Get the screen viewport in actual resolution
|
pure virtual |
Create a new texture for 3D
The caller is responsible for freeing it.
Implemented in Stark::Gfx::TinyGLDriver.
|
pure virtual |
Create a new bitmap for 2D
The caller is responsible for freeing it.
Implemented in Stark::Gfx::TinyGLDriver.
|
pure virtual |
Create a new actor renderer
The caller is responsible for freeing it.
Implemented in Stark::Gfx::TinyGLDriver.
|
pure virtual |
Create a new prop renderer
The caller is responsible for freeing it.
Implemented in Stark::Gfx::TinyGLDriver.
|
pure virtual |
Create a new surface renderer
The caller is responsible for freeing it.
Implemented in Stark::Gfx::TinyGLDriver.
|
pure virtual |
Create a new fade renderer
The caller is responsible for freeing it.
Implemented in Stark::Gfx::TinyGLDriver.
| bool Stark::Gfx::Driver::isPosInScreenBounds | ( | const Common::Point & | point | ) | const |
Checks if a screenpoint coord is within window bounds
| Common::Point Stark::Gfx::Driver::convertCoordinateCurrentToOriginal | ( | const Common::Point & | point | ) | const |
Convert a coordinate from current to original resolution
| uint Stark::Gfx::Driver::scaleWidthOriginalToCurrent | ( | uint | width | ) | const |
Scale a width value from original resolution to current resolution
| uint Stark::Gfx::Driver::scaleHeightOriginalToCurrent | ( | uint | height | ) | const |
Scale a height value from original resolution to current resolution
| uint Stark::Gfx::Driver::scaleWidthCurrentToOriginal | ( | uint | width | ) | const |
Scale a width value from current resolution to original resolution
| uint Stark::Gfx::Driver::scaleHeightCurrentToOriginal | ( | uint | width | ) | const |
Scale a height value from current resolution to original resolution
|
static |
Textures are expected to be in the RGBA byte order
That is to say bitmaps sent to OpenGL need to have the following layout: R G B A R G B A, ...
This method can be used to retrieve what that means in terms of pixel format according to the current platform's endianness.
|
pure virtual |
Grab a screenshot of the currently active viewport as defined by setViewport
Implemented in Stark::Gfx::TinyGLDriver.