Canvas properties: Difference between revisions

Jump to navigation Jump to search
(→‎Planned Features: omega95's idea: http://flightgear.org/forums/viewtopic.php?f=71&t=17278#p164260)
Line 78: Line 78:
=== Depth Sorting {{Done}} ===
=== Depth Sorting {{Done}} ===
Normally elements inside a group are drawn in the order they appear in the property tree. By adding a "z-index" property to certain elements it is possible to change the render order inside a group. It's value defaults to zero, therefore setting a negative value renders the according elements below its siblings and a positive index above the other elements.
Normally elements inside a group are drawn in the order they appear in the property tree. By adding a "z-index" property to certain elements it is possible to change the render order inside a group. It's value defaults to zero, therefore setting a negative value renders the according elements below its siblings and a positive index above the other elements.
=== Symbolic Constants vs. Magic Numbers ===
{{progressbar|60}}
We want to use symbolic constants everywhere and most parts already use them. I've also added them now to the clipboard (will commit it later with some more changes).
Constants will always be integer variables so we the constants defined in eg. api.nas should stay there. Maybe we can also write them from C++ to always stay in sync if anything changes, but that needs to wait until James has done his code.


=== Images: Static Textures & Cascaded Canvases {{Done}} ===
=== Images: Static Textures & Cascaded Canvases {{Done}} ===

Navigation menu