# ferroui_opengl

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

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

```rust
module ferroui_opengl
```

The OpenGL platform contracts.

What a platform exposes so that a render backend can draw with OpenGL,
OpenGL ES or WebGL: the context (`IGlContext`), the surfaces it renders
to (`surfaces`) and the entry points the framework itself calls
([`GlInterface`](/docs/0.5.0/api/ferroui-opengl/struct-glinterface/)).

The entry point tables call into the platform's OpenGL library through
function pointers resolved by name. That is the one place of this crate
with `unsafe` code; see [`GlInterface`](/docs/0.5.0/api/ferroui-opengl/struct-glinterface/) for the contract.

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

## Contents

- [`GetProcAddress`](/docs/0.5.0/api/ferroui-opengl/type_alias-getprocaddress/) — type alias
- [`GlContextInfo`](/docs/0.5.0/api/ferroui-opengl/struct-glcontextinfo/) — struct
- [`GlInterface`](/docs/0.5.0/api/ferroui-opengl/struct-glinterface/) — struct
- [`GlProfileType`](/docs/0.5.0/api/ferroui-opengl/enum-glprofiletype/) — enum
- [`GlVersion`](/docs/0.5.0/api/ferroui-opengl/struct-glversion/) — struct
- [`OpenGlException`](/docs/0.5.0/api/ferroui-opengl/type_alias-openglexception/) — type alias

## Availability

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