14 #include "dllFreeWRL.h"
15 #define DELEGATE_TO_C 1
17 #include "cdllFreeWRL.h"
24 CdllFreeWRL::CdllFreeWRL()
43 this->globalcontexthandle = dllFreeWRL_dllFreeWRL();
48 void CdllFreeWRL::onInit(
int width,
int height,
void* windowhandle,
bool bEai,
bool frontend_handles_display_thread)
51 FEHDT = frontend_handles_display_thread ? 1 : 0;
53 dllFreeWRL_onInit(this->globalcontexthandle, width, height, windowhandle, BEai, FEHDT);
56 void CdllFreeWRL::setDensityFactor(
float density_factor)
58 dllFreeWRL_setDensityFactor(this->globalcontexthandle, density_factor);
61 void CdllFreeWRL::setTempFolder(
char *tmpFolder)
63 dllFreeWRL_setTempFolder(this->globalcontexthandle, tmpFolder);
65 void CdllFreeWRL::setFontFolder(
char *fontFolder)
67 dllFreeWRL_setFontFolder(this->globalcontexthandle, fontFolder);
69 CdllFreeWRL::CdllFreeWRL(
int width,
int height,
void* windowhandle,
bool bEai)
73 this->globalcontexthandle = dllFreeWRL_dllFreeWRL1(width, height, windowhandle, BEai);
75 CdllFreeWRL::CdllFreeWRL(
char* scene_url,
int width,
int height,
void* windowhandle,
bool bEai)
79 this->globalcontexthandle = dllFreeWRL_dllFreeWRL2(scene_url, width, height, windowhandle, BEai);
82 void CdllFreeWRL::onLoad(
char* scene_url)
84 dllFreeWRL_onLoad(this->globalcontexthandle, scene_url);
88 void CdllFreeWRL::onResize(
int width,
int height){
89 dllFreeWRL_onResize(this->globalcontexthandle, width, height);
92 int CdllFreeWRL::onMouse(
int mouseAction,
int mouseButton,
int x,
int y)
94 return dllFreeWRL_onMouse(this->globalcontexthandle, mouseAction,mouseButton, x, y);
96 int CdllFreeWRL::onTouch(
int touchAction,
unsigned int ID,
int x,
int y)
98 return dllFreeWRL_onTouch(this->globalcontexthandle, touchAction, ID, x, y);
100 void CdllFreeWRL::onAccelerometer(
float ax,
float ay,
float az){
101 return dllFreeWRL_onAccelerometer(this->globalcontexthandle, ax, ay, az);
103 void CdllFreeWRL::onGyro(
float rx,
float ry,
float rz) {
104 return dllFreeWRL_onGyro(this->globalcontexthandle, rx, ry, rz);
106 void CdllFreeWRL::onMagnetic(
float azimuth,
float pitch,
float roll) {
107 return dllFreeWRL_onMagnetic(this->globalcontexthandle, azimuth,pitch,roll);
110 void CdllFreeWRL::onKey(
int keyAction,
int keyValue)
112 dllFreeWRL_onKey(this->globalcontexthandle, keyAction, keyValue);
114 void CdllFreeWRL::onClose()
116 dllFreeWRL_onClose(this->globalcontexthandle);
118 void CdllFreeWRL::print(
char *str)
120 dllFreeWRL_print(this->globalcontexthandle, str);
122 void CdllFreeWRL::onDraw()
124 dllFreeWRL_onDraw(this->globalcontexthandle);
127 int CdllFreeWRL::getUpdatedCursorStyle()
129 return dllFreeWRL_getUpdatedCursorStyle(this->globalcontexthandle);
131 void* CdllFreeWRL::frontenditem_dequeue()
133 return dllFreeWRL_frontenditem_dequeue(this->globalcontexthandle);
135 char* CdllFreeWRL::resitem_getURL(
void *res)
137 return dllFreeWRL_resitem_getURL(this->globalcontexthandle, res);
139 int CdllFreeWRL::resitem_getStatus(
void *res)
141 return dllFreeWRL_resitem_getStatus(this->globalcontexthandle, res);
143 void CdllFreeWRL::resitem_setStatus(
void *res,
int status){
144 dllFreeWRL_resitem_setStatus(this->globalcontexthandle, res, status);
147 int CdllFreeWRL::resitem_getType(
void *res)
149 return dllFreeWRL_resitem_getType(this->globalcontexthandle, res);
151 int CdllFreeWRL::resitem_getMediaType(
void *res)
153 return dllFreeWRL_resitem_getMediaType(this->globalcontexthandle, res);
156 void CdllFreeWRL::resitem_enqueuNextMulti(
void *res){
157 dllFreeWRL_resitem_enqueuNextMulti(this->globalcontexthandle, res);
159 void CdllFreeWRL::resitem_setLocalPath(
void *res,
char* path)
161 dllFreeWRL_resitem_setLocalPath(this->globalcontexthandle, res, path);
163 void CdllFreeWRL::resitem_load(
void *res)
165 dllFreeWRL_resitem_load(this->globalcontexthandle, res);
167 void CdllFreeWRL::resitem_enqueue(
void *res){
168 dllFreeWRL_resitem_enqueue(this->globalcontexthandle, res);
170 void CdllFreeWRL::commandline(
char *cmdline){
171 dllFreeWRL_commandline(this->globalcontexthandle, cmdline);