Skip to main content

xgl/
lib.rs

1// Copyright (C) 2025-2026 Daniel Mueller <deso@posteo.net>
2// SPDX-License-Identifier: (Apache-2.0 OR MIT)
3
4mod framebuffer;
5mod matrices;
6mod program;
7mod renderbuffer;
8mod shader;
9mod stack;
10mod texture;
11mod vertices;
12#[cfg(test)]
13mod winit;
14
15pub mod sys;
16
17pub use crate::framebuffer::Builder as FramebufferBuilder;
18pub use crate::framebuffer::Framebuffer;
19pub use crate::matrices::MatrixStack;
20pub use crate::program::Program;
21pub use crate::renderbuffer::Renderbuffer;
22pub use crate::shader::Shader;
23pub use crate::texture::Builder as TextureBuilder;
24pub use crate::texture::Texture;
25pub use crate::texture::TextureInfo;
26pub use crate::vertices::VertexArray;
27pub use crate::vertices::VertexBuffer;
28
29pub mod vertex {
30  pub use crate::vertices::Attrib;
31  pub use crate::vertices::AttribType;
32  pub use crate::vertices::Attribs;
33  pub use crate::vertices::VertexP3f as P3f;
34  pub use crate::vertices::VertexP3fN3f as P3fN3f;
35  pub use crate::vertices::VertexP3fT2f as P3fT2f;
36  pub use crate::vertices::VertexP3fT2fN3f as P3fT2fN3f;
37}