Image loading, bytes fixes for HL

This commit is contained in:
Joshua Granick
2018-06-13 19:41:04 -07:00
parent 5ec6aaee62
commit 62c5722ab0
9 changed files with 190 additions and 131 deletions

View File

@@ -41,13 +41,13 @@ namespace lime {
ImageBuffer (HL_ImageBuffer* imageBuffer);
~ImageBuffer ();
void Blit (const unsigned char *data, int x, int y, int width, int height);
void Blit (const unsigned char* data, int x, int y, int width, int height);
void Resize (int width, int height, int bitsPerPixel = 32);
int Stride ();
value Value ();
void* Value ();
int bitsPerPixel;
ArrayBufferView *data;
ArrayBufferView* data;
PixelFormat format;
int height;
bool premultiplied;
@@ -56,7 +56,8 @@ namespace lime {
private:
value mValue;
HL_ImageBuffer* _buffer;
value _value;
};