mirror of https://github.com/axmolengine/axmol.git
76 lines
1.2 KiB
C
76 lines
1.2 KiB
C
|
|
||
|
#ifndef __EFFEKSEERRENDERER_GL_BASE_PRE_H__
|
||
|
#define __EFFEKSEERRENDERER_GL_BASE_PRE_H__
|
||
|
|
||
|
#include <Effekseer.h>
|
||
|
#include <vector>
|
||
|
|
||
|
#if defined(_WIN32)
|
||
|
#include <windows.h>
|
||
|
#endif
|
||
|
|
||
|
#if defined(__EFFEKSEER_RENDERER_GLES2__)
|
||
|
|
||
|
#if defined(__APPLE__)
|
||
|
#include <OpenGLES/ES2/gl.h>
|
||
|
#include <OpenGLES/ES2/glext.h>
|
||
|
#else
|
||
|
#include <GLES2/gl2.h>
|
||
|
#include <GLES2/gl2ext.h>
|
||
|
#endif
|
||
|
|
||
|
#elif defined(__EFFEKSEER_RENDERER_GLES3__)
|
||
|
|
||
|
#if defined(__APPLE__)
|
||
|
#include <OpenGLES/ES3/gl.h>
|
||
|
#else
|
||
|
#define GL_GLEXT_PROTOTYPES
|
||
|
#include <GLES3/gl3.h>
|
||
|
#endif
|
||
|
|
||
|
#elif defined(__EFFEKSEER_RENDERER_GL2__)
|
||
|
|
||
|
#if _WIN32
|
||
|
#include <GL/gl.h>
|
||
|
#elif defined(__APPLE__)
|
||
|
#define GL_SILENCE_DEPRECATION
|
||
|
#include <OpenGL/gl.h>
|
||
|
#else
|
||
|
#include <GL/gl.h>
|
||
|
#endif
|
||
|
|
||
|
#else
|
||
|
|
||
|
#if defined(_WIN32)
|
||
|
#include <GL/gl.h>
|
||
|
#elif defined(__APPLE__)
|
||
|
#define GL_SILENCE_DEPRECATION
|
||
|
#include <OpenGL/gl3.h>
|
||
|
#else
|
||
|
#define GL_GLEXT_PROTOTYPES
|
||
|
#include <GL/gl.h>
|
||
|
#endif
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#if _WIN32
|
||
|
#pragma comment(lib, "opengl32.lib")
|
||
|
#endif
|
||
|
|
||
|
namespace EffekseerRendererGL
|
||
|
{
|
||
|
|
||
|
class Renderer;
|
||
|
|
||
|
enum class OpenGLDeviceType
|
||
|
{
|
||
|
OpenGL2,
|
||
|
OpenGL3,
|
||
|
OpenGLES2,
|
||
|
OpenGLES3,
|
||
|
};
|
||
|
|
||
|
} // namespace EffekseerRendererGL
|
||
|
|
||
|
#endif // __EFFEKSEERRENDERER_GL_BASE_PRE_H__
|