Hi, I am doing the game asteriods. I just want to link the asteroids together, so I can destroy it later in the game.
Any suggestions? Do I need an additional pointer to link the asteriods together? Right now I have a loop that draws the x,y, then the number of points. But, if I can store the information for one asteroid-that would be better. Thanks
/* Vertex object represents one point in an asteriod */
GLfloat x, y;
/* Astriod Object, number of points, and a vertex for each */
GLint numasteriod; //number of asteriods
ASTERIOD* asteriod; //Asteriod
typedef SPACE* SpacePtr;