22 #ifndef STARK_GFX_OPENGL_SURFACE_H 23 #define STARK_GFX_OPENGL_SURFACE_H 25 #include "engines/stark/gfx/surfacerenderer.h" 26 #include "engines/stark/gfx/opengl.h" 28 #include "math/vector2d.h" 30 #if defined(USE_OPENGL_GAME) 41 class OpenGLSurfaceRenderer :
public SurfaceRenderer {
43 OpenGLSurfaceRenderer(OpenGLDriver *gfx);
44 virtual ~OpenGLSurfaceRenderer();
47 void render(
const Bitmap *bitmap,
const Common::Point &dest)
override;
48 void render(
const Bitmap *bitmap,
const Common::Point &dest, uint width, uint height)
override;
49 void fill(
const Color &color,
const Common::Point &dest, uint width, uint height)
override;
52 struct SurfaceVertex {
57 Math::Vector2d normalizeOriginalCoordinates(
int x,
int y)
const;
58 Math::Vector2d normalizeCurrentCoordinates(
int x,
int y)
const;
59 void convertToVertices(SurfaceVertex *vertices,
const Common::Point &dest, uint width, uint height)
const;
67 #endif // defined(USE_OPENGL_GAME) 69 #endif // STARK_GFX_OPENGL_SURFACE_H
signed char * fill(signed char *first, signed char *last, Value val)
Definition: algorithm.h:168