Update stb_image to v2.02 and stb_image_write to v0.97
This commit is contained in:
parent
6ca9f66a06
commit
f47f89a759
4 changed files with 3793 additions and 1953 deletions
|
@ -28,6 +28,7 @@
|
|||
#include <SFML/Graphics/ImageLoader.hpp>
|
||||
#include <SFML/System/InputStream.hpp>
|
||||
#include <SFML/System/Err.hpp>
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include <stb_image.h>
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#include <stb_image_write.h>
|
||||
|
@ -55,7 +56,7 @@ namespace
|
|||
sf::InputStream* stream = static_cast<sf::InputStream*>(user);
|
||||
return static_cast<int>(stream->read(data, size));
|
||||
}
|
||||
void skip(void* user, unsigned int size)
|
||||
void skip(void* user, int size)
|
||||
{
|
||||
sf::InputStream* stream = static_cast<sf::InputStream*>(user);
|
||||
stream->seek(stream->tell() + size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue