Skip to content

cf_draw3d_push_view

Category: draw3d
GitHub: cute_draw3d.h


Pushes the view matrix used for 3d mesh submissions.

void cf_draw3d_push_view(CF_M4x4 view);
Parameters Description
view The view matrix, e.g. from cf_look_at.

Remarks

Defaults to the identity matrix. Together with the projection this forms u_view_projection, the one uniform member the shader contract requires. Cameras are live for draw-list replay: a recorded level renders under whatever view is current at cf_draw_list time.

cf_look_at
cf_draw3d_pop_view
cf_draw3d_peek_view
cf_draw3d_push_projection