Method

CoglFramebufferfrustum

Declaration [src]

void
cogl_framebuffer_frustum (
  CoglFramebuffer* framebuffer,
  float left,
  float right,
  float bottom,
  float top,
  float z_near,
  float z_far
)

Description [src]

Replaces the current projection matrix with a perspective matrix for a given viewing frustum defined by 4 side clip planes that all cross through the origin and 2 near and far clip planes.

Stability:Unstable
Available since:1.10

Parameters

left float
 

X position of the left clipping plane where it intersects the near clipping plane.

right float
 

X position of the right clipping plane where it intersects the near clipping plane.

bottom float
 

Y position of the bottom clipping plane where it intersects the near clipping plane.

top float
 

Y position of the top clipping plane where it intersects the near clipping plane.

z_near float
 

The distance to the near clipping plane (Must be positive)

z_far float
 

The distance to the far clipping plane (Must be positive)