b3dCreateLight

Creates light entity (0=point, 1=directional, 2=spot, returns light handle). Takes lightType (0=LIGHT_POINT, 1=LIGHT_DIRECTIONAL, 2=LIGHT_SPOT). Returns light entity handle (Int).

3D Graphics

Parameters & Returns

Parameters

lightType Int

Returns

Int

Quick Summary

Creates light entity (0=point, 1=directional, 2=spot, returns light handle). Takes lightType (0=LIGHT_POINT, 1=LIGHT_DIRECTIONAL, 2=LIGHT_SPOT). Returns light entity handle (Int).

Technical Exegesis...

Creates light entity (0=point, 1=directional, 2=spot, returns light handle). Takes lightType (0=LIGHT_POINT, 1=LIGHT_DIRECTIONAL, 2=LIGHT_SPOT). Returns light entity handle (Int). Creates new ENTITY_LIGHT entity, allocates Light3D struct, sets type=(LightType)lightType, initializes defaults (white color, intensity=1.0, range=10.0, spotAngle=120 degrees), returns handle. Use b3dPositionEntity to place light.

This function creates lights.

Example

Example.bam
; No example implemented yet