00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef AEDCURSOR_H
00011 #define AEDCURSOR_H
00012
00013 #include "SDL.h"
00014 #include "dllmacros.h"
00015
00016 class DLLEXPORT aedCursor
00017 {
00018 public:
00019 aedCursor();
00020 ~aedCursor();
00021 inline void setAnchor(Uint8 x, Uint8 y)
00022 {
00023 xHot = x;
00024 yHot = y;
00025 };
00026 void setImage(SDL_Surface * Image);
00027 void render(SDL_Surface * Screen = NULL);
00028
00029 private:
00030 Uint8 xHot;
00031 Uint8 yHot;
00032 SDL_Surface *CursorImage;
00033 SDL_Surface *SavedImage;
00034 SDL_Rect SavedRect;
00035 };
00036 #endif