summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2003-05-20 01:53:24 +0000
committerpixel <pixel>2003-05-20 01:53:24 +0000
commite0f0cfd81fbec4fc20a591409f1bef67e16d62e7 (patch)
tree141b2742806249e1746d92b79b392022c95cfb2a /include
parente7595adabac15fd3a523327bf8c42655f989f9c2 (diff)
Bugfixes
Diffstat (limited to 'include')
-rw-r--r--include/engine.h7
-rw-r--r--include/shape.h4
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;