Login  Register

Initialising an array of shapes

Posted by Commissar on Jan 17, 2023; 10:29am
URL: https://forum.jogamp.org/Initialising-an-array-of-shapes-tp4042053.html

Been looking through the available guides and resources and haven't really found much on drawing an array of objects to a canvas (only people showing how to add single shapes).

I've got that part down, able to successfully render a sphere, however what I am looking for is a way to create a variable number of spheres from an array of objects, creating each sphere with unique initial conditions, and of course being able to update each respective position.

This part has definitely been confusing me, so any help or resources would be greatly appreciated!