25 #ifndef SFML_VERTEXBUFFER_H
26 #define SFML_VERTEXBUFFER_H
31 #include <SFML/Graphics/Export.h>
32 #include <SFML/Graphics/PrimitiveType.h>
33 #include <SFML/Graphics/Types.h>
34 #include <SFML/Graphics/Vertex.h>
52 sfVertexBufferDynamic,
54 } sfVertexBufferUsage;
71 CSFML_GRAPHICS_API sfVertexBuffer* sfVertexBuffer_create(
unsigned int vertexCount, sfPrimitiveType type, sfVertexBufferUsage usage);
81 CSFML_GRAPHICS_API sfVertexBuffer* sfVertexBuffer_copy(
const sfVertexBuffer* vertexBuffer);
89 CSFML_GRAPHICS_API
void sfVertexBuffer_destroy(sfVertexBuffer* vertexBuffer);
99 CSFML_GRAPHICS_API
unsigned int sfVertexBuffer_getVertexCount(
const sfVertexBuffer* vertexBuffer);
132 CSFML_GRAPHICS_API sfBool sfVertexBuffer_update(sfVertexBuffer* vertexBuffer,
const sfVertex* vertices,
unsigned int vertexCount,
unsigned int offset);
143 CSFML_GRAPHICS_API sfBool sfVertexBuffer_updateFromVertexBuffer(sfVertexBuffer* vertexBuffer,
const sfVertexBuffer* other);
152 CSFML_GRAPHICS_API
void sfVertexBuffer_swap(sfVertexBuffer* left, sfVertexBuffer* right);
164 CSFML_GRAPHICS_API
unsigned int sfVertexBuffer_getNativeHandle(sfVertexBuffer* vertexBuffer);
178 CSFML_GRAPHICS_API
void sfVertexBuffer_setPrimitiveType(sfVertexBuffer* vertexBuffer, sfPrimitiveType type);
188 CSFML_GRAPHICS_API sfPrimitiveType sfVertexBuffer_getPrimitiveType(
const sfVertexBuffer* vertexBuffer);
206 CSFML_GRAPHICS_API
void sfVertexBuffer_setUsage(sfVertexBuffer* vertexBuffer, sfVertexBufferUsage usage);
216 CSFML_GRAPHICS_API sfVertexBufferUsage sfVertexBuffer_getUsage(
const sfVertexBuffer* vertexBuffer);
239 CSFML_GRAPHICS_API
void sfVertexBuffer_bind(
const sfVertexBuffer* vertexBuffer);
251 CSFML_GRAPHICS_API sfBool sfVertexBuffer_isAvailable();
254 #endif // SFML_VERTEXBUFFER_H