14#include "dllFreeWRL.h"
15#define DELEGATE_TO_C 1
17#include "cdllFreeWRL.h"
24CdllFreeWRL::CdllFreeWRL()
43 this->globalcontexthandle = dllFreeWRL_dllFreeWRL();
48void 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);
56void CdllFreeWRL::onInitArgv(
int argc,
char **argv,
bool frontend_handles_display_thread)
58 int FEHDT = frontend_handles_display_thread ? 1 : 0;
59 dllFreeWRL_onInitArgv(this->globalcontexthandle, argc, argv, FEHDT);
62void CdllFreeWRL::setDensityFactor(
float density_factor)
64 dllFreeWRL_setDensityFactor(this->globalcontexthandle, density_factor);
67void CdllFreeWRL::setTempFolder(
char *tmpFolder)
69 dllFreeWRL_setTempFolder(this->globalcontexthandle, tmpFolder);
71void CdllFreeWRL::setFontFolder(
char *fontFolder)
73 dllFreeWRL_setFontFolder(this->globalcontexthandle, fontFolder);
75CdllFreeWRL::CdllFreeWRL(
int width,
int height,
void* windowhandle,
bool bEai)
79 this->globalcontexthandle = dllFreeWRL_dllFreeWRL1(width, height, windowhandle, BEai);
81CdllFreeWRL::CdllFreeWRL(
char* scene_url,
int width,
int height,
void* windowhandle,
bool bEai)
85 this->globalcontexthandle = dllFreeWRL_dllFreeWRL2(scene_url, width, height, windowhandle, BEai);
88void CdllFreeWRL::onLoad(
char* scene_url)
90 dllFreeWRL_onLoad(this->globalcontexthandle, scene_url);
93void CdllFreeWRL::onResize(
int width,
int height){
94 dllFreeWRL_onResize(this->globalcontexthandle, width, height);
97int CdllFreeWRL::onMouse(
int mouseAction,
int mouseButton,
int x,
int y)
99 return dllFreeWRL_onMouse(this->globalcontexthandle, mouseAction,mouseButton, x, y);
101int CdllFreeWRL::onTouch(
int touchAction,
unsigned int ID,
int x,
int y)
103 return dllFreeWRL_onTouch(this->globalcontexthandle, touchAction, ID, x, y);
105void CdllFreeWRL::onAccelerometer(
float ax,
float ay,
float az){
106 return dllFreeWRL_onAccelerometer(this->globalcontexthandle, ax, ay, az);
108void CdllFreeWRL::onGyro(
float rx,
float ry,
float rz) {
109 return dllFreeWRL_onGyro(this->globalcontexthandle, rx, ry, rz);
111void CdllFreeWRL::onMagnetic(
float azimuth,
float pitch,
float roll) {
112 return dllFreeWRL_onMagnetic(this->globalcontexthandle, azimuth,pitch,roll);
115void CdllFreeWRL::onKey(
int keyAction,
int keyValue)
117 dllFreeWRL_onKey(this->globalcontexthandle, keyAction, keyValue);
119void CdllFreeWRL::onClose()
121 dllFreeWRL_onClose(this->globalcontexthandle);
123void CdllFreeWRL::print(
char *str)
125 dllFreeWRL_print(this->globalcontexthandle, str);
127void CdllFreeWRL::onDraw()
129 dllFreeWRL_onDraw(this->globalcontexthandle);
132int CdllFreeWRL::getUpdatedCursorStyle()
134 return dllFreeWRL_getUpdatedCursorStyle(this->globalcontexthandle);
136void* CdllFreeWRL::frontenditem_dequeue()
138 return dllFreeWRL_frontenditem_dequeue(this->globalcontexthandle);
140char* CdllFreeWRL::resitem_getURL(
void *res)
142 return dllFreeWRL_resitem_getURL(this->globalcontexthandle, res);
144int CdllFreeWRL::resitem_getStatus(
void *res)
146 return dllFreeWRL_resitem_getStatus(this->globalcontexthandle, res);
148void CdllFreeWRL::resitem_setStatus(
void *res,
int status){
149 dllFreeWRL_resitem_setStatus(this->globalcontexthandle, res, status);
152int CdllFreeWRL::resitem_getType(
void *res)
154 return dllFreeWRL_resitem_getType(this->globalcontexthandle, res);
156int CdllFreeWRL::resitem_getMediaType(
void *res)
158 return dllFreeWRL_resitem_getMediaType(this->globalcontexthandle, res);
161void CdllFreeWRL::resitem_enqueuNextMulti(
void *res){
162 dllFreeWRL_resitem_enqueuNextMulti(this->globalcontexthandle, res);
164void CdllFreeWRL::resitem_setLocalPath(
void *res,
char* path)
166 dllFreeWRL_resitem_setLocalPath(this->globalcontexthandle, res, path);
168void CdllFreeWRL::resitem_load(
void *res)
170 dllFreeWRL_resitem_load(this->globalcontexthandle, res);
172void CdllFreeWRL::resitem_enqueue(
void *res){
173 dllFreeWRL_resitem_enqueue(this->globalcontexthandle, res);
175void CdllFreeWRL::commandline(
char *cmdline){
176 dllFreeWRL_commandline(this->globalcontexthandle, cmdline);