Go to the source code of this file.
Classes | |
| struct | ui::Renderable |
| An abstract interface for arbitrary renderable objects. More... | |
Typedefs | |
| typedef std::function< color_t(color_t color, const Coords &coords, const Size &size)> | ui::shader_oneframe_t |
| A pixel shader that's independent of the current time. | |
| typedef std::function< color_t(color_t color, const Coords &coords, const Size &size, time_t time)> | ui::shader_animated_t |
| A pixel shader that may update based on the current time. | |
| typedef shader_animated_t | ui::shader_t |
| A pixel shader that may or may not update based on the current time. | |
A pixel shader that may update based on the current time.
Pixel shaders are run on a per-pixel basis and do not have access to previous data or other pixels.
| color | The color of the current pixel, before any shader is applied. |
| coords | The [x,y] coordinates of the pixel, relative to the renderable this shader is applied to. |
| size | The [width,height] size of the renderable. |
| time | The current time in milliseconds. |
A pixel shader that's independent of the current time.
Pixel shaders are run on a per-pixel basis and do not have access to previous data or other pixels.
| color | The color of the current pixel, before any shader is applied. |
| coords | The [x,y] coordinates of the pixel, relative to the renderable this shader is applied to. |
| size | The [width,height] size of the renderable. |
A pixel shader that may or may not update based on the current time.
Pixel shaders are run on a per-pixel basis and do not have access to previous data or other pixels.
| color | The color of the current pixel, before any shader is applied. |
| coords | The [x,y] coordinates of the pixel, relative to the renderable this shader is applied to. |
| size | The [width,height] size of the renderable. |
| time | The current time in milliseconds. |