Canvas view camera element: Difference between revisions

Jump to navigation Jump to search
m
→‎Roadmap: start adding high-level description for the reviewer/commit message
m (→‎Roadmap: start adding high-level description for the reviewer/commit message)
Line 50: Line 50:
| [[File:Canvas-view-element-prototype-by-icecode gl.png|thumb|upright|[[Canvas]] gui dialog with a custom canvas element to display view manager views (based on code prototyped by F-JJTH)]]
| [[File:Canvas-view-element-prototype-by-icecode gl.png|thumb|upright|[[Canvas]] gui dialog with a custom canvas element to display view manager views (based on code prototyped by F-JJTH)]]
|}
|}
== Implementation / for the reviewer ==
{{Note|This section provide a rough overview for the potentiaal reviewer, which is also intended to be used as the commit message when/if this should get committed}}
This set of patches implements a new Canvas::Element by creating a sub-class named Canvas::View. The meat of it is in the constructor, i.e. Canvas::View::View(), where an offscreen camera (RTT/FBO) is set up, the FGCanvasSystemAdapter file has been extended to provide access to the FlightGear view manager to compute/obtain the view specific view matrix, which is then updated in Canvas::View::update() accordingly.
To actually test the new element using the [[Nasal Console]] and paste the following snippet of code into it:
<syntaxhighlight lang="nasal">
</syntaxhighlight>


== Roadmap ==
== Roadmap ==

Navigation menu