22 #ifndef STARK_GFX_OPENGL_S_RENDERED_H 23 #define STARK_GFX_OPENGL_S_RENDERED_H 25 #include "engines/stark/model/model.h" 26 #include "engines/stark/visual/prop.h" 28 #include "common/hashmap.h" 29 #include "common/hash-ptr.h" 31 #include "graphics/opengl/system_headers.h" 33 #if defined(USE_OPENGL_SHADERS) 45 class OpenGLSPropRenderer :
public VisualProp {
47 explicit OpenGLSPropRenderer(Driver *gfx);
48 ~OpenGLSPropRenderer()
override;
50 void render(
const Math::Vector3d &position,
float direction,
const LightEntryArray &lights)
override;
60 FaceBufferMap _faceEBO;
63 void uploadVertices();
64 GLuint createFaceVBO();
65 GLuint createFaceEBO(
const Face *face);
67 void setLightArrayUniform(
const LightEntryArray &lights);
74 #endif // STARK_GFX_OPENGL_S_RENDERED_H 76 #endif // defined(USE_OPENGL_SHADERS)
Definition: renderbuffer.h:27