cf_draw3d_push_projection¶
Category: draw3d
GitHub: cute_draw3d.h
Pushes the projection matrix used for 3d mesh submissions.
| Parameters | Description |
|---|---|
projection |
The projection matrix, e.g. from cf_perspective or cf_ortho. |
Remarks¶
Defaults to the identity matrix, so nothing sensible renders until you push a real projection. cf_perspective and cf_ortho produce matrices with the clip conventions this layer (and SDL_GPU) expects -- clip-space z in [0, 1]. The 2d projection set by cf_draw_projection is unrelated and does not affect meshes.
Related Pages¶
cf_ortho
cf_draw3d_pop_projection
cf_draw3d_peek_projection
cf_draw3d_push_view
cf_perspective