Banuba SDK
BNBParameter.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 "BNBMat2x4.h"
5 #import "BNBMat3x4.h"
6 #import "BNBMat4x4.h"
7 #import "BNBVec3.h"
8 #import "BNBVec4.h"
9 #import <Foundation/Foundation.h>
10 @class BNBParameter;
11 
12 
13 /**Class, represent shader parameter. */
14 
15 #ifndef DJINNI_EXPORT
16  #define DJINNI_EXPORT __attribute__((__visibility__("default")))
17 #endif
18 
20 @interface BNBParameter : NSObject
21 
22 /**
23  *Fabric method for parameter creating.
24  *@param name (string): parameter name.
25  *@return created parameter (parameter)
26  */
27 + (nullable BNBParameter *)create:(nonnull NSString *)name;
28 
29 /**@return parameter name (string) */
30 - (nonnull NSString *)getName;
31 
32 /**
33  *set parameter integer value.
34  *@param value (int)
35  */
36 - (void)setInteger:(int32_t)value;
37 
38 /**return parameter int value. Throw is type is not equal type, which was added earlier. */
39 - (int32_t)getInteger;
40 
41 /**
42  *set parameter real value.
43  *@param value (float)
44  */
45 - (void)setReal:(float)value;
46 
47 /**return parameter f32 value. Throw is type is not equal type, which was added earlier. */
48 - (float)getReal;
49 
50 /**
51  *set x of vec3/vec4 value only.
52  *@param value (f32)
53  */
54 - (void)setX:(float)value;
55 
56 /**
57  *set y of vec3/vec4 value only.
58  *@param value (f32)
59  */
60 - (void)setY:(float)value;
61 
62 /**
63  *set z of vec3/vec4 value only.
64  *@param value (f32)
65  */
66 - (void)setZ:(float)value;
67 
68 /**
69  *set w of vec4 value only.
70  *@param value (f32)
71  */
72 - (void)setW:(float)value;
73 
74 /**
75  *set parameter vec3 value.
76  *@param value (vec3)
77  */
78 - (void)setVector3:(nonnull BNBVec3 *)value;
79 
80 /**return parameter vec3 value. Throw is type is not equal type, which was added earlier. */
81 - (nonnull BNBVec3 *)getVector3;
82 
83 /**
84  *set parameter vec4 value.
85  *@param value (vec4)
86  */
87 - (void)setVector4:(nonnull BNBVec4 *)value;
88 
89 /**return parameter vec4 value. Throw is type is not equal type, which was added earlier. */
90 - (nonnull BNBVec4 *)getVector4;
91 
92 /**
93  *set parameter mat2x4 value.
94  *@param value (mat2x4)
95  */
96 - (void)setMat2x4:(nonnull BNBMat2x4 *)value;
97 
98 /**return parameter mat2x4 value. Throw is type is not equal type, which was added earlier. */
99 - (nonnull BNBMat2x4 *)getMat2x4;
100 
101 /**
102  *set parameter mat3x4 value.
103  *@param value (mat3x4)
104  */
105 - (void)setMat3x4:(nonnull BNBMat3x4 *)value;
106 
107 /**return parameter mat3x4 value. Throw is type is not equal type, which was added earlier. */
108 - (nonnull BNBMat3x4 *)getMat3x4;
109 
110 /**
111  *set parameter mat4x4 value.
112  *@param value (mat4x4)
113  */
114 - (void)setMat4x4:(nonnull BNBMat4x4 *)value;
115 
116 /**return parameter mat4x4 value. Throw is type is not equal type, which was added earlier. */
117 - (nonnull BNBMat4x4 *)getMat4x4;
118 
119 @end
-[BNBParameter getMat4x4]
nonnull BNBMat4x4 * getMat4x4()
return parameter mat4x4 value.
BNBMat4x4.h
-[BNBParameter getName]
nonnull NSString * getName()
-[BNBParameter getMat2x4]
nonnull BNBMat2x4 * getMat2x4()
return parameter mat2x4 value.
BNBMat2x4.h
BNBParameter
Class, represent shader parameter.
Definition: BNBParameter.h:20
BNBMat3x4
Definition: BNBMat3x4.h:12
BNBMat4x4
Definition: BNBMat4x4.h:12
BNBMat2x4
Definition: BNBMat2x4.h:12
BNBMat3x4.h
DJINNI_EXPORT
#define DJINNI_EXPORT
for order of values in action units array see action_units_indices enum
Definition: BNBActionUnits.h:9
-[BNBParameter getInteger]
int32_t getInteger()
return parameter int value.
BNBVec3
Definition: BNBVec3.h:12
BNBVec4.h
-[BNBParameter getMat3x4]
nonnull BNBMat3x4 * getMat3x4()
return parameter mat3x4 value.
BNBVec3.h
-[BNBParameter getReal]
float getReal()
return parameter f32 value.
BNBVec4
Definition: BNBVec4.h:12
-[BNBParameter getVector3]
nonnull BNBVec3 * getVector3()
return parameter vec3 value.
-[BNBParameter getVector4]
nonnull BNBVec4 * getVector4()
return parameter vec4 value.