Class RenderView

Encapsulates camera, viewport, and projection settings for a render pass.

class RenderView
  : dlib.core.ownership.Owner;

Constructors

NameDescription
this (x, y, width, height, owner) Constructs a render view with the given viewport and owner.

Fields

NameTypeDescription
aspectRatio floatAspect ratio of the viewport.
camera CameraThe camera used for rendering.
height uintViewport height in pixels.
orthoScale floatScale for orthographic projection.
pipeline RenderPipelineRender pipeline used for this view.
projection uintProjection type (Perspective, Ortho, OrthoScreen).
width uintViewport width in pixels.
x uintViewport position X coordinate.
y uintViewport position Y coordinate.

Methods

NameDescription
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.