ezEngine  Milestone 7
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 = ezProjectionDepthRange::MinusOneToOne
 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.
 

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

Enumerator
MinusOneToOne 

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

ZeroToOne 

Near plane at 0, far plane at 1.


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