-
Notifications
You must be signed in to change notification settings - Fork 5
/
Xors3D.pbi
1581 lines (1258 loc) · 40.1 KB
/
Xors3D.pbi
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
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
; *=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*
; Xors3D's low-level declarations.
; Converted in 2012 by Guevara-chan.
; *=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*
IncludeFile "Xors3d[decls].pbi"
; Log levels
#LOG_NO = 5
#LOG_FATAL = 4
#LOG_ERROR = 3
#LOG_WARNING = 2
#LOG_MESSAGE = 1
#LOG_INFO = 0
; Log targets
#LOG_HTML = 1
#LOG_COUT = 2
#LOG_STRING = 4
; Skinning types
#SKIN_SOFTWARE = 2
#SKIN_HARDWARE = 1
; Light sources types
#LIGHT_DIRECTIONAL = 1
#LIGHT_POINT = 2
#LIGHT_SPOT = 3
; Texture filtering
#TF_NONE = 0
#TF_POINT = 1
#TF_LINEAR = 2
#TF_ANISOTROPIC = 3
#TF_ANISOTROPICX4 = 4
#TF_ANISOTROPICX8 = 5
#TF_ANISOTROPICX16 = 6
; PixelShader versions
#PS_1_1 = 0
#PS_1_2 = 1
#PS_1_3 = 2
#PS_1_4 = 3
#PS_2_0 = 4
#PS_3_0 = 5
; VertexShader versions
#VS_1_1 = 0
#VS_2_0 = 1
#VS_3_0 = 2
; Matrix semantics
#WORLD = 0
#WORLDVIEWPROJ = 1
#VIEWPROJ = 2
#VIEW = 3
#PROJ = 4
#WORLDVIEW = 5
#VIEWINVERSE = 6
#WORLDINVERSETRANSPOSE = 15
#WORLDINVERSE = 16
#WORLDTRANSPOSE = 17
#VIEWPROJINVERSE = 18
#VIEWPROJINVERSETRANSPOSE = 19
#VIEWTRANSPOSE = 20
#VIEWINVRSETRANSPOSE = 21
#PROJINVERSE = 22
#PROJTRANSPOSE = 23
#PROJINVRSETRANSPOSE = 24
#WORLDVIEWPROJTRANSPOSE = 25
#WORLDVIEWPROJINVERSE = 26
#WORLDVIEWPROJINVERSETRANSPOSE = 27
#WORLDVIEWTRANSPOSE = 28
#WORLDVIEWINVERSE = 29
#WORLDVIEWINVERSETRANSPOSE = 30
; Antialiasing types
#AANONE = 0
#AA2SAMPLES = 1
#AA3SAMPLES = 2
#AA4SAMPLES = 3
#AA5SAMPLES = 4
#AA6SAMPLES = 5
#AA7SAMPLES = 6
#AA8SAMPLES = 7
#AA9SAMPLES = 8
#AA10SAMPLES = 9
#AA11SAMPLES = 10
#AA12SAMPLES = 11
#AA13SAMPLES = 12
#AA14SAMPLES = 13
#AA15SAMPLES = 14
#AA16SAMPLES = 15
; Camera fog mode
#FOG_NONE = 0
#FOG_LINEAR = 1
; Camera projection mode
#PROJ_DISABLE = 0
#PROJ_PERSPECTIVE = 1
#PROJ_ORTHOGRAPHIC = 2
; Entity FX flags
#FX_NOTHING = 0
#FX_FULLBRIGHT = 1
#FX_VERTEXCOLOR = 2
#FX_FLATSHADED = 4
#FX_DISABLEFOG = 8
#FX_DISABLECULLING = 16
#FX_NOALPHABLEND = 32
; Entity blending modes
#BLEND_ALPHA = 1
#BLEND_MULTIPLY = 2
#BLEND_ADD = 3
#BLEND_PUREADD = 4
; Compare Macros
#CMP_NEVER = 1
#CMP_LESS = 2
#CMP_EQUAL = 3
#CMP_LESSEQUAL = 4
#CMP_GREATER = 5
#CMP_NOTEQUAL = 6
#CMP_GREATEREQUAL = 7
#CMP_ALWAYS = 8
; Axis
#AXIS_X = 1
#AXIS_Y = 2
#AXIS_Z = 3
; Texture loading flags
#FLAGS_COLOR = 1
#FLAGS_ALPHA = 2
#FLAGS_MASKED = 4
#FLAGS_MIPMAPPED = 8
#FLAGS_CLAMPU = 16
#FLAGS_CLAMPV = 32
#FLAGS_SPHERICALENVMAP = 64
#FLAGS_CUBICENVMAP = 128
#FLAGS_R32F = 256
#FLAGS_SKIPCACHE = 512
#FLAGS_VOLUMETEXTURE = 1024
#FLAGS_ARBG16F = 2048
#FLAGS_ARBG32F = 4096
; Texture blending modes
#TEXBLEND_NONE = 0
#TEXBLEND_ALPHA = 1
#TEXBLEND_MULTIPLY = 2
#TEXBLEND_ADD = 3
#TEXBLEND_DOT3 = 4
#TEXBLEND_LIGHTMAP = 5
#TEXBLEND_SEPARATEALPHA = 6
; Cube map faces
#FACE_LEFT = 0
#FACE_FORWARD = 1
#FACE_RIGHT = 2
#FACE_BACKWARD = 3
#FACE_UP = 4
#FACE_DOWN = 5
; Entity animation types
#ANIMATION_STOP = 0
#ANIMATION_LOOP = 1
#ANIMATION_PINGPONG = 2
#ANIMATION_ONE = 3
; Collision types
#SPHERETOSPHERE = 1
#SPHERETOBOX = 3
#SPHERETOTRIMESH = 2
; Collision respones types
#RESPONSE_STOP = 1
#RESPONSE_SLIDING = 2
#RESPONSE_SLIDING_DOWNLOCK = 3
; Entity picking modes
#PICK_NONE = 0
#PICK_SPHERE = 1
#PICK_TRIMESH = 2
#PICK_BOX = 3
; Sprite view modes
#SPRITE_FIXED = 1
#SPRITE_FREE = 2
#SPRITE_FREEROLL = 3
#SPRITE_FIXEDYAW = 4
; Joystick types
#JOY_NONE = 0
#JOY_DIGITAL = 1
#JOY_ANALOG = 2
; Cubemap rendering modes
#CUBEMAP_SPECULAR = 1
#CUBEMAP_DIFFUSE = 2
#CUBEMAP_REFRACTION = 3
; Shadow's blur levels
#SHADOWS_BLUR_NONE = 0
#SHADOWS_BLUR_3 = 1
#SHADOWS_BLUR_5 = 2
#SHADOWS_BLUR_7 = 3
#SHADOWS_BLUR_11 = 4
#SHADOWS_BLUR_13 = 5
; primitives types
#PRIMITIVE_POINTLIST = 1
#PRIMITIVE_LINELIST = 2
#PRIMITIVE_LINESTRIP = 3
#PRIMITIVE_TRIANGLELIST = 4
#PRIMITIVE_TRIANGLESTRIP = 5
#PRIMITIVE_TRIANGLEFAN = 6
; line separator types
#LS_NUL = 0
#LS_CR = 1
#LS_LF = 2
#LS_CRLF = 3
; physics: joint types
#JOINT_POINT2POINT = 0
#JOINT_6DOF = 1
#JOINT_6DOFSPRING = 2
#JOINT_HINGE = 3
; physics: debug drawer modes
#PXDD_NO = 0
#PXDD_WIREFRAME = 1
#PXDD_AABB = 2
#PXDD_CONTACTS = 4
#PXDD_JOINTS = 8
#PXDD_JOINT_LIMITS = 16
#PXDD_NO_AXIS = 32
; physics: ray casting modes
#PXRC_SINGLE = 0
#PXRC_MULTIPLE = 1
; 3dlines commands
Macro xCreateLine3D(fromX, fromY, fromZ, toX, toY, toZ, red = 255, green = 255, blue = 255, alpha = 255, useZBuffer = #True)
xCreateLine3D_(fromX, fromY, fromZ, toX, toY, toZ, red, green, blue, alpha, useZBuffer)
EndMacro
Macro xLine3DOrigin(line3d, x, y, z, isGlobal = #False)
xLine3DOrigin_(line3d, x, y, z, isGlobal)
EndMacro
Macro xLine3DAddNode(line3d, x, y, z, isGlobal = #False)
xLine3DAddNode_(line3d, x, y, z, isGlobal)
EndMacro
Macro xLine3DOriginX(line3d, isGlobal = #False)
xLine3DOriginX_(line3d, isGlobal)
EndMacro
Macro xLine3DOriginY(line3d, isGlobal = #False)
xLine3DOriginY_(line3d, isGlobal)
EndMacro
Macro xLine3DOriginZ(line3d, isGlobal = #False)
xLine3DOriginZ_(line3d, isGlobal)
EndMacro
Macro xLine3DNodePosition(line3d, index, x, y, z, isGlobal = #False)
xLine3DNodePosition_(line3d, index, x, y, z, isGlobal)
EndMacro
Macro xLine3DNodeX(line3d, index, isGlobal = #False)
xLine3DNodeX_(line3d, index, isGlobal)
EndMacro
Macro xLine3DNodeY(line3d, index, isGlobal = #False)
xLine3DNodeY_(line3d, index, isGlobal)
EndMacro
Macro xLine3DNodeZ(line3d, index, isGlobal = #False)
xLine3DNodeZ_(line3d, index, isGlobal)
EndMacro
; brushes commands
Macro xLoadBrush(path, flags = 9, xScale = 1.0, yScale = 1.0)
xLoadBrush_(path, flags, xScale, yScale)
EndMacro
Macro xCreateBrush(red = 255.0, green = 255.0, blue = 255.0)
xCreateBrush_(red, green, blue)
EndMacro
Macro xGetBrushTexture(brush, index = 0)
xGetBrushTexture_(brush, index)
EndMacro
Macro xBrushTexture(brush, texture, frame = 0, index = 0)
xBrushTexture_(brush, texture, frame, index)
EndMacro
; cameras commands
Macro xCameraClsColor(camera, red, green, blue, alpha = 255)
xCameraClsColor_(camera, red, green, blue, alpha)
EndMacro
Macro xCreateCamera(parent = 0)
xCreateCamera_(parent)
EndMacro
; collisions commands
Macro xEntityRadius(entity, xRadius, yRadius = 0.0)
xEntityRadius_(entity, xRadius, yRadius)
EndMacro
Macro xEntityType(entity, typeID, recurse = #False)
xEntityType_(entity, typeID, recurse)
EndMacro
; constants commands
; effects commands
Macro xSetEntityEffect(entity, effect, index = -1)
xSetEntityEffect_(entity, effect, index)
EndMacro
Macro xSetSurfaceEffect(surface, effect, index = -1)
xSetSurfaceEffect_(surface, effect, index)
EndMacro
Macro xSetBonesArrayName(entity, arrayName, layer = -1)
xSetBonesArrayName_(entity, arrayName, layer)
EndMacro
Macro xSurfaceBonesArrayName(surface, arrayName, layer = -1)
xSurfaceBonesArrayName_(surface, arrayName, layer)
EndMacro
Macro xSetEffectInt(entity, name, value, layer = -1)
xSetEffectInt_(entity, name, value, layer)
EndMacro
Macro xSurfaceEffectInt(surface, name, value, layer = -1)
xSurfaceEffectInt_(surface, name, value, layer)
EndMacro
Macro xSetEffectFloat(entity, name, value, layer = -1)
xSetEffectFloat_(entity, name, value, layer)
EndMacro
Macro xSurfaceEffectFloat(surface, name, value, layer = -1)
xSurfaceEffectFloat_(surface, name, value, layer)
EndMacro
Macro xSetEffectBool(entity, name, value, layer = -1)
xSetEffectBool_(entity, name, value, layer)
EndMacro
Macro xSurfaceEffectBool(surface, name, value, layer = -1)
xSurfaceEffectBool_(surface, name, value, layer)
EndMacro
Macro xSetEffectVector(entity, name, x, y, z, w = 0.0, layer = -1)
xSetEffectVector_(entity, name, x, y, z, w, layer)
EndMacro
Macro xSurfaceEffectVector(surface, name, x, y, z, w = 0.0, layer = -1)
xSurfaceEffectVector_(surface, name, x, y, z, w, layer)
EndMacro
Macro xSetEffectVectorArray(entity, name, value, count, layer = -1)
xSetEffectVectorArray_(entity, name, value, count, layer)
EndMacro
Macro xSurfaceEffectVectorArray(surface, name, value, count, layer = -1)
xSurfaceEffectVectorArray_(surface, name, value, count, layer)
EndMacro
Macro xSurfaceEffectMatrixArray(surface, name, value, count, layer = -1)
xSurfaceEffectMatrixArray_(surface, name, value, count, layer)
EndMacro
Macro xSurfaceEffectFloatArray(surface, name, value, count, layer = -1)
xSurfaceEffectFloatArray_(surface, name, value, count, layer)
EndMacro
Macro xSurfaceEffectIntArray(surface, name, value, count, layer = -1)
xSurfaceEffectIntArray_(surface, name, value, count, layer)
EndMacro
Macro xSetEffectMatrixArray(entity, name, value, count, layer = -1)
xSetEffectMatrixArray_(entity, name, value, count, layer)
EndMacro
Macro xSetEffectFloatArray(entity, name, value, count, layer = -1)
xSetEffectFloatArray_(entity, name, value, count, layer)
EndMacro
Macro xSetEffectIntArray(entity, name, value, count, layer = -1)
xSetEffectIntArray_(entity, name, value, count, layer)
EndMacro
Macro xSetEffectMatrixWithElements(entity, name, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44, layer = -1)
xSetEffectMatrixWithElements_(entity, name, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44, layer)
EndMacro
Macro xSetEffectMatrix(entity, name, matrix, layer = -1)
xSetEffectMatrix_(entity, name, matrix, layer)
EndMacro
Macro xSurfaceEffectMatrix(surface, name, matrix, layer = -1)
xSurfaceEffectMatrix_(surface, name, matrix, layer)
EndMacro
Macro xSurfaceEffectMatrixWithElements(surface, name, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44, layer = -1)
xSurfaceEffectMatrixWithElements_(surface, name, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44, layer)
EndMacro
Macro xSetEffectEntityTexture(entity, name, index = 0, layer = -1)
xSetEffectEntityTexture_(entity, name, index, layer)
EndMacro
Macro xSetEffectTexture(entity, name, texture, frame = 0, layer = -1, isRecursive = 1)
xSetEffectTexture_(entity, name, texture, frame, layer, isRecursive)
EndMacro
Macro xSurfaceEffectTexture(surface, name, texture, frame = 0, layer = -1)
xSurfaceEffectTexture_(surface, name, texture, frame, layer)
EndMacro
Macro xSurfaceEffectMatrixSemantic(surface, name, value, layer = -1)
xSurfaceEffectMatrixSemantic_(surface, name, value, layer)
EndMacro
Macro xSetEffectMatrixSemantic(entity, name, value, layer = -1)
xSetEffectMatrixSemantic_(entity, name, value, layer)
EndMacro
Macro xDeleteSurfaceConstant(surface, name, layer = -1)
xDeleteSurfaceConstant_(surface, name, layer)
EndMacro
Macro xDeleteEffectConstant(entity, name, layer = -1)
xDeleteEffectConstant_(entity, name, layer)
EndMacro
Macro xClearSurfaceConstants(surface, layer = -1)
xClearSurfaceConstants_(surface, layer)
EndMacro
Macro xClearEffectConstants(entity, layer = -1)
xClearEffectConstants_(entity, layer)
EndMacro
Macro xSetEffectTechnique(entity, name, layer = -1)
xSetEffectTechnique_(entity, name, layer)
EndMacro
Macro xSurfaceTechnique(surface, name, layer = -1)
xSurfaceTechnique_(surface, name, layer)
EndMacro
Macro xSetFXVector(effect, name, x, y, z, w = 0.0)
xSetFXVector_(effect, name, x, y, z, w)
EndMacro
Macro xSetFXTexture(effect, name, texture, frame = 0)
xSetFXTexture_(effect, name, texture, frame)
EndMacro
; emitters commands
Macro xCreateEmitter(psystem, parent = 0)
xCreateEmitter_(psystem, parent)
EndMacro
; entity_animation commands
Macro xExtractAnimSeq(entity, firstFrame, lastFrame, sequence = 0)
xExtractAnimSeq_(entity, firstFrame, lastFrame, sequence)
EndMacro
Macro xSetAnimSpeed(entity, speed, rootBone = "")
xSetAnimSpeed_(entity, speed, rootBone)
EndMacro
Macro xAnimSpeed(entity, rootBone = "")
xAnimSpeed_(entity, rootBone)
EndMacro
Macro xAnimating(entity, rootBone = "")
xAnimating_(entity, rootBone)
EndMacro
Macro xAnimTime(entity, rootBone = "")
xAnimTime_(entity, rootBone)
EndMacro
Macro xAnimate(entity, mode = 1, speed = 1.0, sequence = 0, translate = 0.0, rootBone = "")
xAnimate_(entity, mode, speed, sequence, translate, rootBone)
EndMacro
Macro xAnimSeq(entity, rootBone = "")
xAnimSeq_(entity, rootBone)
EndMacro
Macro xAnimLength(entity, rootBone = "")
xAnimLength_(entity, rootBone)
EndMacro
Macro xSetAnimTime(entity, time, sequence, rootBone = "")
xSetAnimTime_(entity, time, sequence, rootBone)
EndMacro
Macro xSetAnimFrame(entity, frame, sequence, rootBone = "")
xSetAnimFrame_(entity, frame, sequence, rootBone)
EndMacro
; entity_control commands
Macro xCopyEntity(entity, parent = 0, cloneBuffers = 0)
xCopyEntity_(entity, parent, cloneBuffers)
EndMacro
Macro xEntityPickMode(entity, mode, obscurer = #True, recursive = #True)
xEntityPickMode_(entity, mode, obscurer, recursive)
EndMacro
Macro xEntityTexture(entity, texture, frame = 0, index = 0, isRecursive = 1)
xEntityTexture_(entity, texture, frame, index, isRecursive)
EndMacro
Macro xEntityParent(entity, parent = 0, isGlobal = #True)
xEntityParent_(entity, parent, isGlobal)
EndMacro
Macro xCreateInstance(entity, parent = 0)
xCreateInstance_(entity, parent)
EndMacro
Macro xFreezeInstances(entity, enable = #True)
xFreezeInstances_(entity, enable)
EndMacro
; entity_movement commands
Macro xScaleEntity(entity, x, y, z, isGlobal = #False)
xScaleEntity_(entity, x, y, z, isGlobal)
EndMacro
Macro xPositionEntity(entity, x, y, z, isGlobal = #False)
xPositionEntity_(entity, x, y, z, isGlobal)
EndMacro
Macro xMoveEntity(entity, x, y, z, isGlobal = #False)
xMoveEntity_(entity, x, y, z, isGlobal)
EndMacro
Macro xTranslateEntity(entity, x, y, z, isGlobal = #False)
xTranslateEntity_(entity, x, y, z, isGlobal)
EndMacro
Macro xRotateEntity(entity, x, y, z, isGlobal = #False)
xRotateEntity_(entity, x, y, z, isGlobal)
EndMacro
Macro xTurnEntity(entity, x, y, z, isGlobal = #False)
xTurnEntity_(entity, x, y, z, isGlobal)
EndMacro
Macro xPointEntity(entity1, entity2, roll = 0.0)
xPointEntity_(entity1, entity2, roll)
EndMacro
Macro xAlignToVector(entity, x, y, z, axis, factor = 1.0)
xAlignToVector_(entity, x, y, z, axis, factor)
EndMacro
; entity_state commands
Macro xEntityX(entity, isGlobal = #False)
xEntityX_(entity, isGlobal)
EndMacro
Macro xEntityY(entity, isGlobal = #False)
xEntityY_(entity, isGlobal)
EndMacro
Macro xEntityZ(entity, isGlobal = #False)
xEntityZ_(entity, isGlobal)
EndMacro
Macro xEntityRoll(entity, isGlobal = #False)
xEntityRoll_(entity, isGlobal)
EndMacro
Macro xEntityYaw(entity, isGlobal = #False)
xEntityYaw_(entity, isGlobal)
EndMacro
Macro xEntityPitch(entity, isGlobal = #False)
xEntityPitch_(entity, isGlobal)
EndMacro
; filesystems commands
Macro xMountPackFile(path, mountpoint = "", password = "")
xMountPackFile_(path, mountpoint, password)
EndMacro
Macro xReadLine(file, ls_flag = 0)
xReadLine_(file, ls_flag)
EndMacro
Macro xWriteLine(file, value, ls_flag = 0)
xWriteLine_(file, value, ls_flag)
EndMacro
; fonts commands
Macro xLoadFont(name, height, bold = #False, italic = #False, underline = #False, fontface = "")
xLoadFont_(name, height, bold, italic, underline, fontface)
EndMacro
Macro xText(x, y, textString, centerx = #False, centery = #False)
xText_(x, y, textString, centerx, centery)
EndMacro
; graphics commands
Macro xRect(x, y, width, height, solid = #False)
xRect_(x, y, width, height, solid)
EndMacro
Macro xOval(x, y, width, height, solid = #False)
xOval_(x, y, width, height, solid)
EndMacro
Macro xLockBuffer(buffer = 0)
xLockBuffer_(buffer)
EndMacro
Macro xUnlockBuffer(buffer = 0)
xUnlockBuffer_(buffer)
EndMacro
Macro xWritePixelFast(x, y, argb, buffer = -1)
xWritePixelFast_(x, y, argb, buffer)
EndMacro
Macro xReadPixelFast(x, y, buffer = -1)
xReadPixelFast_(x, y, buffer)
EndMacro
Macro xGetPixels(buffer = -1)
xGetPixels_(buffer)
EndMacro
Macro xBufferWidth(buffer = 0)
xBufferWidth_(buffer)
EndMacro
Macro xBufferHeight(buffer = 0)
xBufferHeight_(buffer)
EndMacro
Macro xSetBuffer(buffer = 0)
xSetBuffer_(buffer)
EndMacro
Macro xTextureBuffer(texture, frame = 0)
xTextureBuffer_(texture, frame)
EndMacro
Macro xWritePixel(x, y, argb, buffer = 0)
xWritePixel_(x, y, argb, buffer)
EndMacro
Macro xReadPixel(x, y, buffer = 0)
xReadPixel_(x, y, buffer)
EndMacro
Macro xGraphicsWidth(isVirtual = #True)
xGraphicsWidth_(isVirtual)
EndMacro
Macro xGraphicsHeight(isVirtual = #True)
xGraphicsHeight_(isVirtual)
EndMacro
Macro xClsColor(red, green, blue, alpha = 255)
xClsColor_(red, green, blue, alpha)
EndMacro
Macro xClearWorld(entities = #True, brushes = #True, textures = #True)
xClearWorld_(entities, brushes, textures)
EndMacro
Macro xColor(red, green, blue, alpha = 255)
xColor_(red, green, blue, alpha)
EndMacro
Macro xUpdateWorld(speed = 1.0)
xUpdateWorld_(speed)
EndMacro
Macro xRenderEntity(camera, entity, tween = 1.0)
xRenderEntity_(camera, entity, tween)
EndMacro
Macro xRenderWorld(tween = 1.0, renderShadows = #False)
xRenderWorld_(tween, renderShadows)
EndMacro
Macro xAmbientLight(red, green, blue, world = 0)
xAmbientLight_(red, green, blue, world)
EndMacro
Macro xGraphics3D(width = 1024, height = 768, depth = 0, mode = 0, vsync = 1)
xGraphics3D_(width, height, depth, mode, vsync)
EndMacro
Macro xDrawMovementGizmo(x, y, z, selectMask = 0)
xDrawMovementGizmo_(x, y, z, selectMask)
EndMacro
Macro xDrawScaleGizmo(x, y, z, selectMask = 0, sx = 1.0, sy = 1.0, sz = 1.0)
xDrawScaleGizmo_(x, y, z, selectMask, sx, sy, sz)
EndMacro
Macro xDrawRotationGizmo(x, y, z, selectMask = 0, pitch = 0.0, yaw = 0.0, roll = 0.0)
xDrawRotationGizmo_(x, y, z, selectMask, pitch, yaw, roll)
EndMacro
Macro xDeltaTime(fromInit = #False)
xDeltaTime_(fromInit)
EndMacro
Macro xDeltaValue(value, time = 0)
xDeltaValue_(value, time)
EndMacro
; images commands
Macro xImageBuffer(image, frame = 0)
xImageBuffer_(image, frame)
EndMacro
Macro xCreateImage(width, height, frame = 1)
xCreateImage_(width, height, frame)
EndMacro
Macro xGrabImage(image, x, y, frame = 0)
xGrabImage_(image, x, y, frame)
EndMacro
Macro xSaveImage(image, path, frame = 0)
xSaveImage_(image, path, frame)
EndMacro
Macro xDrawImage(image, x, y, frame = 0)
xDrawImage_(image, x, y, frame)
EndMacro
Macro xDrawImageRect(image, x, y, rectx, recty, rectWidth, rectHeight, frame = 0)
xDrawImageRect_(image, x, y, rectx, recty, rectWidth, rectHeight, frame)
EndMacro
Macro xTileImage(image, x, y, frame = 0)
xTileImage_(image, x, y, frame)
EndMacro
Macro xDrawBlock(image, x, y, frame = 0)
xDrawBlock_(image, x, y, frame)
EndMacro
Macro xDrawBlockRect(image, x, y, rectx, recty, rectWidth, rectHeight, frame = 0)
xDrawBlockRect_(image, x, y, rectx, recty, rectWidth, rectHeight, frame)
EndMacro
; inputs commands
; joysticks commands
Macro xJoyType(portID = 0)
xJoyType_(portID)
EndMacro
Macro xJoyDown(key, portID = 0)
xJoyDown_(key, portID)
EndMacro
Macro xJoyHit(key, portID = 0)
xJoyHit_(key, portID)
EndMacro
Macro xGetJoy(portID = 0)
xGetJoy_(portID)
EndMacro
Macro xWaitJoy(portID = 0)
xWaitJoy_(portID)
EndMacro
Macro xJoyX(portID = 0)
xJoyX_(portID)
EndMacro
Macro xJoyY(portID = 0)
xJoyY_(portID)
EndMacro
Macro xJoyZ(portID = 0)
xJoyZ_(portID)
EndMacro
Macro xJoyU(portID = 0)
xJoyU_(portID)
EndMacro
Macro xJoyV(portID = 0)
xJoyV_(portID)
EndMacro
Macro xJoyPitch(portID = 0)
xJoyPitch_(portID)
EndMacro
Macro xJoyYaw(portID = 0)
xJoyYaw_(portID)
EndMacro
Macro xJoyRoll(portID = 0)
xJoyRoll_(portID)
EndMacro
Macro xJoyHat(portID = 0)
xJoyHat_(portID)
EndMacro
Macro xJoyXDir(portID = 0)
xJoyXDir_(portID)
EndMacro
Macro xJoyYDir(portID = 0)
xJoyYDir_(portID)
EndMacro
Macro xJoyZDir(portID = 0)
xJoyZDir_(portID)
EndMacro
Macro xJoyUDir(portID = 0)
xJoyUDir_(portID)
EndMacro
Macro xJoyVDir(portID = 0)
xJoyVDir_(portID)
EndMacro
; lights commands
Macro xCreateLight(typeID = 1)
xCreateLight_(typeID)
EndMacro
; logging commands
Macro xCreateLog(target = 1, level = 0, filename = "xors_log.html", cssfilename = "")
xCreateLog_(target, level, filename, cssfilename)
EndMacro
Macro xSetLogLevel(level = 2)
xSetLogLevel_(level)
EndMacro
Macro xSetLogTarget(target = 1)
xSetLogTarget_(target)
EndMacro
Macro xLogInfo(message, func = "", file = "", line = -1)
xLogInfo_(message, func, file, line)
EndMacro
Macro xLogMessage(message, func = "", file = "", line = -1)
xLogMessage_(message, func, file, line)
EndMacro
Macro xLogWarning(message, func = "", file = "", line = -1)
xLogWarning_(message, func, file, line)
EndMacro
Macro xLogError(message, func = "", file = "", line = -1)
xLogError_(message, func, file, line)
EndMacro
Macro xLogFatal(message, func = "", file = "", line = -1)
xLogFatal_(message, func, file, line)
EndMacro
; meshes commands
Macro xCreateMesh(parent = 0)
xCreateMesh_(parent)
EndMacro
Macro xLoadMesh(path, parent = 0)
xLoadMesh_(path, parent)
EndMacro
Macro xLoadMeshWithChild(path, parent = 0)
xLoadMeshWithChild_(path, parent)
EndMacro
Macro xLoadAnimMesh(path, parent = 0)
xLoadAnimMesh_(path, parent)
EndMacro
Macro xCreateCube(parent = 0)
xCreateCube_(parent)
EndMacro
Macro xCreateSphere(segments = 16, parent = 0)
xCreateSphere_(segments, parent)
EndMacro
Macro xCreateCylinder(segments = 16, solid = #True, parent = 0)
xCreateCylinder_(segments, solid, parent)
EndMacro
Macro xCreateTorus(segments = 16, R = 1.0, r_tube = 0.025, parent = 0)
xCreateTorus_(segments, R, r_tube, parent)
EndMacro
Macro xCreateCone(segments = 16, solid = #True, parent = 0)
xCreateCone_(segments, solid, parent)
EndMacro
Macro xCopyMesh(entity, parent = 0)
xCopyMesh_(entity, parent)
EndMacro
Macro xFitMesh(entity, x, y, z, width, height, depth, uniform = #False)
xFitMesh_(entity, x, y, z, width, height, depth, uniform)
EndMacro
Macro xMeshWidth(entity, recursive = #False)
xMeshWidth_(entity, recursive)
EndMacro
Macro xMeshHeight(entity, recursive = #False)
xMeshHeight_(entity, recursive)
EndMacro
Macro xMeshDepth(entity, recursive = #False)
xMeshDepth_(entity, recursive)
EndMacro
Macro xCreatePivot(parent = 0)
xCreatePivot_(parent)
EndMacro
Macro xCreatePoly(sides = 0, parent = 0)
xCreatePoly_(sides, parent)
EndMacro
Macro xLightMesh(entity, red, green, blue, range = 0.0, lightX = 0.0, lightY = 0.0, lightZ = 0.0)
xLightMesh_(entity, red, green, blue, range, lightX, lightY, lightZ)
EndMacro
; particles commands
; physics commands
Macro xEntityAddBoxShape(entity, mass, width = 0.0, height = 0.0, depth = 0.0)
xEntityAddBoxShape_(entity, mass, width, height, depth)
EndMacro
Macro xEntityAddSphereShape(entity, mass, radius = 0.0)
xEntityAddSphereShape_(entity, mass, radius)
EndMacro
Macro xEntityAddCapsuleShape(entity, mass, radius = 0.0, height = 0.0)
xEntityAddCapsuleShape_(entity, mass, radius, height)
EndMacro
Macro xEntityAddConeShape(entity, mass, radius = 0.0, height = 0.0)
xEntityAddConeShape_(entity, mass, radius, height)
EndMacro
Macro xEntityAddCylinderShape(entity, mass, width = 0.0, height = 0.0, depth = 0.0)
xEntityAddCylinderShape_(entity, mass, width, height, depth)
EndMacro