forked from pixmeo/osirix
-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
mgl.h
47 lines (36 loc) · 926 Bytes
/
mgl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// mgl.h
// Miele_LXIV
//
// Created by Alessandro Bettarini on 10 Nov 2019.
// Copyright © 2019 bettar. All rights reserved.
// License GPLv3.0 -- see License File
//
// Purpose: centralized place to include OpenGL related header files
#ifndef mgl_h
#define mgl_h
#define WITH_OPENGL_32 // core profile
//#define WITH_GLEW
#pragma mark -
//#import <vtk_glew.h>
#ifdef WITH_GLEW
#import <GLEW/glew.h>
#else
#define GL_GLEXT_WUNDEF_SUPPORT // see glext.h
#ifdef WITH_OPENGL_32
#import <OpenGL/gl3.h>
#import <OpenGL/gl3ext.h>
#else
#import <OpenGL/OpenGL.h>
#import <OpenGL/CGLCurrent.h>
#import <OpenGL/CGLMacro.h>
#import <OpenGL/glu.h> // for gluUnProject, it includes gl.h
//#import <OpenGL/gl.h>
//#import <OpenGL/glext.h>
#endif
#endif // WITH_GLEW
#import <OpenGL/CGLContext.h> // for (*cgl_ctx->disp.delete_textures)
#if defined(WITH_OPENGL_32)
//#define WITH_SWIZZLE_MASK
#endif
#endif /* mgl_h */