render primitive shapes using vertex array.
More...
#include <PrimitiveShapeRender.h>
|
| void | updateView (const sf::View &newView) |
| | update view in which shapes are rendered
|
| void | initializeClippingLayers () |
| | initialize clipping layers, must be called once
|
| uint32_t | setCurrentClippingLayer (const sf::FloatRect &mask) |
| | change of clipping layer
|
| void | clear () |
| | clear all shapes
|
| void | load (const LineFloat &line, const float thickness, const sf::Color &color=sf::Color::White) |
| | load thick line
|
| void | loadConnected (const LineFloat &line, const sf::Vector2f &previousLine, const sf::Vector2f &nextLine, const float thickness, const sf::Color &color=sf::Color::White) |
| | load thick line connected to another
|
| void | loadArrow (const LineFloat &arrow, const float thickness, const sf::Color color=sf::Color::White) |
| | load arrow shape
|
| void | load (const CircleFloat &circle, const float thickness, const sf::Color &color=sf::Color::White, const uint32_t sample=50) |
| void | loadFilled (const CircleFloat &circle, const sf::Color &color=sf::Color::White, const uint32_t sample=50) |
| template<size_t N> |
| void | load (const Polygon< N > &polygon, const float thickness, const sf::Color &color=sf::Color::White) |
| template<size_t N> |
| void | loadFilled (const Polygon< N > &polygon, const sf::Color &color=sf::Color::White) |
| void | load (const sf::FloatRect &box, const float thickness, const sf::Color &color=sf::Color::White) |
| void | loadFilled (const sf::FloatRect &box, const sf::Color &color=sf::Color::White) |
render primitive shapes using vertex array.
◆ clear()
| void sgui::PrimitiveShapeRender::clear |
( |
| ) |
|
◆ initializeClippingLayers()
| void sgui::PrimitiveShapeRender::initializeClippingLayers |
( |
| ) |
|
initialize clipping layers, must be called once
◆ load() [1/4]
| void sgui::PrimitiveShapeRender::load |
( |
const CircleFloat & | circle, |
|
|
const float | thickness, |
|
|
const sf::Color & | color = sf::Color::White, |
|
|
const uint32_t | sample = 50 ) |
load circle edge or filled circle. Sample is the number of points used to sample the circle.
◆ load() [2/4]
| void sgui::PrimitiveShapeRender::load |
( |
const LineFloat & | line, |
|
|
const float | thickness, |
|
|
const sf::Color & | color = sf::Color::White ) |
◆ load() [3/4]
template<size_t N>
| void sgui::PrimitiveShapeRender::load |
( |
const Polygon< N > & | polygon, |
|
|
const float | thickness, |
|
|
const sf::Color & | color = sf::Color::White ) |
load polygons edge or filled polygons
◆ load() [4/4]
| void sgui::PrimitiveShapeRender::load |
( |
const sf::FloatRect & | box, |
|
|
const float | thickness, |
|
|
const sf::Color & | color = sf::Color::White ) |
◆ loadArrow()
| void sgui::PrimitiveShapeRender::loadArrow |
( |
const LineFloat & | arrow, |
|
|
const float | thickness, |
|
|
const sf::Color | color = sf::Color::White ) |
◆ loadConnected()
| void sgui::PrimitiveShapeRender::loadConnected |
( |
const LineFloat & | line, |
|
|
const sf::Vector2f & | previousLine, |
|
|
const sf::Vector2f & | nextLine, |
|
|
const float | thickness, |
|
|
const sf::Color & | color = sf::Color::White ) |
load thick line connected to another
◆ loadFilled() [1/3]
| void sgui::PrimitiveShapeRender::loadFilled |
( |
const CircleFloat & | circle, |
|
|
const sf::Color & | color = sf::Color::White, |
|
|
const uint32_t | sample = 50 ) |
◆ loadFilled() [2/3]
template<size_t N>
| void sgui::PrimitiveShapeRender::loadFilled |
( |
const Polygon< N > & | polygon, |
|
|
const sf::Color & | color = sf::Color::White ) |
◆ loadFilled() [3/3]
| void sgui::PrimitiveShapeRender::loadFilled |
( |
const sf::FloatRect & | box, |
|
|
const sf::Color & | color = sf::Color::White ) |
◆ setCurrentClippingLayer()
| uint32_t sgui::PrimitiveShapeRender::setCurrentClippingLayer |
( |
const sf::FloatRect & | mask | ) |
|
◆ updateView()
| void sgui::PrimitiveShapeRender::updateView |
( |
const sf::View & | newView | ) |
|
update view in which shapes are rendered
◆ clipping
The documentation for this class was generated from the following files: