00001
00002
00003
00004
00005
00006
00007
00008 #import <Cocoa/Cocoa.h>
00009
00010 @class O3D_Texture;
00011 @class O3D_Vector4;
00012 @class O3D_Quaternion;
00013
00014 @interface O3D_Cube : NSObject {
00015 O3D_Texture *tex;
00016 O3D_Vector4 *position;
00017 O3D_Quaternion *rotation;
00018 O3D_Quaternion *rotateBy;
00019 NSColor *color;
00020
00021 float size;
00022 }
00023
00024 @property (nonatomic, retain) O3D_Texture *tex;
00025 @property (nonatomic, retain) O3D_Vector4 *position;
00026 @property (nonatomic, retain) O3D_Quaternion *rotation, *rotateBy;
00027 @property (nonatomic) float size;
00028
00029 - (id) initWithPosition:(O3D_Vector4 *)pos rotation:(O3D_Quaternion *)q texture:(O3D_Texture *)t;
00030
00031 - (void) draw;
00032
00033 @end