22 #ifndef STARK_GFX_OPENGL_RENDERED_H 23 #define STARK_GFX_OPENGL_RENDERED_H 25 #include "engines/stark/model/model.h" 26 #include "engines/stark/visual/prop.h" 27 #include "engines/stark/gfx/opengl.h" 29 #include "common/hashmap.h" 30 #include "common/hash-ptr.h" 32 #include "graphics/opengl/system_headers.h" 34 #if defined(USE_OPENGL_GAME) 57 typedef _PropVertex PropVertex;
59 class OpenGLPropRenderer :
public VisualProp {
61 explicit OpenGLPropRenderer(OpenGLDriver *gfx);
62 ~OpenGLPropRenderer()
override;
64 void render(
const Math::Vector3d &position,
float direction,
const LightEntryArray &lights)
override;
73 FaceBufferMap _faceEBO;
76 void uploadVertices();
77 PropVertex *createFaceVBO();
78 uint32 *createFaceEBO(
const Face *face);
84 #endif // STARK_GFX_OPENGL_S_RENDERED_H 86 #endif // defined(USE_OPENGL_GAME)