Package com.banuba.sdk.scene
Interface Parameter
-
- All Known Implementing Classes:
Parameter.CppProxy
public interface Parameter
Class, represent shader parameter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Parameter.CppProxy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Parameter
create(java.lang.String name)
Fabric method for parameter creating.int
getInteger()
return parameter int value.Mat2x4
getMat2x4()
return parameter mat2x4 value.Mat3x4
getMat3x4()
return parameter mat3x4 value.Mat4x4
getMat4x4()
return parameter mat4x4 value.java.lang.String
getName()
float
getReal()
return parameter f32 value.Vec3
getVector3()
return parameter vec3 value.Vec4
getVector4()
return parameter vec4 value.void
setInteger(int value)
set parameter integer value.void
setMat2x4(Mat2x4 value)
set parameter mat2x4 value.void
setMat3x4(Mat3x4 value)
set parameter mat3x4 value.void
setMat4x4(Mat4x4 value)
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 Detail
-
getName
@NonNull java.lang.String 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
void setVector3(@NonNull Vec3 value)
set parameter vec3 value.- Parameters:
value
- (vec3)
-
getVector3
@NonNull Vec3 getVector3()
return parameter vec3 value. Throw is type is not equal type, which was added earlier.
-
setVector4
void setVector4(@NonNull Vec4 value)
set parameter vec4 value.- Parameters:
value
- (vec4)
-
getVector4
@NonNull Vec4 getVector4()
return parameter vec4 value. Throw is type is not equal type, which was added earlier.
-
setMat2x4
void setMat2x4(@NonNull Mat2x4 value)
set parameter mat2x4 value.- Parameters:
value
- (mat2x4)
-
getMat2x4
@NonNull Mat2x4 getMat2x4()
return parameter mat2x4 value. Throw is type is not equal type, which was added earlier.
-
setMat3x4
void setMat3x4(@NonNull Mat3x4 value)
set parameter mat3x4 value.- Parameters:
value
- (mat3x4)
-
getMat3x4
@NonNull Mat3x4 getMat3x4()
return parameter mat3x4 value. Throw is type is not equal type, which was added earlier.
-
setMat4x4
void setMat4x4(@NonNull Mat4x4 value)
set parameter mat4x4 value.- Parameters:
value
- (mat4x4)
-
getMat4x4
@NonNull Mat4x4 getMat4x4()
return parameter mat4x4 value. Throw is type is not equal type, which was added earlier.
-
create
@Nullable static Parameter create(@NonNull java.lang.String name)
Fabric method for parameter creating.- Parameters:
name
- (string): parameter name.- Returns:
- created parameter (parameter)
-
-