gamedev:canvassystem:view
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
gamedev:canvassystem:view [2015/06/17 23:47] – dragonlord | gamedev:canvassystem:view [2024/03/14 16:47] (current) – dragonlord |
---|
<WRAP youarehere> | <WRAP youarehere> |
[[:start|Start Page]] >> [[gamedev:main|Game Development with the Drag[en]gine]] >> [[gamedev:canvassystem:introduction|Canvas System]] >> **Canvas View** | [[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> [[gamedev:canvassystem:introduction|Canvas System]] >> **Canvas View** |
</WRAP> | </WRAP> |
| |
====== Canvas View ====== | ====== Canvas View ====== |
Canvas are organized in a tree structure. A [[http://dragengine.rptd.ch/docs/dragengine/latest/classdeCanvasView.html|canvas view]] contains 0 or more child canvas rendering them in a determined order. Since canvas are transparent in general they can be easily stacked. The **order** numbe assigned to child canvas determines the render order. Canvas with lower numbers are rendered underneath canvas with higher numbers. If two or more canvas have the same order number the render order is undefined. Child canvas are located relative to the upper left corner of the canvas view. The child position and size are measured in pixels. | Canvas are organized in a tree structure. A #@LinkApiDocDE2_HTML~classdeCanvasView.html,canvas view~@# contains 0 or more child canvas rendering them in a determined order. Since canvas are transparent in general they can be easily stacked. The **order** numbe assigned to child canvas determines the render order. Canvas with lower numbers are rendered underneath canvas with higher numbers. If two or more canvas have the same order number the render order is undefined. Child canvas are located relative to the upper left corner of the canvas view. The child position and size are measured in pixels. |
| |
<WRAP center box 650px> | <WRAP center box 650px> |
| |
====== Root Canvas ====== | ====== Root Canvas ====== |
Canvas views are the only canvas possible to be used as root canvas. A root canvas is the top level canvas and the starting point of 2D rendering. Root canvas are used in [[http://dragengine.rptd.ch/docs/dragengine/latest/classdeRenderWindow.html|render windows]] (created automatically), [[gamedev:canvassystem:canvascanvas|canvas canvas]] and [[http://dragengine.rptd.ch/docs/dragengine/latest/classdeDSRenderableCanvas.html|dynamic skin canvas renderable]]. Especially in dynamic skin renderables canvas views allow to define 3D component textures using the canvas system. | Canvas views are the only canvas possible to be used as root canvas. A root canvas is the top level canvas and the starting point of 2D rendering. Root canvas are used in #@LinkApiDocDE2_HTML~classdeRenderWindow.html,render windows~@# (created automatically), [[gamedev:canvassystem:canvasview|canvas canvas view]] and #@LinkApiDocDE2_HTML~classdeDSRenderableCanvas.html,dynamic skin canvas renderable~@#. Especially in dynamic skin renderables canvas views allow to define 3D component textures using the canvas system. |
| |
gamedev/canvassystem/view.1434584830.txt.gz · Last modified: 2015/06/17 23:47 by dragonlord