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 vtkRenderingOpenGL module. */
20 
21 /* Whether VTK was built to support Carbon or Cocoa on the Mac. */
22 /* #undef VTK_USE_CARBON */
23 /* #undef VTK_USE_COCOA */
24 
25 /*--------------------------------------------------------------------------*/
26 /* Rendering Configuration */
27 #define VTK_USE_X
28 #define VTK_USE_OPENGL_LIBRARY
29 /* #undef VTK_OPENGL_HAS_OSMESA */
30 /* #undef VTK_USE_OFFSCREEN */
31 
32 /* #undef VTK_USE_GLSL_SHADERS */
33 
34 /* #undef VTK_MATERIALS_DIRS */
35 #ifdef VTK_MATERIALS_DIRS
36 # undef VTK_MATERIALS_DIRS
37 # define VTK_MATERIALS_DIRS ""
38 #endif
39 
40 /* Options for GPUInfo */
41 /* #undef VTK_USE_DIRECTX */
42 /* #undef VTK_USE_CORE_GRAPHICS */
43 /* #undef VTK_USE_NVCONTROL */
44 
45 /*--------------------------------------------------------------------------*/
46 /* Setup VTK based on platform features and configuration. */
47 
48 /* OGLR */
49 /* OGLR is for GLX. It can be on Unix, Mac or Windows */
50 #if ((defined(VTK_USE_OPENGL_LIBRARY) && defined(VTK_USE_X) && \
51  !defined(_WIN32)) || \
52  (defined(VTK_USE_X) && defined(_WIN32))) && \
53  !(defined (VTK_USE_CARBON) || defined(VTK_USE_COCOA))
54 # define VTK_USE_OGLR
55 #endif
56 
57 #if (defined(VTK_OPENGL_HAS_OSMESA) && !defined(VTK_USE_OGLR) && \
58  !defined(_WIN32) && !defined(VTK_USE_CARBON) && !defined(VTK_USE_COCOA))
59 # define VTK_USE_OSMESA
60 #endif
61 
62 #endif