Repository navigation
Expand file tree
/
Copy pathcastlelib_c_loader.cpp
More file actions
697 lines (611 loc) · 38.4 KB
/
Copy pathcastlelib_c_loader.cpp
File metadata and controls
697 lines (611 loc) · 38.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
/*
Copyright 2013-2026 Jan Adamec, Michalis Kamburelis.
This file is part of "Castle Game Engine".
"Castle Game Engine" is free software; see the file COPYING.md,
included in this distribution, for details about the copyright.
"Castle Game Engine" is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
----------------------------------------------------------------------------
This file is here as a wrapper, only to load the castleengine.dll for you and
to resolve all exported functions.
It works for multiplatform projects made in Qt (need to define QT_BUILD macro),
or for projects made in WinAPI.
Usage:
1. Add castle_c_loader.cpp and castlelib.h into your project workspace. You may
want to copy them instead in case you don't want to use the latest versions.
2. Copy compiled dynamic library (castleengine.dll/.dylib) to your project
folder (or to Debug and Release folders)
3. Include castlelib.h in your source files, call CGE_LoadLibrary at
the start of your program, and then call CGE_xxx functions as usual.
*/
#ifdef QT_BUILD
#include <QLibrary>
#include <QApplication>
#include <QMessageBox>
#else // suppose Windows build
#include <windows.h>
#endif
#ifdef MSVC
#pragma optimize("", off) // strangely MSVC calls pfrd_CGE_MouseDown always with left button in release ?!
#endif
#include "castleengine.h"
//-----------------------------------------------------------------------------
typedef void (CDECL *PFNRD_CGE_Initialize)(const char *applicationConfigDirectory);
typedef void (CDECL *PFNRD_CGE_Finalize)();
typedef int (CDECL *PFNRD_CGE_Open)(unsigned uiFlags, unsigned initialWidth, unsigned initialHeight, unsigned uiDpi);
typedef void (CDECL *PFNRD_CGE_Close)(int contextHandle, cgeBool quitWhenLastWindowClosed);
typedef void (CDECL *PFNRD_CGE_GetOpenGLInformation)(char *szBuffer, int nBufSize);
typedef void (CDECL *PFNRD_CGE_GetCastleEngineVersion)(char *szBuffer, int nBufSize);
typedef void (CDECL *PFNRD_CGE_Resize)(int contextHandle, unsigned uiViewWidth, unsigned uiViewHeight);
typedef void (CDECL *PFNRD_CGE_Render)(int contextHandle);
typedef void (CDECL *PFNRD_CGE_SaveScreenshotToFile)(int contextHandle, const char *szFile);
typedef void (CDECL *PFNRD_CGE_SetLibraryCallbackProc)(int contextHandle, TCgeLibraryCallback pProc);
typedef void (CDECL *PFNRD_CGE_Update)(int contextHandle);
typedef void (CDECL *PFNRD_CGE_MouseDown)(int contextHandle, int x, int y, cgeBool bLeftBtn, int nFingerIdx);
typedef void (CDECL *PFNRD_CGE_Motion)(int contextHandle, int x, int y, int nFingerIdx);
typedef void (CDECL *PFNRD_CGE_MouseUp)(int contextHandle, int x, int y, cgeBool bLeftBtn, int nFingerIdx);
typedef void (CDECL *PFNRD_CGE_MouseWheel)(int contextHandle, float zDelta, cgeBool bVertical);
typedef void (CDECL *PFNRD_CGE_KeyDown)(int contextHandle, int eKey);
typedef void (CDECL *PFNRD_CGE_KeyUp)(int contextHandle, int eKey);
typedef void (CDECL *PFNRD_CGE_LoadSceneFromFile)(int contextHandle, const char *szFile);
typedef void (CDECL *PFNRD_CGE_SaveSceneToFile)(int contextHandle, const char *szFile, int eUrlProcessing);
typedef int (CDECL *PFNRD_CGE_GetViewpointsCount)(int contextHandle);
typedef void (CDECL *PFNRD_CGE_GetViewpointName)(int contextHandle, int iViewpointIdx, char *szName, int nBufSize);
typedef void (CDECL *PFNRD_CGE_MoveToViewpoint)(int contextHandle, int iViewpointIdx, cgeBool bAnimated);
typedef void (CDECL *PFNRD_CGE_AddViewpointFromCurrentView)(int contextHandle, const char *szName);
typedef void (CDECL *PFNRD_CGE_GetBoundingBox)(int contextHandle, float *pfXMin, float *pfXMax, float *pfYMin, float *pfYMax, float *pfZMin, float *pfZMax);
typedef void (CDECL *PFNRD_CGE_GetViewCoords)(int contextHandle, float *pfPosX, float *pfPosY, float *pfPosZ, float *pfDirX, float *pfDirY, float *pfDirZ,
float *pfUpX, float *pfUpY, float *pfUpZ, float *pfGravX, float *pfGravY, float *pfGravZ);
typedef void (CDECL *PFNRD_CGE_MoveViewToCoords)(int contextHandle, float fPosX, float fPosY, float fPosZ, float fDirX, float fDirY, float fDirZ,
float fUpX, float fUpY, float fUpZ, float fGravX, float fGravY, float fGravZ, cgeBool bAnimated);
typedef void (CDECL *PFNRD_CGE_SetNavigationInputShortcut)(int contextHandle, int eInput, int eKey1, int eKey2, int eMouseButton, int eMouseWheel);
typedef int (CDECL *PFNRD_CGE_GetNavigationType)(int contextHandle);
typedef void (CDECL *PFNRD_CGE_SetNavigationType)(int contextHandle, int eNewType);
typedef void (CDECL *PFNRD_CGE_SetTouchInterface)(int contextHandle, int eMode);
typedef void (CDECL *PFNRD_CGE_SetAutoTouchInterface)(int contextHandle, cgeBool bAutomaticTouchInterface);
typedef void (CDECL *PFNRD_CGE_SetWalkNavigationMouseDragMode)(int contextHandle, int eMode);
typedef void (CDECL *PFNRD_CGE_SetVariableInt)(int contextHandle, int eVar, int nValue);
typedef int (CDECL *PFNRD_CGE_GetVariableInt)(int contextHandle, int eVar);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFFloat)(int contextHandle, const char *szNodeName, const char *szFieldName, float value);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFDouble)(int contextHandle, const char *szNodeName, const char *szFieldName, double value);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFInt32)(int contextHandle, const char *szNodeName, const char *szFieldName, int value);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFBool)(int contextHandle, const char *szNodeName, const char *szFieldName, cgeBool value);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFVec2f)(int contextHandle, const char *szNodeName, const char *szFieldName, float val1, float val2);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFVec3f)(int contextHandle, const char *szNodeName, const char *szFieldName, float val1, float val2, float val3);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFVec4f)(int contextHandle, const char *szNodeName, const char *szFieldName, float val1, float val2, float val3, float val4);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFVec2d)(int contextHandle, const char *szNodeName, const char *szFieldName, double val1, double val2);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFVec3d)(int contextHandle, const char *szNodeName, const char *szFieldName, double val1, double val2, double val3);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFVec4d)(int contextHandle, const char *szNodeName, const char *szFieldName, double val1, double val2, double val3, double val4);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFRotation)(int contextHandle, const char *szNodeName, const char *szFieldName, float axisX, float axisY, float axisZ, float rotation);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_SFString)(int contextHandle, const char *szNodeName, const char *szFieldName, const char *value);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFFloat)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, float *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFDouble)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, double *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFInt32)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, int *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFBool)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, cgeBool *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFVec2f)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, float *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFVec3f)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, float *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFVec4f)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, float *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFVec2d)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, double *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFVec3d)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, double *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFVec4d)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, double *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFRotation)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, float *values);
typedef void (CDECL *PFNRD_CGE_SetNodeFieldValue_MFString)(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, const char **values);
typedef void (CDECL *PFNRD_CGE_IncreaseSceneTime)(int contextHandle, float fTimeS);
PFNRD_CGE_Initialize pfrd_CGE_Initialize = NULL;
PFNRD_CGE_Finalize pfrd_CGE_Finalize = NULL;
PFNRD_CGE_Open pfrd_CGE_Open = NULL;
PFNRD_CGE_Close pfrd_CGE_Close = NULL;
PFNRD_CGE_GetOpenGLInformation pfrd_CGE_GetOpenGLInformation = NULL;
PFNRD_CGE_GetCastleEngineVersion pfrd_CGE_GetCastleEngineVersion = NULL;
PFNRD_CGE_Resize pfrd_CGE_Resize = NULL;
PFNRD_CGE_Render pfrd_CGE_Render = NULL;
PFNRD_CGE_SaveScreenshotToFile pfrd_CGE_SaveScreenshotToFile = NULL;
PFNRD_CGE_SetLibraryCallbackProc pfrd_CGE_SetLibraryCallbackProc = NULL;
PFNRD_CGE_Update pfrd_CGE_Update = NULL;
PFNRD_CGE_MouseDown pfrd_CGE_MouseDown = NULL;
PFNRD_CGE_Motion pfrd_CGE_Motion = NULL;
PFNRD_CGE_MouseUp pfrd_CGE_MouseUp = NULL;
PFNRD_CGE_MouseWheel pfrd_CGE_MouseWheel = NULL;
PFNRD_CGE_KeyDown pfrd_CGE_KeyDown = NULL;
PFNRD_CGE_KeyUp pfrd_CGE_KeyUp = NULL;
PFNRD_CGE_LoadSceneFromFile pfrd_CGE_LoadSceneFromFile = NULL;
PFNRD_CGE_SaveSceneToFile pfrd_CGE_SaveSceneToFile = NULL;
PFNRD_CGE_GetViewpointsCount pfrd_CGE_GetViewpointsCount = NULL;
PFNRD_CGE_GetViewpointName pfrd_CGE_GetViewpointName = NULL;
PFNRD_CGE_MoveToViewpoint pfrd_CGE_MoveToViewpoint = NULL;
PFNRD_CGE_AddViewpointFromCurrentView pfrd_CGE_AddViewpointFromCurrentView = NULL;
PFNRD_CGE_GetBoundingBox pfrd_CGE_GetBoundingBox = NULL;
PFNRD_CGE_GetViewCoords pfrd_CGE_GetViewCoords = NULL;
PFNRD_CGE_MoveViewToCoords pfrd_CGE_MoveViewToCoords = NULL;
PFNRD_CGE_SetNavigationInputShortcut pfrd_CGE_SetNavigationInputShortcut = NULL;
PFNRD_CGE_GetNavigationType pfrd_CGE_GetNavigationType = NULL;
PFNRD_CGE_SetNavigationType pfrd_CGE_SetNavigationType = NULL;
PFNRD_CGE_SetTouchInterface pfrd_CGE_SetTouchInterface = NULL;
PFNRD_CGE_SetAutoTouchInterface pfrd_CGE_SetAutoTouchInterface = NULL;
PFNRD_CGE_SetWalkNavigationMouseDragMode pfrd_CGE_SetWalkNavigationMouseDragMode = NULL;
PFNRD_CGE_SetVariableInt pfrd_CGE_SetVariableInt = NULL;
PFNRD_CGE_GetVariableInt pfrd_CGE_GetVariableInt = NULL;
PFNRD_CGE_SetNodeFieldValue_SFFloat pfrd_CGE_SetNodeFieldValue_SFFloat = NULL;
PFNRD_CGE_SetNodeFieldValue_SFDouble pfrd_CGE_SetNodeFieldValue_SFDouble = NULL;
PFNRD_CGE_SetNodeFieldValue_SFInt32 pfrd_CGE_SetNodeFieldValue_SFInt32 = NULL;
PFNRD_CGE_SetNodeFieldValue_SFBool pfrd_CGE_SetNodeFieldValue_SFBool = NULL;
PFNRD_CGE_SetNodeFieldValue_SFVec2f pfrd_CGE_SetNodeFieldValue_SFVec2f = NULL;
PFNRD_CGE_SetNodeFieldValue_SFVec3f pfrd_CGE_SetNodeFieldValue_SFVec3f = NULL;
PFNRD_CGE_SetNodeFieldValue_SFVec4f pfrd_CGE_SetNodeFieldValue_SFVec4f = NULL;
PFNRD_CGE_SetNodeFieldValue_SFVec2d pfrd_CGE_SetNodeFieldValue_SFVec2d = NULL;
PFNRD_CGE_SetNodeFieldValue_SFVec3d pfrd_CGE_SetNodeFieldValue_SFVec3d = NULL;
PFNRD_CGE_SetNodeFieldValue_SFVec4d pfrd_CGE_SetNodeFieldValue_SFVec4d = NULL;
PFNRD_CGE_SetNodeFieldValue_SFRotation pfrd_CGE_SetNodeFieldValue_SFRotation = NULL;
PFNRD_CGE_SetNodeFieldValue_SFString pfrd_CGE_SetNodeFieldValue_SFString = NULL;
PFNRD_CGE_SetNodeFieldValue_MFFloat pfrd_CGE_SetNodeFieldValue_MFFloat = NULL;
PFNRD_CGE_SetNodeFieldValue_MFDouble pfrd_CGE_SetNodeFieldValue_MFDouble = NULL;
PFNRD_CGE_SetNodeFieldValue_MFInt32 pfrd_CGE_SetNodeFieldValue_MFInt32 = NULL;
PFNRD_CGE_SetNodeFieldValue_MFBool pfrd_CGE_SetNodeFieldValue_MFBool = NULL;
PFNRD_CGE_SetNodeFieldValue_MFVec2f pfrd_CGE_SetNodeFieldValue_MFVec2f = NULL;
PFNRD_CGE_SetNodeFieldValue_MFVec3f pfrd_CGE_SetNodeFieldValue_MFVec3f = NULL;
PFNRD_CGE_SetNodeFieldValue_MFVec4f pfrd_CGE_SetNodeFieldValue_MFVec4f = NULL;
PFNRD_CGE_SetNodeFieldValue_MFVec2d pfrd_CGE_SetNodeFieldValue_MFVec2d = NULL;
PFNRD_CGE_SetNodeFieldValue_MFVec3d pfrd_CGE_SetNodeFieldValue_MFVec3d = NULL;
PFNRD_CGE_SetNodeFieldValue_MFVec4d pfrd_CGE_SetNodeFieldValue_MFVec4d = NULL;
PFNRD_CGE_SetNodeFieldValue_MFRotation pfrd_CGE_SetNodeFieldValue_MFRotation = NULL;
PFNRD_CGE_SetNodeFieldValue_MFString pfrd_CGE_SetNodeFieldValue_MFString = NULL;
PFNRD_CGE_IncreaseSceneTime pfrd_CGE_IncreaseSceneTime = NULL;
#ifdef QT_BUILD
//-----------------------------------------------------------------------------
QFunctionPointer cge_GetProc(QLibrary &rCgeLib, const char *symbol)
{
QFunctionPointer f = rCgeLib.resolve(symbol);
if (f == nullptr)
QMessageBox::critical(NULL, "CGE Load Error", QString("Cannot load Castle Game Engine function: ") + symbol + "\nPlease try reinstalling the software.");
return f;
}
#else
FARPROC WINAPI cge_GetProc(HMODULE hCgeLib, const char *symbol)
{
return GetProcAddress(hCgeLib, symbol);
}
#endif
//-----------------------------------------------------------------------------
void CGE_LoadLibrary()
{
if (pfrd_CGE_Open != NULL)
return;
#ifdef QT_BUILD
QLibrary hCgeDll("castleengine");
hCgeDll.load();
if (!hCgeDll.isLoaded())
{
QString sErr = hCgeDll.errorString();
QMessageBox::critical(NULL, "error", sErr);
return;
}
#else
HMODULE hCgeDll = LoadLibrary("castleengine.dll");
if (hCgeDll==NULL)
return;
#endif
pfrd_CGE_Initialize = (PFNRD_CGE_Initialize)cge_GetProc(hCgeDll, "CGE_Initialize");
pfrd_CGE_Finalize = (PFNRD_CGE_Finalize)cge_GetProc(hCgeDll, "CGE_Finalize");
pfrd_CGE_Open = (PFNRD_CGE_Open)cge_GetProc(hCgeDll, "CGE_Open");
pfrd_CGE_Close = (PFNRD_CGE_Close)cge_GetProc(hCgeDll, "CGE_Close");
pfrd_CGE_GetOpenGLInformation = (PFNRD_CGE_GetOpenGLInformation)cge_GetProc(hCgeDll, "CGE_GetOpenGLInformation");
pfrd_CGE_GetCastleEngineVersion = (PFNRD_CGE_GetCastleEngineVersion)cge_GetProc(hCgeDll, "CGE_GetCastleEngineVersion");
pfrd_CGE_Resize = (PFNRD_CGE_Resize)cge_GetProc(hCgeDll, "CGE_Resize");
pfrd_CGE_Render = (PFNRD_CGE_Render)cge_GetProc(hCgeDll, "CGE_Render");
pfrd_CGE_SaveScreenshotToFile = (PFNRD_CGE_SaveScreenshotToFile)cge_GetProc(hCgeDll, "CGE_SaveScreenshotToFile");
pfrd_CGE_SetLibraryCallbackProc = (PFNRD_CGE_SetLibraryCallbackProc)cge_GetProc(hCgeDll, "CGE_SetLibraryCallbackProc");
pfrd_CGE_Update = (PFNRD_CGE_Update)cge_GetProc(hCgeDll, "CGE_Update");
pfrd_CGE_MouseDown = (PFNRD_CGE_MouseDown)cge_GetProc(hCgeDll, "CGE_MouseDown");
pfrd_CGE_Motion = (PFNRD_CGE_Motion)cge_GetProc(hCgeDll, "CGE_Motion");
pfrd_CGE_MouseUp = (PFNRD_CGE_MouseUp)cge_GetProc(hCgeDll, "CGE_MouseUp");
pfrd_CGE_MouseWheel = (PFNRD_CGE_MouseWheel)cge_GetProc(hCgeDll, "CGE_MouseWheel");
pfrd_CGE_KeyDown = (PFNRD_CGE_KeyDown)cge_GetProc(hCgeDll, "CGE_KeyDown");
pfrd_CGE_KeyUp = (PFNRD_CGE_KeyUp)cge_GetProc(hCgeDll, "CGE_KeyUp");
pfrd_CGE_LoadSceneFromFile = (PFNRD_CGE_LoadSceneFromFile)cge_GetProc(hCgeDll, "CGE_LoadSceneFromFile");
pfrd_CGE_SaveSceneToFile = (PFNRD_CGE_SaveSceneToFile)cge_GetProc(hCgeDll, "CGE_SaveSceneToFile");
pfrd_CGE_GetViewpointsCount = (PFNRD_CGE_GetViewpointsCount)cge_GetProc(hCgeDll, "CGE_GetViewpointsCount");
pfrd_CGE_GetViewpointName = (PFNRD_CGE_GetViewpointName)cge_GetProc(hCgeDll, "CGE_GetViewpointName");
pfrd_CGE_MoveToViewpoint = (PFNRD_CGE_MoveToViewpoint)cge_GetProc(hCgeDll, "CGE_MoveToViewpoint");
pfrd_CGE_AddViewpointFromCurrentView = (PFNRD_CGE_AddViewpointFromCurrentView)cge_GetProc(hCgeDll, "CGE_AddViewpointFromCurrentView");
pfrd_CGE_GetBoundingBox = (PFNRD_CGE_GetBoundingBox)cge_GetProc(hCgeDll, "CGE_GetBoundingBox");
pfrd_CGE_GetViewCoords = (PFNRD_CGE_GetViewCoords)cge_GetProc(hCgeDll, "CGE_GetViewCoords");
pfrd_CGE_MoveViewToCoords = (PFNRD_CGE_MoveViewToCoords)cge_GetProc(hCgeDll, "CGE_MoveViewToCoords");
pfrd_CGE_SetNavigationInputShortcut = (PFNRD_CGE_SetNavigationInputShortcut)cge_GetProc(hCgeDll, "CGE_SetNavigationInputShortcut");
pfrd_CGE_GetNavigationType = (PFNRD_CGE_GetNavigationType)cge_GetProc(hCgeDll, "CGE_GetNavigationType");
pfrd_CGE_SetNavigationType = (PFNRD_CGE_SetNavigationType)cge_GetProc(hCgeDll, "CGE_SetNavigationType");
pfrd_CGE_SetTouchInterface = (PFNRD_CGE_SetTouchInterface)cge_GetProc(hCgeDll, "CGE_SetTouchInterface");
pfrd_CGE_SetAutoTouchInterface = (PFNRD_CGE_SetAutoTouchInterface)cge_GetProc(hCgeDll, "CGE_SetAutoTouchInterface");
pfrd_CGE_SetWalkNavigationMouseDragMode = (PFNRD_CGE_SetWalkNavigationMouseDragMode)cge_GetProc(hCgeDll, "CGE_SetWalkNavigationMouseDragMode");
pfrd_CGE_SetVariableInt = (PFNRD_CGE_SetVariableInt)cge_GetProc(hCgeDll, "CGE_SetVariableInt");
pfrd_CGE_GetVariableInt = (PFNRD_CGE_GetVariableInt)cge_GetProc(hCgeDll, "CGE_GetVariableInt");
pfrd_CGE_SetNodeFieldValue_SFFloat = (PFNRD_CGE_SetNodeFieldValue_SFFloat)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFFloat");
pfrd_CGE_SetNodeFieldValue_SFDouble = (PFNRD_CGE_SetNodeFieldValue_SFDouble)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFDouble");
pfrd_CGE_SetNodeFieldValue_SFInt32 = (PFNRD_CGE_SetNodeFieldValue_SFInt32)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFInt32");
pfrd_CGE_SetNodeFieldValue_SFBool = (PFNRD_CGE_SetNodeFieldValue_SFBool)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFBool");
pfrd_CGE_SetNodeFieldValue_SFVec2f = (PFNRD_CGE_SetNodeFieldValue_SFVec2f)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFVec2f");
pfrd_CGE_SetNodeFieldValue_SFVec3f = (PFNRD_CGE_SetNodeFieldValue_SFVec3f)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFVec3f");
pfrd_CGE_SetNodeFieldValue_SFVec4f = (PFNRD_CGE_SetNodeFieldValue_SFVec4f)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFVec4f");
pfrd_CGE_SetNodeFieldValue_SFVec2d = (PFNRD_CGE_SetNodeFieldValue_SFVec2d)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFVec2d");
pfrd_CGE_SetNodeFieldValue_SFVec3d = (PFNRD_CGE_SetNodeFieldValue_SFVec3d)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFVec3d");
pfrd_CGE_SetNodeFieldValue_SFVec4d = (PFNRD_CGE_SetNodeFieldValue_SFVec4d)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFVec4d");
pfrd_CGE_SetNodeFieldValue_SFRotation = (PFNRD_CGE_SetNodeFieldValue_SFRotation)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFRotation");
pfrd_CGE_SetNodeFieldValue_SFString = (PFNRD_CGE_SetNodeFieldValue_SFString)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_SFString");
pfrd_CGE_SetNodeFieldValue_MFFloat = (PFNRD_CGE_SetNodeFieldValue_MFFloat)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFFloat");
pfrd_CGE_SetNodeFieldValue_MFDouble = (PFNRD_CGE_SetNodeFieldValue_MFDouble)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFDouble");
pfrd_CGE_SetNodeFieldValue_MFInt32 = (PFNRD_CGE_SetNodeFieldValue_MFInt32)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFInt32");
pfrd_CGE_SetNodeFieldValue_MFBool = (PFNRD_CGE_SetNodeFieldValue_MFBool)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFBool");
pfrd_CGE_SetNodeFieldValue_MFVec2f = (PFNRD_CGE_SetNodeFieldValue_MFVec2f)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFVec2f");
pfrd_CGE_SetNodeFieldValue_MFVec3f = (PFNRD_CGE_SetNodeFieldValue_MFVec3f)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFVec3f");
pfrd_CGE_SetNodeFieldValue_MFVec4f = (PFNRD_CGE_SetNodeFieldValue_MFVec4f)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFVec4f");
pfrd_CGE_SetNodeFieldValue_MFVec2d = (PFNRD_CGE_SetNodeFieldValue_MFVec2d)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFVec2d");
pfrd_CGE_SetNodeFieldValue_MFVec3d = (PFNRD_CGE_SetNodeFieldValue_MFVec3d)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFVec3d");
pfrd_CGE_SetNodeFieldValue_MFVec4d = (PFNRD_CGE_SetNodeFieldValue_MFVec4d)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFVec4d");
pfrd_CGE_SetNodeFieldValue_MFRotation = (PFNRD_CGE_SetNodeFieldValue_MFRotation)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFRotation");
pfrd_CGE_SetNodeFieldValue_MFString = (PFNRD_CGE_SetNodeFieldValue_MFString)cge_GetProc(hCgeDll, "CGE_SetNodeFieldValue_MFString");
pfrd_CGE_IncreaseSceneTime = (PFNRD_CGE_IncreaseSceneTime)cge_GetProc(hCgeDll, "CGE_IncreaseSceneTime");
}
//-----------------------------------------------------------------------------
void CGE_Initialize(const char *applicationConfigDirectory)
{
if (pfrd_CGE_Initialize!=NULL)
(*pfrd_CGE_Initialize)(applicationConfigDirectory);
}
//-----------------------------------------------------------------------------
void CGE_Finalize()
{
if (pfrd_CGE_Finalize!=NULL)
(*pfrd_CGE_Finalize)();
}
//-----------------------------------------------------------------------------
int CGE_Open(unsigned uiFlags, unsigned initialWidth, unsigned initialHeight, unsigned uiDpi)
{
if (pfrd_CGE_Open!=NULL)
return (*pfrd_CGE_Open)(uiFlags, initialWidth, initialHeight, uiDpi);
else
return -1;
}
//-----------------------------------------------------------------------------
void CGE_Close(int contextHandle, cgeBool quitWhenLastWindowClosed)
{
if (pfrd_CGE_Close!=NULL)
(*pfrd_CGE_Close)(contextHandle, quitWhenLastWindowClosed);
}
//-----------------------------------------------------------------------------
void CGE_GetOpenGLInformation(char *szBuffer, int nBufSize)
{
if (pfrd_CGE_GetOpenGLInformation!=NULL)
(*pfrd_CGE_GetOpenGLInformation)(szBuffer, nBufSize);
}
//-----------------------------------------------------------------------------
void CGE_GetCastleEngineVersion(char *szBuffer, int nBufSize)
{
if (pfrd_CGE_GetCastleEngineVersion!=NULL)
(*pfrd_CGE_GetCastleEngineVersion)(szBuffer, nBufSize);
}
//-----------------------------------------------------------------------------
void CGE_Resize(int contextHandle, unsigned uiViewWidth, unsigned uiViewHeight)
{
if (pfrd_CGE_Resize!=NULL)
(*pfrd_CGE_Resize)(contextHandle, uiViewWidth, uiViewHeight);
}
//-----------------------------------------------------------------------------
void CGE_Render(int contextHandle)
{
if (pfrd_CGE_Render!=NULL)
(*pfrd_CGE_Render)(contextHandle);
}
//-----------------------------------------------------------------------------
void CGE_SaveScreenshotToFile(int contextHandle, const char *szFile)
{
if (pfrd_CGE_SaveScreenshotToFile!=NULL)
(*pfrd_CGE_SaveScreenshotToFile)(contextHandle, szFile);
}
//-----------------------------------------------------------------------------
void CGE_SetLibraryCallbackProc(int contextHandle, TCgeLibraryCallback pProc)
{
if (pfrd_CGE_SetLibraryCallbackProc!=NULL)
(*pfrd_CGE_SetLibraryCallbackProc)(contextHandle, pProc);
}
//-----------------------------------------------------------------------------
void CGE_Update(int contextHandle)
{
if (pfrd_CGE_Update!=NULL)
(*pfrd_CGE_Update)(contextHandle);
}
//-----------------------------------------------------------------------------
void CGE_MouseDown(int contextHandle, int x, int y, cgeBool bLeftBtn, int nFingerIdx)
{
if (pfrd_CGE_MouseDown!=NULL)
(*pfrd_CGE_MouseDown)(contextHandle, x, y, bLeftBtn, nFingerIdx);
}
//-----------------------------------------------------------------------------
void CGE_Motion(int contextHandle, int x, int y, int nFingerIdx)
{
if (pfrd_CGE_Motion!=NULL)
(*pfrd_CGE_Motion)(contextHandle, x, y, nFingerIdx);
}
//-----------------------------------------------------------------------------
void CGE_MouseUp(int contextHandle, int x, int y, cgeBool bLeftBtn, int nFingerIdx)
{
if (pfrd_CGE_MouseUp!=NULL)
(*pfrd_CGE_MouseUp)(contextHandle, x, y, bLeftBtn, nFingerIdx);
}
//-----------------------------------------------------------------------------
void CGE_MouseWheel(int contextHandle, float zDelta, cgeBool bVertical)
{
if (pfrd_CGE_MouseWheel!=NULL)
(*pfrd_CGE_MouseWheel)(contextHandle, zDelta, bVertical);
}
//-----------------------------------------------------------------------------
void CGE_KeyDown(int contextHandle, int /*ECgeKey*/ eKey)
{
if (pfrd_CGE_KeyDown!=NULL)
(*pfrd_CGE_KeyDown)(contextHandle, eKey);
}
//-----------------------------------------------------------------------------
void CGE_KeyUp(int contextHandle, int /*ECgeKey*/ eKey)
{
if (pfrd_CGE_KeyUp!=NULL)
(*pfrd_CGE_KeyUp)(contextHandle, eKey);
}
//-----------------------------------------------------------------------------
void CGE_LoadSceneFromFile(int contextHandle, const char *szFile)
{
if (pfrd_CGE_LoadSceneFromFile!=NULL)
(*pfrd_CGE_LoadSceneFromFile)(contextHandle, szFile);
}
//-----------------------------------------------------------------------------
void CGE_SaveSceneToFile(int contextHandle, const char *szFile, int /*ECgeUrlProcessing*/ eUrlProcessing)
{
if (pfrd_CGE_SaveSceneToFile!=NULL)
(*pfrd_CGE_SaveSceneToFile)(contextHandle, szFile, eUrlProcessing);
}
//-----------------------------------------------------------------------------
int CGE_GetViewpointsCount(int contextHandle)
{
if (pfrd_CGE_GetViewpointsCount!=NULL)
return (*pfrd_CGE_GetViewpointsCount)(contextHandle);
else
return 0;
}
//-----------------------------------------------------------------------------
void CGE_GetViewpointName(int contextHandle, int iViewpointIdx, char *szName, int nBufSize)
{
if (pfrd_CGE_GetViewpointName!=NULL)
(*pfrd_CGE_GetViewpointName)(contextHandle, iViewpointIdx, szName, nBufSize);
}
//-----------------------------------------------------------------------------
void CGE_MoveToViewpoint(int contextHandle, int iViewpointIdx, cgeBool bAnimated)
{
if (pfrd_CGE_MoveToViewpoint!=NULL)
(*pfrd_CGE_MoveToViewpoint)(contextHandle, iViewpointIdx, bAnimated);
}
//-----------------------------------------------------------------------------
void CGE_AddViewpointFromCurrentView(int contextHandle, const char *szName)
{
if (pfrd_CGE_AddViewpointFromCurrentView!=NULL)
(*pfrd_CGE_AddViewpointFromCurrentView)(contextHandle, szName);
}
//-----------------------------------------------------------------------------
void CGE_GetBoundingBox(int contextHandle, float *pfXMin, float *pfXMax, float *pfYMin, float *pfYMax, float *pfZMin, float *pfZMax)
{
if (pfrd_CGE_GetBoundingBox!=NULL)
(*pfrd_CGE_GetBoundingBox)(contextHandle, pfXMin, pfXMax, pfYMin, pfYMax, pfZMin, pfZMax);
}
//-----------------------------------------------------------------------------
void CGE_GetViewCoords(int contextHandle, float *pfPosX, float *pfPosY, float *pfPosZ, float *pfDirX, float *pfDirY, float *pfDirZ,
float *pfUpX, float *pfUpY, float *pfUpZ, float *pfGravX, float *pfGravY, float *pfGravZ)
{
if (pfrd_CGE_GetViewCoords!=NULL)
(*pfrd_CGE_GetViewCoords)(contextHandle, pfPosX, pfPosY, pfPosZ, pfDirX, pfDirY, pfDirZ, pfUpX, pfUpY, pfUpZ, pfGravX, pfGravY, pfGravZ);
}
//-----------------------------------------------------------------------------
void CGE_MoveViewToCoords(int contextHandle, float fPosX, float fPosY, float fPosZ, float fDirX, float fDirY, float fDirZ,
float fUpX, float fUpY, float fUpZ, float fGravX, float fGravY, float fGravZ, cgeBool bAnimated)
{
if (pfrd_CGE_MoveViewToCoords!=NULL)
(*pfrd_CGE_MoveViewToCoords)(contextHandle, fPosX, fPosY, fPosZ, fDirX, fDirY, fDirZ, fUpX, fUpY, fUpZ, fGravX, fGravY, fGravZ, bAnimated);
}
//-----------------------------------------------------------------------------
void CGE_SetNavigationInputShortcut(int contextHandle, int eInput, int eKey1, int eKey2, int eMouseButton, int eMouseWheel)
{
if (pfrd_CGE_SetNavigationInputShortcut!=NULL)
(*pfrd_CGE_SetNavigationInputShortcut)(contextHandle, eInput, eKey1, eKey2, eMouseButton, eMouseWheel);
}
//-----------------------------------------------------------------------------
int CGE_GetNavigationType(int contextHandle)
{
if (pfrd_CGE_GetNavigationType!=NULL)
return (*pfrd_CGE_GetNavigationType)(contextHandle);
else
return 0;
}
//-----------------------------------------------------------------------------
void CGE_SetNavigationType(int contextHandle, int /*ECgeNavigationType*/ eNewType)
{
if (pfrd_CGE_SetNavigationType!=NULL)
(*pfrd_CGE_SetNavigationType)(contextHandle, eNewType);
}
//-----------------------------------------------------------------------------
void CGE_SetTouchInterface(int contextHandle, int /*ECgeTouchCtlInterface*/ eMode)
{
if (pfrd_CGE_SetTouchInterface!=NULL)
(*pfrd_CGE_SetTouchInterface)(contextHandle, eMode);
}
//-----------------------------------------------------------------------------
void CGE_SetAutoTouchInterface(int contextHandle, cgeBool bAutomaticTouchInterface)
{
if (pfrd_CGE_SetAutoTouchInterface!=NULL)
(*pfrd_CGE_SetAutoTouchInterface)(contextHandle, bAutomaticTouchInterface);
}
//-----------------------------------------------------------------------------
void CGE_SetWalkNavigationMouseDragMode(int contextHandle, int /*ECgeMouseDragMode*/ eMode)
{
if (pfrd_CGE_SetWalkNavigationMouseDragMode!=NULL)
(*pfrd_CGE_SetWalkNavigationMouseDragMode)(contextHandle, eMode);
}
//-----------------------------------------------------------------------------
void CGE_SetVariableInt(int contextHandle, int /*ECgeVariable*/ eVar, int nValue)
{
if (pfrd_CGE_SetVariableInt!=NULL)
(*pfrd_CGE_SetVariableInt)(contextHandle, eVar, nValue);
}
//-----------------------------------------------------------------------------
int CGE_GetVariableInt(int contextHandle, int /*ECgeVariable*/ eVar)
{
if (pfrd_CGE_GetVariableInt!=NULL)
return (*pfrd_CGE_GetVariableInt)(contextHandle, eVar);
else
return -1;
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFFloat(int contextHandle, const char *szNodeName, const char *szFieldName, float value)
{
if (pfrd_CGE_SetNodeFieldValue_SFFloat!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFFloat)(contextHandle, szNodeName, szFieldName, value);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFDouble(int contextHandle, const char *szNodeName, const char *szFieldName, double value)
{
if (pfrd_CGE_SetNodeFieldValue_SFDouble!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFDouble)(contextHandle, szNodeName, szFieldName, value);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFInt32(int contextHandle, const char *szNodeName, const char *szFieldName, int value)
{
if (pfrd_CGE_SetNodeFieldValue_SFInt32!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFInt32)(contextHandle, szNodeName, szFieldName, value);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFBool(int contextHandle, const char *szNodeName, const char *szFieldName, cgeBool value)
{
if (pfrd_CGE_SetNodeFieldValue_SFBool!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFBool)(contextHandle, szNodeName, szFieldName, value);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFVec2f(int contextHandle, const char *szNodeName, const char *szFieldName, float val1, float val2)
{
if (pfrd_CGE_SetNodeFieldValue_SFVec2f!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFVec2f)(contextHandle, szNodeName, szFieldName, val1, val2);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFVec3f(int contextHandle, const char *szNodeName, const char *szFieldName, float val1, float val2, float val3)
{
if (pfrd_CGE_SetNodeFieldValue_SFVec3f!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFVec3f)(contextHandle, szNodeName, szFieldName, val1, val2, val3);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFVec4f(int contextHandle, const char *szNodeName, const char *szFieldName, float val1, float val2, float val3, float val4)
{
if (pfrd_CGE_SetNodeFieldValue_SFVec4f!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFVec4f)(contextHandle, szNodeName, szFieldName, val1, val2, val3, val4);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFVec2d(int contextHandle, const char *szNodeName, const char *szFieldName, double val1, double val2)
{
if (pfrd_CGE_SetNodeFieldValue_SFVec2d!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFVec2d)(contextHandle, szNodeName, szFieldName, val1, val2);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFVec3d(int contextHandle, const char *szNodeName, const char *szFieldName, double val1, double val2, double val3)
{
if (pfrd_CGE_SetNodeFieldValue_SFVec3d!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFVec3d)(contextHandle, szNodeName, szFieldName, val1, val2, val3);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFVec4d(int contextHandle, const char *szNodeName, const char *szFieldName, double val1, double val2, double val3, double val4)
{
if (pfrd_CGE_SetNodeFieldValue_SFVec4d!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFVec4d)(contextHandle, szNodeName, szFieldName, val1, val2, val3, val4);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFRotation(int contextHandle, const char *szNodeName, const char *szFieldName, float axisX, float axisY, float axisZ, float rotation)
{
if (pfrd_CGE_SetNodeFieldValue_SFRotation!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFRotation)(contextHandle, szNodeName, szFieldName, axisX, axisY, axisZ, rotation);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_SFString(int contextHandle, const char *szNodeName, const char *szFieldName, const char *value)
{
if (pfrd_CGE_SetNodeFieldValue_SFString!=NULL)
(*pfrd_CGE_SetNodeFieldValue_SFString)(contextHandle, szNodeName, szFieldName, value);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFFloat(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, float *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFFloat!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFFloat)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFDouble(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, double *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFDouble!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFDouble)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFInt32(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, int *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFInt32!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFInt32)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFBool(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, cgeBool *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFBool!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFBool)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFVec2f(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, float *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFVec2f!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFVec2f)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFVec3f(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, float *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFVec3f!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFVec3f)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFVec4f(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, float *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFVec4f!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFVec4f)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFVec2d(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, double *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFVec2d!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFVec2d)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFVec3d(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, double *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFVec3d!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFVec3d)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFVec4d(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, double *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFVec4d!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFVec4d)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFRotation(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, float *values)
{
if (pfrd_CGE_SetNodeFieldValue_MFRotation!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFRotation)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_SetNodeFieldValue_MFString(int contextHandle, const char *szNodeName, const char *szFieldName, int iCount, const char **values)
{
if (pfrd_CGE_SetNodeFieldValue_MFString!=NULL)
(*pfrd_CGE_SetNodeFieldValue_MFString)(contextHandle, szNodeName, szFieldName, iCount, values);
}
//-----------------------------------------------------------------------------
void CGE_IncreaseSceneTime(int contextHandle, float fTimeS)
{
if (pfrd_CGE_IncreaseSceneTime!=NULL)
(*pfrd_CGE_IncreaseSceneTime)(contextHandle, fTimeS);
}