# GlTextureRender

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media-opengl/trait-gltexturerender/

**trait** · [`ferroui-media-opengl`](/docs/0.5.0/api/ferroui-media-opengl/) · v0.5.0

```rust
trait GlTextureRender: Send + Sync
```

Client code called on the owning compositor render thread with its GL
context current. Preserve all GL state changed by the rendering library,
write premultiplied RGBA8, and sample inputs without mutating their storage.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.OpenGL/renderer.rs#L17)

## Members

- [`draw`](#function-draw)

<a id="function-draw"></a>

### draw

```rust
fn draw(self: &Self, context: &Rc<dyn IGlContext>, output: u32, viewport: RendererViewport, inputs: &[FrameLease]) -> Result<(), MediaError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.OpenGL/renderer.rs#L18)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
