Fix property value initialization
This commit is contained in:
@@ -38,11 +38,13 @@ class SubjectDrawable : public SceneGraph::Drawable3D {
|
||||
public:
|
||||
explicit SubjectDrawable(Object3D &object, Shaders::Phong &shader,
|
||||
GL::Mesh &mesh, SceneGraph::DrawableGroup3D &drawables,
|
||||
int count)
|
||||
int count, float hue, float t)
|
||||
: SceneGraph::Drawable3D{object, &drawables},
|
||||
m_shader(shader),
|
||||
m_mesh(mesh),
|
||||
m_count(count) {}
|
||||
m_count(count),
|
||||
m_hue(hue),
|
||||
m_t(t) {}
|
||||
|
||||
void draw(const Matrix4 &transformation, SceneGraph::Camera3D &camera);
|
||||
|
||||
@@ -92,7 +94,6 @@ private:
|
||||
void prepGLState();
|
||||
|
||||
bool m_init;
|
||||
int m_count;
|
||||
|
||||
Platform::GLContext *m_ctx{nullptr};
|
||||
GL::Framebuffer m_FBO{NoCreate};
|
||||
|
||||
Reference in New Issue
Block a user