class ScriptedFlxRuntimeShader
package funkin.modding.base
extends FlxRuntimeShader › FlxGraphicsShader › GraphicsShader › Shader
implements HScriptedClass
Available on all platforms
A script that can be tied to an FlxRuntimeShader. Create a scripted class that extends FlxRuntimeShader to use this.
Static methods
staticinit(clsName:String, ?fragmentSource:String, ?vertexSource:String, ?glslVersion:String):ScriptedFlxRuntimeShader
Initializes a scripted class instance using the given scripted class name and constructor arguments.
staticlistScriptClasses():Array<String>
Returns a list of all the scripted classes which extend this class.
staticscriptStaticCall(clsName:String, funcName:String):Dynamic
Call a custom static function on a scripted class, by the given name, with the given arguments.
staticscriptStaticGet(clsName:String, fieldName:String):Dynamic
Retrieves a custom static variable on a scripted class, by the given name.
staticscriptStaticSet(clsName:String, fieldName:String, ?fieldValue:Dynamic):Dynamic
Sets the value of a custom static variable on a scripted class, by the given name.
Constructor
Methods
getBitmapData(name:String):Null<BitmapData>
Polymod HScriptedClass override of getBitmapData.
Retrieve a bitmap data parameter of the shader.
Parameters:
name | The name of the parameter to retrieve. |
|---|
Returns:
The value of the parameter.
getBool(name:String):Null<Bool>
Polymod HScriptedClass override of getBool.
Retrieve a boolean parameter of the shader.
Parameters:
name | The name of the parameter to retrieve. |
|---|
Returns:
The value of the parameter.
getBoolArray(name:String):Null<Array<Bool>>
Polymod HScriptedClass override of getBoolArray.
Retrieve a boolean array parameter of the shader.
Parameters:
name | The name of the parameter to retrieve. |
|---|
Returns:
The value of the parameter.
getFloat(name:String):Null<Float>
Polymod HScriptedClass override of getFloat.
Retrieve a float parameter of the shader.
Parameters:
name | The name of the parameter to retrieve. |
|---|
Returns:
The value of the parameter.
getFloatArray(name:String):Null<Array<Float>>
Polymod HScriptedClass override of getFloatArray.
Retrieve a float array parameter of the shader.
Parameters:
name | The name of the parameter to retrieve. |
|---|
Returns:
The value of the parameter.
getInt(name:String):Null<Int>
Polymod HScriptedClass override of getInt.
Retrieve an integer parameter of the shader.
Parameters:
name | The name of the parameter to retrieve. |
|---|
Returns:
The value of the parameter.
getIntArray(name:String):Null<Array<Int>>
Polymod HScriptedClass override of getIntArray.
Retrieve an integer array parameter of the shader.
Parameters:
name | The name of the parameter to retrieve. |
|---|
Returns:
The value of the parameter.
scriptCall(funcName:String, ?funcArgs:Array<Dynamic>):Dynamic
Calls a function of the scripted class with the given name and arguments.
scriptSet(varName:String, ?varValue:Dynamic):Dynamic
Directly modifies the value of a local variable of a scripted class.
setBitmapData(name:String, value:BitmapData):Void
Polymod HScriptedClass override of setBitmapData.
Modify a bitmap data parameter of the shader.
Parameters:
name | The name of the parameter to modify. |
|---|---|
value | The new value to use. |
setBool(name:String, value:Bool):Void
Polymod HScriptedClass override of setBool.
Modify a boolean parameter of the shader.
Parameters:
name | The name of the parameter to modify. |
|---|---|
value | The new value to use. |
setBoolArray(name:String, value:Array<Bool>):Void
Polymod HScriptedClass override of setBoolArray.
Modify a boolean array parameter of the shader.
Parameters:
name | The name of the parameter to modify. |
|---|---|
value | The new value to use. |
setFloat(name:String, value:Float):Void
Polymod HScriptedClass override of setFloat.
Modify a float parameter of the shader.
Parameters:
name | The name of the parameter to modify. |
|---|---|
value | The new value to use. |
setFloatArray(name:String, value:Array<Float>):Void
Polymod HScriptedClass override of setFloatArray.
Modify a float array parameter of the shader.
Parameters:
name | The name of the parameter to modify. |
|---|---|
value | The new value to use. |
setInt(name:String, value:Int):Void
Polymod HScriptedClass override of setInt.
Modify an integer parameter of the shader.
Parameters:
name | The name of the parameter to modify. |
|---|---|
value | The new value to use. |
setIntArray(name:String, value:Array<Int>):Void
Polymod HScriptedClass override of setIntArray.
Modify an integer array parameter of the shader.
Parameters:
name | The name of the parameter to modify. |
|---|---|
value | The new value to use. |