mirror of
https://github.com/aap/librw.git
synced 2026-04-19 13:03:09 +01:00
Implemented basic Image.
This commit is contained in:
@@ -8,6 +8,23 @@ struct Object
|
||||
void *parent;
|
||||
};
|
||||
|
||||
struct Image
|
||||
{
|
||||
int32 flags;
|
||||
int32 width, height;
|
||||
int32 depth;
|
||||
int32 stride;
|
||||
uint8 *pixels;
|
||||
uint8 *palette;
|
||||
|
||||
Image(int32 width, int32 height, int32 depth);
|
||||
~Image(void);
|
||||
void allocate(void);
|
||||
void free(void);
|
||||
void setPixels(uint8 *pixels);
|
||||
void setPalette(uint8 *palette);
|
||||
};
|
||||
|
||||
// TODO: raster, link into texdict
|
||||
struct Texture : PluginBase<Texture>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user