Ninja Library - Camera Function

njSetCameraDepth

Sets near clipping and far clipping limit

FORMAT

void njSetCameraDepth(*c, n, f)
NJS_CAMERA *c
Float n
Float f

PARAMETER

 *c  Pointer to camera structure 
 n  Near clipping limit 
 f  Far clipping limit 

RETURN

None

DESCRIPTION

Specifies the near clipping and far clipping limit. In the Ninja coordinate system, Z axis values are negative in the far direction of the screen. Therefore n and f are specified as negative values.

(-1.0 => n > f => -65535.0)

If the specified value is larger than -1.0 or smaller than - 65535.0, it is automatically taken as -1.0 and -65535.0, respectively.


EXAMPLE

#define N_CLIP   -500.f
#define F_CLIP   -50000.f
NJS_CAMERA c;
njInitCamera(&c);
njSetCameraDepth(&c, N_CLIP, F_CLIP);
njSetCamera(&c);

njSetCameraDepth
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999