Fix property value initialization

This commit is contained in:
2020-07-08 14:13:52 -06:00
parent f810f02ea9
commit 85765e38d4
4 changed files with 8 additions and 8 deletions

View File

@@ -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};