SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
c
d
e
f
h
i
k
l
m
n
r
s
t
Properties
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Functions
b
c
e
f
g
i
j
m
o
p
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
w
Typedefs
a
c
h
j
o
s
t
Enumerations
a
c
d
e
h
s
t
w
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
p
r
s
t
u
v
Macros
a
b
e
f
g
i
l
m
o
p
s
t
u
w
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
SLOptixDefinitions.h
modules
sl
source
optix
SLOptix.h
Generated by
1.9.1