cf_app_set_canvas_blit_filter¶
Category: app
GitHub: cute_app.h
Sets the filter used when the app's canvas is blitted onto the screen, if their sizes differ.
| Parameters | Description |
|---|---|
filter |
The filter to use: CF_FILTER_NEAREST (default; crisp/blocky, good for pixel art) or CF_FILTER_LINEAR (smooth). |
Remarks¶
This only matters when the app's canvas size doesn't match the window's physical pixel size -- for example after resizing the canvas with cf_app_set_canvas_size. When the canvas already matches the physical size (the default), this setting has no visible effect since no stretching occurs.
Related Pages¶
cf_app_set_canvas_size
cf_app_get_canvas_width
cf_app_get_canvas_height
CF_Filter