Refactor OpenGL classes into lime.graphics.opengl, OpenAL into lime.media.openal, move image and sound into media

This commit is contained in:
Joshua Granick
2014-07-29 21:24:21 -07:00
parent da1bf26501
commit 4153d70187
56 changed files with 285 additions and 411 deletions

View File

@@ -0,0 +1,40 @@
#ifndef LIME_MEDIA_IMAGE_H
#define LIME_MEDIA_IMAGE_H
#include <hx/CFFI.h>
#include <utils/ByteArray.h>
namespace lime {
class Image {
public:
Image ();
~Image ();
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