class
Viewport
Viewport determines to which RenderTarget should rendering be performed.
It allows you to render to a sub-region of the target by specifying the area rectangle, and allows you to set up color/depth/stencil clear values for that specific region.
Public
Methods
SetTarget
Determines the render target the viewport is associated with.
GetTarget
staticCreate
Creates a new viewport.
staticGetRttiStatic
~TViewport<IsRenderProxy>
Protected
Constructors
Viewport
Viewport
*********************************************************************
Methods
MarkRenderProxyDataDirtyInternal
Marks the render proxy data as dirty.
This causes the data from the main thread object be synced with the render thread version of the object.
GetTargetWidth
Gets the render target width.
GetTargetHeight
Gets the render target width.
CreateRenderProxySyncPacket
Creates a data packet that will be used for syncing the core object with it's render proxy.
Caller must free the retrieved packet using the provided allocator when done using it.
GetCoreDependencies
Populates the provided array with all core objects that this core object depends upon.
Dependencies are required for syncing to the render thread, so the system can be aware to update the dependant objects if a dependency is marked as dirty (for example updating a camera's viewport should also trigger an update on camera so it has a chance to potentially update its data).
CreateRenderProxy
Creates an object that contains render thread specific data and methods for this object.
Can be null if such object is not required.
staticCreateEmpty
Creates an empty viewport for serialization purposes.