Struct glfw::PRenderContext

source ·
pub struct PRenderContext(/* private fields */);

Methods from Deref<Target = RenderContext>§

source

pub fn get_proc_address(&mut self, procname: &str) -> GLProc

Wrapper function, please refer to Window::get_proc_address

source

pub fn get_instance_proc_address( &mut self, instance: Instance, procname: &str, ) -> VkProc

Wrapper function, please refer to Window::get_instance_proc_address

source

pub fn get_physical_device_presentation_support( &self, instance: Instance, device: PhysicalDevice, queue_family: u32, ) -> bool

Wrapper function, please refer to Window::get_physical_device_presentation_support

source

pub fn create_window_surface( &self, instance: Instance, allocator: *const AllocationCallbacks<'_>, surface: *mut SurfaceKHR, ) -> Result

Wrapper function, please refer to Window::create_window_surface

Trait Implementations§

source§

impl Debug for PRenderContext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for PRenderContext

source§

type Target = RenderContext

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for PRenderContext

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl HasDisplayHandle for PRenderContext

source§

fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>

Get a handle to the display controller of the windowing system.
source§

impl HasWindowHandle for PRenderContext

source§

fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>

Get a handle to the window.
source§

impl Send for PRenderContext

source§

impl Sync for PRenderContext

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> HasRawDisplayHandle for T
where T: HasDisplayHandle + ?Sized,

source§

fn raw_display_handle(&self) -> Result<RawDisplayHandle, HandleError>

👎Deprecated: Use HasDisplayHandle instead
source§

impl<T> HasRawWindowHandle for T
where T: HasWindowHandle + ?Sized,

source§

fn raw_window_handle(&self) -> Result<RawWindowHandle, HandleError>

👎Deprecated: Use HasWindowHandle instead
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.