Package com.banuba.sdk.scene
Interface Parameter
- All Known Implementing Classes:
Parameter.CppProxy
public interface Parameter
Class, represent shader parameter.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Parameter
Fabric method for parameter creating.int
return parameter int value.return parameter mat2x4 value.return parameter mat3x4 value.return parameter mat4x4 value.getName()
float
getReal()
return parameter f32 value.return parameter vec3 value.return parameter vec4 value.void
setInteger
(int value) set parameter integer value.void
set parameter mat2x4 value.void
set parameter mat3x4 value.void
set parameter mat4x4 value.void
setReal
(float value) set parameter real value.void
setVector3
(Vec3 value) set parameter vec3 value.void
setVector4
(Vec4 value) set parameter vec4 value.void
setW
(float value) set w of vec4 value only.void
setX
(float value) set x of vec3/vec4 value only.void
setY
(float value) set y of vec3/vec4 value only.void
setZ
(float value) set z of vec3/vec4 value only.
-
Method Details
-
getName
- Returns:
- parameter name (string)
-
setInteger
void setInteger(int value) set parameter integer value.- Parameters:
value
- (int)
-
getInteger
int getInteger()return parameter int value. Throw is type is not equal type, which was added earlier. -
setReal
void setReal(float value) set parameter real value.- Parameters:
value
- (float)
-
getReal
float getReal()return parameter f32 value. Throw is type is not equal type, which was added earlier. -
setX
void setX(float value) set x of vec3/vec4 value only.- Parameters:
value
- (f32)
-
setY
void setY(float value) set y of vec3/vec4 value only.- Parameters:
value
- (f32)
-
setZ
void setZ(float value) set z of vec3/vec4 value only.- Parameters:
value
- (f32)
-
setW
void setW(float value) set w of vec4 value only.- Parameters:
value
- (f32)
-
setVector3
set parameter vec3 value.- Parameters:
value
- (vec3)
-
getVector3
return parameter vec3 value. Throw is type is not equal type, which was added earlier. -
setVector4
set parameter vec4 value.- Parameters:
value
- (vec4)
-
getVector4
return parameter vec4 value. Throw is type is not equal type, which was added earlier. -
setMat2x4
set parameter mat2x4 value.- Parameters:
value
- (mat2x4)
-
getMat2x4
return parameter mat2x4 value. Throw is type is not equal type, which was added earlier. -
setMat3x4
set parameter mat3x4 value.- Parameters:
value
- (mat3x4)
-
getMat3x4
return parameter mat3x4 value. Throw is type is not equal type, which was added earlier. -
setMat4x4
set parameter mat4x4 value.- Parameters:
value
- (mat4x4)
-
getMat4x4
return parameter mat4x4 value. Throw is type is not equal type, which was added earlier. -
create
Fabric method for parameter creating.- Parameters:
name
- (string): parameter name.- Returns:
- created parameter (parameter)
-