cf_app_get_pixel_scale¶
Category: app
GitHub: cute_app.h
Returns the number of physical pixels per logical point for the app's window.
Remarks¶
This is the ratio CF actually renders at internally -- e.g. 2.0f on a 2x Retina display. Unlike
cf_app_get_dpi_scale (the OS's suggested UI content scale, which is informational only), this value
directly reflects the backbuffer/canvas pixel density and is what you'd multiply a logical size by to
get physical pixels. Returns 1.0f if CF_APP_OPTIONS_NO_HIGH_DPI_BIT was passed to cf_make_app.
Related Pages¶
cf_app_get_dpi_scale
cf_app_get_size
cf_app_get_canvas_width
cf_app_get_canvas_height