Defines the fill parameters for drawn objects.
More...
#include <Luminous/Style.hpp>
Defines the fill parameters for drawn objects.
- See Also
- Stroke
| Luminous::Fill::Fill |
( |
Fill && |
f | ) |
|
|
inline |
Move constructor.
- Parameters
-
| Luminous::Fill::Fill |
( |
const Fill & |
f | ) |
|
|
inline |
Copy constructor.
- Parameters
-
Get the fill color.
- Returns
- fill color
| bool Luminous::Fill::hasTextures |
( |
| ) |
const |
|
inline |
Does the style contain any textures.
- Returns
- true if the style has textures; otherwise false
| bool Luminous::Fill::hasTranslucentTextures |
( |
| ) |
const |
|
inline |
Does the style contain translucent textures.
Translucent textures cause that any drawing operations using the style will not be re-ordered for performance.
- Returns
- true if the style has translucent textures; otherwise false
| Fill& Luminous::Fill::operator= |
( |
Fill && |
f | ) |
|
|
inline |
Move assignment operator.
- Parameters
-
- Returns
- reference to this
| Fill& Luminous::Fill::operator= |
( |
const Fill & |
f | ) |
|
|
inline |
Assignment operator.
- Parameters
-
- Returns
- reference to this
Shader program to be used for fill.
- Returns
- fill shader program
| void Luminous::Fill::removeShaderUniform |
( |
const QByteArray & |
name | ) |
|
|
inline |
Remove shader uniform.
- Parameters
-
| name | Name of the uniform to be removed |
Sets the color of the fill.
- Parameters
-
| void Luminous::Fill::setDefaultProgram |
( |
| ) |
|
|
inline |
Sets the fill program to default.
This function sets the fill shader to the default Cornerstone shader.
Sets the shader program.
- Parameters
-
template<typename T >
| void Luminous::Fill::setShaderUniform |
( |
const QByteArray & |
name, |
|
|
const T & |
value |
|
) |
| |
|
inline |
Add shader uniform.
- Parameters
-
| name | Name for the uniform |
| value | Value of the uniform |
Sets default fill texture.
Internally this ties the given texture to the identifier "tex".
- Parameters
-
| texture | Texture to be used for filling |
| void Luminous::Fill::setTexture |
( |
const QByteArray & |
name, |
|
|
const Texture & |
texture |
|
) |
| |
|
inline |
Sets fill texture with name.
- Parameters
-
| name | Name to use in shader to refer to texture |
| texture | Texture to be tied with the name |
| const Texture * Luminous::Fill::texture |
( |
const QByteArray & |
name | ) |
|
|
inline |
Returns the texture tied to given name.
- Parameters
-
| name | Name to search from textures |
- Returns
- Pointer to texture or nullptr if not found.