logo
pub struct GLES2Context {}

Implementations

Allocates a new OpenGLES 2.0 context that can be used to render to Offscreen framebuffers (Rendering to Onscreen framebuffers is not currently supported).

To actually access the OpenGLES 2.0 api itself you need to use GLES2Context::get_vtable. You should not try to directly link to and use the symbols provided by the a system OpenGLES 2.0 driver.

Once you have allocated an OpenGLES 2.0 context you can make it current using push_gles2_context. For those familiar with using the EGL api, this serves a similar purpose to eglMakeCurrent.

Before using this api applications can check for OpenGLES 2.0 api support by checking for FeatureID::OglFeatureIdGles2Context support with has_feature. This fn will return false and return an GLES2ContextError::Unsupported error if the feature isn’t available.

ctx

A Context

Returns

A newly allocated GLES2Context or None if there was an error and error will be updated in that case.

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.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

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

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

Converts the given value to a String. Read more

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.