pub struct GLState { /* private fields */ }
Expand description

The graphics state.

This type represents the current state of a given graphics context. It acts as a forward-gate to all the exposed features from the low-level API but adds a small cache layer over it to prevent from issuing the same API call (with the same parameters).

Implementations

Invalidate the currently in-use vertex array.

Invalidate the currently in-use array buffer.

Invalidate the currently in-use shader program.

Invalidate the currently in-use framebuffer.

Invalidate the currently in-use element array buffer.

Invalidate the currently in-use texture unit.

Invalidate the texture bindings.

Invalidate the uniform buffer bindings.

Invalidate the currently in-use viewport.

Invalidate the currently in-use clear color.

Invalidate the currently in-use blending state.

Invalidate the currently in-use blending equation.

Invalidate the currently in-use blending function.

Invalidate the currently in-use depth test.

Invalidate the currently in-use depth test comparison.

Invalidate the currently in-use depth write state.

Invalidate the currently in-use face culling state.

Invalidate the currently in-use face culling order.

Invalidate the currently in-use face culling mode.

Invalidate the currently in-use vertex restart state.

Invalidate the currently in-use patch vertex number.

Invalidate the currently in-use sRGB framebuffer state.

Get the OpenGL vendor name.

Cache the name on the first call and then re-use it for later calls.

Get the OpenGL renderer name.

Cache the name on the first call and then re-use it for later calls.

Get the OpenGL version.

Cache the version on the first call and then re-use it for later calls.

Get the GLSL version.

Cache the version on the first call and then re-use it for later calls.

Get the number of maximum elements an array texture can hold.

Cache the number on the first call and then re-use it for later calls.

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.