forked from FMXExpress/ios-object-pascal-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iOSapi.SceneKit.pas
4426 lines (4169 loc) · 241 KB
/
iOSapi.SceneKit.pas
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
{ *********************************************************** }
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 2012-2014 Embarcadero Technologies, Inc. }
{ }
{ *********************************************************** }
//
// Delphi-Objective-C Bridge
// Interfaces for Cocoa framework SceneKit
//
unit iOSapi.SceneKit;
interface
uses
Macapi.CoreFoundation,
Macapi.CoreServices,
Macapi.Dispatch,
Macapi.Foundation,
Macapi.Mach,
Macapi.ObjCRuntime,
Macapi.ObjectiveC,
Macapi.QuartzCore,
iOSapi.CocoaTypes,
iOSapi.CoreGraphics,
iOSapi.Foundation,
iOSapi.GLKit,
iOSapi.JavaScriptCore,
iOSapi.Metal,
iOSapi.OpenGLES,
iOSapi.QuartzCore,
iOSapi.UIKit;
const
SCNProgramCompilationError = 1;
SCNRenderingAPIMetal = 0;
SCNRenderingAPIOpenGLES2 = 1;
SCNDebugOptionNone = 0;
SCNDebugOptionShowPhysicsShapes = 1 shl 0;
SCNDebugOptionShowBoundingBoxes = 1 shl 1;
SCNDebugOptionShowLightInfluences = 1 shl 2;
SCNDebugOptionShowLightExtents = 1 shl 3;
SCNDebugOptionShowPhysicsFields = 1 shl 4;
SCNDebugOptionShowWireframe = 1 shl 5;
SCNBufferFrequencyPerFrame = 0;
SCNBufferFrequencyPerNode = 1;
SCNBufferFrequencyPerShadable = 2;
SCNAntialiasingModeNone = 0;
SCNAntialiasingModeMultisampling2X = 1;
SCNAntialiasingModeMultisampling4X = 2;
SCNFilterModeNone = 0;
SCNFilterModeNearest = 1;
SCNFilterModeLinear = 2;
SCNWrapModeClamp = 1;
SCNWrapModeRepeat = 2;
SCNWrapModeClampToBorder = 3;
SCNWrapModeMirror = 4;
SCNConsistencyInvalidURIError = 1000;
SCNConsistencyInvalidCountError = 1001;
SCNConsistencyInvalidArgumentError = 1002;
SCNConsistencyMissingElementError = 1003;
SCNConsistencyMissingAttributeError = 1004;
SCNConsistencyXMLSchemaValidationError = 1005;
SCNSceneSourceStatusError = -1;
SCNSceneSourceStatusParsing = 4;
SCNSceneSourceStatusValidating = 8;
SCNSceneSourceStatusProcessing = 12;
SCNSceneSourceStatusComplete = 16;
SCNActionTimingModeLinear = 0;
SCNActionTimingModeEaseIn = 1;
SCNActionTimingModeEaseOut = 2;
SCNActionTimingModeEaseInEaseOut = 3;
SCNShadowModeForward = 0;
SCNShadowModeDeferred = 1;
SCNShadowModeModulated = 2;
SCNCullBack = 0;
SCNCullFront = 1;
SCNTransparencyModeAOne = 0;
SCNTransparencyModeRGBZero = 1;
SCNBlendModeAlpha = 0;
SCNBlendModeAdd = 1;
SCNBlendModeSubtract = 2;
SCNBlendModeMultiply = 3;
SCNBlendModeScreen = 4;
SCNBlendModeReplace = 5;
SCNGeometryPrimitiveTypeTriangles = 0;
SCNGeometryPrimitiveTypeTriangleStrip = 1;
SCNGeometryPrimitiveTypeLine = 2;
SCNGeometryPrimitiveTypePoint = 3;
SCNChamferModeBoth = 0;
SCNChamferModeFront = 1;
SCNChamferModeBack = 2;
SCNMorpherCalculationModeNormalized = 0;
SCNMorpherCalculationModeAdditive = 1;
SCNBillboardAxisX = 1 shl 0;
SCNBillboardAxisY = 1 shl 1;
SCNBillboardAxisZ = 1 shl 2;
SCNBillboardAxisAll = SCNBillboardAxisX or SCNBillboardAxisY or
SCNBillboardAxisZ;
SCNParticleSortingModeNone = 0;
SCNParticleSortingModeProjectedDepth = 1;
SCNParticleSortingModeDistance = 2;
SCNParticleSortingModeOldestFirst = 3;
SCNParticleSortingModeYoungestFirst = 4;
SCNParticleBlendModeAdditive = 0;
SCNParticleBlendModeSubtract = 1;
SCNParticleBlendModeMultiply = 2;
SCNParticleBlendModeScreen = 3;
SCNParticleBlendModeAlpha = 4;
SCNParticleBlendModeReplace = 5;
SCNParticleOrientationModeBillboardScreenAligned = 0;
SCNParticleOrientationModeBillboardViewAligned = 1;
SCNParticleOrientationModeFree = 2;
SCNParticleOrientationModeBillboardYAligned = 3;
SCNParticleBirthLocationSurface = 0;
SCNParticleBirthLocationVolume = 1;
SCNParticleBirthLocationVertex = 2;
SCNParticleBirthDirectionConstant = 0;
SCNParticleBirthDirectionSurfaceNormal = 1;
SCNParticleBirthDirectionRandom = 2;
SCNParticleImageSequenceAnimationModeRepeat = 0;
SCNParticleImageSequenceAnimationModeClamp = 1;
SCNParticleImageSequenceAnimationModeAutoReverse = 2;
SCNParticleInputModeOverLife = 0;
SCNParticleInputModeOverDistance = 1;
SCNParticleInputModeOverOtherProperty = 2;
SCNParticleModifierStagePreDynamics = 0;
SCNParticleModifierStagePostDynamics = 1;
SCNParticleModifierStagePreCollision = 2;
SCNParticleModifierStagePostCollision = 3;
SCNParticleEventBirth = 0;
SCNParticleEventDeath = 1;
SCNParticleEventCollision = 2;
SCNPhysicsBodyTypeStatic = 0;
SCNPhysicsBodyTypeDynamic = 1;
SCNPhysicsBodyTypeKinematic = 2;
SCNPhysicsCollisionCategoryDefault = 1 shl 0;
SCNPhysicsCollisionCategoryStatic = 1 shl 1;
SCNPhysicsCollisionCategoryAll = not 0;
SCNPhysicsFieldScopeInsideExtent = 0;
SCNPhysicsFieldScopeOutsideExtent = 1;
SCNReferenceLoadingPolicyImmediate = 0;
SCNReferenceLoadingPolicyOnDemand = 1;
type
// ===== Forward declarations =====
{$M+}
SceneKitAdditions = interface;
SCNAnimationEvent = interface;
SCNAnimatable = interface;
SCNBoundingVolume = interface;
SCNScene = interface;
SCNNode = interface;
SCNSceneRendererDelegate = interface;
SCNHitTestResult = interface;
SCNSceneRenderer = interface;
SCNMaterial = interface;
SCNRenderer = interface;
SCNProgram = interface;
SCNProgramDelegate = interface;
SCNShadable = interface;
SCNBufferStream = interface;
SCNTechnique = interface;
SCNTechniqueSupport = interface;
SCNView = interface;
SCNMaterialProperty = interface;
SCNPhysicsWorld = interface;
SCNSceneExportDelegate = interface;
SCNSceneSource = interface;
SCNAction = interface;
SCNAudioSource = interface;
SCNActionable = interface;
SCNLight = interface;
SCNCamera = interface;
SCNGeometry = interface;
SCNSkinner = interface;
SCNMorpher = interface;
SCNConstraint = interface;
SCNPhysicsBody = interface;
SCNPhysicsField = interface;
SCNNodeRendererDelegate = interface;
SCNGeometrySource = interface;
SCNGeometryElement = interface;
SCNLevelOfDetail = interface;
SCNPlane = interface;
SCNBox = interface;
SCNPyramid = interface;
SCNSphere = interface;
SCNCylinder = interface;
SCNCone = interface;
SCNTube = interface;
SCNCapsule = interface;
SCNTorus = interface;
SCNFloor = interface;
SCNText = interface;
SCNShape = interface;
SCNTransaction = interface;
SCNLookAtConstraint = interface;
SCNBillboardConstraint = interface;
SCNTransformConstraint = interface;
SCNIKConstraint = interface;
SCNParticlePropertyController = interface;
SCNParticleSystem = interface;
SCNPhysicsShape = interface;
SCNPhysicsContact = interface;
SCNPhysicsBehavior = interface;
SCNPhysicsContactDelegate = interface;
SCNPhysicsHingeJoint = interface;
SCNPhysicsBallSocketJoint = interface;
SCNPhysicsSliderJoint = interface;
SCNPhysicsVehicleWheel = interface;
SCNPhysicsVehicle = interface;
SCNReferenceNode = interface;
SCNAudioPlayer = interface;
// ===== Framework typedefs =====
{$M+}
SCNVector3 = record
x: Single;
y: Single;
z: Single;
end;
PSCNVector3 = ^SCNVector3;
SCNVector4 = record
x: Single;
y: Single;
z: Single;
w: Single;
end;
PSCNVector4 = ^SCNVector4;
SCNMatrix4 = record
m11: Single;
m12: Single;
m13: Single;
m14: Single;
m21: Single;
m22: Single;
m23: Single;
m24: Single;
m31: Single;
m32: Single;
m33: Single;
m34: Single;
m41: Single;
m42: Single;
m43: Single;
m44: Single;
end;
PSCNMatrix4 = ^SCNMatrix4;
SCNQuaternion = SCNVector4;
GLKVector3 = case Integer of 0: (x: Single; y: Single; z: Single;);
1:
(r: Single; g: Single; b: Single;);
2:
(s: Single; t: Single; p: Single;);
3:
(v: array [0 .. 2] of Single);;
GLKVector4 =
case Integer of
0:
(x: Single;
y: Single;
z: Single;
w: Single;
);
1:
(r: Single;
g: Single;
b: Single;
a: Single;
);
2:
(s: Single;
t: Single;
p: Single;
q: Single;
);
3:
(v: array [0 .. 3] of Single);
;
GLKMatrix4 = case Integer of 0:
(m00: Single;
m01: Single;
m02: Single;
m03: Single;
m10: Single;
m11: Single;
m12: Single;
m13: Single;
m20: Single;
m21: Single;
m22: Single;
m23: Single;
m30: Single;
m31: Single;
m32: Single;
m33: Single;
);
1:
(m: array [0 .. 15] of Single);
;
vector_float3 = - - < Type :
: ExtVector >;
vector_float4 = - - < Type :
: ExtVector >;
matrix_float4x4 = record columns:
array [0 .. 3] of vector_float4;
end;;
SCNAnimationEventBlock =
procedure(param1: CAAnimation; param2: Pointer; param3: Boolean) of object;
CGFloat = Single;
NSUInteger = Cardinal;
SCNRenderingAPI = NSUInteger;
SCNDebugOptions = NSUInteger;
NSInteger = Integer;
CGPoint = CGPoint = record x: CGFloat;
y:
CGFloat;
end;
PCGPoint = ^CGPoint;;
TSceneKitCompletionHandler =
procedure() of object;
NSTimeInterval = Double;
TSceneKitShouldAbortBlock =
function(): Boolean;
cdecl;
TSceneKitWithCompletionHandler =
procedure(param1: Boolean) of object;
MTLPixelFormat = NSUInteger;
SCNBufferFrequency = NSInteger;
SCNBufferBindingBlock =
procedure(param1: Pointer; param2: SCNNode; param3: Pointer;
param4: SCNRenderer) of object;
SCNBindingBlock =
procedure(param1: Cardinal; param2: Cardinal; param3: SCNNode;
param4: SCNRenderer) of object;
SCNAntialiasingMode = NSUInteger;
CGSize = CGSize = record width: CGFloat;
height:
CGFloat;
end;
PCGSize = ^CGSize;;
CGRect = CGRect = record origin: CGPoint;
size:
CGSize;
end;
PCGRect = ^CGRect;;
CFTimeInterval = Double;
SCNFilterMode = NSInteger;
SCNWrapMode = NSInteger;
SCNSceneExportProgressHandler =
procedure(param1: Single; param2: NSError; param3: PBoolean) of object;
SCNSceneSourceStatus = NSInteger;
SCNSceneSourceStatusHandler =
procedure(param1: Single; param2: SCNSceneSourceStatus; param3: NSError;
param4: PBoolean) of object;
TSceneKitPredicate =
function(param1: Pointer; param2: NSString; param3: PBoolean): Boolean;
cdecl;
SCNActionTimingMode = NSInteger;
SCNActionTimingFunction =
function(param1: Single): Single;
cdecl;
TSceneKitBlock =
procedure(param1: SCNNode) of object;
dispatch_queue_t = Pointer;
TSceneKitActionBlock =
procedure(param1: SCNNode; param2: CGFloat) of object;
TSceneKitPredicate1 =
function(param1: SCNNode; param2: PBoolean): Boolean;
cdecl;
TSceneKitBlock1 =
procedure(param1: SCNNode; param2: PBoolean) of object;
SCNShadowMode = NSInteger;
SCNCullMode = NSInteger;
SCNTransparencyMode = NSInteger;
SCNBlendMode = NSInteger;
SCNGeometryPrimitiveType = NSInteger;
MTLVertexFormat = NSUInteger;
SCNChamferMode = NSInteger;
SCNMorpherCalculationMode = NSInteger;
SCNBillboardAxis = NSUInteger;
TSceneKitWithBlock =
function(param1: SCNNode; param2: SCNMatrix4): SCNMatrix4;
cdecl;
SCNParticleEventBlock =
procedure(param1: Pointer; param2: PLongWord; param3: PLongWord;
param4: NSInteger) of object;
SCNParticleModifierBlock =
procedure(param1: Pointer; param2: PLongWord; param3: NSInteger;
param4: NSInteger; param5: Single) of object;
SCNParticleSortingMode = NSInteger;
SCNParticleBlendMode = NSInteger;
SCNParticleOrientationMode = NSInteger;
SCNParticleBirthLocation = NSInteger;
SCNParticleBirthDirection = NSInteger;
SCNParticleImageSequenceAnimationMode = NSInteger;
SCNParticleInputMode = NSInteger;
SCNParticleModifierStage = NSInteger;
SCNParticleEvent = NSInteger;
SCNPhysicsBodyType = NSInteger;
SCNPhysicsCollisionCategory = NSUInteger;
SCNPhysicsFieldScope = NSInteger;
SCNFieldForceEvaluator =
function(param1: SCNVector3; param2: SCNVector3; param3: Single; param4: Single;
param5: NSTimeInterval): SCNVector3;
cdecl;
SCNReferenceLoadingPolicy = NSInteger;
// ===== Interface declarations =====
SceneKitAdditions = interface(IObjectiveC)
['{86898B6A-C30B-41BC-9F8C-A1FE412A78ED}']
function valueWithSCNVector3(v: SCNVector3): NSValue;
cdecl;
function valueWithSCNVector4(v: SCNVector4): NSValue; cdecl;
function valueWithSCNMatrix4(v: SCNMatrix4): NSValue; cdecl;
function SCNVector3Value: SCNVector3; cdecl;
function SCNVector4Value: SCNVector4; cdecl;
function SCNMatrix4Value: SCNMatrix4; cdecl;
procedure setUsesSceneTimeBase(usesSceneTimeBase: Boolean); cdecl;
function usesSceneTimeBase: Boolean; cdecl;
procedure setFadeInDuration(fadeInDuration: CGFloat); cdecl;
function fadeInDuration: CGFloat; cdecl;
procedure setFadeOutDuration(fadeOutDuration: CGFloat); cdecl;
function fadeOutDuration: CGFloat; cdecl;
procedure setAnimationEvents(animationEvents
: NSArray); cdecl;
function animationEvents: NSArray; cdecl;
end;
SCNAnimationEventClass = interface(NSObjectClass)
['{650968AB-A272-4330-A33A-94E0C7740739}']
{ class } function animationEventWithKeyTime(time: CGFloat;
block: SCNAnimationEventBlock): Pointer { instancetype };
cdecl;
end;
SCNAnimationEvent = interface(NSObject)
['{8F89F554-ACD3-411D-9E5F-DB37357C6A42}']
end;
TSCNAnimationEvent = class(TOCGenericImport<SCNAnimationEventClass,
SCNAnimationEvent>)
end;
PSCNAnimationEvent = Pointer;
SCNSceneClass = interface(NSObjectClass)
['{6EA10B29-E3BE-4DF6-8AFB-A0A4C37C8C9F}']
{ class } function scene: Pointer { instancetype };
cdecl;
[MethodName('sceneNamed:')]
{ class } function sceneNamed(name: NSString)
: Pointer { instancetype }; cdecl;
[MethodName('sceneNamed:inDirectory:options:')]
{ class } function sceneNamedInDirectoryOptions(name: NSString;
inDirectory: NSString; options: NSDictionary)
: Pointer { instancetype }; cdecl;
{ class } function sceneWithURL(url: NSURL; options: NSDictionary;
error: NSError): Pointer { instancetype }; cdecl;
end;
SCNScene = interface(NSObject)
['{3DCA0BBD-196B-4FA2-BC90-291E516DC94F}']
function rootNode: SCNNode;
cdecl;
function physicsWorld: SCNPhysicsWorld; cdecl;
function attributeForKey(key: NSString): Pointer; cdecl;
procedure setAttribute(attribute: Pointer;
forKey: NSString); cdecl;
function background: SCNMaterialProperty; cdecl;
procedure setFogStartDistance(fogStartDistance
: CGFloat); cdecl;
function fogStartDistance: CGFloat; cdecl;
procedure setFogEndDistance(fogEndDistance
: CGFloat); cdecl;
function fogEndDistance: CGFloat; cdecl;
procedure setFogDensityExponent(fogDensityExponent
: CGFloat); cdecl;
function fogDensityExponent: CGFloat; cdecl;
procedure setFogColor(fogColor: Pointer); cdecl;
function fogColor: Pointer; cdecl;
procedure setPaused(paused: Boolean); cdecl;
function isPaused: Boolean; cdecl;
procedure addParticleSystem
(system: SCNParticleSystem;
withTransform: SCNMatrix4); cdecl;
procedure removeAllParticleSystems;
cdecl;
procedure removeParticleSystem
(system: SCNParticleSystem); cdecl;
function particleSystems
: NSArray; cdecl;
end;
TSCNScene = class
(TOCGenericImport<SCNSceneClass,
SCNScene>)
end;
PSCNScene = Pointer;
SCNNodeClass = interface(NSObjectClass)
['{12E10E43-F3B7-4096-8B6E-FDB101698E0D}']
{ class } function node
: Pointer { instancetype };
cdecl;
{ class } function nodeWithGeometry
(geometry: SCNGeometry): SCNNode; cdecl;
end;
SCNNode = interface(NSObject)
['{E4E19A2A-DCC5-435C-93AE-5F4F2374889B}']
function clone: Pointer { instancetype };
cdecl;
function flattenedClone
: Pointer { instancetype }; cdecl;
procedure setName
(name: NSString); cdecl;
function name: NSString; cdecl;
procedure setLight
(light: SCNLight); cdecl;
function light: SCNLight; cdecl;
procedure setCamera
(camera: SCNCamera); cdecl;
function camera: SCNCamera; cdecl;
procedure setGeometry
(geometry: SCNGeometry); cdecl;
function geometry: SCNGeometry; cdecl;
procedure setSkinner
(skinner: SCNSkinner); cdecl;
function skinner: SCNSkinner; cdecl;
procedure setMorpher
(morpher: SCNMorpher); cdecl;
function morpher: SCNMorpher; cdecl;
procedure setTransform
(transform: SCNMatrix4); cdecl;
function transform: SCNMatrix4; cdecl;
procedure setPosition
(position: SCNVector3); cdecl;
function position: SCNVector3; cdecl;
procedure setRotation
(rotation: SCNVector4); cdecl;
function rotation: SCNVector4; cdecl;
procedure setOrientation
(orientation: SCNQuaternion); cdecl;
function orientation
: SCNQuaternion; cdecl;
procedure setEulerAngles
(eulerAngles: SCNVector3); cdecl;
function eulerAngles: SCNVector3; cdecl;
procedure setScale
(scale: SCNVector3); cdecl;
function scale: SCNVector3; cdecl;
procedure setPivot
(pivot: SCNMatrix4); cdecl;
function pivot: SCNMatrix4; cdecl;
function worldTransform
: SCNMatrix4; cdecl;
procedure setHidden
(hidden: Boolean); cdecl;
function isHidden: Boolean; cdecl;
procedure setOpacity
(opacity: CGFloat); cdecl;
function opacity: CGFloat; cdecl;
procedure setRenderingOrder
(renderingOrder: NSInteger); cdecl;
function renderingOrder
: NSInteger; cdecl;
procedure setCastsShadow
(castsShadow: Boolean); cdecl;
function castsShadow: Boolean; cdecl;
function parentNode: SCNNode; cdecl;
function childNodes: NSArray; cdecl;
procedure addChildNode
(child: SCNNode); cdecl;
procedure insertChildNode
(child: SCNNode;
atIndex: NSUInteger); cdecl;
procedure removeFromParentNode; cdecl;
procedure replaceChildNode
(oldChild: SCNNode;
&with: SCNNode); cdecl;
function childNodeWithName
(name: NSString; recursively: Boolean)
: SCNNode; cdecl;
function childNodesPassingTest
(predicate: TSceneKitPredicate1)
: NSArray; cdecl;
procedure enumerateChildNodesUsingBlock
(block: TSceneKitBlock1); cdecl;
[MethodName('convertPosition:toNode:')]
function convertPositionToNode
(position: SCNVector3; toNode: SCNNode)
: SCNVector3; cdecl;
[MethodName
('convertPosition:fromNode:')]
function convertPositionFromNode
(position: SCNVector3;
fromNode: SCNNode): SCNVector3; cdecl;
[MethodName('convertTransform:toNode:')]
function convertTransformToNode
(transform: SCNMatrix4; toNode: SCNNode)
: SCNMatrix4; cdecl;
[MethodName
('convertTransform:fromNode:')]
function convertTransformFromNode
(transform: SCNMatrix4;
fromNode: SCNNode): SCNMatrix4; cdecl;
procedure setPhysicsBody
(physicsBody: SCNPhysicsBody); cdecl;
function physicsBody
: SCNPhysicsBody; cdecl;
procedure setPhysicsField
(physicsField: SCNPhysicsField); cdecl;
function physicsField
: SCNPhysicsField; cdecl;
procedure setConstraints
(constraints: NSArray); cdecl;
function constraints: NSArray; cdecl;
procedure setFilters
(filters: NSArray); cdecl;
function filters: NSArray; cdecl;
function presentationNode
: SCNNode; cdecl;
procedure setPaused
(paused: Boolean); cdecl;
function isPaused: Boolean; cdecl;
procedure setRendererDelegate
(rendererDelegate: Pointer); cdecl;
function rendererDelegate
: Pointer; cdecl;
function hitTestWithSegmentFromPoint
(pointA: SCNVector3;
toPoint: SCNVector3;
options: NSDictionary): NSArray; cdecl;
procedure setCategoryBitMask
(categoryBitMask: NSUInteger); cdecl;
function categoryBitMask
: NSUInteger; cdecl;
procedure addParticleSystem
(system: SCNParticleSystem); cdecl;
procedure removeAllParticleSystems;
cdecl;
procedure removeParticleSystem
(system: SCNParticleSystem); cdecl;
function particleSystems
: NSArray; cdecl;
procedure addAudioPlayer
(player: SCNAudioPlayer); cdecl;
procedure removeAllAudioPlayers; cdecl;
procedure removeAudioPlayer
(player: SCNAudioPlayer); cdecl;
function audioPlayers: NSArray; cdecl;
end;
TSCNNode = class
(TOCGenericImport<
SCNNodeClass, SCNNode>)
end;
PSCNNode = Pointer;
SCNHitTestResultClass = interface
(NSObjectClass)
['{6372AF4B-1B91-464B-A389-A1F851145C54}']
end;
SCNHitTestResult = interface(NSObject)
['{232A3202-8C3E-4B63-A5B3-645B0E8EEF3E}']
function node: SCNNode;
cdecl;
function geometryIndex
: NSInteger; cdecl;
function faceIndex: NSInteger; cdecl;
function localCoordinates
: SCNVector3; cdecl;
function worldCoordinates
: SCNVector3; cdecl;
function localNormal: SCNVector3; cdecl;
function worldNormal: SCNVector3; cdecl;
function modelTransform
: SCNMatrix4; cdecl;
function textureCoordinatesWithMappingChannel
(channel: NSInteger): CGPoint; cdecl;
end;
TSCNHitTestResult = class
(TOCGenericImport<SCNHitTestResultClass,
SCNHitTestResult>)
end;
PSCNHitTestResult = Pointer;
SCNMaterialClass = interface
(NSObjectClass)
['{A6A09F8F-9E4E-4731-92E9-37272E1FAD8A}']
{ class } function material
: Pointer { instancetype };
cdecl;
end;
SCNMaterial = interface(NSObject)
['{CB1773C7-1D0D-4254-AE96-84300DD44009}']
procedure setName(name: NSString);
cdecl;
function name: NSString; cdecl;
function diffuse
: SCNMaterialProperty; cdecl;
function ambient
: SCNMaterialProperty; cdecl;
function specular
: SCNMaterialProperty; cdecl;
function emission
: SCNMaterialProperty; cdecl;
function transparent
: SCNMaterialProperty; cdecl;
function reflective
: SCNMaterialProperty; cdecl;
function multiply
: SCNMaterialProperty; cdecl;
function normal
: SCNMaterialProperty; cdecl;
function ambientOcclusion
: SCNMaterialProperty; cdecl;
function selfIllumination
: SCNMaterialProperty; cdecl;
procedure setShininess
(shininess: CGFloat); cdecl;
function shininess: CGFloat; cdecl;
procedure setTransparency
(transparency: CGFloat); cdecl;
function transparency: CGFloat; cdecl;
procedure setLightingModelName
(lightingModelName: NSString); cdecl;
function lightingModelName
: NSString; cdecl;
procedure setLitPerPixel
(litPerPixel: Boolean); cdecl;
function isLitPerPixel: Boolean; cdecl;
procedure setDoubleSided
(doubleSided: Boolean); cdecl;
function isDoubleSided: Boolean; cdecl;
procedure setCullMode
(cullMode: SCNCullMode); cdecl;
function cullMode: SCNCullMode; cdecl;
procedure setTransparencyMode
(transparencyMode
: SCNTransparencyMode); cdecl;
function transparencyMode
: SCNTransparencyMode; cdecl;
procedure setLocksAmbientWithDiffuse
(locksAmbientWithDiffuse
: Boolean); cdecl;
function locksAmbientWithDiffuse
: Boolean; cdecl;
procedure setWritesToDepthBuffer
(writesToDepthBuffer: Boolean); cdecl;
function writesToDepthBuffer
: Boolean; cdecl;
procedure setReadsFromDepthBuffer
(readsFromDepthBuffer: Boolean); cdecl;
function readsFromDepthBuffer
: Boolean; cdecl;
procedure setFresnelExponent
(fresnelExponent: CGFloat); cdecl;
function fresnelExponent
: CGFloat; cdecl;
procedure setBlendMode
(blendMode: SCNBlendMode); cdecl;
function blendMode: SCNBlendMode; cdecl;
end;
TSCNMaterial = class
(TOCGenericImport<SCNMaterialClass,
SCNMaterial>)
end;
PSCNMaterial = Pointer;
SCNRendererClass = interface
(NSObjectClass)
['{2ECFCC34-D7E3-4659-99B3-807F6A8C58F3}']
{ class } function rendererWithContext
(context: EAGLContext;
options: NSDictionary)
: Pointer { instancetype };
cdecl;
{ class } function rendererWithDevice
(device: Pointer; options: NSDictionary)
: Pointer { instancetype }; cdecl;
end;
SCNRenderer = interface(NSObject)
['{9807A48C-D797-4D1F-80B2-BAA781617AED}']
procedure setScene(scene: SCNScene);
cdecl;
function scene: SCNScene; cdecl;
[MethodName('renderAtTime:')]
procedure renderAtTime
(time: CFTimeInterval); cdecl;
[MethodName
('renderAtTime:viewport:commandBuffer:passDescriptor:')
]
procedure renderAtTimeViewportCommandBufferPassDescriptor
(time: CFTimeInterval; viewport: CGRect;
commandBuffer: Pointer;
passDescriptor
: MTLRenderPassDescriptor); cdecl;
function nextFrameTime
: CFTimeInterval; cdecl;
procedure render; cdecl;
end;
TSCNRenderer = class
(TOCGenericImport<SCNRendererClass,
SCNRenderer>)
end;
PSCNRenderer = Pointer;
SCNProgramClass = interface
(NSObjectClass)
['{4FB74E2D-10F3-4909-B4CE-DF4F0D8E3967}']
{ class } function &program
: Pointer { instancetype };
cdecl;
end;
SCNProgram = interface(NSObject)
['{A872CBE4-6FFC-4DB8-9EFD-9D40CEBB8E32}']
procedure setVertexShader
(vertexShader: NSString);
cdecl;
function vertexShader: NSString; cdecl;
procedure setFragmentShader
(fragmentShader: NSString); cdecl;
function fragmentShader
: NSString; cdecl;
procedure setVertexFunctionName
(vertexFunctionName: NSString); cdecl;
function vertexFunctionName
: NSString; cdecl;
procedure setFragmentFunctionName
(fragmentFunctionName: NSString); cdecl;
function fragmentFunctionName
: NSString; cdecl;
procedure handleBindingOfBufferNamed
(name: NSString;
frequency: SCNBufferFrequency;
usingBlock
: SCNBufferBindingBlock); cdecl;
procedure setOpaque
(opaque: Boolean); cdecl;
function isOpaque: Boolean; cdecl;
procedure setSemantic
(semantic: NSString;
forSymbol: NSString;
options: NSDictionary); cdecl;
function semanticForSymbol
(symbol: NSString): NSString; cdecl;
procedure setDelegate
(delegate: Pointer); cdecl;
function delegate: Pointer; cdecl;
procedure setLibrary
(&library: Pointer); cdecl;
function &library: Pointer; cdecl;
end;
TSCNProgram = class
(TOCGenericImport<SCNProgramClass,
SCNProgram>)
end;
PSCNProgram = Pointer;
SCNTechniqueClass = interface
(NSObjectClass)
['{1FCA0B5A-5992-4878-B65D-2E3936867968}']
{ class } function
techniqueWithDictionary
(dictionary: NSDictionary)
: SCNTechnique;
cdecl;
{ class } function
techniqueBySequencingTechniques
(techniques: NSArray)
: SCNTechnique; cdecl;
end;
SCNTechnique = interface(NSObject)
['{22793E06-8FD2-4AAC-AC62-1C4C81E495A2}']
procedure handleBindingOfSymbol
(symbol: NSString;
usingBlock: SCNBindingBlock);
cdecl;
function dictionaryRepresentation
: NSDictionary; cdecl;
function objectForKeyedSubscript
(key: Pointer): Pointer; cdecl;
procedure setObject(obj: Pointer;
forKeyedSubscript: Pointer); cdecl;
end;
TSCNTechnique = class
(TOCGenericImport<SCNTechniqueClass,
SCNTechnique>)
end;
PSCNTechnique = Pointer;
SCNViewClass = interface(UIViewClass)
['{3B2212A2-73A0-4043-9F78-880FF0535ED8}']
end;
SCNView = interface(UIView)
['{4E31DA43-FA61-4A6E-85E1-C067DAB2ADB4}']
function initWithFrame(frame: CGRect;
options: NSDictionary)
: Pointer { instancetype };
cdecl;
procedure setScene
(scene: SCNScene); cdecl;
function scene: SCNScene; cdecl;
procedure setAllowsCameraControl
(allowsCameraControl: Boolean); cdecl;
function allowsCameraControl
: Boolean; cdecl;
function snapshot: UIImage; cdecl;
procedure play(sender: Pointer); cdecl;
procedure pause(sender: Pointer); cdecl;
procedure stop(sender: Pointer); cdecl;
procedure setPreferredFramesPerSecond
(preferredFramesPerSecond
: NSInteger); cdecl;
function preferredFramesPerSecond
: NSInteger; cdecl;
procedure setEaglContext
(EAGLContext: EAGLContext); cdecl;
function EAGLContext
: EAGLContext; cdecl;
procedure setAntialiasingMode
(antialiasingMode
: SCNAntialiasingMode); cdecl;
function antialiasingMode
: SCNAntialiasingMode; cdecl;
end;
TSCNView = class
(TOCGenericImport<
SCNViewClass, SCNView>)
end;
PSCNView = Pointer;
SCNMaterialPropertyClass = interface
(NSObjectClass)
['{D1D000A7-5FA1-4533-8456-72F56C50F4C8}']
{ class } function
materialPropertyWithContents
(contents: Pointer)
: Pointer { instancetype };
cdecl;
end;
SCNMaterialProperty = interface
(NSObject)
['{483C1B33-CA84-4A5A-A1BD-01BDC99ECC93}']
procedure setContents
(contents: Pointer);
cdecl;
function contents: Pointer; cdecl;
procedure setIntensity
(intensity: CGFloat); cdecl;
function intensity: CGFloat; cdecl;
procedure setMinificationFilter
(minificationFilter
: SCNFilterMode); cdecl;
function minificationFilter
: SCNFilterMode; cdecl;
procedure setMagnificationFilter
(magnificationFilter
: SCNFilterMode); cdecl;
function magnificationFilter
: SCNFilterMode; cdecl;
procedure setMipFilter
(mipFilter: SCNFilterMode); cdecl;
function mipFilter
: SCNFilterMode; cdecl;
procedure setContentsTransform
(contentsTransform: SCNMatrix4); cdecl;
function contentsTransform
: SCNMatrix4; cdecl;
procedure setWrapS
(wrapS: SCNWrapMode); cdecl;
function wrapS: SCNWrapMode; cdecl;
procedure setWrapT
(wrapT: SCNWrapMode); cdecl;
function wrapT: SCNWrapMode; cdecl;
procedure setBorderColor
(borderColor: Pointer); cdecl;
function borderColor: Pointer; cdecl;
procedure setMappingChannel
(mappingChannel: NSInteger); cdecl;
function mappingChannel
: NSInteger; cdecl;