4 #ifndef GOSU_GRAPHICS_HPP
5 #define GOSU_GRAPHICS_HPP
30 bool operator==(
const Transform &other) {
for (
int i = 0; i < 16; ++i)
if ((*
this)[i] != other[i])
return false;
return true; }
31 const double &operator[](std::size_t idx)
const {
return value[idx]; }
32 double &operator[](std::size_t idx) {
return value[idx]; }
40 Transform scale(
double factorX,
double factorY,
double fromX = 0,
double fromY = 0);
48 const std::auto_ptr<Impl> pimpl;
55 void setResolution(
unsigned virtualWidth,
unsigned virtualHeight);
58 unsigned width()
const;
82 void scheduleGL(
const std::tr1::function<
void()>& functor,
ZPos z);
85 void beginClipping(
double x,
double y,
double width,
double height);
96 std::auto_ptr<Gosu::ImageData>
endRecording(
int width,
int height);
108 double x2,
double y2,
Color c2,
112 double x2,
double y2,
Color c2,
113 double x3,
double y3,
Color c3,
117 double x2,
double y2,
Color c2,
118 double x3,
double y3,
Color c3,
119 double x4,
double y4,
Color c4,
125 unsigned srcX,
unsigned srcY,
unsigned srcWidth,
unsigned srcHeight,
126 unsigned borderFlags);