1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#[macro_use]
mod control;
#[macro_use]
mod funcs_def;
#[macro_use]
mod shader;

mod buffer;
mod consts_def;
mod debug;
mod frame;
mod texture;
mod thread;
mod utility;

use control::*;
use opengl::types;

pub mod opengl {
	// TODO negative traits stabilization - remove send/sync from Query, Framebuffer and Vao //impl !Send for //impl !Sync for
	pub use gl;
	pub type Query = spec::Object<spec::Query>;
	pub use super::debug::{DebugLevel, EnableDebugContext};
	pub use super::thread::Fence;
	pub use bind::*;
	pub use buffer::*;
	pub use fbo::*;
	pub use shader::*;
	pub use states::*;
	pub use tex::*;
	pub use types::*;
	pub mod macro_uses {
		pub use super::super::{error_check::gl_was_initialized, shader::uniforms::uniforms_use, shader::InlineShader, texture::sampler_use};
	}
	pub mod bind {
		use super::super::*;
		pub use buffer::{Mapping, MappingMut, VaoBinding};
		pub use shader::ShaderBinding;
		pub use texture::{TexBuffBinding, TextureBinding};
	}
	pub mod buffer {
		pub use super::super::buffer::{AttrArr, IdxArr, Vao};
	}
	pub mod fbo {
		use super::super::*;
		pub use frame::{Fbo, Frame, Framebuffer, RenderTgt, Renderbuffer, Slab};
	}
	pub mod shader {
		pub use super::super::shader::{Shader, ShaderManager};
	}
	pub mod states {
		pub use super::super::{consts_def::*, funcs_def::*};
	}
	pub mod tex {
		pub type Tex2d<S, F> = Tex<S, F, GL_TEXTURE_2D>;
		pub type CubeTex<S, F> = Tex<S, F, GL_TEXTURE_CUBE_MAP>;
		use super::super::*;
		pub use texture::{chans::*, spec::*, Sampler, Tex, TexBuffer, TexParam};
		pub use utility::{fImage, uImage, Image};
	}
	pub mod types {
		pub use gl::types::{GLbitfield, GLboolean as GLbool, GLenum, GLvoid};
		pub use half::f16;
	}
	pub mod spec {
		use super::super::*;
		pub use buffer::{AttrType, IdxType};
		pub use {object::*, policy::*};
	}
	pub mod atlas {
		pub use super::super::utility::{pack_into_atlas, Animation, AtlasTex2d, TexAtlas, Tile, VTex2d};
	}
	pub mod font {
		pub use super::super::utility::{Font, Glyph};
	}
	pub mod offhand {
		pub use super::super::thread::Offhand;
	}
	pub mod laplacian {
		pub use super::super::utility::{collapse, pyramid};
	}
	pub mod pbrt {
		pub use super::super::utility::{EnvTex, Environment};
	}
	pub mod mesh {
		pub use super::super::utility::{AnyMesh, Camera, Mesh, Model, Screen, Skybox};
	}
	pub mod unigl {
		pub use super::super::universion::*;
	}
}