add linux support

This commit is contained in:
2019-10-03 22:45:01 +02:00
parent c26a4d1e86
commit 96f8cb72d2
9 changed files with 310 additions and 11 deletions

View File

@@ -84,6 +84,25 @@
#define PP_OS "win"
#define __block
#elif __linux__
#ifdef _DEBUG
#define GLAD_DEBUG
#endif
#include <glad/glad.h>
//#include <glad/glad_glx.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#define __LINUX__ 1
#define SHADER_VERSION "#version 150\n"
#define PP_OS "linux"
#define __GL__ 1
#define __block
#define BT_SetTerminate void
#endif
#define SIXPLETTE(I) {I, I, I, I, I, I}