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§

Modules§

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

Macros§

  • Macro that asserts that there are no opengl errors.

Structs§

  • An aspect ratio represented as a fraction so that there is no precision loss.
  • Represents a Vec2 with the specified aspect ratio and the specified width. The height of the Vec2 can be inferred by the aspect ratio.
  • 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.