Function dunge::context

source ·
pub async fn context() -> Result<Context, FailedMakeContext>
Expand description

Creates the context instance.

If you need a window call the [window] function.

§Errors

Returns an error when the context could not be created. See FailedMakeContext for details.