00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __MX_SCREEN_H__X
00017 #define __MX_SCREEN_H__X
00018 #include "mxsurface.h"
00019 #include<string>
00020 #include<sstream>
00021
00022 namespace mx
00023 {
00024
00025
00026
00030 class mxScreen {
00031
00032 public:
00033 explicit mxScreen(std::string path, mxSurface &rsurface) : front(rsurface), pathvar(path) { }
00034 virtual ~mxScreen() { }
00035 virtual void init() = 0;
00036 virtual void free() = 0;
00037 virtual void render() = 0;
00038 virtual int logic() = 0;
00039 void loadSurface(mx::mxSurface &surf, std::string filename);
00040 protected:
00041 mxSurface &front;
00042 std::string pathvar;
00043
00044 };
00045 }
00046
00047
00048 #endif