Files
lime/project/include/graphics/ImageBuffer.h
2014-08-02 10:33:32 -07:00

40 lines
508 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 ();
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;
private:
value mValue;
};
}
#endif