vtkRenderingOpenGLConfigure.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
4 #ifndef vtkRenderingOpenGLConfigure_h
5 #define vtkRenderingOpenGLConfigure_h
6 
7 /* This header contains build settings for the vtkRenderingOpenGL2 module. */
8 /* It provides some compatibility with the vtkRenderingOpenGL module. */
9 
10 #ifndef VTK_OPENGL2
11 #define VTK_OPENGL2
12 #endif
13 
14 /* Whether VTK was built to support Cocoa on the Mac. */
15 /* #undef VTK_USE_COCOA */
16 
17 /*--------------------------------------------------------------------------*/
18 /* Rendering Configuration */
19 #define VTK_USE_X
20 #define VTK_USE_OPENGL_LIBRARY
21 /* #undef VTK_OPENGL_HAS_OSMESA */
22 /* #undef VTK_OPENGL_HAS_EGL */
23 /* #undef VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN */
24 /* #undef VTK_OPENGL_ENABLE_STREAM_ANNOTATIONS */
25 
26 // for legacy codes (don't use these in new codes)
27 #ifdef VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN
28 # define VTK_USE_OFFSCREEN
29 #endif
30 #ifdef VTK_OPENGL_HAS_OSMESA
31 # define VTK_USE_OSMESA
32 #endif
33 
34 #define VTK_USE_GLSL_SHADERS
35 
36 /* Options for GPUInfo */
37 /* #undef VTK_USE_DIRECTX */
38 /* #undef VTK_USE_CORE_GRAPHICS */
39 /* #undef VTK_USE_NVCONTROL */
40 
41 /*--------------------------------------------------------------------------*/
42 /* Setup VTK based on platform features and configuration. */
43 
44 /* OGLR */
45 /* OGLR is for GLX. It can be on Unix, Mac or Windows */
46 #if ((defined(VTK_USE_OPENGL_LIBRARY) && defined(VTK_USE_X) && \
47  !defined(_WIN32)) || \
48  (defined(VTK_USE_X) && defined(_WIN32))) && \
49  !defined(VTK_USE_COCOA)
50 # define VTK_USE_OGLR
51 #endif
52 
53 #endif