Canvas Threading: Difference between revisions

Jump to navigation Jump to search
m
(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 the 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 building blocks. Therefore, each Canvas texture always has a "root" node, which is a group.
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:

Navigation menu