Changeset 532
- Timestamp:
- 05/02/08 18:48:50 (8 months ago)
- Files:
-
- trunk/src/defend/game/hud/MiniMap.d (modified) (1 diff)
- trunk/src/gen/util/Sprite.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/defend/game/hud/MiniMap.d
r530 r532 90 90 91 91 sprite = new Sprite(texture, Rect(0, 0, width - 1, height - 1), true); 92 sprite.scaling = 128.0f / width; 93 92 94 position = vec2i(renderer.width - 150, renderer.height - HUD_HEIGHT + 10); 93 95 } trunk/src/gen/util/Sprite.d
r465 r532 23 23 Rect area; 24 24 25 float _scaling = 1.f; 26 25 27 public: 26 28 mixin MAllocator; … … 30 32 Texture texture() { return _texture; } 31 33 Rect rect() { return area; } 34 35 void scaling(float s) { _scaling = s; } 32 36 33 37 this(char[] file, bool reverse = false) … … 90 94 renderer.pushMatrix(); 91 95 renderer.translate(position.x, position.y, 0.0); 96 renderer.scale(_scaling); 92 97 93 98 render();
