00001
00002
00007
00008 #ifndef NV_PLATFORM_GL_H
00009 #define NV_PLATFORM_GL_H
00010
00011 #include <NvFoundation.h>
00012
00013
00014 #if defined(_WIN32)
00015
00016 #define GLEW_STATIC
00017 #include <GL/glew.h>
00018 #define GLFW_INCLUDE_ES2
00019 #include <GLFW/glfw3.h>
00020
00021 #elif defined(USE_REGAL)
00022
00023 #include <Regal/GL/Regal.h>
00024
00025 #elif defined(LINUX)
00026
00027 #define GLEW_STATIC
00028 #include <GL/glew.h>
00029 #define GLFW_INCLUDE_ES2
00030 #include <GLFW/glfw3.h>
00031
00032 #elif defined(ANDROID)
00033
00034 #include <EGL/egl.h>
00035 #include <GLES2/gl2.h>
00036 #include <GLES2/gl2ext.h>
00037
00038 #elif defined(__APPLE__)
00039
00040 #if TARGET_OS_IPHONE
00041
00042 #error "Reached NvPlatformGL.h on an unsupported platform."
00043
00044 #else // assume #elif TARGET_OS_MAC
00045
00046 #define GLEW_STATIC
00047 #include <GL/glew.h>
00048 #define GLFW_INCLUDE_ES2
00049 #include <GLFW/glfw3.h>
00050
00051 #endif // valid mac
00052
00053 #else // not a platform we recognize by #defs
00054
00055 #error "Reached NvPlatformGL.h with no platform #defines we know about. ERROR."
00056
00057 #endif
00058
00059 #include <NV/NvGfxAPI.h>
00060
00061 #endif