docs: clarify get_framebuffer_dimensions
This commit is contained in:
parent
c24619861e
commit
a1b8d2bf47
|
@ -25,9 +25,9 @@ pub trait GLGraphicsBackend {
|
||||||
|
|
||||||
/// Returns the dimensions of the window, or screen, etc in points.
|
/// Returns the dimensions of the window, or screen, etc in points.
|
||||||
///
|
///
|
||||||
/// That are the scaled pixels of the underlying graphics backend.
|
/// These are the actual pixels of the underlying graphics backend.
|
||||||
/// For nested compositors this will respect the scaling of the root compositor.
|
/// For nested compositors you will need to handle the scaling
|
||||||
/// For drawing directly onto hardware this unit will be equal to actual pixels.
|
/// of the root compositor yourself, if you want to.
|
||||||
fn get_framebuffer_dimensions(&self) -> (u32, u32);
|
fn get_framebuffer_dimensions(&self) -> (u32, u32);
|
||||||
|
|
||||||
/// Returns true if the OpenGL context is the current one in the thread.
|
/// Returns true if the OpenGL context is the current one in the thread.
|
||||||
|
|
Loading…
Reference in New Issue