20,741
edits
(https://forum.flightgear.org/viewtopic.php?f=37&t=36843&p=362121#p362111) |
|||
Line 46: | Line 46: | ||
Under the hood, each Canvas is implemented as an owner-drawn gauge (OD_Gauge), canvas textures are positioned in the scene using a texture visitor (OSG), replacing static textures as needed. | Under the hood, each Canvas is implemented as an owner-drawn gauge (OD_Gauge), canvas textures are positioned in the scene using a texture visitor (OSG), replacing static textures as needed. | ||
Each Canvas texture is | Each Canvas texture is then composed of so called "elements", the lowest-level element being the "group" which is primarily used to logically structure/organize a texture into a hierarchy of lower-level building blocks. Therefore, each Canvas texture always has a "root" node, which is a group. | ||
In turn, each group may consist of specific "element" implementations, i.e. to render certain types of context, such as: | In turn, each group may consist of specific "element" implementations, i.e. to render certain types of context, such as: |