Struct crayon::graphics::GraphicsSystemShared [] [src]

pub struct GraphicsSystemShared { /* fields omitted */ }

The multi-thread friendly parts of GraphicsSystem.

Methods

impl GraphicsSystemShared
[src]

[src]

Returns the size in points of the client area of the window.

The client area is the content of the window, excluding the title bar and borders.

[src]

Returns the size in pixels of the client area of the window.

The client area is the content of the window, excluding the title bar and borders. These are the dimensions of the frame buffer.

[src]

Submit a task into named bucket.

Tasks inside bucket will be executed in sequential order.

impl GraphicsSystemShared
[src]

[src]

Creates an view with SurfaceSetup.

[src]

Gets the SurfaceParams if available.

[src]

Returns true if shader is exists.

[src]

Delete surface object.

impl GraphicsSystemShared
[src]

[src]

Lookup shader object from location.

[src]

Create a shader with initial shaders and render state. Pipeline encapusulate all the informations we need to configurate OpenGL before real drawing.

[src]

Gets the ShaderParams if available.

[src]

Returns true if shader is exists.

[src]

Delete shader state object.

impl GraphicsSystemShared
[src]

[src]

Lookup mesh object from location.

[src]

Create a new mesh object from location.

[src]

Create a new mesh object.

[src]

Gets the MeshParams if available.

Notes that this function might returns None even if is_mesh_alive returns true. The underlying object might be still in creation process and can not be provided yet.

[src]

Checks whether the mesh is exists.

[src]

Update a subset of dynamic vertex buffer. Use offset specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes.

[src]

Update a subset of dynamic index buffer. Use offset specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes.

[src]

Delete mesh object.

impl GraphicsSystemShared
[src]

[src]

Lookup texture object from location.

[src]

Create texture object from location.

[src]

Create texture object. A texture is an image loaded in video memory, which can be sampled in shaders.

[src]

Gets the TextureParams if available.

Notes that this function might returns None even if is_texture_alive returns true. The underlying object might be still in creation process and can not be provided yet.

[src]

Returns true if texture is exists.

[src]

Update a contiguous subregion of an existing two-dimensional texture object.

[src]

Delete the texture object.

impl GraphicsSystemShared
[src]

[src]

Create render texture object, which could be attached with a framebuffer.

[src]

Gets the RenderTextureParams if available.

[src]

Returns true if texture is exists.

[src]

Delete the render texture object.

Trait Implementations

Auto Trait Implementations