28 #ifndef WINTERMUTE_BASE_RENDERER_H 29 #define WINTERMUTE_BASE_RENDERER_H 31 #include "engines/wintermute/math/rect32.h" 32 #include "engines/wintermute/base/base.h" 34 #include "common/rect.h" 35 #include "common/array.h" 43 class BasePersistenceManager;
60 virtual void dumpData(
const char *filename) {}
67 virtual bool setViewport(
int left,
int top,
int right,
int bottom);
68 virtual bool setViewport(
Rect32 *rect);
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 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);
94 virtual bool setProjection() {
98 virtual bool windowedBlt();
106 virtual bool fill(byte r, byte g, byte b,
Common::Rect *rect =
nullptr) = 0;
107 virtual void onWindowChange();
108 virtual bool initRenderer(
int width,
int height,
bool windowed);
115 virtual bool flip() = 0;
121 virtual bool forcedFlip() = 0;
122 virtual void initLoop();
123 virtual bool setup2D(
bool force =
false);
125 virtual bool setup3D(
Camera3D *camera =
nullptr,
bool force =
false);
127 virtual bool setupLines();
135 virtual bool displayDebugInfo() {
136 return STATUS_FAILED;
138 virtual bool drawShaderQuad() {
139 return STATUS_FAILED;
142 virtual float getScaleRatioX()
const {
145 virtual float getScaleRatioY()
const {
163 void deleteRectList();
165 virtual bool startSpriteBatch() {
168 virtual bool endSpriteBatch() {
171 bool pointInViewport(
Point32 *P);
175 bool isReady()
const {
return _ready; }
176 bool isWindowed()
const {
return _windowed; }
177 int32 getBPP()
const {
return _bPP; }
180 uint32 _forceAlphaColor;
185 void initIndicator();
186 void setIndicatorVal(
int value);
187 void setIndicator(
int width,
int height,
int x,
int y, uint32 color);
189 void initSaveLoad(
bool isSaving,
bool quickSave =
false);
190 virtual void endSaveLoad();
191 void setLoadingScreen(
const char *filename,
int x,
int y);
192 void setSaveImage(
const char *filename,
int x,
int y);
194 bool displayIndicator();
196 int32 getWidth()
const {
return _width; }
197 int32 getHeight()
const {
return _height; }
212 bool _hasDrawnSaveLoadImage;
214 int32 _indicatorWidthDrawn;
215 uint32 _indicatorColor;
218 int32 _indicatorWidth;
219 int32 _indicatorHeight;
220 bool _loadInProgress;
221 bool _indicatorDisplay;
222 int32 _indicatorProgress;
224 uint32 _clipperWindow;
232 bool displaySaveloadImage();
233 bool displaySaveloadLines();
Definition: base_game.h:76
Definition: base_persistence_manager.h:56
virtual Common::String getName() const =0
Definition: base_image.h:45
virtual BaseSurface * createSurface()=0
Definition: base_active_rect.h:41
virtual BaseImage * takeScreenshot()=0
virtual void fade(uint16 alpha)=0
virtual bool indicatorFlip()=0
Definition: base_surface.h:38
Definition: base_renderer3d.h:62
virtual void fadeToColor(byte r, byte g, byte b, byte a)=0
Definition: base_renderer.h:53
Definition: 3dcamera.h:38
virtual bool fill(byte r, byte g, byte b, Common::Rect *rect=nullptr)=0
Definition: base_object.h:49
Definition: achievements_tables.h:27