2013-05-16 19:26:19 +00:00
|
|
|
#pragma once
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_CORE_IMAGE_IO
|
|
|
|
#define ES_CORE_IMAGE_IO
|
2013-05-16 19:26:19 +00:00
|
|
|
|
2017-11-01 22:21:10 +00:00
|
|
|
#include <stdlib.h>
|
2013-05-16 19:26:19 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class ImageIO
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static std::vector<unsigned char> loadFromMemoryRGBA32(const unsigned char * data, const size_t size, size_t & width, size_t & height);
|
2014-05-28 21:43:23 +00:00
|
|
|
static void flipPixelsVert(unsigned char* imagePx, const size_t& width, const size_t& height);
|
2017-10-31 17:12:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ES_CORE_IMAGE_IO
|