summaryrefslogtreecommitdiff
path: root/include/glshape.h
diff options
context:
space:
mode:
authorpixel <pixel>2003-03-14 02:05:15 +0000
committerpixel <pixel>2003-03-14 02:05:15 +0000
commitff05e0d8437c50e86229a79b99c8f1ae0ffe773f (patch)
tree4b53d22ecd227fb8ba9e0c653106774f9a99a27f /include/glshape.h
parentc9437871835f2472e40a9051704b4e20f48ed067 (diff)
Creating shapes
Diffstat (limited to 'include/glshape.h')
-rw-r--r--include/glshape.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/glshape.h b/include/glshape.h
new file mode 100644
index 0000000..cd9fef0
--- /dev/null
+++ b/include/glshape.h
@@ -0,0 +1,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