entities.h

00001 /*
00002 * "PS2" Application Framework
00003 *
00004 * University of Abertay Dundee
00005 * May be used for educational purposed only
00006 *
00007 * Author - Dr Henry S Fortuna
00008 *
00009 * $Revision: 1.2 $
00010 * $Date: 2007/08/19 12:45:09 $
00011 *
00012 */
00013 
00014 #ifndef _ENTITIES_H_
00015 #define _ENTITIES_H_
00016 
00017 #include "PS2Defines.h"
00018 #include "pipeline.h"
00019 
00020 class Cube
00021 {
00022 public:
00023         Cube();
00024         ~Cube();
00025         
00026         void Render(void) const;
00027         
00028         void SetWorldMatrix(const Matrix4x4 & matWorld);
00029         
00030         static void LoadCubeData(void);
00031         
00032         inline float GetX(void) const {return World(3,0);}
00033         
00034         inline float GetY(void) const {return World(3,1);}
00035         
00036         inline float GetZ(void) const {return World(3,2);}
00037 
00038 
00039 protected:
00040         
00041         // Pointer to the data in Static DMA memory
00042         static int iStaticAddr;
00043         
00044         // The world and WorldViewProjection Matrices
00045         Matrix4x4 World, WVP;
00046         
00047         // Check variables
00048         bool WorldLoaded;
00049 };
00050 
00051 
00052 #endif

Generated on Sun May 18 21:45:08 2008 for PS2X by  doxygen 1.5.4