22 #ifndef PLAYGROUND3D_GFX_TINYGL_H 23 #define PLAYGROUND3D_GFX_TINYGL_H 25 #include "common/rect.h" 26 #include "common/system.h" 28 #include "math/vector3d.h" 30 #include "graphics/tinygl/tinygl.h" 32 #include "engines/playground3d/gfx.h" 41 void deinit()
override;
43 void clear(
const Math::Vector4d &clearColor)
override;
50 void setupViewport(
int x,
int y,
int width,
int height)
override;
51 void drawCube(
const Math::Vector3d &pos,
const Math::Vector3d &roll)
override;
52 void drawPolyOffsetTest(
const Math::Vector3d &pos,
const Math::Vector3d &roll)
override;
53 void dimRegionInOut(
float fade)
override;
54 void drawInViewport()
override;
55 void drawRgbaTexture()
override;
57 void enableFog(
const Math::Vector4d &fogColor)
override;
58 void disableFog()
override;
60 void enableScissor(
int x,
int y,
int width,
int height)
override;
61 void disableScissor()
override;
66 TinyGL::ContextHandle *_context;
68 TGLuint _textureRgbaId[5];
69 TGLuint _textureRgbId[5];
70 TGLuint _textureRgb565Id[2];
71 TGLuint _textureRgba5551Id[2];
72 TGLuint _textureRgba4444Id[2];
73 TinyGL::BlitImage *_blitImageRgba;
74 TinyGL::BlitImage *_blitImageRgb;
75 TinyGL::BlitImage *_blitImageRgb565;
76 TinyGL::BlitImage *_blitImageRgba5551;
77 TinyGL::BlitImage *_blitImageRgba4444;
79 void drawFace(uint face);
84 #endif // PLAYGROUND3D_GFX_TINYGL_H
Definition: gfx_tinygl.h:36
void flipBuffer() override