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 void fade(uint16 alpha) = 0;
88 virtual void fadeToColor(byte r, byte g, byte b, byte a) = 0;
90 virtual bool fillRect(
int x,
int y,
int w,
int h, uint32 color);
93 virtual bool setProjection() {
97 virtual bool windowedBlt();
101 virtual bool clear() = 0;
102 virtual void onWindowChange();
103 virtual bool initRenderer(
int width,
int height,
bool windowed);
110 virtual bool flip() = 0;
116 virtual bool forcedFlip() = 0;
117 virtual void initLoop();
118 virtual bool setup2D(
bool force =
false);
120 virtual bool setup3D(
Camera3D *camera =
nullptr,
bool force =
false);
129 virtual bool displayDebugInfo() {
130 return STATUS_FAILED;
132 virtual bool drawShaderQuad() {
133 return STATUS_FAILED;
136 virtual float getScaleRatioX()
const {
139 virtual float getScaleRatioY()
const {
157 void deleteRectList();
159 virtual bool startSpriteBatch() {
162 virtual bool endSpriteBatch() {
166 uint32 _forceAlphaColor;
168 uint32 _clipperWindow;
172 bool isReady()
const {
return _ready; }
173 bool isWindowed()
const {
return _windowed; }
174 int32 getBPP()
const {
return _bPP; }
178 void initIndicator();
179 void setIndicatorVal(
int value);
180 void setIndicator(
int width,
int height,
int x,
int y, uint32 color);
182 void initSaveLoad(
bool isSaving,
bool quickSave =
false);
183 virtual void endSaveLoad();
184 void setLoadingScreen(
const char *filename,
int x,
int y);
185 void setSaveImage(
const char *filename,
int x,
int y);
187 bool displayIndicator();
189 int32 getWidth()
const {
return _width; }
190 int32 getHeight()
const {
return _height; }
199 bool _hasDrawnSaveLoadImage;
201 int32 _indicatorWidthDrawn;
202 uint32 _indicatorColor;
205 int32 _indicatorWidth;
206 int32 _indicatorHeight;
207 bool _loadInProgress;
208 bool _indicatorDisplay;
209 int32 _indicatorProgress;
220 bool displaySaveloadImage();
221 bool displaySaveloadRect();
Definition: base_game.h:75
Definition: base_persistence_manager.h:55
virtual Common::String getName() const =0
Definition: base_image.h:45
virtual BaseSurface * createSurface()=0
virtual void fade(uint16 alpha)=0
virtual bool indicatorFlip()=0
virtual BaseImage * takeScreenshot(int newWidth=0, int newHeight=0)=0
Definition: base_surface.h:37
Definition: base_renderer3d.h:61
virtual void fadeToColor(byte r, byte g, byte b, byte a)=0
Definition: coll_templ.h:347
Definition: base_renderer.h:53
Definition: 3dcamera.h:38
Definition: base_object.h:49
Definition: achievements_tables.h:27