refactor app and enable gles 3.0

This commit is contained in:
2017-03-04 19:04:08 +00:00
parent 11050fde9c
commit a2a221b17a
7 changed files with 127 additions and 83 deletions

View File

@@ -3,9 +3,18 @@
#ifdef __APPLE__
#include <OpenGL/gl3.h>
#include <sys/stat.h>
#define LOG printf
#elif __ANDROID__
#include <EGL/egl.h>
#include <GLES3/gl3.h>
#include <sys/stat.h>
#include <android/sensor.h>
#include <android/log.h>
#include <android_native_app_glue.h>
#define LOG(...) ((void)__android_log_print(ANDROID_LOG_INFO, "native-engine", __VA_ARGS__))
#elif _WIN32
#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
@@ -13,6 +22,8 @@
#include <gl\glew.h>
#include <gl\wglew.h>
#include <gl\GL.h>
#define LOG printf
#endif
#ifdef __cplusplus