Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Namespaces | Macros | Functions
glfwdebug.h File Reference
#include <fmt/format.h>
#include <glad/glad.h>
#include <string>
#include "engine/enginelogger.h"

Go to the source code of this file.

Namespaces

namespace  cqsp
 
namespace  cqsp::engine
 

Macros

#define LogGlError(x)
 

Functions

const char * cqsp::engine::ParseType (GLenum type)
 
const char * cqsp::engine::ParseSeverity (GLenum severity)
 
const char * cqsp::engine::ParseSource (GLenum source)
 
const std::string cqsp::engine::GetGlError (GLenum error)
 
void APIENTRY cqsp::engine::glDebugOutput (GLenum source, GLenum type, unsigned int id, GLenum severity, GLsizei length, const char *message, const void *userParam)
 

Macro Definition Documentation

◆ LogGlError

#define LogGlError (   x)
Value:
do { \
GLenum error = glGetError(); \
while ((error = glGetError()) != GL_NO_ERROR) { \
if (error != GL_NO_ERROR) { \
SPDLOG_ERROR("{} {}", x, engine::GetGlError(error)); \
} \
} \
} while (0)
const std::string GetGlError(GLenum error)
Definition: glfwdebug.h:93