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) 58 typedef _PropVertex PropVertex;
60 class OpenGLPropRenderer :
public VisualProp {
62 explicit OpenGLPropRenderer(OpenGLDriver *gfx);
63 ~OpenGLPropRenderer()
override;
65 void render(
const Math::Vector3d &position,
float direction,
const LightEntryArray &lights)
override;
74 FaceBufferMap _faceEBO;
77 void uploadVertices();
78 PropVertex *createFaceVBO();
79 uint32 *createFaceEBO(
const Face *face);
85 #endif // STARK_GFX_OPENGL_S_RENDERED_H 87 #endif // defined(USE_OPENGL_GAME)