summaryrefslogtreecommitdiff
path: root/include/glshape.h
blob: aad9f1644afa42860b072a9ead5bbafb44c1eb8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __GLSHAPE_H__
#define __GLSHAPE_H__

#include <Exceptions.h>
#include <BString.h>
#include <mcolor.h>
#include <texture.h>
#include <shape.h>

namespace mogltk {
    class glshape : public shape {
      public:
        virtual void pixel(int x, int y, ColorP = WHITE);
        virtual void box(int x1, int y1, int x2, int y2, ColorP = WHITE);
        virtual void box3d(int x1, int y1, int x2, int y2, ColorP = DOS_WHITE, ColorP = DOS_HIGH_WHITE, ColorP = DOS_GRAY, int = 2, bool = false);
	virtual void box(int x1, int y1, int x2, int y2, ColorP, ColorP, ColorP, ColorP);
	virtual void obox(int x1, int y1, int x2, int y2, ColorP = DOS_WHITE);
	virtual void obox(int x1, int y1, int x2, int y2, ColorP, ColorP, ColorP, ColorP);
	virtual void hline(int x1, int x2, int y, ColorP = DOS_WHITE);
	virtual void hline(int x1, int x2, int y, ColorP, ColorP);
	virtual void vline(int x, int y1, int y2, ColorP = DOS_WHITE);
	virtual void vline(int x, int y1, int y2, ColorP, ColorP);
	virtual void tbox(texture *, int x1, int y1, int x2, int y2, int tx = 0, int ty = 0, double = 1.0, ColorP = WHITE);
	virtual void tbox(texture *, int x1, int y1, int x2, int y2, int tx1, int ty1, int tx2, int ty2, ColorP = WHITE);
	virtual void tbox(texture *, int x1, int y1, int x2, int y2, ColorP, ColorP, ColorP, ColorP, int tx = 0, int ty = 0, double = 1.0);
	virtual void tbox(texture *, int x1, int y1, int x2, int y2, ColorP, ColorP, ColorP, ColorP, int tx1, int ty1, int tx2, int ty2);
	virtual void fdraw(fill * f, ColorP = WHITE, int sx = 0, int sy = 0);
	virtual void sdraw(fill * f, ColorP = WHITE, int sx = 0, int sy = 0);
      private:
        bool Enter(bool);
        virtual bool Enter();
	virtual void Leave(bool);
    };
};

#endif