b3dCreateCamera

Creates a new camera entity for viewing the 3D scene. Takes no parameters. Returns camera entity handle.

3D Graphics

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

Creates a new camera entity for viewing the 3D scene. Takes no parameters. Returns camera entity handle.

Technical Exegesis...

Creates a new camera entity for viewing the 3D scene. Takes no parameters. Returns camera entity handle. Increments g_nextEntityHandle. Initializes Entity3D with type ENTITY_CAMERA. Sets default position (0,0,0), rotation (0,0,0), scale (1,1,1). Allocates Camera3D struct with default FOV, near/far planes. Stores in g_entities map. If g_activeCamera is 0 (no active camera), automatically sets this camera as active via g_activeCamera = handle.

Example

Example.bam
; No example implemented yet