projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split object/block.?pp
[supertux.git]
/
src
/
video
/
drawing_request.hpp
diff --git
a/src/video/drawing_request.hpp
b/src/video/drawing_request.hpp
index
1007ab9
..
859d952
100644
(file)
--- a/
src/video/drawing_request.hpp
+++ b/
src/video/drawing_request.hpp
@@
-71,25
+71,55
@@
enum RequestType
struct SurfacePartRequest
{
struct SurfacePartRequest
{
+ SurfacePartRequest() :
+ surface(),
+ source(),
+ size()
+ {}
+
const Surface* surface;
const Surface* surface;
- Vector source, size;
+ Vector source;
+ Vector size;
};
struct TextRequest
{
};
struct TextRequest
{
+ TextRequest() :
+ font(),
+ text(),
+ alignment()
+ {}
+
const Font* font;
std::string text;
FontAlignment alignment;
const Font* font;
std::string text;
FontAlignment alignment;
+
+private:
+ TextRequest(const TextRequest&);
+ TextRequest& operator=(const TextRequest&);
};
struct GradientRequest
{
};
struct GradientRequest
{
- Color top, bottom;
+ GradientRequest() :
+ top(),
+ bottom(),
+ size()
+ {}
+
+ Color top;
+ Color bottom;
Vector size;
};
struct FillRectRequest
{
Vector size;
};
struct FillRectRequest
{
+ FillRectRequest() :
+ color(),
+ size(),
+ radius()
+ {}
+
Color color;
Vector size;
float radius;
Color color;
Vector size;
float radius;
@@
-97,6
+127,11
@@
struct FillRectRequest
struct InverseEllipseRequest
{
struct InverseEllipseRequest
{
+ InverseEllipseRequest() :
+ color(),
+ size()
+ {}
+
Color color;
Vector size;
};
Color color;
Vector size;
};