#include <OpenGLContext.h>
◆ OpenGLContext()
| Vesper::OpenGLContext::OpenGLContext |
( |
GLFWwindow * | windowHandle | ) |
|
13 {
15
16 }
#define VZ_CORE_ASSERT(x,...)
Definition Asserts.h:20
GLFWwindow * m_WindowHandle
Definition OpenGLContext.h:16
References m_WindowHandle.
◆ ~OpenGLContext()
| Vesper::OpenGLContext::~OpenGLContext |
( |
| ) |
|
|
virtual |
◆ Init()
| void Vesper::OpenGLContext::Init |
( |
| ) |
|
|
overridevirtual |
Initializes the graphics context.
Implements Vesper::GraphicsContext.
23 {
25
27 int status = gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
29
31 VZ_CORE_INFO(
" Vendor: {0}", (
const char *)glGetString(GL_VENDOR));
32 VZ_CORE_INFO(
" Renderer: {0}", (
const char *)glGetString(GL_RENDERER));
33 VZ_CORE_INFO(
" Version: {0}", (
const char *)glGetString(GL_VERSION));
34
35#ifdef VZ_ENABLE_ASSERTS
36 int major = 0, minor = 0;
37 glGetIntegerv(GL_MAJOR_VERSION, &major);
38 glGetIntegerv(GL_MINOR_VERSION, &minor);
39 VZ_CORE_ASSERT(major > 4 || (major == 4 && minor >= 5),
"Vesper requires at least OpenGL version 4.5!");
40#endif
41
42 }
#define VZ_PROFILE_FUNCTION()
Definition Instrumentor.h:240
#define VZ_CORE_INFO(...)
info: general information about application flow
Definition Log.h:37
References m_WindowHandle.
◆ SwapBuffers()
| void Vesper::OpenGLContext::SwapBuffers |
( |
| ) |
|
|
overridevirtual |
◆ m_WindowHandle
| GLFWwindow* Vesper::OpenGLContext::m_WindowHandle |
|
private |
The documentation for this class was generated from the following files: