4 #ifndef GOSU_IMAGEDATA_HPP
5 #define GOSU_IMAGEDATA_HPP
43 virtual int width()
const = 0;
44 virtual int height()
const = 0;
46 virtual void draw(
double x1,
double y1,
Color c1,
47 double x2,
double y2,
Color c2,
48 double x3,
double y3,
Color c3,
49 double x4,
double y4,
Color c4,
57 virtual void insert(
const Bitmap& bitmap,
int x,
int y) = 0;
virtual Bitmap toBitmap() 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 void insert(const Bitmap &bitmap, int x, int y)=0
virtual GOSU_UNIQUE_PTR< ImageData > subimage(int x, int y, int width, int height) const =0
Contains declarations of all of Gosu's available classes.
Represents an RGBA color value with 8 bits for each channel.
virtual int height() const =0
double ZPos
Represents the Z position of something drawn with Gosu's graphics system.
Rectangular area of pixels, each represented by a Color value.
Contains information about the underlying OpenGL texture and the u/v space used for image data...
The ImageData class is an abstract base class for drawable images.
virtual const GLTexInfo * glTexInfo() const =0
virtual int width() const =0
AlphaMode
Determines the way colors are combined when one is drawn onto another.
Interface of the Color class.
Contains general typedefs and enums related to graphics.