Vital
|
A helper struct containing references to OpenGL context, shaders, and display scale. More...
#include <shaders.h>
Public Member Functions | |
OpenGlWrapper (OpenGLContext &c) | |
Constructs an OpenGlWrapper. | |
Public Attributes | |
OpenGLContext & | context |
The OpenGLContext for current rendering. | |
Shaders * | shaders |
Pointer to the Shaders instance providing compiled shaders. | |
float | display_scale |
Display scaling factor for high-DPI rendering. | |
A helper struct containing references to OpenGL context, shaders, and display scale.
This struct simplifies passing around OpenGL-related parameters (context, shader manager, display scale) to rendering functions.
|
inline |
Constructs an OpenGlWrapper.
c | Reference to the OpenGLContext. |
OpenGLContext& OpenGlWrapper::context |
The OpenGLContext for current rendering.
float OpenGlWrapper::display_scale |
Display scaling factor for high-DPI rendering.