[modelio] Update for Xcode 10 beta 2 (#4378)
Renamed and obsoleted 'FromBundle' in favor of 'CreateTexture' for consistency with new API and because I believe it was a mistake anyway. For instance 'textureNamed:' was 'FromBundle', there's no mention of the bundle there.
This commit is contained in:
Родитель
4fc7330e52
Коммит
ced0e9c3f7
|
@ -1638,13 +1638,33 @@ namespace ModelIO {
|
|||
[Export ("init")]
|
||||
IntPtr Constructor ();
|
||||
|
||||
#if !XAMCORE_4_0
|
||||
[Static]
|
||||
[Obsolete ("Use 'CreateTexture' instead.")]
|
||||
[Wrap ("CreateTexture (name)")]
|
||||
MDLTexture FromBundle (string name);
|
||||
#endif
|
||||
|
||||
[Static]
|
||||
[Export ("textureNamed:")]
|
||||
MDLTexture FromBundle (string name);
|
||||
MDLTexture CreateTexture (string name);
|
||||
|
||||
#if !XAMCORE_4_0
|
||||
[Static]
|
||||
[Obsolete ("Use 'CreateTexture' instead.")]
|
||||
[Wrap ("CreateTexture (name, bundleOrNil)")]
|
||||
MDLTexture FromBundle (string name, [NullAllowed] NSBundle bundleOrNil);
|
||||
#endif
|
||||
|
||||
[Static]
|
||||
[Export ("textureNamed:bundle:")]
|
||||
MDLTexture FromBundle (string name, [NullAllowed] NSBundle bundleOrNil);
|
||||
MDLTexture CreateTexture (string name, [NullAllowed] NSBundle bundleOrNil);
|
||||
|
||||
[TV (12,0), Mac (10,14, onlyOn64: true), iOS (12,0)]
|
||||
[Static]
|
||||
[Export ("textureNamed:assetResolver:")]
|
||||
[return: NullAllowed]
|
||||
MDLTexture CreateTexture (string name, IMDLAssetResolver resolver);
|
||||
|
||||
[Static]
|
||||
[Export ("textureCubeWithImagesNamed:")]
|
||||
|
@ -1771,6 +1791,7 @@ namespace ModelIO {
|
|||
|
||||
[iOS (9,0), Mac(10,11, onlyOn64 : true)]
|
||||
[BaseType (typeof(NSObject))]
|
||||
[DesignatedDefaultCtor]
|
||||
interface MDLTransform : MDLTransformComponent, NSCopying {
|
||||
|
||||
[Export ("initWithTransformComponent:")]
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
!missing-designated-initializer! MDLTransform::init is missing an [DesignatedInitializer] attribute
|
||||
!missing-selector! +MDLTexture::textureNamed:assetResolver: not bound
|
|
@ -1,2 +0,0 @@
|
|||
!missing-designated-initializer! MDLTransform::init is missing an [DesignatedInitializer] attribute
|
||||
!missing-selector! +MDLTexture::textureNamed:assetResolver: not bound
|
|
@ -1,2 +0,0 @@
|
|||
!missing-designated-initializer! MDLTransform::init is missing an [DesignatedInitializer] attribute
|
||||
!missing-selector! +MDLTexture::textureNamed:assetResolver: not bound
|
Загрузка…
Ссылка в новой задаче