mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 21:36:13 +01:00
Check that sf::Vertex and sfVertex are compatible types
This commit is contained in:
1 file changed
+3
@@ -30,6 +30,9 @@
|
|||||||
#include <CSFML/Graphics/VertexArrayStruct.hpp>
|
#include <CSFML/Graphics/VertexArrayStruct.hpp>
|
||||||
|
|
||||||
|
|
||||||
|
static_assert(sizeof(sf::Vertex) == sizeof(sfVertex));
|
||||||
|
static_assert(alignof(sf::Vertex) == alignof(sfVertex));
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
sfVertexArray* sfVertexArray_create()
|
sfVertexArray* sfVertexArray_create()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user