summaryrefslogtreecommitdiffstats
path: root/kue/graphics.h
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-08-07 19:13:02 +0300
committerMavridis Philippe <mavridisf@gmail.com>2024-08-07 19:23:24 +0300
commit04b5a62b8d9f5ff8240f25361046f2a5d58e8262 (patch)
tree98b126454cdf68d544e138d7e8b31d5fd45b72c2 /kue/graphics.h
parent83ba00b7e569587d50383ff06a70148042ca780e (diff)
downloadtdegames-feat/kue.tar.gz
tdegames-feat/kue.zip
Add Kue billiards gamefeat/kue
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kue/graphics.h')
-rw-r--r--kue/graphics.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/kue/graphics.h b/kue/graphics.h
new file mode 100644
index 00000000..810fe8d8
--- /dev/null
+++ b/kue/graphics.h
@@ -0,0 +1,37 @@
+// Main header for the graphics subsystem
+
+#ifndef _GRAPHICS_H
+#define _GRAPHICS_H
+
+#include "cue.h"
+#include "disc.h"
+#include "sphere.h"
+#include "table.h"
+#include "texture.h"
+
+const int GRAPHICS_NOTEXTURE = 0;
+
+class graphics {
+ public:
+ // Setup OpenGL
+ static bool init();
+ // Shut down OpenGL
+ static bool deinit();
+
+ static void resize(int width, int height);
+
+ // Start and end drawing mode
+ static void startDraw();
+ static void endDraw();
+
+ // Draw the basic scene
+ static void drawScene();
+
+ // Set the pen color
+ static void setColor(double r, double g, double b);
+
+ // Sets the viewing angle
+ static void lookAt(double eyex, double eyey, double eyez, double centerx, double centery, double centerz);
+};
+
+#endif