summaryrefslogtreecommitdiff
path: root/include/glshape.h
blob: cd9fef02b84853476c7b539dc32b5464a3442d51 (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
#ifndef __GLSHAPE_H__
#define __GLSHAPE_H__

#include <Exceptions.h>
#include <Color.h>
#include <gltexture.h>

namespace mogltk {
    class shape : public Base {
      public:
        static void box(int x1, int y1, int x2, int y2, Color = WHITE);
	static void box(int x1, int y1, int x2, int y2, Color, Color, Color, Color);
        static void obox(int x1, int y1, int x2, int y2, Color = WHITE);
	static void obox(int x1, int y1, int x2, int y2, Color, Color, Color, Color);	
	static void tbox(texture *, int x1, int y1, int x2, int y2, int tx = 0, int ty = 0, double = 1.0, Color = WHITE);
	static void tbox(texture *, int x1, int y1, int x2, int y2, int tx1, int ty1, int tx2, int ty2, Color = WHITE);
	static void tbox(texture *, int x1, int y1, int x2, int y2, Color, Color, Color, Color, int tx = 0, int ty = 0, double = 1.0);
	static void tbox(texture *, int x1, int y1, int x2, int y2, Color, Color, Color, Color, int tx1, int ty1, int tx2, int ty2);
	static void hline(int x1, int x2, int y, Color = WHITE);
	static void hline(int x1, int x2, int y, Color, Color);
	static void vline(int x, int y1, int y2, Color = WHITE);
	static void vline(int x, int y1, int y2, Color, Color);
      private:
        static bool in2D(bool);
	static void out2D(bool);
    };
};

#endif