Crate egaku2d_core

Crate egaku2d_core 

Source
Expand description

§Overview

This crate provides the opengl internals without the opengl context creation functionality. So this crate does not depend on glutin.

Re-exports§

pub use axgeom;

Modules§

batch
Contains all batch drawing code. See the crate level documentation.
gl
All the opengl functions generated from the gl_generator crate.
shapes
Contains all the shape drawing session and save objects They all follow the same api outlined in the crate documentation.
sprite
Contains all the texture/sprite drawing code. The api is described in the crate documentation.
uniforms
Contains the objects used for the uniform setting stage of the egaku2d drawing pipeline.

Macros§

gl_ok
Macro that asserts that there are no opengl errors.

Structs§

AspectRatio
An aspect ratio represented as a fraction so that there is no precision loss.
FixedAspectVec2
Represents a Vec2 with the specified aspect ratio and the specified width. The height of the Vec2 can be inferred by the aspect ratio.
SimpleCanvas
Allows the user to start drawing shapes. The top left corner is the origin. y grows as you go down. x grows as you go right.