I'm not exactly sure how to put this... but I'd appreciate any help if maybe one of you out there can help me...
What I'd like to do is create a new data type, called "object". (C++ here, please) Here's the best typedef I could come out with:
typedef struct
{
int xcoord, ycoord, zcoord;
int scale;
int roll, pitch, yaw;
????? ????????;
int active;
} object[999];
The ???? marks are what I'm not sure about.... I don't exactly know *HOW* to define the object in any of C++'s terms. (I'd be using 256 color VGA) And, after I *WAS* able to define the term, say "char *" or something, how would I draw the object on the screen, denoting whatever coordinate in space it was? (There would also be a 'camera' structure, like so:)
struct
{
int xcoord, int ycoord ....
..
..
int active;
} camera;
Now, finally, in my program, I could do something like this, very easily:
void main(void)
{
camera.active=1;
object[1]=loadobject("GRAPHIC.IMG");
camera_follow_obj(1); /* Say, maybe 10 units away from object on z axis,