GLFWframebuffersizefun

Type Alias GLFWframebuffersizefun 

Source
pub type GLFWframebuffersizefun = Option<unsafe extern "C" fn(*mut GLFWwindow, i32, i32)>;
Expand description

@brief The function pointer type for framebuffer size callbacks.

This is the function pointer type for framebuffer size callbacks. A framebuffer size callback function has the following signature: @code void function_name(GLFWwindow* window, int width, int height) @endcode

@param[in] window The window whose framebuffer was resized. @param[in] width The new width, in pixels, of the framebuffer. @param[in] height The new height, in pixels, of the framebuffer.

@sa @ref window_fbsize @sa @ref glfwSetFramebufferSizeCallback

@since Added in version 3.0.

@ingroup window

Aliased Type§

pub enum GLFWframebuffersizefun {
    None,
    Some(unsafe extern "C" fn(*mut GLFWwindow, i32, i32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut GLFWwindow, i32, i32))

Some value of type T.