The ImageData class is an abstract base class for drawable images.
More...
List of all members.
Public Member Functions |
| 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 * | glTexInfo () const =0 |
virtual Bitmap | toBitmap () const =0 |
virtual void | insert (const Bitmap &bitmap, int x, int y)=0 |
| Experimental and undocumented for now.
|
Detailed Description
The ImageData class is an abstract base class for drawable images.
Instances of classes derived by ImageData are usually returned by Graphics::createImage and usually only used to implement drawing primitives like Image, which then provide a more specialized and intuitive drawing interface.
Definition at line 26 of file ImageData.hpp.
Constructor & Destructor Documentation
Gosu::ImageData::ImageData |
( |
| ) |
|
virtual Gosu::ImageData::~ImageData |
( |
| ) |
|
|
virtual |
Member Function Documentation
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 |
virtual const GLTexInfo* Gosu::ImageData::glTexInfo |
( |
| ) |
const |
|
pure virtual |
virtual int Gosu::ImageData::height |
( |
| ) |
const |
|
pure virtual |
virtual void Gosu::ImageData::insert |
( |
const Bitmap & |
bitmap, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
pure virtual |
Experimental and undocumented for now.
virtual Bitmap Gosu::ImageData::toBitmap |
( |
| ) |
const |
|
pure virtual |
virtual int Gosu::ImageData::width |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: