22 #ifndef FREESCAPE_GFX_OPENGL_SHADERS_H 23 #define FREESCAPE_GFX_OPENGL_SHADERS_H 25 #include "graphics/opengl/shader.h" 26 #include "graphics/opengl/system_headers.h" 27 #include "math/vector3d.h" 28 #include "math/vector2d.h" 30 #include "freescape/gfx.h" 39 Math::Matrix4 _projectionMatrix;
40 Math::Matrix4 _modelViewMatrix;
41 Math::Matrix4 _mvpMatrix;
49 void copyToVertexArray(uint idx,
const Math::Vector3d &src) {
50 assert(idx < kVertexArraySize);
51 _verts[idx].x = src.x(); _verts[idx].y = src.y(); _verts[idx].z = src.z();
65 int _variableStippleArray[64];
67 virtual void init()
override;
68 virtual void clear(uint8 r, uint8 g, uint8 b,
bool ignoreViewport =
false)
override;
69 virtual void setViewport(
const Common::Rect &rect)
override;
71 virtual void positionCamera(
const Math::Vector3d &pos,
const Math::Vector3d &interest)
override;
72 virtual void updateProjectionMatrix(
float fov,
float aspectRatio,
float nearClipPlane,
float farClipPlane)
override;
74 virtual void useColor(uint8 r, uint8 g, uint8 b)
override;
75 virtual void polygonOffset(
bool enabled)
override;
76 virtual void depthTesting(
bool enabled)
override;
78 virtual void setStippleData(byte *data)
override;
79 virtual void useStipple(
bool enabled)
override;
82 void freeTexture(
Texture *texture)
override;
85 virtual void renderSensorShoot(byte color,
const Math::Vector3d sensor,
const Math::Vector3d player,
const Common::Rect viewPort)
override;
86 virtual void renderPlayerShootBall(byte color,
const Common::Point position,
int frame,
const Common::Rect viewPort)
override;
88 void drawCelestialBody(Math::Vector3d position,
float radius, uint8 color)
override;
90 virtual void renderCrossair(
const Common::Point crossairPosition)
override;
95 virtual void drawFloor(uint8 color)
override;
102 #endif // FREESCAPE_GFX_OPENGL_SHADERS_H
virtual void positionCamera(const Math::Vector3d &pos, const Math::Vector3d &interest) override
Definition: gfx_opengl_shaders.h:43
RenderMode
Definition: rendermode.h:48
virtual void flipBuffer() override
Definition: gfx_opengl_shaders.h:56
Definition: gfx_opengl_shaders.h:34