Smolgui
Immediate gui library based on SFML
Loading...
Searching...
No Matches
MeshFunctions.h File Reference
#include <array>
#include <SFML/Graphics/Rect.hpp>
#include <SFML/Graphics/Vertex.hpp>
Include dependency graph for MeshFunctions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sgui

Typedefs

using sgui::Mesh = std::array <sf::Vertex, 6>

Functions

void sgui::computeMesh (Mesh &mesh, const sf::FloatRect &box)
 Compute mesh quad coordinates.
void sgui::computeMeshTexture (Mesh &Mesh, const sf::IntRect &textureRect)
 compute texture coordinates from a rect
void sgui::rotateMeshTexture (Mesh &mesh)
 Rotate a mesh texture by 90°