fbsdk/fbsdk-opengl.h Source File
Go to the documentation of this file. 1 #ifndef _FBSDK_OPENGL_H_
2 #define _FBSDK_OPENGL_H_
38 #if defined(KARCH_ENV_WIN32)
42 #define CALLBACK __stdcall
43 #define WINAPI __stdcall
44 #define DECLSPEC_IMPORT __declspec(dllimport)
45 #define WINGDIAPI DECLSPEC_IMPORT
46 #define APIENTRY WINAPI
48 #ifndef _WCHAR_T_DEFINED
49 typedef unsigned short wchar_t;
50 #define _WCHAR_T_DEFINED
58 #if defined(KARCH_ENV_MACOSX)
59 #include <OpenGl/gl.h>
60 #include <OpenGl/glu.h>
66 #if defined(KARCH_ENV_WIN32) || defined(KARCH_ENV_WIN64)
68 #define GL_BGR GL_BGR_EXT
71 #define GL_BGRA GL_BGRA_EXT
75 #define GL_ABGR_EXT 0x8000
80 #if defined(KARCH_ENV_LINUX)
84 #if defined(KARCH_ENV_MACOSX)
85 #include <OpenGl/glext.h>
88 #ifndef GL_LIGHT_MODEL_COLOR_CONTROL
89 #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
92 #ifndef GL_SEPARATE_SPECULAR_COLOR
93 #define GL_SEPARATE_SPECULAR_COLOR 0x81FA
96 #ifndef GL_EXT_422_pixels
97 #define GL_422_EXT 0x80cc
100 #ifndef GL_CLAMP_TO_EDGE
101 #define GL_CLAMP_TO_EDGE 0x812F