OpenSubdiv: opensubdiv/osd/opengl.h Source File

| OpenSubdiv

Loading...
Searching...
No Matches
opengl.h
Go to the documentation of this file.
1//
2// Copyright 2013 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://opensubdiv.org/license.
6//
7
8#ifndef OPENSUBDIV3_OSD_OPENGL_H
9#define OPENSUBDIV3_OSD_OPENGL_H
10
11#if defined(__APPLE__)
12 #include "TargetConditionals.h"
13 #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
14 #include <OpenGLES/ES2/gl.h>
15 #else
16 #if defined(OSD_USES_GLEW)
17 #include <GL/glew.h>
18 #else
19 #include <OpenGL/gl3.h>
20 #endif
21 #endif
22#elif defined(ANDROID)
23 #include <GLES2/gl2.h>
24#else
25 #if defined(_WIN32)
26 #define WIN32_LEAN_AND_MEAN
27 #include <windows.h>
28 #endif
29 #if defined(OSD_USES_GLEW)
30 #include <GL/glew.h>
31 #else
32 #include <GL/gl.h>
33 #endif
34#endif
35
36#endif // OPENSUBDIV3_OSD_OPENGL_H