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:

uniformlist:set_vector (name, object)
Set vector object into uniform list.

Parameters:

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.5.0 Last updated 2025-08-18 00:01:40