Struct asi_opengl::OpenGL [] [src]

pub struct OpenGL { /* fields omitted */ }

The OpenGL context.

Methods

impl OpenGL
[src]

[src]

Clear the screen with a specific color.

[src]

Set the color for clear.

[src]

Update the screen

[src]

Enable something

[src]

Disable something

[src]

Configure blending

[src]

Load a shader program

[src]

Get uniform from a shader.

[src]

Get the attribute

[src]

Create some new buffers

[src]

Bind a buffer from new_buffers()

[src]

Set the bound buffer's data

[src]

Use a program.

[src]

Set a mat4 uniform

[src]

Set an int uniform

[src]

Set a float uniform

[src]

Set a vec2 uniform

[src]

Set a vec3 uniform

[src]

Set a vec4 uniform

[src]

Draw the elements.

[src]

Create a new texture.

[src]

Set the bound texture's pixels

[src]

Update the pixels of an already bound & set texture.

[src]

Use a texture.

[src]

Set vertex attribute to current buffer.

[src]

Update the viewport.

Trait Implementations

Auto Trait Implementations

impl !Send for OpenGL

impl !Sync for OpenGL