BNBAttachment
Objective-C
@interface BNBAttachment : NSObject
/**@return attachment type (attachment_type). Can be color, or depth */
- (BNBAttachmentType)getAttachmentType;
/**@param type (attachment_type). Can be color, or depth */
- (void)setType:(BNBAttachmentType)type;
/**@param color (vec4). Also implisity set attachment load behaviour to clear. */
- (void)setClearColor:(nonnull BNBVec4 *)color;
/**@return attachment clear color (vec4) */
- (nonnull BNBVec4 *)getClearColor;
/**
*set attachment width
*@param width (int)
*/
- (void)setWidth:(int32_t)value;
/**
*set attachment height
*@param height (int)
*/
- (void)setHeight:(int32_t)value;
/**@return attachment width (int) */
- (int32_t)getWidth;
/**@return attachment height (int) */
- (int32_t)getHeight;
- (void)setInfo:(nonnull BNBAttachmentInfo *)info;
- (nonnull BNBAttachmentInfo *)getInfo;
/**set attachment pixel format */
- (void)setFormat:(BNBPixelFormatType)format;
/**@return attachment pixel format */
- (BNBPixelFormatType)getFormat;
/**
*set attachment texture filtering mode
*param mode (texture_filtering_mode)
*/
- (void)setFilteringMode:(BNBTextureFilteringMode)value;
/**@return filtering mode (texture_filtering_mode) */
- (BNBTextureFilteringMode)getFilteringMode;
/**@return upcast to base type */
- (nullable BNBImage *)asImage;
@end
Swift
class BNBAttachment : NSObject
Undocumented
-
Declaration
Objective-C
- (BNBAttachmentType)getAttachmentType;Swift
func getType() -> BNBAttachmentTypeReturn Value
attachment type (attachment_type). Can be color, or depth
-
Declaration
Objective-C
- (void)setType:(BNBAttachmentType)type;Swift
func setType(_ type: BNBAttachmentType)Parameters
type(attachment_type). Can be color, or depth
-
set attachment width
Declaration
Objective-C
- (void)setWidth:(int32_t)value;Swift
func setWidth(_ value: Int32)Parameters
width(int)
-
set attachment height
Declaration
Objective-C
- (void)setHeight:(int32_t)value;Swift
func setHeight(_ value: Int32)Parameters
height(int)
-
Declaration
Objective-C
- (int32_t)getWidth;Swift
func getWidth() -> Int32Return Value
attachment width (int)
-
Declaration
Objective-C
- (int32_t)getHeight;Swift
func getHeight() -> Int32Return Value
attachment height (int)
-
Undocumented
Declaration
Objective-C
- (void)setInfo:(nonnull BNBAttachmentInfo *)info;Swift
func setInfo(_ info: BNBAttachmentInfo) -
Undocumented
Declaration
Objective-C
- (nonnull BNBAttachmentInfo *)getInfo;Swift
func getInfo() -> BNBAttachmentInfo -
set attachment pixel format
Declaration
Objective-C
- (void)setFormat:(BNBPixelFormatType)format;Swift
func setFormat(_ format: BNBPixelFormatType) -
Declaration
Objective-C
- (BNBPixelFormatType)getFormat;Swift
func getFormat() -> BNBPixelFormatTypeReturn Value
attachment pixel format
-
set attachment texture filtering mode param mode (texture_filtering_mode)
Declaration
Objective-C
- (void)setFilteringMode:(BNBTextureFilteringMode)value;Swift
func setFilteringMode(_ value: BNBTextureFilteringMode) -
Declaration
Objective-C
- (BNBTextureFilteringMode)getFilteringMode;Swift
func getFilteringMode() -> BNBTextureFilteringModeReturn Value
filtering mode (texture_filtering_mode)
BNBAttachment Class Reference