53265bbc90
You can now load textures threaded. PNG will now throw exceptions when errors happend SpriteComponent is now working without billboarding.
24 lines
419 B
C++
24 lines
419 B
C++
#ifndef PNG_h_
|
|
#define PNG_h_
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <png.h>
|
|
|
|
#include "../Common.h"
|
|
#include "../Core/ResourceManager.h"
|
|
#include "Image.h"
|
|
|
|
class PNG : public Image, public Resource
|
|
{
|
|
public:
|
|
PNG(std::string path);
|
|
~PNG();
|
|
|
|
private:
|
|
static void pngErrorFunction(png_structp png_ptr, png_const_charp error_msg);
|
|
static void pngWarningFunction(png_structp png_ptr, png_const_charp warning_msg);
|
|
};
|
|
|
|
#endif
|