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 #define VTK_OPENGL_HAS_EGL
22 /* #undef VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN */
23 /* #undef VTK_OPENGL_ENABLE_STREAM_ANNOTATIONS */
24 
25 // for legacy codes (don't use these in new codes)
26 #ifdef VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN
27 # define VTK_USE_OFFSCREEN
28 #endif
29 
30 /* Options for GPUInfo */
31 /* #undef VTK_USE_DIRECTX */
32 /* #undef VTK_USE_CORE_GRAPHICS */
33 /* #undef VTK_USE_NVCONTROL */
34 
35 /*--------------------------------------------------------------------------*/
36 /* Setup VTK based on platform features and configuration. */
37 
38 /* OGLR */
39 /* OGLR is for GLX. It can be on Unix, Mac or Windows */
40 #if ((defined(VTK_USE_OPENGL_LIBRARY) && defined(VTK_USE_X) && \
41  !defined(_WIN32)) || \
42  (defined(VTK_USE_X) && defined(_WIN32))) && \
43  !defined(VTK_USE_COCOA)
44 # define VTK_USE_OGLR
45 #endif
46 
47 #endif