Function in ldk_camera.h

ldk_camera_get_projection_matrix

Get camera projection matrix.

LDK_API bool ldk_camera_get_projection_matrix(
 LDKEntity entity,
 float aspect,
 Mat4 *out_projection
);

Parameters

LDKEntity entity
Entity to inspect or modify.
float aspect
Viewport aspect ratio.
Mat4 *out_projection
Receives the projection matrix.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_camera.h

ldk_camera_get_view_matrix

Get camera view matrix.

LDK_API bool ldk_camera_get_view_matrix(
 LDKEntity entity,
 Mat4 *out_view
);

Parameters

LDKEntity entity
Entity to inspect or modify.
Mat4 *out_view
Receives the camera view matrix.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_camera.h

ldk_camera_get_world_matrix

Get camera world matrix.

LDK_API bool ldk_camera_get_world_matrix(
 LDKEntity entity,
 Mat4 *out_world
);

Parameters

LDKEntity entity
Entity to inspect or modify.
Mat4 *out_world
Receives the computed world transformation matrix.

Returns

True if the operation succeeds; false otherwise.