3D City v-1.0
Computer Graphics Project
core.h File Reference
#include "GL/glew.h"
#include "GLFW/glfw3.h"
#include "glm/glm.hpp"
#include "maths.h"
#include <filesystem>

Go to the source code of this file.

Classes

struct  Vertex
 
struct  color
 class that holds color with 8 bits per channel with 4 channels rgba. More...
 
struct  dirLight
 

Macros

#define _USE_MATH_DEFINES
 
#define DEBUG_BREAK   __builtin_trap()
 
#define MDEBUG
 
#define GLcall_P(y, x)
 
#define GLcall(x)
 
#define PHONG_SHADING
 
#define USEBARYCENTRIC
 
#define vec3   vec3
 
#define ASSERT(x)
 

Typedefs

typedef unsigned int uint
 

Functions

const std::string pathDelemeter ("/")
 
void GLClearError ()
 
bool GLLogCall (const char *function, const char *file, int line)
 
vec3 operator* (glm::mat4 mat, vec3 vec)
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 3 of file core.h.

◆ ASSERT

#define ASSERT (   x)
Value:
if (!(x)) { \
DEBUG_BREAK; \
assert(false); \
}

Definition at line 95 of file core.h.

◆ DEBUG_BREAK

#define DEBUG_BREAK   __builtin_trap()

Definition at line 30 of file core.h.

◆ GLcall

#define GLcall (   x)
Value:
x; \
ASSERT(GLLogCall(#x, __FILE__, __LINE__))
bool GLLogCall(const char *function, const char *file, int line)
Definition: core.h:63
void GLClearError()
Definition: core.h:58

Definition at line 43 of file core.h.

◆ GLcall_P

#define GLcall_P (   y,
  x 
)
Value:
y = x; \
ASSERT(GLLogCall(#x, __FILE__, __LINE__))

Definition at line 39 of file core.h.

◆ MDEBUG

#define MDEBUG

Definition at line 31 of file core.h.

◆ PHONG_SHADING

#define PHONG_SHADING

Definition at line 52 of file core.h.

◆ USEBARYCENTRIC

#define USEBARYCENTRIC

Definition at line 54 of file core.h.

◆ vec3

#define vec3   vec3

Definition at line 56 of file core.h.

Typedef Documentation

◆ uint

typedef unsigned int uint

Definition at line 101 of file core.h.

Function Documentation

◆ GLClearError()

void GLClearError ( )
inline

Definition at line 58 of file core.h.

◆ GLLogCall()

bool GLLogCall ( const char *  function,
const char *  file,
int  line 
)
inline

Definition at line 63 of file core.h.

◆ operator*()

vec3 operator* ( glm::mat4  mat,
vec3  vec 
)
inline

Definition at line 102 of file core.h.

◆ pathDelemeter()

const std::string pathDelemeter ( "/"  )