Files
lime/project/include/graphics/ImageBuffer.h
2015-04-24 00:33:19 +02:00

42 lines
565 B
C++

#ifndef LIME_GRAPHICS_IMAGE_BUFFER_H
#define LIME_GRAPHICS_IMAGE_BUFFER_H
#include <hx/CFFI.h>
#include <utils/ByteArray.h>
namespace lime {
class ImageBuffer {
public:
ImageBuffer ();
ImageBuffer (value imageBuffer);
~ImageBuffer ();
void Blit (const unsigned char *data, int x, int y, int width, int height);
void Resize (int width, int height, int bpp = 4);
value Value ();
int bpp;
ByteArray *data;
int height;
int width;
bool transparent;
private:
value mValue;
};
}
#endif