libvisual
0.5.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
libvisual
lv_libvisual_c.cpp
1
#include "config.h"
2
#include "lv_libvisual.h"
3
#include "lv_error.h"
4
5
extern
"C"
{
6
7
const
char
*visual_get_version ()
8
{
9
return
LV::System::instance
()->
get_version
().c_str ();
10
}
11
12
int
visual_get_api_version ()
13
{
14
return
LV::System::instance
()->
get_api_version
();
15
}
16
17
VisParamList
*visual_get_params ()
18
{
19
return
&
LV::System::instance
()->
get_params
();
20
}
21
22
void
visual_init (
int
*argc,
char
***argv)
23
{
24
LV::System::init
(*argc, *argv);
25
}
26
27
int
visual_is_initialized ()
28
{
29
return
LV::System::instance
() !=
nullptr
;
30
}
31
32
void
visual_quit ()
33
{
34
LV::System::destroy
();
35
}
36
37
void
visual_set_rng_seed (VisRandomSeed seed)
38
{
39
LV::System::instance
()->
set_rng_seed
(seed);
40
}
41
42
VisRandomContext
*visual_get_rng (
void
)
43
{
44
return
&
LV::System::instance
()->
get_rng
();
45
}
46
47
}
// extern C