VTK
vtkRenderingOpenGLConfigure.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderingOpenGLConfigure.h.in
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
16 #ifndef vtkRenderingOpenGLConfigure_h
17 #define vtkRenderingOpenGLConfigure_h
18 
19 /* This header contains build settings for the vtkRenderingOpenGL2 module. */
20 /* It provides some compatibility with the vtkRenderingOpenGL module. */
21 
22 #ifndef VTK_OPENGL2
23 #define VTK_OPENGL2
24 #endif
25 
26 /* Whether VTK was built to support Cocoa on the Mac. */
27 /* #undef VTK_USE_COCOA */
28 
29 /*--------------------------------------------------------------------------*/
30 /* Rendering Configuration */
31 #define VTK_USE_X
32 #define VTK_USE_OPENGL_LIBRARY
33 /* #undef VTK_OPENGL_HAS_OSMESA */
34 /* #undef VTK_OPENGL_HAS_EGL */
35 /* #undef VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN */
36 
37 // for legacy codes (don't use these in new codes)
38 #ifdef VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN
39 # define VTK_USE_OFFSCREEN
40 #endif
41 #ifdef VTK_OPENGL_HAS_OSMESA
42 # define VTK_USE_OSMESA
43 #endif
44 
45 #define VTK_USE_GLSL_SHADERS
46 
47 /* Options for GPUInfo */
48 /* #undef VTK_USE_DIRECTX */
49 /* #undef VTK_USE_CORE_GRAPHICS */
50 /* #undef VTK_USE_NVCONTROL */
51 
52 /*--------------------------------------------------------------------------*/
53 /* Setup VTK based on platform features and configuration. */
54 
55 /* OGLR */
56 /* OGLR is for GLX. It can be on Unix, Mac or Windows */
57 #if ((defined(VTK_USE_OPENGL_LIBRARY) && defined(VTK_USE_X) && \
58  !defined(_WIN32)) || \
59  (defined(VTK_USE_X) && defined(_WIN32))) && \
60  !defined(VTK_USE_COCOA)
61 # define VTK_USE_OGLR
62 #endif
63 
64 #endif