Raito 0.1
Loading...
Searching...
No Matches
OpenGLCommon.h File Reference
#include "Renderer/Renderer.h"
#include "Core/Log.h"
#include <Core/Common.h>
#include <glad/glad.h>
#include <Raito/Renderer/OpenGL/OpenGLObjects/OpenGLFrameBuffer.h>
#include <Raito/Renderer/Camera.h>
#include <Raito/Math/AABB.h>
Include dependency graph for OpenGLCommon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Raito::Renderer::OpenGL::TextureData
 
struct  Raito::Renderer::OpenGL::OpenGLMeshData
 

Namespaces

namespace  Raito
 
namespace  Raito::Renderer
 
namespace  Raito::Renderer::OpenGL
 

Macros

#define O_LOG(...)   LOG("OpenGL", __VA_ARGS__)
 
#define O_WARN(...)   WARN("OpenGL", __VA_ARGS__)
 
#define O_ERROR(...)   ERR("OpenGL", __VA_ARGS__)
 
#define GL(_f)
 

Macro Definition Documentation

◆ GL

#define GL ( _f)
Value:
gl##_f; \
{ \
GLenum error = glGetError(); \
if(error != GL_NO_ERROR) fprintf(stderr, "%s:%d glGetError() = 0x%04x\n", __FILE__, __LINE__, error); \
assert(error == GL_NO_ERROR); }

◆ O_ERROR

#define O_ERROR ( ...)    ERR("OpenGL", __VA_ARGS__)

◆ O_LOG

#define O_LOG ( ...)    LOG("OpenGL", __VA_ARGS__)

◆ O_WARN

#define O_WARN ( ...)    WARN("OpenGL", __VA_ARGS__)