nw::demo::Utility::CreateOrthoCamera Member Function

Syntax

static nw::gfx::Camera * CreateOrthoCamera(
     os::IAllocator * allocator,
     const nw::math::VEC3 & cameraPosition = CAMERA_POSITION,
     const nw::math::VEC3 & targetPosition = TARGET_POSITION,
     f32 nearClip = NEAR_CLIP,
     f32 farClip = FAR_CLIP,
     const nw::math::VEC2 & projectionCenter = PROJECTION_CENTER,
     f32 projectionHeight = PROJECTION_HEIGHT,
     nw::math::PivotDirection pivotDirection = nw::math::PIVOT_UPSIDE_TO_TOP,
     f32 wScale = 0.0f
);

Arguments

Name Description
in allocator Allocator used for generation.
in cameraPosition Camera position coordinates.
in targetPosition Camera target coordinates.
in nearClip Near clip value.
in farClip Far clip value.
in projectionCenter The projection center position.
in projectionHeight The projection height.
in pivotDirection Upward direction of the screen.
in wScale wScale value.

Return Values

Returns the camera that was created.

Description

Creates a camera.


CONFIDENTIAL