6. GlScene

Scene structure are stored with a xml structure.

First, scene's data (viewport and background color) are store in data element

Syntax

<data>
  <viewport>(x,y,width,height)</viewport>
  <background>(red,green,blue,alpha)</background>
</data>
	

After, scene children are store in children element

GlLayer and GlComposite have two elements : data and children

All others glEntities have one element : data

The scheme of glScene xml are (for example) :

<scene>
  <data>
    ...
  </data>
  <children>
    <LayerName1 type="GlLayer">
      <data>
	...
      </data>
      <children>
	...
      </children>
    </LayerName>
    <LayerName2 type="GlLayer">
      <data>
	...
      </data>
      <children>
	<EntityName type="EntityType">
	  <data>
	    ...
	  </data>
	</EntityName3>
      </children>
    </LayerName2>
  </children>
</scene>
	

For glEntities data see .cpp file