diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/engine.h | 7 | ||||
-rw-r--r-- | include/shape.h | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/engine.h b/include/engine.h index 66f2f3c..b39841d 100644 --- a/include/engine.h +++ b/include/engine.h @@ -10,6 +10,11 @@ namespace mogltk { class engine : public Base { public: + class keyevent : public Base { + public: + virtual void down(SDL_keysym); + virtual void up(SDL_keysym); + }; static int setup() throw(GeneralException); static int postsetup() throw(GeneralException); static int GetInited(); @@ -26,6 +31,7 @@ namespace mogltk { static double FPS(); static void lockmouse(); static void unlockmouse(); + static void setkeyevent(keyevent *); static glbase * glbase_o; static base * base_o; private: @@ -41,6 +47,7 @@ namespace mogltk { static double curfps; static Uint32 curticks; static int locked; + static keyevent * keyevent_h; static void updatemouse(); }; }; diff --git a/include/shape.h b/include/shape.h index f107a00..58f4c07 100644 --- a/include/shape.h +++ b/include/shape.h @@ -32,6 +32,7 @@ namespace mogltk { void walk(fillwalker *); void swalk(segwalker *); void insert(int, int, int, int); + void insertfix(int, int); int GetMinX() const; int GetMinY() const; int GetMaxX() const; @@ -52,6 +53,7 @@ namespace mogltk { virtual ~sline(); int GetY() const; void insert(int, int); + void insertfix(int, int); void walk(fillwalker *); private: class point : public Base { @@ -74,6 +76,8 @@ namespace mogltk { protected: point * pheader; friend class point; + private: + int count() const; }; int minX, minY, maxX, maxY; texture * cached; |