Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

sprites.hpp

Go to the documentation of this file.
00001 /* $Id: sprites.hpp,v 1.1.1.1 2005/04/22 17:18:53 ndsdev Exp $ */
00017 #ifndef SPRITES_H
00018 #define SPRITES_H
00019 
00020 #include <NDS/ARM9/video.h>
00021 
00026 typedef struct
00027 {
00028   int x;                
00029   int y;                
00030   int dx;               
00031   int dy;               
00032   sSpriteEntry* oam;    
00033   int gfxID;            
00034 } Sprite;
00035 
00041 class SpritesBase {
00042 public:
00050   SpriteEntry OAMCopy[128];
00051 
00060   SpriteRotation* rotationData;
00061 
00069   SpriteEntry OAMSubCopy[128];
00070 
00079   SpriteRotation* rotationSubData;
00080 
00085   void initOAM(void);
00086 
00094   void updateOAM(void);
00095 
00100   SpritesBase();
00101 
00109   void MoveSprite(Sprite* sp);
00110 
00115   virtual ~SpritesBase();
00116 
00117 };
00118 
00119 #endif

Generated on Fri Apr 22 13:53:28 2005 for Sprite01 Example Application by doxygen 1.3.6