60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
//#pragma once
|
|
|
|
#define USE_VBO 0
|
|
#define USE_SAMPLER 1
|
|
|
|
#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
|
|
#include <windows.h>
|
|
#include <gl\glew.h>
|
|
#include <gl\wglew.h>
|
|
#include <gl\GL.h>
|
|
|
|
#define LOG printf
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
#include <map>
|
|
#include <cmath>
|
|
#include <stack>
|
|
#include <regex>
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <iostream>
|
|
#include <algorithm>
|
|
#include <functional>
|
|
|
|
#define GLM_FORCE_RADIANS
|
|
#define GLM_FORCE_SWIZZLE
|
|
//#define GLM_FORCE_MESSAGES
|
|
#define GLM_ENABLE_EXPERIMENTAL
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/matrix_transform.hpp>
|
|
#include <glm/gtc/type_ptr.hpp>
|
|
#include <glm/gtx/rotate_vector.hpp>
|
|
#include <glm/gtx/euler_angles.hpp>
|
|
|
|
#include <tinyxml2.h>
|
|
#endif
|
|
|
|
#include <yoga/Yoga.h>
|
|
#include <stb/stb_truetype.h>
|
|
#include <stb/stb_image.h>
|