@@ -22,7 +22,7 @@ namespace Pyro
22
22
23
23
class Graphics : public Image
24
24
{
25
- protected:
25
+ protected:
26
26
GraphicsMode mode;
27
27
std::filesystem::path filename{" " };
28
28
@@ -33,7 +33,7 @@ namespace Pyro
33
33
Transformer2D transformer;
34
34
StyleStack style;
35
35
36
- public:
36
+ public:
37
37
Graphics (unsigned int width, unsigned int height, std::filesystem::path filename = " " );
38
38
virtual ~Graphics () override ;
39
39
@@ -44,14 +44,14 @@ namespace Pyro
44
44
this ->style .imagemode (mode);
45
45
};
46
46
void image (Image *img, float x, float y);
47
- virtual void image_impl (Image * /* img*/ , float /* x*/ , float /* y*/ ) {};
47
+ virtual void image_impl (Image * /* img*/ , float /* x*/ , float /* y*/ ){};
48
48
Image *loadimage (std::filesystem::path const &filename) { return Image::load (filename); };
49
49
50
50
// Color functions
51
51
void nostroke ();
52
52
void nofill ();
53
53
54
- virtual void blendmode (int /* mode*/ ) {};
54
+ virtual void blendmode (int /* mode*/ ){};
55
55
void colormode (int mode)
56
56
{
57
57
this ->style .colormode (mode);
@@ -124,7 +124,7 @@ namespace Pyro
124
124
};
125
125
virtual void background (float r, float g, float b, float a = 1.0 );
126
126
127
- virtual void shape (Shape /* s*/ , float /* x*/ , float /* y*/ ) {};
127
+ virtual void shape (Shape /* s*/ , float /* x*/ , float /* y*/ ){};
128
128
129
129
void beginshape (int kind = DEFAULT)
130
130
{
@@ -172,7 +172,7 @@ namespace Pyro
172
172
void point (float x, float y);
173
173
void point (Vector p);
174
174
virtual void line (Vector /* p0*/ , Vector /* p1*/ ){};
175
- virtual void line (float /* x0*/ , float /* y0*/ , float /* x1*/ , float /* y1*/ ) {};
175
+ virtual void line (float /* x0*/ , float /* y0*/ , float /* x1*/ , float /* y1*/ ){};
176
176
void curve (Vector p0, Vector p1, Vector p2, Vector p3);
177
177
void curve (float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3);
178
178
void bezier (Vector p0, Vector p1, Vector p2, Vector p3);
@@ -215,8 +215,8 @@ namespace Pyro
215
215
void text (std::string const &text, float x, float y);
216
216
void textfont (Font *font);
217
217
218
- virtual void textfont_impl (Font * /* font*/ ) {};
219
- virtual void text_impl (std::string /* text*/ , float /* x*/ , float /* y*/ ) {};
218
+ virtual void textfont_impl (Font * /* font*/ ){};
219
+ virtual void text_impl (std::string /* text*/ , float /* x*/ , float /* y*/ ){};
220
220
};
221
221
/* *
222
222
* Create a graphics object
@@ -230,6 +230,6 @@ namespace Pyro
230
230
std::filesystem::path filename = " " );
231
231
232
232
Graphics *creategraphics (unsigned int width, unsigned int height, int dpi, Unit unit, GraphicsMode mode = GraphicsMode::CAIRO, std::filesystem::path filename = " " );
233
- };
233
+ }; // namespace Pyro
234
234
235
235
#endif
0 commit comments