|
|
@@ -238,11 +238,11 @@ public: |
|
|
|
|
|
|
|
// FIXME this should not be needed |
|
|
|
inline void loadFromMemory(const char* rdata, uint w, uint h, ImageFormat fmt = kImageFormatBGRA) |
|
|
|
{ loadFromMemory(rdata, Size<uint>(w, h), fmt); }; |
|
|
|
{ loadFromMemory(rdata, Size<uint>(w, h), fmt); } |
|
|
|
inline void draw(const GraphicsContext& context) |
|
|
|
{ drawAt(context, Point<int>(0, 0)); }; |
|
|
|
{ drawAt(context, Point<int>(0, 0)); } |
|
|
|
inline void drawAt(const GraphicsContext& context, int x, int y) |
|
|
|
{ drawAt(context, Point<int>(x, y)); }; |
|
|
|
{ drawAt(context, Point<int>(x, y)); } |
|
|
|
|
|
|
|
/** |
|
|
|
Constructor using raw image data, specifying an OpenGL image format. |
|
|
|