OptiX  3.9
NVIDIA OptiX Acceleration Engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
optix_world.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (c) 2010 NVIDIA Corporation. All rights reserved.
4  *
5  * NVIDIA Corporation and its licensors retain all intellectual property and proprietary
6  * rights in and to this software, related documentation and any modifications thereto.
7  * Any use, reproduction, disclosure or distribution of this software and related
8  * documentation without an express license agreement from NVIDIA Corporation is strictly
9  * prohibited.
10  *
11  * TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED *AS IS*
12  * AND NVIDIA AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, EITHER EXPRESS OR IMPLIED,
13  * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
14  * PARTICULAR PURPOSE. IN NO EVENT SHALL NVIDIA OR ITS SUPPLIERS BE LIABLE FOR ANY
15  * SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT
16  * LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF
17  * BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
18  * INABILITY TO USE THIS SOFTWARE, EVEN IF NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF
19  * SUCH DAMAGES
20  */
21 
34 #ifndef __optixu_optixu_world_h__
35 #define __optixu_optixu_world_h__
36 
37 /*
38  * This header is designed to be included by both host and device code providing access to
39  * the C-API along with the C++ API found in optixpp_namespaces.h. In addition various
40  * helper classes and file will also be included when compiling C++ compatible code.
41  *
42  * Note that the CUDA vector types will be defined in the optix:: namespace.
43  */
44 
45 #include "optix_host.h"
46 #if defined(__CUDACC__)
47 # include "optix_device.h"
48 #endif
49 
50 #ifdef _WIN32
51 # ifndef WIN32_LEAN_AND_MEAN
52 # define WIN32_LEAN_AND_MEAN
53 # endif
54 # include <windows.h>
55 # include "optix_d3d9_interop.h"
56 # include "optix_d3d10_interop.h"
57 # include "optix_d3d11_interop.h"
58 #endif
59 #include "optix_gl_interop.h"
60 #include "optixu/optixu.h"
62 
63 #include "optixu/optixu_vector_types.h"
64 #include "optixu/optixu_vector_functions.h"
65 
66 /* None of these headers are compatible with C */
67 #if defined(__cplusplus)
68 # if !defined(__CUDACC__) || (CUDA_VERSION >= 3000)
69  /* CUDA < 3.0 has trouble with some of the C++ constructs used here. */
71 # endif
76 #endif
77 
78 #endif /* #ifndef __optixu_optixu_world_h__ */
OptiX public API declarations D3D10 interop.
OptiX public API.
Simple API for performing raytracing queries using OptiX or the CPU.
OptiX public API declarations D3D11 interop.
A C++ wrapper around the OptiX API.
OptiX public API.
OptiX public API.
OptiX public API.
OptiX public API declarations D3D9 interop.
OptiX public API declarations GLInterop.
OptiX public API.
Simple API for performing raytracing queries using OptiX or the CPU.