Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
OpenGLUtils.hpp File Reference
#include <glad/glad.h>
#include <Core/Core.hpp>
#include <cstring>

Go to the source code of this file.

Classes

class  OpenGLUtils
 

Macros

#define ENIGMA_OPENGL_UTILS_H
 
#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX   0x9047
 
#define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX   0x9048
 
#define GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX   0x9049
 
#define GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX   0x904A
 
#define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX   0x904B
 
#define CASE_ENUM(e)
 
#define glAssert(call)
 glAssert to handle opengl calls errors (for opengl versions less than 4.3 with no error callback func to handle errors) More...
 

Macro Definition Documentation

◆ CASE_ENUM

#define CASE_ENUM (   e)
Value:
case e: \
return #e

◆ ENIGMA_OPENGL_UTILS_H

#define ENIGMA_OPENGL_UTILS_H

Definition at line 3 of file OpenGLUtils.hpp.

◆ GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX

#define GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX   0x9049

Definition at line 11 of file OpenGLUtils.hpp.

◆ GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX

#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX   0x9047

Definition at line 9 of file OpenGLUtils.hpp.

◆ GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX

#define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX   0x904B

Definition at line 13 of file OpenGLUtils.hpp.

◆ GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX

#define GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX   0x904A

Definition at line 12 of file OpenGLUtils.hpp.

◆ GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX

#define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX   0x9048

Definition at line 10 of file OpenGLUtils.hpp.

◆ glAssert

#define glAssert (   call)
Value:
do { \
(call); \
const GLenum err = glGetError(); \
if (err != GL_NO_ERROR) { \
ENIGMA_ASSERT(false, OpenGLUtils::GetGLErrorEnumString(err)); \
} \
} while (false)
static constexpr const char * GetGLErrorEnumString(const GLenum &_enum) noexcept
Definition: OpenGLUtils.hpp:46

glAssert to handle opengl calls errors (for opengl versions less than 4.3 with no error callback func to handle errors)

Definition at line 67 of file OpenGLUtils.hpp.