WaveShader

The WAVE_SHADER implementation.

Properties

Link copied to clipboard
var ampX: Float?
Link copied to clipboard
var ampY: Float?
Link copied to clipboard

The diffuse color uniform property.

Link copied to clipboard
var freqX: Float?
Link copied to clipboard
var freqY: Float?
Link copied to clipboard
var id: ERROR CLASS: Symbol not found for UInt

The ID of the shader program.

Link copied to clipboard

Whether the shader is valid.

Link copied to clipboard
var locs: List<Int>

The locations of the shader attributes and uniforms.

Link copied to clipboard

The seconds uniform property.

Link copied to clipboard
var size: ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>??
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var texture: {raylib/Sampler2D?=} ERROR CLASS: Symbol not found for UInt??

The texture uniform property.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun getAttributeLocation(attributeName: String): Int

Gets the location of a shader attribute variable by name.

Link copied to clipboard

Gets the location of a shader uniform variable at its default name.

Link copied to clipboard
fun getLocation(uniformName: String): Int

Gets the location of a shader uniform variable by name.

Link copied to clipboard
fun getLocationAt(index: Int): Int

Gets the location of a shader uniform variable at the given index.

Link copied to clipboard
fun hasAttribute(attributeName: String): Boolean

Checks if a shader has a specific attribute variable.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun hasValue(uniformName: String): Boolean

Checks if a shader has a specific uniform variable.

Link copied to clipboard
fun removeValue(location: Int)

Removes a value for a shader uniform variable.

fun removeValue(uniformName: String)

Removes a value for a shader uniform variable by name.

Link copied to clipboard

Sets the location of a shader uniform variable to its default name.

Link copied to clipboard
fun setDefaultLocations(vararg uniformLocations: Shader.UniformLocation)

Sets the locations of multiple shader uniform variables to their default names.

Link copied to clipboard
fun setLocation(index: Int, location: Int)

Sets the location of a shader uniform variable at the given index.

fun setLocation(index: Int, uniformName: String)
fun setLocation(uniformLocation: Shader.UniformLocation, uniformName: String)

Sets the location of a shader uniform variable by name.

fun setLocation(uniformLocation: Shader.UniformLocation, location: Int)

Sets the location of a shader uniform variable.

Link copied to clipboard

Sets the locations of multiple shader uniform variables by name.

Link copied to clipboard
fun setValue(location: Int, value: ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>): ERROR CLASS: Unresolved name: memScoped

Sets a 2D Vector (Pair) value for a shader uniform variable.

fun setValue(location: Int, value: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>): ERROR CLASS: Unresolved name: memScoped

Sets a 3D Vector (Triple) value for a shader uniform variable.

fun setValue(location: Int, value: ERROR CLASS: Symbol not found for UInt): ERROR CLASS: Unresolved name: memScoped

Sets an unsigned integer value for a shader uniform variable.

fun setValue(location: Int, value: Any?)

Sets a value for a shader uniform variable. The type of the value is inferred at runtime. Supported types are: Boolean, Float, Double, Int, UInt, Pair, Triple, Quadruple, Matrix4, Texture2D, and Color.

fun setValue(location: Int, value: Boolean)

Sets a boolean value for a shader uniform variable.

fun setValue(location: Int, value: Double)

Sets a double value for a shader uniform variable. Performs conversion to float.

fun setValue(location: Int, value: Float): ERROR CLASS: Unresolved name: memScoped

Sets a float value for a shader uniform variable.

fun setValue(location: Int, value: FloatArray)

Sets a float array value for a shader uniform variable.

fun setValue(location: Int, value: Int): ERROR CLASS: Unresolved name: memScoped

Sets an integer value for a shader uniform variable.

fun setValue(location: Int, value: IntArray)

Sets an int array value for a shader uniform variable.

fun setValue(location: Int, value: Quadruple<Float, Float, Float, Float>): ERROR CLASS: Unresolved name: memScoped

Sets a 4D Vector (Quadruple) value for a shader uniform variable.

fun setValue(location: Int, value: Color)

Sets a color value for a shader uniform variable.

fun setValue(location: Int, value: Matrix4)

Sets a matrix value for a shader uniform variable.

fun setValue(location: Int, value: Texture2D)

Sets a texture value for a shader uniform variable.

fun setValue(uniformName: String, value: ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>)

Sets a 2D Vector (Pair) value for a shader uniform variable by name.

fun setValue(uniformName: String, value: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>)

Sets a 3D Vector (Triple) value for a shader uniform variable by name.

fun setValue(uniformName: String, value: ERROR CLASS: Symbol not found for UInt)

Sets an unsigned integer value for a shader uniform variable by name.

fun setValue(uniformName: String, value: Any)

Sets a value for a shader uniform variable by name. The type of the value is inferred at runtime. Supported types are: Boolean, Float, Double, Int, UInt, Pair, Triple, Quadruple, Matrix4, Texture2D, and Color.

fun setValue(uniformName: String, value: Boolean)

Sets a boolean value for a shader uniform variable by name.

fun setValue(uniformName: String, value: Float)

Sets a float value for a shader uniform variable by name.

fun setValue(uniformName: String, value: FloatArray)

Sets a float array value for a shader uniform variable by name.

fun setValue(uniformName: String, value: Int)

Sets an integer value for a shader uniform variable by name.

fun setValue(uniformName: String, value: IntArray)

Sets an int array value for a shader uniform variable by name.

fun setValue(uniformName: String, value: Quadruple<Float, Float, Float, Float>)

Sets a 4D Vector (Quadruple) value for a shader uniform variable by name.

fun setValue(uniformName: String, value: Color)

Sets a color value for a shader uniform variable by name.

fun setValue(uniformName: String, value: Matrix4)

Sets a matrix value for a shader uniform variable by name.

fun setValue(uniformName: String, value: Texture2D)

Sets a texture value for a shader uniform variable by name.

fun setValue(location: Int, value: Any, type: Shader.DataType): ERROR CLASS: Unresolved name: memScoped

Sets a value for a shader uniform variable.

fun setValue(uniformName: String, value: Any, type: Shader.DataType)

Sets a value for a shader uniform variable by name.

Link copied to clipboard
fun unload()

Unloads the shader from VRAM.