Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions src/modelio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ interface MDLAsset : NSCopying
[Export ("objectAtIndex:")]
MDLObject GetObject (nuint index);

// Added in iOS 10 SDK but it is supposed to be present in iOS 9.
[Mac (10,12)]
[Export ("masters", ArgumentSemantic.Retain)]
IMDLObjectContainerComponent Masters { get; set; }

[iOS (9,0), Mac(10,11)]
[Static]
[Export ("assetWithSCNScene:")]
Expand Down Expand Up @@ -340,6 +345,12 @@ interface MDLLight
[Export ("lightType")]
MDLLightType LightType { get; set; }

// Added in iOS 10 SDK but it is supposed to be present in iOS 9.
[Mac (10,12)]
[Export ("colorSpace")]
// No documentation to confirm but this should be a constant (hence NSString).
NSString ColorSpace { get; set; }

[iOS (9,0), Mac(10,11)]
[Static]
[Export ("lightWithSCNLight:")]
Expand Down Expand Up @@ -934,17 +945,32 @@ interface MDLObject : MDLNamed
[NullAllowed, Export ("parent", ArgumentSemantic.Weak)]
MDLObject Parent { get; set; }

// Added in iOS 10 SDK but it is supposed to be present in iOS 9.
[Mac (10,12)]
[NullAllowed, Export ("instance", ArgumentSemantic.Retain)]
MDLObject Instance { get; set; }

// Added in iOS 10 SDK but it is supposed to be present in iOS 9.
[Mac (10,12)]
[Export ("path")]
string Path { get; }

// Added in iOS 10 SDK but it is supposed to be present in iOS 9.
[Mac (10,12)]
[Export ("objectAtPath:")]
MDLObject GetObject (string path);

[NullAllowed, Export ("transform", ArgumentSemantic.Retain)]
IMDLTransformComponent Transform { get; set; }

[Export ("children", ArgumentSemantic.Retain), NullAllowed]
IMDLObjectContainerComponent Children { get; set; }

// Added in iOS 10 SDK but it is supposed to be present in iOS 9.
[Mac (10,12)]
[Export ("hidden")]
bool Hidden { get; set; }

[Export ("addChild:")]
void AddChild (MDLObject child);

Expand Down Expand Up @@ -1564,6 +1590,11 @@ interface MDLVertexAttribute : NSCopying
[Export ("bufferIndex", ArgumentSemantic.Assign)]
nuint BufferIndex { get; set; }

// Added in iOS 10 SDK but it is supposed to be present in iOS 9.
[Mac (10,12)]
[Export ("time")]
double Time { get; set; }

[Export ("initializationValue", ArgumentSemantic.Assign)]
Vector4 InitializationValue {
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get;
Expand Down Expand Up @@ -1841,6 +1872,11 @@ interface MDLVertexAttributes {
[BaseType (typeof(NSObject))]
interface MDLVertexBufferLayout : NSCopying
{
// Added in iOS 10 SDK but it is supposed to be present in iOS 9.
[Mac (10,12)]
[Export ("initWithStride:")]
IntPtr Constructor (nuint stride);

[Export ("stride", ArgumentSemantic.Assign)]
nuint Stride { get; set; }
}
Expand Down