Viewport::enum

Viewport::enum

Describes the flags set in Viewport.

Members 
Description 
View_IsRenderTexture = 1 
 
View_AlphaComposite = 2 
Support blending into the destination through a render target texture. Only blend/ alpha and add modes are supported. Render the texture with source blend factor 1, destination blend factor 1-sa. 
View_UseScissorRect = 4 
 
View_NoSetState = 8 
Don't set viewport/ scissor state on device. Currently only supported by some renderer implementations. 
View_NoHWViewMatrix = 0x10 
If this flag is set, render HAL will not multiply apply the HW view matrix during rendering; instead it will expect users to apply it themselves by first calling GetHWViewMatrix
View_Orientation_Normal 
Defines orientation of the viewport coordinate system within the buffer.This means that BufferWidth/Height remain the same for both orientations, but Top, Left, Width, Height (and scissor coordinates) change. So, to rotate 480x960 view to landscape, would specify:
{ BufferWidth,Height = 480,960; Left,Top = 0,0; Width,Height = 960,480, Flags = View_Orientation_R90 } 
View_Orientation_R90 
 
View_Orientation_180 
 
View_Orientation_L90 
 
View_Orientation_Mask 
 
View_RenderTextureAlpha = View_IsRenderTexture | View_AlphaComposite 
 
View_FirstHalFlag = 0x100 
Hal-specific flags should start here. 
View_Stereo_AnySplit = 0xc0 
For stereo in display hardware only; uses the same size buffer but half for each eye. 
View_Stereo_SplitH = 0x80 
For stereo in display hardware only; uses the same size buffer but half for each eye. 
View_Stereo_SplitV = 0x40 
For stereo in display hardware only; uses the same size buffer but half for each eye. 
View_HalfPixelOffset = 0x100 
The viewport should offset by a half-pixel to be on the pixel centers. 
View_NoClear = 0x200 
The viewport should not invoke a clear operation. Useful if a customer knows that his or her content will have a fully opaque backdrop of some sort and wants to avoid an extra 100% overdraw.