39 virtual int width()
const = 0;
41 virtual int height()
const = 0;
43 virtual void draw(
double x1,
double y1,
Color c1,
44 double x2,
double y2,
Color c2,
45 double x3,
double y3,
Color c3,
46 double x4,
double y4,
Color c4,
49 virtual const GLTexInfo* gl_tex_info()
const = 0;
51 virtual Bitmap to_bitmap()
const = 0;
53 virtual std::unique_ptr<ImageData> subimage(
int x,
int y,
int width,
int height)
const = 0;
55 virtual void insert(
const Bitmap& bitmap,
int x,
int y) = 0;
Represents an RGBA color value with 8 bits for each channel.
double ZPos
Represents the Z position of something drawn with Gosu's graphics system.
A two-dimensional array 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.
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.