@@ -51,7 +51,7 @@ namespace RTE {
51
51
// / <param name="start">Start position of primitive in scene coordinates.</param>
52
52
// / <param name="end">End position of primitive in scene coordinates.</param>
53
53
// / <param name="color">Color to draw primitive with.</param>
54
- void DrawLinePrimitive (Vector start, Vector end, unsigned char color) { m_Primitives.push_back (new LinePrimitive (start, end, color)); }
54
+ void DrawLinePrimitive (Vector start, Vector end, unsigned char color) { m_Primitives.push_back (new LinePrimitive (- 1 , start, end, color)); }
55
55
56
56
// / <summary>
57
57
// / Schedule to draw a line primitive visible only to a specified player.
@@ -68,7 +68,7 @@ namespace RTE {
68
68
// / <param name="start">Start position of primitive in scene coordinates.</param>
69
69
// / <param name="end">End position of primitive in scene coordinates.</param>
70
70
// / <param name="color">Color to draw primitive with.</param>
71
- void DrawBoxPrimitive (Vector start, Vector end, unsigned char color) { m_Primitives.push_back (new BoxPrimitive (start, end, color)); }
71
+ void DrawBoxPrimitive (Vector start, Vector end, unsigned char color) { m_Primitives.push_back (new BoxPrimitive (- 1 , start, end, color)); }
72
72
73
73
// / <summary>
74
74
// / Schedule to draw a box primitive visible only to a specified player.
@@ -85,7 +85,7 @@ namespace RTE {
85
85
// / <param name="start">Start position of primitive in scene coordinates.</param>
86
86
// / <param name="end">End position of primitive in scene coordinates.</param>
87
87
// / <param name="color">Color to draw primitive with.</param>
88
- void DrawBoxFillPrimitive (Vector start, Vector end, unsigned char color) { m_Primitives.push_back (new BoxFillPrimitive (start, end, color)); }
88
+ void DrawBoxFillPrimitive (Vector start, Vector end, unsigned char color) { m_Primitives.push_back (new BoxFillPrimitive (- 1 , start, end, color)); }
89
89
90
90
// / <summary>
91
91
// / Schedule to draw a filled box primitive visible only to a specified player.
@@ -102,7 +102,7 @@ namespace RTE {
102
102
// / <param name="pos">Position of primitive in scene coordinates.</param>
103
103
// / <param name="radius">Radius of circle primitive.</param>
104
104
// / <param name="color">Color to draw primitive with.</param>
105
- void DrawCirclePrimitive (Vector pos, short radius, unsigned char color) {m_Primitives.push_back (new CirclePrimitive (pos, radius, color));}
105
+ void DrawCirclePrimitive (Vector pos, short radius, unsigned char color) {m_Primitives.push_back (new CirclePrimitive (- 1 , pos, radius, color));}
106
106
107
107
// / <summary>
108
108
// / Schedule to draw a circle primitive visible only to a specified player.
@@ -119,7 +119,7 @@ namespace RTE {
119
119
// / <param name="pos">Position of primitive in scene coordinates.</param>
120
120
// / <param name="radius">Radius of circle primitive.</param>
121
121
// / <param name="color">Color to fill primitive with.</param>
122
- void DrawCircleFillPrimitive (Vector pos, short radius, unsigned char color) {m_Primitives.push_back (new CircleFillPrimitive (pos, radius, color));}
122
+ void DrawCircleFillPrimitive (Vector pos, short radius, unsigned char color) {m_Primitives.push_back (new CircleFillPrimitive (- 1 , pos, radius, color));}
123
123
124
124
// / <summary>
125
125
// / Schedule to draw a filled circle primitive visible only to a specified player.
@@ -137,7 +137,7 @@ namespace RTE {
137
137
// / <param name="text">Text string to draw.</param>
138
138
// / <param name="isSmall">Use small or large font. True for small font.</param>
139
139
// / <param name="alignment">Alignment of text.</param>
140
- void DrawTextPrimitive (Vector start, std::string text, bool isSmall, short alignment) {m_Primitives.push_back (new TextPrimitive (start, text, isSmall, alignment));}
140
+ void DrawTextPrimitive (Vector start, std::string text, bool isSmall, short alignment) {m_Primitives.push_back (new TextPrimitive (- 1 , start, text, isSmall, alignment));}
141
141
142
142
// / <summary>
143
143
// / Schedule to draw a text primitive visible only to a specified player.
@@ -156,7 +156,7 @@ namespace RTE {
156
156
// / <param name="entity">An entity to draw sprite from.</param>
157
157
// / <param name="rotAngle">Rotation angle in radians.</param>
158
158
// / <param name="">Frame to draw.</param>
159
- void DrawBitmapPrimitive (Vector start, Entity *entity, float rotAngle, unsigned short frame);
159
+ void DrawBitmapPrimitive (Vector start, Entity *entity, float rotAngle, unsigned short frame) { DrawBitmapPrimitive (- 1 , start, entity, rotAngle, frame); }
160
160
161
161
// / <summary>
162
162
// / Schedule to draw a bitmap primitive visible only to a specified player.
0 commit comments