Function


mrnCameraInit

Initializes camera

Syntax

#include <mrn/Camera.h>
void mrnCameraInit( MrnCamera *camera_ptr, const u32 type );

Description

Initializes camera. Select either MRN_CAMERA_TYPE_PERSPECTIVE or MRN_CAMERA_TYPE_ORTHOGONAL for type.

mrnCameraGenerateGfx

Generates a gfx of the camera settings and returns the updated gfx pointer

Syntax

#include <mrn/Camera.h>
Gfx *mrnCameraGenerateGfx( MrnCamera *camera_ptr,
                           MrnContext *context_ptr,
                           Gfx *gfx_ptr );

Description

Generates a gfx of the camera settings and returns the updated gfx pointer. This function is called inside mrn module.