Style object for giving rendering parameters to the RenderContext Style objects acts as a collection of fill and stroke parameters and shader uniforms. More...
#include <Luminous/Style.hpp>
Public Member Functions | |
| Fill & | fill () |
| Fill object of the style. | |
| const Fill & | fill () const |
| Fill object of the style. | |
| const Radiant::Color & | fillColor () const |
| Returns the fill color. | |
| const Luminous::Program * | fillProgram () const |
| Returns the shader program used for fill. | |
| Style & | operator= (Style &&s) |
| Style & | operator= (const Style &s) |
| void | setDefaultFillProgram () |
| Sets the fill program to default. | |
| void | setDefaultStrokeProgram () |
| Sets the stroke program to default. | |
| void | setFillColor (const Radiant::Color &c) |
| Sets the fill color. More... | |
| void | setFillColor (float r, float g, float b, float a) |
| Sets the fill color. More... | |
| void | setFillProgram (const Luminous::Program &program) |
| Sets the shader program used for fill. | |
| template<typename T > | |
| void | setFillShaderUniform (const QByteArray &name, const T &value) |
| Sets fill shader uniform. More... | |
| void | setStrokeColor (float r, float g, float b, float a) |
| Sets the stroke color. More... | |
| void | setStrokeColor (const Radiant::Color &color) |
| Sets the stroke color. More... | |
| void | setStrokeProgram (Luminous::Program &program) |
| Sets the shader program used for stroke. | |
| template<typename T > | |
| void | setStrokeShaderUniform (const QByteArray &name, const T &value) |
| Sets stroke shader uniform. More... | |
| void | setStrokeWidth (float width) |
| Sets the width of the stroke. More... | |
| void | setTexture (const Luminous::Texture &texture) |
| Sets default fill texture. More... | |
| void | setTexture (const QByteArray &name, const Luminous::Texture &texture) |
| Sets fill texture with name. More... | |
| Stroke & | stroke () |
| Stroke object of the style. | |
| const Stroke & | stroke () const |
| Stroke object of the style. | |
| const Radiant::Color & | strokeColor () const |
| Returns the stroke color of the. | |
| const Luminous::Program * | strokeProgram () const |
| Returns the shader program used for stroke. | |
| float | strokeWidth () const |
| Returns the width of the stroke. | |
| Style (Style &&s) | |
| Style (const Style &s) | |
Style object for giving rendering parameters to the RenderContext Style objects acts as a collection of fill and stroke parameters and shader uniforms.
|
inline |
|
inline |
Sets the fill color.
| r | Red intensity |
| g | Green intensity |
| b | Blue intensity |
| a | Opacity (alpha) |
|
inline |
Sets fill shader uniform.
| name | Name of the uniform |
| value | Value of the uniform |
|
inline |
Sets the stroke color.
| r | Red intensity |
| g | Green intensity |
| b | Blue intensity |
| a | Opacity (alpha) |
|
inline |
Sets the stroke color.
| color | Stroke color |
|
inline |
Sets stroke shader uniform.
| name | Name of the uniform |
| value | Value of the uniform |
|
inline |
Sets the width of the stroke.
| width | The stroke width |
|
inline |
Sets default fill texture.
Internally this ties the given texture to the identifier "tex".
| texture | Texture to be used for filling |
|
inline |
Sets fill texture with name.
| name | Name to use in shader to refer to texture |
| texture | Texture to be tied with the name |