How adskeptik/kgui works
This is a Windows C++ GUI and graphics-context library. Its intended user workflow is to create a window, run its message loop, and use a renderer window’s OpenGL context; the renderer abstraction also leaves room for other graphics APIs, but DirectX is only a stub in the sampled files. The graph includes the shader abstraction and OpenGL shader specialization as a separate capability. Source excerpts establish the window and OpenGL foundations, but do not show the renderer-window implementation or a complete shader workflow.
Main entry points: K_Window.cpp Window base · K_OpenGL_Context.cpp OpenGL context · K_Renderer_Context.cpp Renderer abstraction · K_RendererWindow.cpp Renderer window
Components 12
Windowing
- Window base
K_Window.cpp - Custom window loop
CustomWindow.cpp
Rendering
- Renderer window
K_RendererWindow.cpp - Renderer abstraction
K_Renderer_Context.cpp - OpenGL context
OpenGL/K_OpenGL_Context.cpp - Custom GL context
OpenGL/CustomOpenGLContext.cpp - DirectX context stub
DX/K_DXContext.cpp
Shaders
- Shader abstraction
K_Shader.cpp - OpenGL shader
K_Shader_OpenGL.cpp
Other components
- Library user
- Windows API
- OpenGL / WGL
Connections 11
- Library user → Window base: creates
- Window base → Windows API: creates windows
K_Window.cpp - Custom window loop → Window base: extends
- Renderer window → Custom window loop: extends
- Renderer window → Custom GL context: owns context
- Custom GL context → OpenGL context: extends
- OpenGL context → Renderer abstraction: extends
- Renderer abstraction → Window base: gets window handle
K_Renderer_Context.cpp - OpenGL context → OpenGL / WGL: loads functions
OpenGL/K_OpenGL_Context.cpp - DirectX context stub → Renderer abstraction: implements API
- OpenGL shader → Shader abstraction: extends