ScummVM API documentation
surfacerenderer.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef STARK_GFX_SURFACE_RENDERER_H
23 #define STARK_GFX_SURFACE_RENDERER_H
24 
25 #include "common/rect.h"
26 
27 namespace Stark {
28 namespace Gfx {
29 
30 class Bitmap;
31 struct Color;
32 
37 public:
39  virtual ~SurfaceRenderer();
40 
44  virtual void render(const Bitmap *bitmap, const Common::Point &dest) = 0;
45 
49  virtual void render(const Bitmap *bitmap, const Common::Point &dest, uint width, uint height) = 0;
50 
54  virtual void fill(const Color &color, const Common::Point &dest, uint width, uint height) = 0;
55 
62  void setNoScalingOverride(bool noScalingOverride);
63 
69  void setFadeLevel(float fadeLevel);
70 
74  void setSnapToGrid(bool snapToGrid);
75 
76 protected:
77  bool _noScalingOverride;
78  float _fadeLevel;
79  bool _snapToGrid;
80 };
81 
82 } // End of namespace Gfx
83 } // End of namespace Stark
84 
85 #endif // STARK_GFX_SURFACE_RENDERER_H
virtual void fill(const Color &color, const Common::Point &dest, uint width, uint height)=0
void setSnapToGrid(bool snapToGrid)
Definition: surfacerenderer.h:36
void setFadeLevel(float fadeLevel)
Definition: console.h:27
Definition: bitmap.h:38
Definition: rect.h:45
Definition: color.h:30
virtual void render(const Bitmap *bitmap, const Common::Point &dest)=0
void setNoScalingOverride(bool noScalingOverride)