Vital
Loading...
Searching...
No Matches
OpenGlWrapper Struct Reference

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.
 
Shadersshaders
 Pointer to the Shaders instance providing compiled shaders.
 
float display_scale
 Display scaling factor for high-DPI rendering.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ OpenGlWrapper()

OpenGlWrapper::OpenGlWrapper ( OpenGLContext & c)
inline

Constructs an OpenGlWrapper.

Parameters
cReference to the OpenGLContext.

Member Data Documentation

◆ context

OpenGLContext& OpenGlWrapper::context

The OpenGLContext for current rendering.

◆ display_scale

float OpenGlWrapper::display_scale

Display scaling factor for high-DPI rendering.

◆ shaders

Shaders* OpenGlWrapper::shaders

Pointer to the Shaders instance providing compiled shaders.


The documentation for this struct was generated from the following file: