# CCDirectorProjection Constants Reference

Declared in | CCDirector.h

### CCDirectorProjection

Possible OpenGL projections used by director

#### Definition

`typedef NS_ENUM(NSUInteger, CCDirectorProjection ) {
CCDirectorProjection2D,
CCDirectorProjection3D,
CCDirectorProjectionCustom,
CCDirectorProjectionDefault = CCDirectorProjection2D,
};`

#### Constants

`CCDirectorProjection2D`

  sets a 2D projection (orthogonal projection).

  Declared In `CCDirector.h`.

`CCDirectorProjection3D`

  sets a 3D projection with a fovy=60, znear=0.5f and zfar=1500.

  Declared In `CCDirector.h`.

`CCDirectorProjectionCustom`

  it calls “updateProjection” on the projection delegate.

  Declared In `CCDirector.h`.

`CCDirectorProjectionDefault`

  Detault projection is 3D projection

  Declared In `CCDirector.h`.

#### Declared In

`CCDirector.h`