Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Headers/Structs.h
// |
// structs.h |
// |
/* OBJECT RECORD STRUCTURE */ |
struct ObjNode |
{ |
long NodeNum; // node # in array (for internal use) |
struct ObjNode *PrevNode; // address of previous node in linked list |
struct ObjNode *NextNode; // address of next node in linked list |
long Genre; // obj genre: 0=sprite, 1=nonsprite |
long SortSlot; // sort value |
long Type; // obj type |
long ModeFlags; |
void (*MoveCall)(void); // pointer to object's move routine |
TQ3Point3D Coord; |
float RotX,RotY,RotZ; |
float ScaleX,ScaleY,ScaleZ; |
TQ3Matrix4x4 BaseTransformMatrix; |
TQ3TransformObject BaseTransformObject; // illegal ref to BaseTransformMatrix |
TQ3GroupObject BaseGroup; // group containing all geometry,etc. for this object (for drawing) |
}; |
typedef struct ObjNode ObjNode; |
/* NEW OBJECT DEFINITION TYPE */ |
typedef struct |
{ |
long genre,type; |
TQ3Point3D coord; |
unsigned long flags; |
long slot; |
void (*moveCall)(void); |
}NewObjectDefinitionType; |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14