28 #ifndef WINTERMUTE_BASE_RENDERER_H 29 #define WINTERMUTE_BASE_RENDERER_H 31 #include "engines/wintermute/base/base.h" 32 #include "engines/wintermute/coll_templ.h" 34 #include "common/rect.h" 35 #include "common/array.h" 43 class BasePersistenceManager;
60 void dumpData(
const char *filename) {};
67 virtual bool setViewport(
int left,
int top,
int right,
int bottom);
69 virtual bool setScreenViewport();
70 virtual void setWindowed(
bool windowed) = 0;
78 virtual bool fade(uint16 alpha) = 0;
88 virtual bool fadeToColor(byte r, byte g, byte b, byte a) = 0;
90 virtual bool drawLine(
int x1,
int y1,
int x2,
int y2, uint32 color);
91 virtual bool drawRect(
int x1,
int y1,
int x2,
int y2, uint32 color,
int width = 1);
92 virtual bool fillRect(
int x,
int y,
int w,
int h, uint32 color);
95 virtual bool setProjection() {
99 virtual bool windowedBlt();
103 virtual bool clear() = 0;
104 virtual void onWindowChange();
105 virtual bool initRenderer(
int width,
int height,
bool windowed);
112 virtual bool flip() = 0;
117 virtual bool indicatorFlip(int32 x, int32 y, int32 width, int32 height) = 0;
118 virtual bool forcedFlip() = 0;
119 virtual void initLoop();
120 virtual bool setup2D(
bool force =
false);
122 virtual bool setup3D(
Camera3D *camera =
nullptr,
bool force =
false);
131 virtual bool displayDebugInfo() {
132 return STATUS_FAILED;
134 virtual bool drawShaderQuad() {
135 return STATUS_FAILED;
138 virtual float getScaleRatioX()
const {
141 virtual float getScaleRatioY()
const {
159 void deleteRectList();
161 virtual bool startSpriteBatch() {
164 virtual bool endSpriteBatch() {
168 uint32 _forceAlphaColor;
170 uint32 _clipperWindow;
174 bool isReady()
const {
return _ready; }
175 bool isWindowed()
const {
return _windowed; }
176 int32 getBPP()
const {
return _bPP; }
177 int32 getWidth()
const {
return _width; }
178 int32 getHeight()
const {
return _height; }
180 virtual void endSaveLoad() {};
Definition: base_game.h:79
virtual Common::String getName() const =0
Definition: base_image.h:45
virtual BaseSurface * createSurface()=0
virtual bool fade(uint16 alpha)=0
virtual BaseImage * takeScreenshot(int newWidth=0, int newHeight=0)=0
virtual bool indicatorFlip(int32 x, int32 y, int32 width, int32 height)=0
virtual bool fadeToColor(byte r, byte g, byte b, byte a)=0
Definition: base_surface.h:37
Definition: base_renderer3d.h:60
Definition: coll_templ.h:347
Definition: base_renderer.h:53
Definition: 3dcamera.h:38
Definition: base_object.h:49
Definition: achievements_tables.h:27