8 #ifdef DLLFREEWRL_EXPORTS
9 #define DLLFREEWRL_API __declspec(dllexport)
11 #define DLLFREEWRL_API __declspec(dllimport)
14 #define DLLFREEWRL_API
21 CdllFreeWRL(
int width,
int height,
void* windowhandle=0,
bool bEai =
false);
22 CdllFreeWRL(
char *scene_url,
int width,
int height,
void* windowhandle=0,
bool bEai =
false);
24 enum KeyAction {KEYDOWN=2,KEYUP=3,KEYPRESS=1};
29 enum MouseAction {MOUSEMOVE=6,MOUSEDOWN=4,MOUSEUP=5};
33 enum MouseButton {LEFT=1,MIDDLE=2,RIGHT=3,NONE=0};
36 enum resource_status {
47 enum resource_media_type {
61 void setDensityFactor(
float density_factor);
62 void onInit(
int width,
int height,
void* windowhandle=0,
bool bEai =
false,
bool frontend_handles_display_thread =
false);
63 void onLoad(
char* scene_url);
64 void onResize(
int width,
int height);
65 int onMouse(
int mouseAction,
int mouseButton,
int x,
int y);
66 int onTouch(
int touchAction,
unsigned int ID,
int x,
int y);
67 void onGyro(
float rx,
float ry,
float rz);
68 void onAccelerometer(
float ax,
float ay,
float az);
69 void onMagnetic(
float azimuth,
float pitch,
float roll);
70 void onKey(
int keyAction,
int keyValue);
73 void print(
char *str);
74 void setTempFolder(
char *tmpFolder);
75 void setFontFolder(
char *fontFolder);
76 int getUpdatedCursorStyle();
77 void* frontenditem_dequeue();
78 char* resitem_getURL(
void *res);
79 int resitem_getStatus(
void *res);
80 void resitem_setStatus(
void *res,
int status);
81 int resitem_getType(
void *res);
82 int resitem_getMediaType(
void *res);
83 void resitem_enqueuNextMulti(
void *res);
84 void resitem_setLocalPath(
void *res,
char* path);
85 void resitem_enqueue(
void *res);
86 void resitem_load(
void *res);
87 void commandline(
char *cmdline);
90 void *globalcontexthandle;