add webgl support

This commit is contained in:
2019-10-05 21:08:40 +02:00
parent a1c0dcb007
commit f2a73a905d
19 changed files with 370 additions and 11 deletions

View File

@@ -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