Mercurial > projects > doodle
comparison doodle/dia/layer_stack.d @ 92:a98116479793
Removed GL support. Improved grid.
author | daveb |
---|---|
date | Fri, 20 Aug 2010 18:34:32 +0930 |
parents | 467febed7367 |
children | a274d16ab6ce |
comparison
equal
deleted
inserted
replaced
91:42766e14534e | 92:a98116479793 |
---|---|
11 | 11 |
12 Rectangle bounds() const { | 12 Rectangle bounds() const { |
13 // Take the union of all layer bounds | 13 // Take the union of all layer bounds |
14 Rectangle bounds = Rectangle.DEFAULT; | 14 Rectangle bounds = Rectangle.DEFAULT; |
15 foreach (layer; _layers) { bounds = bounds | layer.bounds; } | 15 foreach (layer; _layers) { bounds = bounds | layer.bounds; } |
16 //assert(bounds.valid); | |
17 return bounds; | 16 return bounds; |
18 } | 17 } |
19 | 18 |
20 void draw(in Rectangle screenDamage, scope Renderer screenRenderer, | 19 void draw(in Rectangle screenDamage, scope Renderer screenRenderer, |
21 in Rectangle modelDamage, scope Renderer modelRenderer, | 20 in Rectangle modelDamage, scope Renderer modelRenderer, |