@@ -311,6 +311,14 @@ namespace RTE {
311
311
// / @param frame Frame to draw.
312
312
void DrawBitmapPrimitive (const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame) { DrawBitmapPrimitive (-1 , centerPos, moSprite, rotAngle, frame, false , false ); }
313
313
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
+
314
322
// / Schedule to draw a bitmap primitive with the option to flip the primitive horizontally and vertically.
315
323
// / @param centerPos Position of primitive's center in scene coordinates.
316
324
// / @param moSprite A MOSprite to draw BITMAP from.
@@ -320,6 +328,16 @@ namespace RTE {
320
328
// / @param vFlipped Whether to flip the sprite vertically.
321
329
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); }
322
330
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
+
323
341
// / Schedule to draw a bitmap primitive visible only to a specified player.
324
342
// / @param player Player screen to draw primitive on.
325
343
// / @param centerPos Position of primitive's center in scene coordinates.
@@ -328,22 +346,49 @@ namespace RTE {
328
346
// / @param frame Frame to draw.
329
347
void DrawBitmapPrimitive (int player, const Vector& centerPos, const MOSprite* moSprite, float rotAngle, unsigned int frame) { DrawBitmapPrimitive (player, centerPos, moSprite, rotAngle, frame, false , false ); }
330
348
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
+
331
368
// / Schedule to draw a bitmap primitive visible only to a specified player with the option to flip the primitive horizontally or vertically.
332
369
// / @param player Player screen to draw primitive on.
333
370
// / @param centerPos Position of primitive's center in scene coordinates.
334
371
// / @param moSprite A MOSprite to draw BITMAP from.
335
372
// / @param rotAngle Rotation angle in radians.
336
373
// / @param frame Frame to draw.
374
+ // / @param scale Drawing scale.
337
375
// / @param hFlipped Whether to flip the sprite horizontally.
338
376
// / @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);
340
378
341
379
// / Schedule to draw a bitmap primitive.
342
380
// / @param centerPos Position of primitive's center in scene coordinates.
343
381
// / @param filePath Path to the bitmap to draw.
344
382
// / @param rotAngle Rotation angle in radians.
345
383
void DrawBitmapPrimitive (const Vector& centerPos, const std::string& filePath, float rotAngle) { DrawBitmapPrimitive (-1 , centerPos, filePath, rotAngle, false , false ); }
346
384
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
+
347
392
// / Schedule to draw a bitmap primitive with the option to flip the primitive horizontally and vertically.
348
393
// / @param centerPos Position of primitive's center in scene coordinates.
349
394
// / @param filePath An entity to draw sprite from.
@@ -352,21 +397,48 @@ namespace RTE {
352
397
// / @param vFlipped Whether to flip the sprite vertically.
353
398
void DrawBitmapPrimitive (const Vector& centerPos, const std::string& filePath, float rotAngle, bool hFlipped, bool vFlipped) { DrawBitmapPrimitive (-1 , centerPos, filePath, rotAngle, hFlipped, vFlipped); }
354
399
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
+
355
409
// / Schedule to draw a bitmap primitive visible only to a specified player.
356
410
// / @param player Player screen to draw primitive on.
357
411
// / @param centerPos Position of primitive's center in scene coordinates.
358
412
// / @param filePath Path to the bitmap to draw.
359
413
// / @param rotAngle Rotation angle in radians.
360
414
void DrawBitmapPrimitive (int player, const Vector& centerPos, const std::string& filePath, float rotAngle) { DrawBitmapPrimitive (player, centerPos, filePath, rotAngle, false , false ); }
361
415
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
+
362
433
// / Schedule to draw a bitmap primitive visible only to a specified player with the option to flip the primitive horizontally or vertically.
363
434
// / @param player Player screen to draw primitive on.
364
435
// / @param centerPos Position of primitive's center in scene coordinates.
365
436
// / @param filePath Path to the bitmap to draw.
366
437
// / @param rotAngle Rotation angle in radians.
438
+ // / @param scale Drawing scale.
367
439
// / @param hFlipped Whether to flip the sprite horizontally.
368
440
// / @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);
370
442
371
443
// / Schedule to draw the GUI icon of an object.
372
444
// / @param centerPos Position of primitive's center in scene coordinates.
0 commit comments