[go: up one dir, main page]

Struct glow::Context

source ·
pub struct Context { /* private fields */ }

Implementations§

👎Deprecated: Use the NativeTexture constructor instead

Creates a texture from an external GL name.

This can be useful when a texture is created outside of glow (e.g. OpenXR surface) but glow still needs access to it for rendering.

👎Deprecated: Use the NativeFramebuffer constructor instead

Creates a framebuffer from an external GL name.

This can be useful when a framebuffer is created outside of glow (e.g: via surfman or another crate that supports sharing of buffers between GL contexts), but glow needs to set it as a target.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.