I suggest having a "base material" that is stored inside GameObject and then allow each object to create additional materials for drawing different parts of their body.
Material::draw() calls glMaterial() functions with pre-allocated vectors and stuff, like LightSource does.
I suggest having a "base material" that is stored inside
GameObject
and then allow each object to create additional materials for drawing different parts of their body.Material::draw()
callsglMaterial()
functions with pre-allocated vectors and stuff, likeLightSource
does.