mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 21:16:13 +01:00
Use C standard library utilities for booleans and fixed-width ints
This commit is contained in:
1 parent
46bc9a7ed8
commit
a51c22a7a3
97 files changed
+670
-707
No files matched your search
@@ -67,7 +67,7 @@ CSFML_SYSTEM_API size_t sfBuffer_getSize(const sfBuffer* buffer);
|
||||
/// \return Read-only pointer to the array of bytes
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_SYSTEM_API const sfUint8* sfBuffer_getData(const sfBuffer* buffer);
|
||||
CSFML_SYSTEM_API const uint8_t* sfBuffer_getData(const sfBuffer* buffer);
|
||||
|
||||
|
||||
#endif // SFML_BUFFER_H
|
||||
@@ -31,10 +31,10 @@
|
||||
#include <SFML/System/Export.h>
|
||||
|
||||
|
||||
typedef sfInt64 (*sfInputStreamReadFunc)(void* data, sfInt64 size, void* userData);
|
||||
typedef sfInt64 (*sfInputStreamSeekFunc)(sfInt64 position, void* userData);
|
||||
typedef sfInt64 (*sfInputStreamTellFunc)(void* userData);
|
||||
typedef sfInt64 (*sfInputStreamGetSizeFunc)(void* userData);
|
||||
typedef int64_t (*sfInputStreamReadFunc)(void* data, int64_t size, void* userData);
|
||||
typedef int64_t (*sfInputStreamSeekFunc)(int64_t position, void* userData);
|
||||
typedef int64_t (*sfInputStreamTellFunc)(void* userData);
|
||||
typedef int64_t (*sfInputStreamGetSizeFunc)(void* userData);
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
typedef struct
|
||||
{
|
||||
sfInt64 microseconds;
|
||||
int64_t microseconds;
|
||||
} sfTime;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
@@ -64,7 +64,7 @@ CSFML_SYSTEM_API float sfTime_asSeconds(sfTime time);
|
||||
/// \return Time in milliseconds
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_SYSTEM_API sfInt32 sfTime_asMilliseconds(sfTime time);
|
||||
CSFML_SYSTEM_API int32_t sfTime_asMilliseconds(sfTime time);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Return a time value as a number of microseconds
|
||||
@@ -74,7 +74,7 @@ CSFML_SYSTEM_API sfInt32 sfTime_asMilliseconds(sfTime time);
|
||||
/// \return Time in microseconds
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_SYSTEM_API sfInt64 sfTime_asMicroseconds(sfTime time);
|
||||
CSFML_SYSTEM_API int64_t sfTime_asMicroseconds(sfTime time);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Construct a time value from a number of seconds
|
||||
@@ -94,7 +94,7 @@ CSFML_SYSTEM_API sfTime sfSeconds(float amount);
|
||||
/// \return Time value constructed from the amount of milliseconds
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_SYSTEM_API sfTime sfMilliseconds(sfInt32 amount);
|
||||
CSFML_SYSTEM_API sfTime sfMilliseconds(int32_t amount);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Construct a time value from a number of microseconds
|
||||
@@ -104,7 +104,7 @@ CSFML_SYSTEM_API sfTime sfMilliseconds(sfInt32 amount);
|
||||
/// \return Time value constructed from the amount of microseconds
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_SYSTEM_API sfTime sfMicroseconds(sfInt64 amount);
|
||||
CSFML_SYSTEM_API sfTime sfMicroseconds(int64_t amount);
|
||||
|
||||
|
||||
#endif // SFML_TIME_H
|
||||
Reference in new issue
Block a user