Class UniformList

A class that stores a list of Uniform variables and implements their sending to the shader.

Methods

UniformList:init () The public constructor.
UniformList:set (name, ...) Set one or more any type values into uniform list.
UniformList:set_color (name, ...) Set one or more color values into uniform list.
UniformList:set_matrix (name, object) Set matrix object into uniform list.
UniformList:set_vector (name, object) Set vector object into uniform list.
UniformList:get (name) Get Uniform variable from list.
UniformList:remove (name) Remove Uniform variable from list.
UniformList:send_to (shader[, concat_str='']) Send all Uniform values from the list to the Shader.


Methods

UniformList:init ()
The public constructor.
UniformList:set (name, ...)
Set one or more any type values into uniform list.

Parameters:

  • name string
  • ... See shader:send(name, ...)
UniformList:set_color (name, ...)
Set one or more color values into uniform list.

Parameters:

  • name string
  • ... See shader:sendColor(name, ...)
UniformList:set_matrix (name, object)
Set matrix object into uniform list.

Parameters:

  • name string
  • object ml.mat4 Matrix of the menori.ml
UniformList:set_vector (name, object)
Set vector object into uniform list.

Parameters:

  • name string
  • object ml.vec Vector of the menori.ml.
UniformList:get (name)
Get Uniform variable from list.

Parameters:

Returns:

    table {[constant]=boolean,[type]=number,[value]=table}
UniformList:remove (name)
Remove Uniform variable from list.

Parameters:

UniformList:send_to (shader[, concat_str=''])
Send all Uniform values from the list to the Shader.

Parameters:

  • shader LOVE Shader
  • concat_str A string to be added before each Uniform name. (default '')
generated by LDoc 1.4.6 Last updated 2023-03-21 17:41:24