hwabstract.h

Go to the documentation of this file.
00001 #ifndef __OE_HWABSTRACT_H__
00002 #define __OE_HWABSTRACT_H__
00003 #include "sdl.h"
00004 
00011 class OE_HW_LAYER {
00012 public:
00013     void init(void);
00014     int set_res(uint32 w, uint32 h);
00015     void log(char *c);
00016     void blit(void *src, uint32 w, uint32 h);
00017     uint32 getticks(void);
00018     void do_events(void);
00019     byte keyd[323];         // 323 SDL keys...
00020     byte keyp[323];         // 323 SDL keys...
00021 
00022     void SDL_window(char *c);
00023 
00024 private:
00025     SDL_Surface *SDLscreen;
00026     uint32 myh, myw;
00027 };
00028 
00029 
00030 class OE_HW_COUNTER {
00031 public:
00032     uint32 ltick;           // Ticks passed
00033     uint32 threshold;       // How many ms to pass
00034     void set(OE_HW_LAYER *e, uint32 thresh);            // Set
00035     uint32 done(void);      // Is it expired?
00036     uint32 calcval;
00037 
00038     OE_HW_LAYER *oel;
00039 };
00040 
00041 #endif

Generated on Sat Sep 9 03:50:42 2006 for Openem APIs by  doxygen 1.4.7