Skip to content

cf_app_get_canvas

Category: app
GitHub: cute_app.h


Fetches the app's internal canvas for displaying content on the screen.

CF_Canvas cf_app_get_canvas();

Remarks

This is an advanced function. If you just want to draw things on screen, try checking out CF_Sprite. The app's canvas can be used to implement low-level graphics features, such as multi-pass algorithms. Be careful about calling cf_app_set_canvas_size, as it will invalidate any references to the app's canvas.

If you fetch this canvas and have MSAA on (see cf_app_set_msaa) you may not sample from the canvas.

cf_app_set_canvas_size
cf_app_get_canvas_width
cf_app_get_canvas_height
cf_app_set_vsync
cf_app_get_vsync