summaryrefslogtreecommitdiff
path: root/include/glshape.h
blob: 77eea0febbb61dc05cff648b2d635b7de1633919 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 *  mogltk
 *  Copyright (C) 1999-2004 Nicolas "Pixel" Noble
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

/* $Id: glshape.h,v 1.16 2006-10-28 16:50:46 pixel Exp $ */

#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