Banuba SDK
BNBAttachment.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file was generated by Djinni from scene.djinni
3 
4 #import "BNBAttachmentInfo.h"
5 #import "BNBAttachmentType.h"
6 #import "BNBPixelFormatType.h"
8 #import "BNBVec4.h"
9 #import <Foundation/Foundation.h>
10 @class BNBImage;
11 
12 
13 /**Class, represents render target attachment. Subclass of image */
14 
15 #ifndef DJINNI_EXPORT
16  #define DJINNI_EXPORT __attribute__((__visibility__("default")))
17 #endif
18 
20 @interface BNBAttachment : NSObject
21 
22 /**@return attachment type (attachment_type). Can be color, or depth */
23 - (BNBAttachmentType)getAttachmentType;
24 
25 /**@param type (attachment_type). Can be color, or depth */
26 - (void)setType:(BNBAttachmentType)type;
27 
28 /**@param color (vec4). Also implisity set attachment load behaviour to clear. */
29 - (void)setClearColor:(nonnull BNBVec4 *)color;
30 
31 /**@return attachment clear color (vec4) */
32 - (nonnull BNBVec4 *)getClearColor;
33 
34 /**
35  *set attachment width
36  *@param width (int)
37  */
38 - (void)setWidth:(int32_t)value;
39 
40 /**
41  *set attachment height
42  *@param height (int)
43  */
44 - (void)setHeight:(int32_t)value;
45 
46 /**@return attachment width (int) */
47 - (int32_t)getWidth;
48 
49 /**@return attachment height (int) */
50 - (int32_t)getHeight;
51 
52 - (void)setInfo:(nonnull BNBAttachmentInfo *)info;
53 
54 - (nonnull BNBAttachmentInfo *)getInfo;
55 
56 /**set attachment pixel format */
57 - (void)setFormat:(BNBPixelFormatType)format;
58 
59 /**@return attachment pixel format */
60 - (BNBPixelFormatType)getFormat;
61 
62 /**
63  *set attachment texture filtering mode
64  *param mode (texture_filtering_mode)
65  */
66 - (void)setFilteringMode:(BNBTextureFilteringMode)value;
67 
68 /**@return filtering mode (texture_filtering_mode) */
69 - (BNBTextureFilteringMode)getFilteringMode;
70 
71 /**@return upcast to base type */
72 - (nullable BNBImage *)asImage;
73 
74 @end
BNBAttachment
Class, represents render target attachment.
Definition: BNBAttachment.h:20
BNBAttachmentInfo.h
BNBImage
Definition: BNBImage.h:24
-[BNBAttachment getWidth]
int32_t getWidth()
BNBAttachmentType.h
-[BNBAttachment getAttachmentType]
BNBAttachmentType getAttachmentType()
-[BNBAttachment asImage]
nullable BNBImage * asImage()
DJINNI_EXPORT
#define DJINNI_EXPORT
for order of values in action units array see action_units_indices enum
Definition: BNBActionUnits.h:9
-[BNBAttachment getFormat]
BNBPixelFormatType getFormat()
BNBVec4.h
BNBAttachmentInfo
Definition: BNBAttachmentInfo.h:16
BNBTextureFilteringMode.h
-[BNBAttachment getClearColor]
nonnull BNBVec4 * getClearColor()
-[BNBAttachment getInfo]
nonnull BNBAttachmentInfo * getInfo()
BNBVec4
Definition: BNBVec4.h:12
-[BNBAttachment getFilteringMode]
BNBTextureFilteringMode getFilteringMode()
-[BNBAttachment getHeight]
int32_t getHeight()
BNBPixelFormatType.h