Interface for OpenGL context.
More...
#include <IContext.hpp>
|
| GladGLContext | gl {nullptr} |
| |
Interface for OpenGL context.
Definition at line 20 of file IContext.hpp.
◆ ~IContext()
| virtual cae::IContext::~IContext |
( |
| ) |
|
|
virtualdefault |
◆ initialize()
Initialize the OpenGL context with the given window.
- Parameters
-
| window | The native window handle |
◆ isVSyncEnabled()
| virtual bool cae::IContext::isVSyncEnabled |
( |
| ) |
const |
|
nodiscardpure virtual |
Check if VSync is enabled.
- Returns
- Whether VSync is enabled
◆ setVSyncEnabled()
| virtual void cae::IContext::setVSyncEnabled |
( |
bool | enabled | ) |
|
|
pure virtual |
Enable or disable VSync.
- Parameters
-
| enabled | Whether VSync should be enabled |
◆ swapBuffers()
| virtual void cae::IContext::swapBuffers |
( |
| ) |
|
|
pure virtual |
Swap the front and back buffers.
◆ gl
| GladGLContext cae::IContext::gl {nullptr} |
The documentation for this interface was generated from the following file: