Skip to main content

fae/api/
mod.rs

1#[cfg(feature = "text")]
2mod font;
3mod graphics_context;
4mod spritesheet;
5
6#[cfg(feature = "text")]
7pub use font::Font;
8pub use graphics_context::{Context, GraphicsContext};
9pub use spritesheet::{AlphaBlending, Spritesheet, SpritesheetBuilder};
10
11// Re-exports from other parts of the crate
12pub mod errors {
13    //! The errors that fae can return.
14    pub use crate::error::ImageCreationError;
15    #[cfg(feature = "png")]
16    pub use crate::error::PngLoadingError;
17}
18pub use crate::error::Error;
19pub use crate::gl_version::{OpenGlApi, OpenGlVersion};
20pub use crate::image::Image;
21pub use crate::renderer::TextureWrapping;
22pub use crate::shaders::{ShaderPair, Shaders};
23pub use crate::sprite::Sprite;
24#[cfg(feature = "text")]
25pub use crate::text::{Alignment, Text};
26pub use crate::types::Rect;