summaryrefslogtreecommitdiff
path: root/c++/window-opengl/gl_context.h
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-08-09 20:25:16 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-08-09 20:25:16 +0200
commitb49d590153658e77d284e0b87d3cabe65fd37730 (patch)
treea9a4269921d6011d6dacf4b2a843ca7545e5bb0d /c++/window-opengl/gl_context.h
parentb04f831e7bc9513183127d1c3918789fb0696fff (diff)
c++,window-opengl: Initial module commit
Diffstat (limited to 'c++/window-opengl/gl_context.h')
-rw-r--r--c++/window-opengl/gl_context.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/c++/window-opengl/gl_context.h b/c++/window-opengl/gl_context.h
new file mode 100644
index 0000000..8821650
--- /dev/null
+++ b/c++/window-opengl/gl_context.h
@@ -0,0 +1,42 @@
+#pragma once
+
+namespace saw {
+namespace gfx {
+class gl_settings {
+ uint8_t gl_major = 3;
+ uint8_t gl_minor = 3;
+
+ enum class render_type : int32_t { rgba };
+
+ render_type render_t = render_type::rgba;
+
+ bool renderable = true;
+
+ bool window_type = true;
+
+ enum class drawable_type : int32_t {
+ window_bit = 0x01,
+ pixmap_bit = 0x02,
+ pbuffer_bit = 0x04
+ };
+
+ drawable_type drawable_t = drawable_type.:window_bit;
+
+ bool double_buffer = true;
+ int red_bits = 8;
+ int green_bits = 8;
+ int blue_bits = 8;
+ int alpha_bits = 8;
+
+ int depth_bits = 24;
+ int stencil_bits = 8;
+
+ bool core_profile = true;
+};
+
+template<typename T>
+class gl_context;
+
+
+}
+}