1 #ifndef LXGUI_GUI_SFML_VERTEX_CACHE_HPP
2 #define LXGUI_GUI_SFML_VERTEX_CACHE_HPP
4 #include "lxgui/gui_vertex_cache.hpp"
5 #include "lxgui/utils.hpp"
7 #include <SFML/Graphics/VertexBuffer.hpp>
46 void update(
const vertex* vertex_data, std::size_t num_vertex)
override;
61 sf::VertexBuffer buffer_;
An object representing cached vertex data on the GPU.
vertex_cache(type t)
Constructor.
void update(const vertex *vertex_data, std::size_t num_vertex) override
Update the data stored in the cache to form new triangles.
const sf::VertexBuffer & get_impl() const
Returns the SFML vertex buffer object.
std::size_t get_vertex_count() const
Returns the number of vertices currently stored in the cache.
An object representing cached vertex data on the GPU.
type
The type of vertex data contained in a vertex_cache.
Holds position, texture coordinate, and color information for drawing.