GlGraphics, GLModel class orgnisation
in
Contributed Library Questions
•
2 years ago
Hi, possibly a simple question ... I'm creating a class for a particle which will draw a cube using GLModel. Do I create one instance of the GLModel in the main class, or a new instance of the GLModel within the particle class?
The MillionCube example uses just the one instance of the GLModel. In my mind this seems right, as each cube is already an object, which can be targeted via its id, albeit restricted in movement.
1