Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 08:10:18 pm
Xith3D CommunityGeneral CategoryNews (Moderators: Marvin Fröhlich, 'n ddrylliog)Viewport
Pages: [1]
Print
Author Topic: Viewport  (Read 846 times)
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« on: 06. March 2007, 08:34:32 pm »

As you may know, any RenderPass could have its own viewport. This is now also possible to set at Canvas3D/CanvasPeer level. By default the Canvas'es viewport is null. This means, that the current size and a location of (0, 0) is used.
If a RenderPass has a non-null viewport, then this setting overrules the Canvas'es viewport for this RenderPass (as it is for all other RenderPass configs.

Additionally there's a new property on CanvasPeer level called getMaxViewport(), that will return a maximum sized viewport (with no effect, just for information). This property is fetched from OpenGL at Canvas creation time. The properties max-texture-size and max-texture-units are now also fetched at canvas creation time and not with hte first frame.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic