mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-24 21:53:37 +02:00
Compare commits
2
Commits
test_cursor
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1229896f3d | ||
|
|
e468aa651b |
No files matched your search
@@ -30,6 +30,9 @@
|
||||
#include <CSFML/Graphics/VertexArrayStruct.hpp>
|
||||
|
||||
|
||||
static_assert(sizeof(sf::Vertex) == sizeof(sfVertex));
|
||||
static_assert(alignof(sf::Vertex) == alignof(sfVertex));
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfVertexArray* sfVertexArray_create()
|
||||
{
|
||||
|
||||
@@ -173,13 +173,13 @@ double sfPacket_readDouble(sfPacket* packet)
|
||||
void sfPacket_readString(sfPacket* packet, char* string)
|
||||
{
|
||||
assert(packet);
|
||||
if (string)
|
||||
assert(string);
|
||||
*packet >> string;
|
||||
}
|
||||
void sfPacket_readWideString(sfPacket* packet, wchar_t* string)
|
||||
{
|
||||
assert(packet);
|
||||
if (string)
|
||||
assert(string);
|
||||
*packet >> string;
|
||||
}
|
||||
|
||||
@@ -232,12 +232,12 @@ void sfPacket_writeDouble(sfPacket* packet, double value)
|
||||
void sfPacket_writeString(sfPacket* packet, const char* string)
|
||||
{
|
||||
assert(packet);
|
||||
if (string)
|
||||
assert(string);
|
||||
*packet << string;
|
||||
}
|
||||
void sfPacket_writeWideString(sfPacket* packet, const wchar_t* string)
|
||||
{
|
||||
assert(packet);
|
||||
if (string)
|
||||
assert(string);
|
||||
*packet << string;
|
||||
}
|
||||
Reference in new issue
Block a user