SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLOptix.h
Go to the documentation of this file.
1 /**
2  * \file SLOptix.h
3  * \authors Nic Dorner
4  * \date October 2019
5  * \authors Nic Dorner
6  * \copyright http://opensource.org/licenses/GPL-3.0
7  * \remarks Please use clangformat to format the code. See more code style on
8  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
9 */
10 
11 #ifdef SL_HAS_OPTIX
12 # ifndef SLOPTIX_H
13 # define SLOPTIX_H
14 # include <optix_types.h>
15 # include <cuda.h>
16 # include <string>
17 # include <SLOptixDefinitions.h>
18 
19 using std::string;
20 
21 //-----------------------------------------------------------------------------
22 //! SLOptix base instance for static Optix initialization
23 class SLOptix
24 {
25 public:
26  // Public global static Optix objects
27  static void createStreamAndContext();
28  static OptixDeviceContext context;
29  static CUstream stream;
30  static string exePath;
31 };
32 //-----------------------------------------------------------------------------
33 # endif // SLOPTIX_H
34 #endif // SL_HAS_OPTIX