Vizard 7 » Command Index » Vizard objects » window » <window>.drawOrder
7.7

<window>.drawOrder

Sets the draw order of the window.

<window>.drawOrder(  
order  
)  
order
The draw order of the window

Remarks

When multiple windows are added to the environment, they are drawn from lowest to highest draw order. The default draw order of a window is 0. The draw order can be retrieved with window.getDrawOrder().

Return Value

None

Example

floor = viz.add('tut_ground.wrl')
window1 = viz.addWindow()
window2 = viz.addWindow()
window1.setPosition(0,1)
window1.drawOrder(2)
print(window1.getDrawOrder())
print(window2.getDrawOrder())