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
WAIHelper.cpp
Go to the documentation of this file.
1
#include "
WAIHelper.h
"
2
3
#ifdef WAI_OS_ANDROID
4
# include <android/log.h>
5
#endif
6
7
//DebugLogCallback debugLogCallback;
8
//
9
//void registerDebugCallback(DebugLogCallback callback)
10
//{
11
// if (callback)
12
// {
13
// debugLogCallback = callback;
14
// debugLogCallback("callback registered");
15
// }
16
//}
17
//
18
//#define MAX_LOG_LENGTH 9999
19
//void Utils::log("WAI",const char* format, ...)
20
//{
21
// char buffer[MAX_LOG_LENGTH];
22
// va_list args;
23
// va_start(args, format);
24
// int ret = vsnprintf(buffer, MAX_LOG_LENGTH, format, args);
25
// va_end(args);
26
//
27
// if (!debugLogCallback)
28
// {
29
//#ifdef __APPLE__
30
// printf("%s\n", buffer);
31
//#elif defined(WAI_OS_ANDROID)
32
// __android_log_print(ANDROID_LOG_INFO, "lib-WAI", "%s\n", buffer);
33
//#elif defined(WAI_OS_WINDOWS)
34
// printf("%s\n", buffer);
35
//#elif defined(WAI_OS_LINUX)
36
// printf("%s\n", buffer);
37
//#endif
38
// }
39
// else
40
// {
41
// debugLogCallback(buffer);
42
// }
43
//}
WAIHelper.h
modules
wai
source
WAIHelper.cpp
Generated by
1.9.1