Capabilities / camera
camera
@1The view, as the game has it this frame. Answered by a pack: which matrix is the camera is not a property of a runtime, so no backend can supply it.
6 callsSurface as of 2026-10-21
Calls
view
view() -> Result<Mat4>
In C, from surface.h
int32_t axiom_camera_view(AxiomMat4* out);
projection
projection() -> Result<Mat4>
In C, from surface.h
int32_t axiom_camera_projection(AxiomMat4* out);
view_projection
view_projection() -> Result<Mat4>
The product, when a pack can read it more cheaply than the host multiplying.
In C, from surface.h
int32_t axiom_camera_view_projection(AxiomMat4* out);
position
position() -> Result<Vec3>
In C, from surface.h
int32_t axiom_camera_position(AxiomVec3* out);
fov
fov() -> Result<f32>
Vertical field of view, in radians.
In C, from surface.h
int32_t axiom_camera_fov(float* out);
clip
clip() -> Result<Clip>
In C, from surface.h
int32_t axiom_camera_clip(AxiomClip* out);
Errors
A call that returns Result crosses as a status: 0 is success, and the others are these errors, by their index in the capability.
NoCamera