From baad21805adde570729b67e2c320f22ddab9e439 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 19 Sep 2023 16:07:18 +0200 Subject: window,window-opengl: Renaming to gpu_* --- c++/window-opengl/gl_xcb.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'c++/window-opengl/gl_xcb.h') diff --git a/c++/window-opengl/gl_xcb.h b/c++/window-opengl/gl_xcb.h index d89541d..f7f5d6a 100644 --- a/c++/window-opengl/gl_xcb.h +++ b/c++/window-opengl/gl_xcb.h @@ -22,7 +22,7 @@ public: }; template<> -class gl_context final { +class gpu_context final { private: glx_library_extensions ext_lib_; own> device_; @@ -30,26 +30,25 @@ private: GLXContext context_; GLXFBConfig fb_config_; public: - gl_context(const glx_library_extensions&, own>, int, GLXContext, GLXFBConfig); - ~gl_context(); + gpu_context(const glx_library_extensions&, own>, int, GLXContext, GLXFBConfig); + ~gpu_context(); - own> create_window(const video_mode&, std::string_view); + own> create_window(const video_mode&, std::string_view); void flush(); }; template<> -class gl_window final { +class gpu_window final { private: own> window_; - gl_context* context_; + gpu_context* context_; ::GLXWindow glx_window_handle_; - public: - gl_window(own> window, gl_context& ctx, + gpu_window(own> window, gpu_context& ctx, ::GLXWindow); - ~gl_window(); + ~gpu_window(); void bind(); void swap(); -- cgit v1.2.3