Merge remote-tracking branch 'origin/deffered_rendering'
Conflicts: assets src/Components/PointLight.h src/GameWorld.cpp src/Renderer.cpp src/Renderer.h vs11/Returngeance/Returngeance.vcxproj.filters
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#ifndef UTIL_H
|
||||
#define UTIL_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define ZERO_MEM(a) memset(a, 0, sizeof(a))
|
||||
|
||||
#define ARRAY_SIZE_IN_ELEMENTS(a) (sizeof(a)/sizeof(a[0]))
|
||||
|
||||
#define INVALID_OGL_VALUE 0xFFFFFFFF
|
||||
|
||||
#define SAFE_DELETE(p) if (p) { delete p; p = NULL; }
|
||||
|
||||
#define GLExitIfError() \
|
||||
{ \
|
||||
GLenum Error = glGetError(); \
|
||||
\
|
||||
if (Error != GL_NO_ERROR) { \
|
||||
printf("OpenGL error in %s:%d: 0x%x\n", __FILE__, __LINE__, Error); \
|
||||
exit(0); \
|
||||
} \
|
||||
}
|
||||
|
||||
#define GLCheckError() (glGetError() == GL_NO_ERROR)
|
||||
|
||||
#endif /* UTIL_H */
|
||||
Reference in New Issue
Block a user