@@ -311,6 +311,14 @@ namespace RTE {
311311 // / @param frame Frame to draw.
312312 void DrawBitmapPrimitive (const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame) { DrawBitmapPrimitive (-1 , centerPos, moSprite, rotAngle, frame, false , false ); }
313313
314+ // / Schedule to draw a bitmap primitive.
315+ // / @param centerPos Position of primitive's center in scene coordinates.
316+ // / @param moSprite A MOSprite to draw BITMAP from.
317+ // / @param rotAngle Rotation angle in radians.
318+ // / @param frame Frame to draw.
319+ // / @param scale Drawing scale.
320+ void DrawBitmapPrimitive (const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame, float scale) { DrawBitmapPrimitive (-1 , centerPos, moSprite, rotAngle, scale, frame, false , false ); }
321+
314322 // / Schedule to draw a bitmap primitive with the option to flip the primitive horizontally and vertically.
315323 // / @param centerPos Position of primitive's center in scene coordinates.
316324 // / @param moSprite A MOSprite to draw BITMAP from.
@@ -320,6 +328,16 @@ namespace RTE {
320328 // / @param vFlipped Whether to flip the sprite vertically.
321329 void DrawBitmapPrimitive (const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame, bool hFlipped, bool vFlipped) { DrawBitmapPrimitive (-1 , centerPos, moSprite, rotAngle, frame, hFlipped, vFlipped); }
322330
331+ // / Schedule to draw a bitmap primitive with the option to flip the primitive horizontally and vertically.
332+ // / @param centerPos Position of primitive's center in scene coordinates.
333+ // / @param moSprite A MOSprite to draw BITMAP from.
334+ // / @param rotAngle Rotation angle in radians.
335+ // / @param frame Frame to draw.
336+ // / @param scale Drawing scale.
337+ // / @param hFlipped Whether to flip the sprite horizontally.
338+ // / @param vFlipped Whether to flip the sprite vertically.
339+ void DrawBitmapPrimitive (const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame, float scale, bool hFlipped, bool vFlipped) { DrawBitmapPrimitive (-1 , centerPos, moSprite, rotAngle, frame, scale, hFlipped, vFlipped); }
340+
323341 // / Schedule to draw a bitmap primitive visible only to a specified player.
324342 // / @param player Player screen to draw primitive on.
325343 // / @param centerPos Position of primitive's center in scene coordinates.
@@ -328,22 +346,49 @@ namespace RTE {
328346 // / @param frame Frame to draw.
329347 void DrawBitmapPrimitive (int player, const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame) { DrawBitmapPrimitive (player, centerPos, moSprite, rotAngle, frame, false , false ); }
330348
349+ // / Schedule to draw a bitmap primitive visible only to a specified player.
350+ // / @param player Player screen to draw primitive on.
351+ // / @param centerPos Position of primitive's center in scene coordinates.
352+ // / @param moSprite A MOSprite to draw BITMAP from.
353+ // / @param rotAngle Rotation angle in radians.
354+ // / @param frame Frame to draw.
355+ // / @param scale Drawing scale.
356+ void DrawBitmapPrimitive (int player, const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame, float scale) { DrawBitmapPrimitive (player, centerPos, moSprite, rotAngle, frame, scale, false , false ); }
357+
358+ // / Schedule to draw a bitmap primitive visible only to a specified player with the option to flip the primitive horizontally or vertically.
359+ // / @param player Player screen to draw primitive on.
360+ // / @param centerPos Position of primitive's center in scene coordinates.
361+ // / @param moSprite A MOSprite to draw BITMAP from.
362+ // / @param rotAngle Rotation angle in radians.
363+ // / @param frame Frame to draw.
364+ // / @param hFlipped Whether to flip the sprite horizontally.
365+ // / @param vFlipped Whether to flip the sprite vertically.
366+ void DrawBitmapPrimitive (int player, const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame, bool hFlipped, bool vFlipped) { DrawBitmapPrimitive (player, centerPos, moSprite, rotAngle, frame, 1 .0f , false , false ); }
367+
331368 // / Schedule to draw a bitmap primitive visible only to a specified player with the option to flip the primitive horizontally or vertically.
332369 // / @param player Player screen to draw primitive on.
333370 // / @param centerPos Position of primitive's center in scene coordinates.
334371 // / @param moSprite A MOSprite to draw BITMAP from.
335372 // / @param rotAngle Rotation angle in radians.
336373 // / @param frame Frame to draw.
374+ // / @param scale Drawing scale.
337375 // / @param hFlipped Whether to flip the sprite horizontally.
338376 // / @param vFlipped Whether to flip the sprite vertically.
339- void DrawBitmapPrimitive (int player, const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame, bool hFlipped, bool vFlipped);
377+ void DrawBitmapPrimitive (int player, const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame, float scale, bool hFlipped, bool vFlipped);
340378
341379 // / Schedule to draw a bitmap primitive.
342380 // / @param centerPos Position of primitive's center in scene coordinates.
343381 // / @param filePath Path to the bitmap to draw.
344382 // / @param rotAngle Rotation angle in radians.
345383 void DrawBitmapPrimitive (const Vector& centerPos, const std::string& filePath, float rotAngle) { DrawBitmapPrimitive (-1 , centerPos, filePath, rotAngle, false , false ); }
346384
385+ // / Schedule to draw a bitmap primitive.
386+ // / @param centerPos Position of primitive's center in scene coordinates.
387+ // / @param filePath Path to the bitmap to draw.
388+ // / @param rotAngle Rotation angle in radians.
389+ // / @param scale Drawing scale.
390+ void DrawBitmapPrimitive (const Vector& centerPos, const std::string& filePath, float rotAngle, float scale) { DrawBitmapPrimitive (-1 , centerPos, filePath, rotAngle, scale, false , false ); }
391+
347392 // / Schedule to draw a bitmap primitive with the option to flip the primitive horizontally and vertically.
348393 // / @param centerPos Position of primitive's center in scene coordinates.
349394 // / @param filePath An entity to draw sprite from.
@@ -352,21 +397,48 @@ namespace RTE {
352397 // / @param vFlipped Whether to flip the sprite vertically.
353398 void DrawBitmapPrimitive (const Vector& centerPos, const std::string& filePath, float rotAngle, bool hFlipped, bool vFlipped) { DrawBitmapPrimitive (-1 , centerPos, filePath, rotAngle, hFlipped, vFlipped); }
354399
400+ // / Schedule to draw a bitmap primitive with the option to flip the primitive horizontally and vertically.
401+ // / @param centerPos Position of primitive's center in scene coordinates.
402+ // / @param filePath An entity to draw sprite from.
403+ // / @param rotAngle Rotation angle in radians.
404+ // / @param scale Drawing scale.
405+ // / @param hFlipped Whether to flip the sprite horizontally.
406+ // / @param vFlipped Whether to flip the sprite vertically.
407+ void DrawBitmapPrimitive (const Vector& centerPos, const std::string& filePath, float rotAngle, float scale, bool hFlipped, bool vFlipped) { DrawBitmapPrimitive (-1 , centerPos, filePath, rotAngle, scale, hFlipped, vFlipped); }
408+
355409 // / Schedule to draw a bitmap primitive visible only to a specified player.
356410 // / @param player Player screen to draw primitive on.
357411 // / @param centerPos Position of primitive's center in scene coordinates.
358412 // / @param filePath Path to the bitmap to draw.
359413 // / @param rotAngle Rotation angle in radians.
360414 void DrawBitmapPrimitive (int player, const Vector& centerPos, const std::string& filePath, float rotAngle) { DrawBitmapPrimitive (player, centerPos, filePath, rotAngle, false , false ); }
361415
416+ // / Schedule to draw a bitmap primitive visible only to a specified player.
417+ // / @param player Player screen to draw primitive on.
418+ // / @param centerPos Position of primitive's center in scene coordinates.
419+ // / @param filePath Path to the bitmap to draw.
420+ // / @param rotAngle Rotation angle in radians.
421+ // / @param scale Drawing scale.
422+ void DrawBitmapPrimitive (int player, const Vector& centerPos, const std::string& filePath, float rotAngle, float scale) { DrawBitmapPrimitive (player, centerPos, filePath, rotAngle, scale, false , false ); }
423+
424+ // / Schedule to draw a bitmap primitive visible only to a specified player with the option to flip the primitive horizontally or vertically.
425+ // / @param player Player screen to draw primitive on.
426+ // / @param centerPos Position of primitive's center in scene coordinates.
427+ // / @param filePath Path to the bitmap to draw.
428+ // / @param rotAngle Rotation angle in radians.
429+ // / @param hFlipped Whether to flip the sprite horizontally.
430+ // / @param vFlipped Whether to flip the sprite vertically.
431+ void DrawBitmapPrimitive (int player, const Vector& centerPos, const std::string& filePath, float rotAngle, bool hFlipped, bool vFlipped) { DrawBitmapPrimitive (player, centerPos, filePath, rotAngle, 1 .0f , false , false ); }
432+
362433 // / Schedule to draw a bitmap primitive visible only to a specified player with the option to flip the primitive horizontally or vertically.
363434 // / @param player Player screen to draw primitive on.
364435 // / @param centerPos Position of primitive's center in scene coordinates.
365436 // / @param filePath Path to the bitmap to draw.
366437 // / @param rotAngle Rotation angle in radians.
438+ // / @param scale Drawing scale.
367439 // / @param hFlipped Whether to flip the sprite horizontally.
368440 // / @param vFlipped Whether to flip the sprite vertically.
369- void DrawBitmapPrimitive (int player, const Vector& centerPos, const std::string& filePath, float rotAngle, bool hFlipped, bool vFlipped);
441+ void DrawBitmapPrimitive (int player, const Vector& centerPos, const std::string& filePath, float rotAngle, float scale, bool hFlipped, bool vFlipped);
370442
371443 // / Schedule to draw the GUI icon of an object.
372444 // / @param centerPos Position of primitive's center in scene coordinates.
0 commit comments