22 #ifndef STARK_GFX_DRIVER_H 23 #define STARK_GFX_DRIVER_H 25 #include "common/rect.h" 26 #include "graphics/pixelformat.h" 39 class SurfaceRenderer;
50 virtual void init() = 0;
52 bool computeScreenViewport();
53 virtual void setScreenViewport(
bool noScaling) = 0;
62 virtual void clearScreen() = 0;
63 virtual void flipBuffer() = 0;
71 virtual Texture *createTexture() = 0;
116 uint scaleWidthOriginalToCurrent(uint width)
const;
119 uint scaleHeightOriginalToCurrent(uint height)
const;
122 uint scaleWidthCurrentToOriginal(uint width)
const;
125 uint scaleHeightCurrentToOriginal(uint width)
const;
141 virtual void set3DMode() = 0;
142 virtual bool computeLightsEnabled() = 0;
144 virtual bool supportsModdedAssets()
const {
return true; }
146 static const int32 kOriginalWidth = 640;
147 static const int32 kOriginalHeight = 480;
149 static const int32 kTopBorderHeight = 36;
150 static const int32 kGameViewportHeight = 365;
151 static const int32 kBottomBorderHeight = 79;
153 static const int32 kGameViewportWidth = 640;
165 #endif // STARK_GFX_DRIVER_H
Definition: surfacerenderer.h:36
Common::Rect getScreenViewport()
Definition: driver.h:58
Definition: faderenderer.h:31
Definition: formatinfo.h:28