Module suzy::platform[][src]

A flexible interface for the low-level aspects of the GUI system.

One render platform is currently included, based on OpenGL ES 2.0

Two windowing platforms are currently included; the primary is based on SDL2. A windowless OSMesa interface is also included, intended for automated testing.

If no platforms are enabled (using features) the default platform is a “stub” platform which has no functionality (all methods panic).

Re-exports

pub use self::sdl2::SDLPlatform as DefaultPlatform;
pub use self::sdl2::SDLPlatform as TestPlatform;

Modules

opengl

This module provides Suzy’s default, built-in render platform, based on OpenGL ES 2.0.

sdl2

Structs

SimpleEventLoopState

A type which implements EventLoopState with a single boolean flag.

Enums

Event

Possible events a platform could generate.

Traits

EventLoopState

A trait which the event handler can use to shutdown the event loop.

Platform

A platform handles window creation and manages an event loop.

RenderPlatform

A RenderPlatform provides tools to create Graphics.

Type Definitions

DefaultRenderPlatform

The default RenderPlatform is determined by the cargo features enabled on this crate.

TestRenderPlatform

The default RenderPlatform used for tests is determined by the cargo features enabled on this crate.