openrndr / org.openrndr.draw / Shader

Shader

interface Shader

Functions

begin

abstract fun begin(): Unit

block

abstract fun block(blockName: String, block: UniformBlock): Unit

blockLayout

abstract fun blockLayout(blockName: String): UniformBlockLayout?

createBlock

abstract fun createBlock(blockName: String): UniformBlock

end

abstract fun end(): Unit

hasUniform

abstract fun hasUniform(name: String): Boolean

uniform

abstract fun uniform(name: String, value: Matrix44): Unit
abstract fun uniform(name: String, value: ColorRGBa): Unit
abstract fun uniform(name: String, value: Vector4): Unit
abstract fun uniform(name: String, value: Vector3): Unit
abstract fun uniform(name: String, value: Vector2): Unit
abstract fun uniform(name: String, x: Float, y: Float, z: Float, w: Float): Unit
abstract fun uniform(name: String, x: Float, y: Float, z: Float): Unit
abstract fun uniform(name: String, x: Float, y: Float): Unit
abstract fun uniform(name: String, value: Double): Unit
abstract fun uniform(name: String, value: Float): Unit
abstract fun uniform(name: String, value: Int): Unit
abstract fun uniform(name: String, value: Boolean): Unit
abstract fun uniform(name: String, value: Array<Vector4>): Unit
abstract fun uniform(name: String, value: Array<Vector3>): Unit
abstract fun uniform(name: String, value: Array<Vector2>): Unit
abstract fun uniform(name: String, value: FloatArray): Unit

Companion Object Functions

createFromCode

fun createFromCode(vsCode: String, fsCode: String): Shader

createFromUrls

fun createFromUrls(vsUrl: String, fsUrl: String): Shader

Inheritors

ShaderGL3

class ShaderGL3 : Shader