XII Release 0.1.0
Loading...
Searching...
No Matches
xiiClipSpaceDepthRange Struct Reference

#include <Declarations.h>

Public Types

enum  Enum { MinusOneToOne , ZeroToOne }

Static Public Attributes

static XII_FOUNDATION_DLL Enum Default = xiiClipSpaceDepthRange::ZeroToOne
 Copyright (c) Theophilus Eriata. All Rights Reserved.

Detailed Description

Describes for which depth range a projection matrix is constructed.

Different Rendering APIs use different depth ranges. E.g. OpenGL uses -1 for the near plane and +1 for the far plane. DirectX uses 0 for the near plane and 1 for the far plane.

Member Enumeration Documentation

◆ Enum

Enumerator
MinusOneToOne 

Near plane at -1, far plane at +1.

ZeroToOne 

Near plane at 0, far plane at 1.

Member Data Documentation

◆ Default

xiiClipSpaceDepthRange::Enum xiiClipSpaceDepthRange::Default = xiiClipSpaceDepthRange::ZeroToOne
static

Copyright (c) Theophilus Eriata. All Rights Reserved.

Holds the default value for the projection depth range on each platform. This can be overridden by renderers to ensure the proper range is used when they become active. On Windows/D3D this is initialized with 'ZeroToOne' by default on all other platforms/OpenGL it is initialized with 'MinusOneToOne' by default.


The documentation for this struct was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Math/Declarations.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Math/Implementation/Math.cpp