22#ifndef TETRAEDGE_TE_TE_RENDERER_OPENGL_H
23#define TETRAEDGE_TE_TE_RENDERER_OPENGL_H
25#if defined(USE_OPENGL_GAME)
27#include "tetraedge/te/te_renderer.h"
31class TeRendererOpenGL :
public TeRenderer {
34 void clearBuffer(TeRenderer::Buffer buf)
override;
35 void colorMask(
bool r,
bool g,
bool b,
bool a)
override;
36 void disableAllLights()
override;
37 void disableTexture()
override;
38 void disableWireFrame()
override;
39 void disableZBuffer()
override;
40 void drawLine(
const TeVector3f32 &from,
const TeVector3f32 &to)
override;
41 void enableAllLights()
override;
42 void enableTexture()
override;
43 void enableWireFrame()
override;
44 void enableZBuffer()
override;
45 void init(uint width, uint height)
override;
46 void loadProjectionMatrix(
const TeMatrix4x4 &matrix)
override;
48 void renderTransparentMeshes()
override;
49 void reset()
override;
50 void setClearColor(
const TeColor &col)
override;
51 void setCurrentColor(
const TeColor &col)
override;
52 void setMatrixMode(
enum MatrixMode mode)
override;
53 void setViewport(
int x,
int y,
int w,
int h)
override;
54 void shadowMode(
enum ShadowMode mode)
override;
56 void applyMaterial(
const TeMaterial &m)
override;
57 void updateGlobalLight()
override;
58 void updateScreen()
override;
62 void loadMatrixToGL(
const TeMatrix4x4 &matrix)
override;