add webgl support
This commit is contained in:
23
src/pch.h
23
src/pch.h
@@ -103,6 +103,24 @@
|
||||
#define __block
|
||||
#define BT_SetTerminate void
|
||||
|
||||
#elif defined(EMSCRIPTEN)
|
||||
|
||||
#define GLFW_INCLUDE_ES3
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
|
||||
#define __WEB__ 1
|
||||
#define SHADER_VERSION "#version 300 es\n"
|
||||
#define PP_OS "web"
|
||||
#define __GLES__ 1
|
||||
#define __WEBGL__ 1
|
||||
#define __block
|
||||
#define BT_SetTerminate void
|
||||
|
||||
//#define GL_RGBA8 GL_RGBA
|
||||
|
||||
#endif
|
||||
|
||||
#define SIXPLETTE(I) {I, I, I, I, I, I}
|
||||
@@ -155,5 +173,8 @@
|
||||
#include <stb/stb_truetype.h>
|
||||
#include <stb/stb_image.h>
|
||||
#include <stb/stb_image_write.h>
|
||||
#include <curl/curl.h>
|
||||
#include <sqlite3.h>
|
||||
|
||||
#ifndef EMSCRIPTEN
|
||||
#include <curl/curl.h>
|
||||
#endif
|
||||
Reference in New Issue
Block a user