Class RenderView
Encapsulates camera, viewport, and projection settings for a render pass.
class RenderView
: dlib.core.ownership.Owner;
Constructors
| Name | Description |
this
(x, y, width, height, owner)
|
Constructs a render view with the given viewport and owner.
|
Fields
| Name | Type | Description |
aspectRatio
|
float | Aspect ratio of the viewport.
|
camera
|
Camera | The camera used for rendering.
|
height
|
uint | Viewport height in pixels.
|
orthoScale
|
float | Scale for orthographic projection.
|
pipeline
|
RenderPipeline | Render pipeline used for this view.
|
projection
|
uint | Projection type (Perspective, Ortho, OrthoScreen).
|
width
|
uint | Viewport width in pixels.
|
x
|
uint | Viewport position X coordinate.
|
y
|
uint | Viewport position Y coordinate.
|
Methods
| Name | Description |
cameraPosition
()
|
Returns the absolute camera position in world space.
|
invViewMatrix
()
|
Returns the inverse view matrix for the current camera.
|
projectionMatrix
()
|
Returns the projection matrix for the current projection type.
|
resize
(width, height)
|
Resizes the viewport and updates the aspect ratio.
|
setPosition
(x, y)
|
Sets the viewport position.
|
viewMatrix
()
|
Returns the view matrix for the current camera.
|
zFar
()
|
Returns the far clipping plane distance.
|
zNear
()
|
Returns the near clipping plane distance.
|