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" 42 void deinit()
override;
44 void clear(
const Math::Vector4d &clearColor)
override;
51 void setupViewport(
int x,
int y,
int width,
int height)
override;
52 void drawCube(
const Math::Vector3d &pos,
const Math::Vector3d &roll)
override;
53 void drawPolyOffsetTest(
const Math::Vector3d &pos,
const Math::Vector3d &roll)
override;
54 void dimRegionInOut(
float fade)
override;
55 void drawInViewport()
override;
56 void drawRgbaTexture()
override;
58 void enableFog(
const Math::Vector4d &fogColor)
override;
63 TinyGL::ContextHandle *_context;
65 TGLuint _textureRgbaId[5];
66 TGLuint _textureRgbId[5];
67 TGLuint _textureRgb565Id[2];
68 TGLuint _textureRgba5551Id[2];
69 TGLuint _textureRgba4444Id[2];
70 TinyGL::BlitImage *_blitImageRgba;
71 TinyGL::BlitImage *_blitImageRgb;
72 TinyGL::BlitImage *_blitImageRgb565;
73 TinyGL::BlitImage *_blitImageRgba5551;
74 TinyGL::BlitImage *_blitImageRgba4444;
76 void drawFace(uint face);
81 #endif // PLAYGROUND3D_GFX_TINYGL_H
Definition: gfx_tinygl.h:36
void flipBuffer() override