pub struct GlContext<'window> { /* private fields */ }
Expand description

An OpenGL context controller.

Implementations§

Constructs from a reference to Window, or Err on failure.

Returns the internal pointer of the OpenGL context.

Returns the size that can be used to draw.

Returns whether the extension name is supported.

Panics

Panics if name contains a null character.

Loads the library from path.

Errors

Returns Err if failed to load the library.

Panics

Panics if path contains a null character.

Unloads all of loaded libraries.

Returns the raw address of the procedure.

Safety

This return value is valid only on supported the extension. You must check by supported_extension before casting to any function pointer.

Panics

Panics if proc contains a null character.

Trait Implementations§

Sets the interval mode of swapping buffers. Read more
Swaps buffers immediately.
Formats the value using the given formatter. Read more
Executes the destructor for this type. 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.