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 */
typedef struct
{
GLfloat x, y;
}VERTEX;
/* Astriod Object, number of points, and a vertex for each */
typedef struct
{
GLfloat velx,vely;
GLint numberOfPoints;
VERTEX *vertex;
}ASTERIOD;
typedef struct
{
GLint numasteriod; //number of asteriods
ASTERIOD* asteriod; //Asteriod
}SPACE;
typedef SPACE* SpacePtr;



