BNBImage
Objective-C
@interface BNBImage : NSObject
/**@return image name (string) */
- (nonnull NSString *)getName;
/**@return image type. type of image subclass (enum, can be attachment, cubemap, segmentation_mask, texture, camera_texture, video, weighted_lut) */
- (BNBImageType)getType;
/**cast to attachment subclass. May throw. */
- (nullable BNBAttachment *)asAttachment;
/**cast to cubemap subclass. May throw. */
- (nullable BNBCubemap *)asCubemap;
/**cast to segmentation_mask subclass. May throw. */
- (nullable BNBSegmentationMask *)asSegmentationMask;
/**cast to texture subclass. May throw. */
- (nullable BNBTexture *)asTexture;
/**cast to camera_texture subclass. May throw. */
- (nullable BNBCameraTexture *)asCameraTexture;
/**cast to video subclass. May throw. */
- (nullable BNBVideo *)asVideo;
/**cast to weighted_lut subclass. May throw. */
- (nullable BNBWeightedLut *)asWeightedLut;
/**cast to text_texture subclass. May throw. */
- (nullable BNBTextTexture *)asTextTexture;
- (nullable BNBProceduralTexture *)asProceduralTexture;
@end
Swift
class BNBImage : NSObject
Undocumented
-
Declaration
Objective-C
- (nonnull NSString *)getName;
Swift
func getName() -> String
Return Value
image name (string)
-
Return Value
image type. type of image subclass (enum, can be attachment, cubemap, segmentation_mask, texture, camera_texture, video, weighted_lut)
-
cast to attachment subclass. May throw.
Declaration
Objective-C
- (nullable BNBAttachment *)asAttachment;
Swift
func asAttachment() -> BNBAttachment?
-
cast to cubemap subclass. May throw.
-
cast to segmentation_mask subclass. May throw.
Declaration
Objective-C
- (nullable BNBSegmentationMask *)asSegmentationMask;
Swift
func asSegmentationMask() -> BNBSegmentationMask?
-
cast to texture subclass. May throw.
-
cast to camera_texture subclass. May throw.
Declaration
Objective-C
- (nullable BNBCameraTexture *)asCameraTexture;
Swift
func asCameraTexture() -> BNBCameraTexture?
-
cast to weighted_lut subclass. May throw.
Declaration
Objective-C
- (nullable BNBWeightedLut *)asWeightedLut;
Swift
func asWeightedLut() -> BNBWeightedLut?
-
cast to text_texture subclass. May throw.
Declaration
Objective-C
- (nullable BNBTextTexture *)asTextTexture;
Swift
func asTextTexture() -> BNBTextTexture?
-
Undocumented
Declaration
Objective-C
- (nullable BNBProceduralTexture *)asProceduralTexture;
Swift
func asProceduralTexture() -> BNBProceduralTexture?