Defines the stroke parameters for drawn objects. More...
#include <Luminous/Style.hpp>
Public Member Functions | |
| void | clear () |
| Clear the stroke to default state (black, zero width) | |
| const Radiant::Color & | color () const |
| Returns the color of the stroke. More... | |
| Stroke & | operator= (Stroke &&s) |
| Move assignment operator. More... | |
| Stroke & | operator= (const Stroke &s) |
| Assignment operator. More... | |
| const Luminous::Program * | program () const |
| Shader program to be used for stroke. More... | |
| void | removeShaderUniform (const QByteArray &name) |
| Remove a shader uniform. More... | |
| void | setColor (const Radiant::Color &color) |
| Sets the color of the stroke. More... | |
| void | setDefaultProgram () |
| Sets the stroke program to default. More... | |
| void | setProgram (Luminous::Program &program) |
| Sets the shader program. More... | |
| template<typename T > | |
| void | setShaderUniform (const QByteArray &name, const T &value) |
| Set the value of a shader uniform for the stroke program. More... | |
| void | setWidth (float width) |
| Sets the width of the stroke. More... | |
| Stroke () | |
| Construct default stroke (black, zero width) | |
| Stroke (Stroke &&s) | |
| Move constructor. More... | |
| Stroke (const Stroke &s) | |
| Copy constructor. More... | |
|
const std::map< QByteArray, ShaderUniform > * | uniforms () const |
| Returns the mapping from names to shader uniforms. | |
| float | width () const |
| Returns the width of the stroke. More... | |
Defines the stroke parameters for drawn objects.
|
inline |
Move constructor.
| s | stroke to move |
|
inline |
Copy constructor.
| s | stroke to copy |
|
inline |
Returns the color of the stroke.
Move assignment operator.
| s | stroke to move |
Assignment operator.
| s | stroke to copy |
|
inline |
Shader program to be used for stroke.
|
inline |
Remove a shader uniform.
| name | Name of the uniform to be removed |
|
inline |
Sets the color of the stroke.
| color | stroke color |
|
inline |
Sets the stroke program to default.
This functions sets the stroke to use the default stroke shader for Cornerstone.
|
inline |
Sets the shader program.
| program | Program to use |
|
inline |
Set the value of a shader uniform for the stroke program.
| name | Name for the uniform |
| value | Value of the uniform |
|
inline |
Sets the width of the stroke.
| width | stroke width |
|
inline |
Returns the width of the stroke.