2 #include "oxygine-include.h" 3 #include "core/Texture.h" 19 bool getImageInfo(
const void* data,
size_t size,
const char* name, ImageType& type,
int& width,
int& height);
21 DECLARE_SMART(Image, spImage);
29 bool init(
file::buffer& bf,
bool premultiplied =
false, TextureFormat format = TF_UNDEFINED);
31 void init(
int w,
int h, TextureFormat Format);
34 void convert(
Image& dest, TextureFormat format);
40 void fillZero() { fill(0); }
41 void fill(
unsigned int val);
43 unsigned int getSizeVRAM()
const {
return (
unsigned int)_buffer.size();}
45 int getHeight()
const;
46 const Point& getSize()
const;
47 TextureFormat getFormat()
const;
52 ImageData lock(
int x,
int y,
int w,
int h);
56 void toPOT(
Image& dest);
58 void updateRegion(
int x,
int y,
const ImageData& data);
59 void apply(
const Rect*);
66 std::vector<unsigned char> _buffer;
69 typedef bool (*cbLoadImageFromBuffer)(
Image& mt,
void* data,
int nSize,
bool premultiplied, TextureFormat format);
70 void setJpegImageLoader(cbLoadImageFromBuffer);
71 void setPngImageLoader(cbLoadImageFromBuffer);
72 void setCustomImageLoader(cbLoadImageFromBuffer);
Definition: ImageData.h:54
–oxgl-end–!
Definition: Actor.h:14