Banuba SDK
BNBRenderTarget.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 <Foundation/Foundation.h>
5 @class BNBImage;
6 
7 
8 /** Class, represents render_target (render pass) interface */
9 
10 #ifndef DJINNI_EXPORT
11  #define DJINNI_EXPORT __attribute__((__visibility__("default")))
12 #endif
13 
15 @interface BNBRenderTarget : NSObject
16 
17 /**@return render target name (string) */
18 - (nonnull NSString *)getName;
19 
20 /**@param samples (int) msaa samples counts */
21 - (void)setSamplesCount:(int32_t)samples;
22 
23 /**@return msaa samples counts */
24 - (int32_t)getSamplesCount;
25 
26 /**
27  *set render target surface extent
28  *@param width (int): surface width
29  *@param height (int): surface height
30  */
31 - (void)setExtent:(int32_t)width
32  height:(int32_t)height;
33 
34 /**@return render target width (int) */
35 - (int32_t)getWidth;
36 
37 /**@return render target height (int) */
38 - (int32_t)getHeight;
39 
40 /**
41  *set render target surface extent scale
42  *@param width (int): surface width scale
43  *@param height (int): surface height scale
44  */
45 - (void)setScale:(float)scale;
46 
47 /**@return render target width scale (int) */
48 - (float)getScale;
49 
50 /**
51  *add color or depth attachment to render target
52  *@param attachment (image): surface attachment
53  */
54 - (void)addAttachment:(nullable BNBImage *)attachment;
55 
56 /**
57  *removes color or depth attachment from render target, if it was aded early
58  *@param attachment (image): surface attachment
59  */
60 - (void)removeAttachment:(nullable BNBImage *)attachment;
61 
62 /**@returns list of added attachments (list<image>). */
63 - (nonnull NSArray<BNBImage *> *)getAttachments;
64 
65 @end
BNBImage
Definition: BNBImage.h:24
-[BNBRenderTarget getHeight]
int32_t getHeight()
-[BNBRenderTarget getName]
nonnull NSString * getName()
-[BNBRenderTarget getWidth]
int32_t getWidth()
-[BNBRenderTarget getSamplesCount]
int32_t getSamplesCount()
-[BNBRenderTarget getScale]
float getScale()
-[BNBRenderTarget getAttachments]
nonnull NSArray< BNBImage * > * getAttachments()
DJINNI_EXPORT
#define DJINNI_EXPORT
Class, represents render_target (render pass) interface.
Definition: BNBRenderTarget.h:11
BNBRenderTarget
Definition: BNBRenderTarget.h:15