1 #ifndef LXGUI_GUI_VERTEX_CACHE_HPP
2 #define LXGUI_GUI_VERTEX_CACHE_HPP
4 #include "lxgui/gui_vertex.hpp"
5 #include "lxgui/lxgui.hpp"
6 #include "lxgui/utils.hpp"
67 virtual void update(
const vertex* vertex_data, std::size_t num_vertex) = 0;
An object representing cached vertex data on the GPU.
type
The type of vertex data contained in a vertex_cache.
@ quads
3 vertices per element
std::size_t get_vertex_count() const
Returns the number of vertices stored in this cache.
vertex_cache(vertex_cache &&)=delete
Non-movable.
vertex_cache(const vertex_cache &)=delete
Non-copiable.
vertex_cache(type t)
Constructor.
vertex_cache & operator=(const vertex_cache &)=delete
Non-copiable.
vertex_cache & operator=(vertex_cache &&)=delete
Non-movable.
virtual void update(const vertex *vertex_data, std::size_t num_vertex)=0
Update the data stored in the cache to form new triangles.
virtual ~vertex_cache()=default
Destructor.
Holds position, texture coordinate, and color information for drawing.