ezEngine  Milestone 9
ezProjectionDepthRange Struct Reference

This enum describes for which depth range a projection matrix is constructed. More...

#include <Declarations.h>

Public Types

enum  Enum { MinusOneToOne, ZeroToOne }
 

Static Public Attributes

static Enum Default
 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. More...
 

Detailed Description

This enum 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

ezProjectionDepthRange::Enum ezProjectionDepthRange::Default
static
Initial value:

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.


The documentation for this struct was generated from the following files: