The ImageData class is an abstract base class for drawable images.
More...
|
| ImageData () |
|
virtual | ~ImageData () |
|
virtual int | width () const =0 |
|
virtual int | height () const =0 |
|
virtual void | draw (double x1, double y1, Color c1, double x2, double y2, Color c2, double x3, double y3, Color c3, double x4, double y4, Color c4, ZPos z, AlphaMode mode) const =0 |
|
virtual const GLTexInfo * | gl_tex_info () const =0 |
|
virtual Bitmap | to_bitmap () const =0 |
|
virtual std::unique_ptr< ImageData > | subimage (int x, int y, int width, int height) const =0 |
|
virtual void | insert (const Bitmap &bitmap, int x, int y)=0 |
|
The ImageData class is an abstract base class for drawable images.
Instances of classes derived by ImageData are usually returned by Graphics::create_image and usually only used to implement drawing primitives like Image, which then provide a more specialized and intuitive drawing interface.
Definition at line 28 of file ImageData.hpp.
◆ ImageData()
Gosu::ImageData::ImageData |
( |
| ) |
|
◆ ~ImageData()
virtual Gosu::ImageData::~ImageData |
( |
| ) |
|
|
virtual |
◆ draw()
virtual void Gosu::ImageData::draw |
( |
double |
x1, |
|
|
double |
y1, |
|
|
Color |
c1, |
|
|
double |
x2, |
|
|
double |
y2, |
|
|
Color |
c2, |
|
|
double |
x3, |
|
|
double |
y3, |
|
|
Color |
c3, |
|
|
double |
x4, |
|
|
double |
y4, |
|
|
Color |
c4, |
|
|
ZPos |
z, |
|
|
AlphaMode |
mode |
|
) |
| const |
|
pure virtual |
◆ gl_tex_info()
virtual const GLTexInfo* Gosu::ImageData::gl_tex_info |
( |
| ) |
const |
|
pure virtual |
◆ height()
virtual int Gosu::ImageData::height |
( |
| ) |
const |
|
pure virtual |
◆ insert()
virtual void Gosu::ImageData::insert |
( |
const Bitmap & |
bitmap, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
pure virtual |
◆ subimage()
virtual std::unique_ptr<ImageData> Gosu::ImageData::subimage |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| const |
|
pure virtual |
◆ to_bitmap()
virtual Bitmap Gosu::ImageData::to_bitmap |
( |
| ) |
const |
|
pure virtual |
◆ width()
virtual int Gosu::ImageData::width |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: