22 #ifndef FREESCAPE_GFX_TINYGL_H 23 #define FREESCAPE_GFX_TINYGL_H 25 #include "math/vector3d.h" 27 #include "freescape/gfx.h" 42 void copyToVertexArray(uint idx,
const Math::Vector3d &src) {
43 assert(idx < kVertexArraySize);
44 _verts[idx].x = src.x(); _verts[idx].y = src.y(); _verts[idx].z = src.z();
49 virtual void init()
override;
50 virtual void clear(uint8 r, uint8 g, uint8 b,
bool ignoreViewport =
false)
override;
51 virtual void setViewport(
const Common::Rect &rect)
override;
52 virtual void positionCamera(
const Math::Vector3d &pos,
const Math::Vector3d &interest)
override;
53 virtual void updateProjectionMatrix(
float fov,
float yminValue,
float ymaxValue,
float nearClipPlane,
float farClipPlane)
override;
55 virtual void useColor(uint8 r, uint8 g, uint8 b)
override;
56 virtual void polygonOffset(
bool enabled)
override;
57 virtual void depthTesting(
bool enabled)
override;
58 virtual void setStippleData(byte *data)
override;
59 virtual void useStipple(
bool enabled)
override;
61 TGLubyte *_variableStippleArray;
64 void freeTexture(
Texture *texture)
override;
67 virtual void renderSensorShoot(byte color,
const Math::Vector3d sensor,
const Math::Vector3d player,
const Common::Rect viewPort)
override;
68 virtual void renderPlayerShootBall(byte color,
const Common::Point position,
int frame,
const Common::Rect viewPort)
override;
70 virtual void renderCrossair(
const Common::Point crossairPosition)
override;
75 virtual void drawFloor(uint8 color)
override;
81 #endif // FREESCAPE_GFX_TINYGL_H
virtual void flipBuffer() override
Definition: gfx_tinygl.h:36
RenderMode
Definition: rendermode.h:48
virtual void positionCamera(const Math::Vector3d &pos, const Math::Vector3d &interest) override
Definition: gfx_tinygl.h:31