This class provides functionality for rendering an image, a layer, or a texture onto the current render target.
More...
|
| TextureQuadRenderer (std::shared_ptr< Shader > shader) |
|
| TextureQuadRenderer (Shader &&shader) |
|
Shader & | getShader () |
|
const Shader & | getShader () const |
|
void | render (const Image &image, const ivec2 &pos, const size2_t &canvasSize, LayerType layerType=LayerType::Color, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
| renders an image at position pos onto the current canvas. The image dimensions determine the covered area in pixel. The anchor point of the image is in the lower left corner. By default, the first color layer is rendered.
|
|
void | render (const Image &image, const std::vector< ivec2 > &pos, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, LayerType layerType=LayerType::Color, const mat4 &transformation=mat4(1)) |
|
void | render (const std::shared_ptr< Image > &image, const ivec2 &pos, const size2_t &canvasSize, LayerType layerType=LayerType::Color, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
|
void | render (const std::shared_ptr< Image > &image, const std::vector< ivec2 > &pos, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, LayerType layerType=LayerType::Color, const mat4 &transformation=mat4(1)) |
|
void | render (const Image &image, const ivec2 &pos, const size2_t &canvasSize, std::size_t colorLayerIndex, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
| renders a color layer of an image at position pos onto the current canvas. The layer dimensions determine the covered area in pixel. The anchor point of the image is in the lower left corner. By default, the first color layer is rendered.
|
|
void | render (const Image &image, const std::vector< ivec2 > &pos, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, std::size_t colorLayerIndex, const mat4 &transformation=mat4(1)) |
|
void | render (const std::shared_ptr< Image > &image, const ivec2 &pos, const size2_t &canvasSize, std::size_t colorLayerIndex, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
|
void | render (const std::shared_ptr< Image > &image, const std::vector< ivec2 > &pos, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, std::size_t colorLayerIndex, const mat4 &transformation=mat4(1)) |
|
void | render (const Layer &image, const ivec2 &pos, const size2_t &canvasSize, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
| renders a layer at position pos onto the current canvas. The layer dimensions determine the covered area in pixel. The anchor point of the image is in the lower left corner.
|
|
void | render (const Layer &image, const std::vector< ivec2 > &pos, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const mat4 &transformation=mat4(1)) |
|
void | render (const std::shared_ptr< Layer > &image, const ivec2 &pos, const size2_t &canvasSize, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
|
void | render (const std::shared_ptr< Layer > &image, const std::vector< ivec2 > &pos, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const mat4 &transformation=mat4(1)) |
|
void | render (const Texture2D &texture, const ivec2 &pos, const size2_t &canvasSize, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
| renders a texture at position pos onto the current canvas. The texture dimensions determine the covered area in pixel. The anchor point of the texture is in the lower left corner.
|
|
void | render (const Texture2D &texture, const std::vector< ivec2 > &pos, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const mat4 &transformation=mat4(1)) |
|
void | render (const std::shared_ptr< Texture2D > &texture, const ivec2 &pos, const size2_t &canvasSize, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
|
void | render (const std::shared_ptr< Texture2D > &texture, const std::vector< ivec2 > &pos, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const mat4 &transformation=mat4(1)) |
|
void | renderToRect (const Image &image, const ivec2 &pos, const ivec2 &extent, const size2_t &canvasSize, LayerType layerType=LayerType::Color, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
| renders an image at position pos onto the current canvas with the given extent. The covered area is defined by the extent (in pixel). The anchor point of the image is in the lower left corner. By default, the first color layer is rendered.
|
|
void | renderToRect (const Image &image, const std::vector< ivec2 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, LayerType layerType=LayerType::Color, const mat4 &transformation=mat4(1)) |
|
void | renderToRect (const std::shared_ptr< Image > &image, const ivec2 &pos, const ivec2 &extent, const size2_t &canvasSize, LayerType layerType=LayerType::Color, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
|
void | renderToRect (const std::shared_ptr< Image > &image, const std::vector< ivec2 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, LayerType layerType=LayerType::Color, const mat4 &transformation=mat4(1)) |
|
void | renderToRect (const Image &image, const ivec2 &pos, const ivec2 &extent, const size2_t &canvasSize, std::size_t colorLayerIndex, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
| renders a color layer of an image at position pos onto the current canvas with the given extent. The covered area is defined by the extent (in pixel). The anchor point of the image is in the lower left corner. By default, the first color layer is rendered.
|
|
void | renderToRect (const Image &image, const std::vector< ivec2 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, std::size_t colorLayerIndex, const mat4 &transformation=mat4(1)) |
|
void | renderToRect (const std::shared_ptr< Image > &image, const ivec2 &pos, const ivec2 &extent, const size2_t &canvasSize, std::size_t colorLayerIndex, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
|
void | renderToRect (const std::shared_ptr< Image > &image, const std::vector< ivec2 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, std::size_t colorLayerIndex, const mat4 &transformation=mat4(1)) |
|
void | renderToRect (const Layer &image, const ivec2 &pos, const ivec2 &extent, const size2_t &canvasSize, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
| renders a layer at position pos onto the current canvas with the given extent. The covered area is defined by the extent (in pixel). The anchor point of the layer is in the lower left corner.
|
|
void | renderToRect (const Layer &image, const std::vector< ivec2 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const mat4 &transformation=mat4(1)) |
|
void | renderToRect (const std::shared_ptr< Layer > &image, const ivec2 &pos, const ivec2 &extent, const size2_t &canvasSize, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
|
void | renderToRect (const std::shared_ptr< Layer > &image, const std::vector< ivec2 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const mat4 &transformation=mat4(1)) |
|
void | renderToRect (const Texture2D &texture, const ivec2 &pos, const ivec2 &extent, const size2_t &canvasSize, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
| renders a texture at position pos onto the current canvas with the given extent. The covered area is defined by the extent (in pixel). The anchor point of the texture is in the lower left corner.
|
|
void | renderToRect (const Texture2D &texture, const std::vector< ivec2 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const mat4 &transformation=mat4(1)) |
|
void | renderToRect (const std::shared_ptr< Texture2D > &texture, const ivec2 &pos, const ivec2 &extent, const size2_t &canvasSize, const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
|
void | renderToRect (const std::shared_ptr< Texture2D > &texture, const std::vector< ivec2 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const mat4 &transformation=mat4(1)) |
|
void | renderToRect (const Texture2D &texture, const std::vector< ivec2 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const std::vector< mat4 > &transformation) |
|
void | renderToRect3D (const Camera &camera, const Texture2D &texture, const vec3 &pos, const ivec2 &extent, const size2_t &canvasSize, const vec2 &anchor=vec2(-1.0f), const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
| renders a texture at world position pos onto the current canvas with the given extent. The covered area is defined by the extent (in pixel). The anchor point of the texture is defined by anchor (-1 to 1).
|
|
void | renderToRect3D (const Camera &camera, const Texture2D &texture, const std::vector< vec3 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const vec2 &anchor=vec2(-1.0f), const mat4 &transformation=mat4(1)) |
|
void | renderToRect3D (const Camera &camera, const std::shared_ptr< Texture2D > &texture, const vec3 &pos, const ivec2 &extent, const size2_t &canvasSize, const vec2 &anchor=vec2(-1.0f), const mat4 &transformation=mat4(1), const mat4 &texTransform=mat4(1)) |
|
void | renderToRect3D (const Camera &camera, const std::shared_ptr< Texture2D > &texture, const std::vector< vec3 > &pos, const std::vector< ivec2 > &extent, const std::vector< mat4 > &texTransform, const size2_t &canvasSize, const vec2 &anchor=vec2(-1.0f), const mat4 &transformation=mat4(1)) |
|