This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// for compile time asserts | |
#define static_assert(cond, msg) \ | |
typedef char static_assert_##__LINE__[(cond)? 1 : -1] | |
static_assert(sizeof(int)==4, 4bitint); | |
//for run time asserts | |
#define assert(cond, msg) \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <gl/GL.h> | |
#include <stdio.h> | |
#define WND_WIDTH 800 | |
#define WND_HEIGHT 600 | |
// TODO(mordern opengl) : | |
// https://gist.github.com/nickrolfe/1127313ed1dbf80254b614a721b3ee9c | |
_Bool running = 1; |