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 /* #undef VTK_OPENGL_ENABLE_STREAM_ANNOTATIONS */
37 
38 // for legacy codes (don't use these in new codes)
39 #ifdef VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN
40 # define VTK_USE_OFFSCREEN
41 #endif
42 #ifdef VTK_OPENGL_HAS_OSMESA
43 # define VTK_USE_OSMESA
44 #endif
45 
46 #define VTK_USE_GLSL_SHADERS
47 
48 /* Options for GPUInfo */
49 /* #undef VTK_USE_DIRECTX */
50 /* #undef VTK_USE_CORE_GRAPHICS */
51 /* #undef VTK_USE_NVCONTROL */
52 
53 /*--------------------------------------------------------------------------*/
54 /* Setup VTK based on platform features and configuration. */
55 
56 /* OGLR */
57 /* OGLR is for GLX. It can be on Unix, Mac or Windows */
58 #if ((defined(VTK_USE_OPENGL_LIBRARY) && defined(VTK_USE_X) && \
59  !defined(_WIN32)) || \
60  (defined(VTK_USE_X) && defined(_WIN32))) && \
61  !defined(VTK_USE_COCOA)
62 # define VTK_USE_OGLR
63 #endif
64 
65 #endif