summaryrefslogtreecommitdiff
path: root/modules/window-opengl/gl_context.h
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-12-04 12:18:14 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-12-04 12:18:14 +0100
commita14896f9ed209dd3f9597722e5a5697bd7dbf531 (patch)
tree089ca5cbbd206d1921f8f6b53292f5bc1902ca5c /modules/window-opengl/gl_context.h
parent84ecdcbca9e55b1f57fbb832e12ff4fdbb86e7c9 (diff)
meta: Renamed folder containing source
Diffstat (limited to 'modules/window-opengl/gl_context.h')
-rw-r--r--modules/window-opengl/gl_context.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/modules/window-opengl/gl_context.h b/modules/window-opengl/gl_context.h
new file mode 100644
index 0000000..685e527
--- /dev/null
+++ b/modules/window-opengl/gl_context.h
@@ -0,0 +1,43 @@
+#pragma once
+
+namespace saw {
+namespace gfx {
+class gl_settings {
+public:
+ 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 gpu_context;
+
+
+}
+}