cf_canvas_defaults¶
Category: graphics
GitHub: cute_graphics.h
Returns a good set of default values for a CF_CanvasParams to call cf_make_canvas.
Remarks¶
Formats and usages (including the negotiated depth format) fill in regardless of size,
so cf_canvas_defaults(0, 0) is the right starting point for attach-mode canvases
(attach_target), which take their size from the attached texture and mip. Standalone
canvases need a real size -- cf_make_canvas rejects zero-sized targets.
Related Pages¶
CF_CanvasParams
cf_clear_color
cf_make_canvas
cf_destroy_canvas
cf_apply_canvas