25 #ifndef SFML_VERTEXBUFFER_HPP
26 #define SFML_VERTEXBUFFER_HPP
31 #include <SFML/Graphics/Export.hpp>
32 #include <SFML/Graphics/PrimitiveType.hpp>
33 #include <SFML/Graphics/Drawable.hpp>
34 #include <SFML/Window/GlResource.hpp>
137 bool create(std::size_t vertexCount);
145 std::size_t getVertexCount()
const;
165 bool update(
const Vertex* vertices);
198 bool update(
const Vertex* vertices, std::size_t vertexCount,
unsigned int offset);
238 unsigned int getNativeHandle()
const;
276 void setUsage(Usage usage);
284 Usage getUsage()
const;
319 static bool isAvailable();
337 unsigned int m_buffer;
346 #endif // SFML_VERTEXBUFFER_HPP
Vertex buffer storage for one or more 2D primitives.
Abstract base class for objects that can be drawn to a render target.
Base class for classes that require an OpenGL context.
Define the states used for drawing to a RenderTarget.
@ Stream
Constantly changing data.
@ Dynamic
Occasionally changing data.
Base class for all render targets (window, texture, ...)
Define a point with color and texture coordinates.
PrimitiveType
Types of primitives that a sf::VertexArray can render.