mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 16:28:42 -06:00
wip texture managment
This commit is contained in:
parent
b17519cbc3
commit
cf8263fee0
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -1056,6 +1056,7 @@ dependencies = [
|
||||||
"kubi-logging",
|
"kubi-logging",
|
||||||
"log",
|
"log",
|
||||||
"nohash-hasher",
|
"nohash-hasher",
|
||||||
|
"rect_packer",
|
||||||
"winit",
|
"winit",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1579,6 +1580,12 @@ dependencies = [
|
||||||
"crossbeam-utils",
|
"crossbeam-utils",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rect_packer"
|
||||||
|
version = "0.2.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d8ffb4dfda4b01cc420847665dc480760d596ce186f2772a66ed32fe9acb1c45"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "redox_syscall"
|
name = "redox_syscall"
|
||||||
version = "0.3.5"
|
version = "0.3.5"
|
||||||
|
|
|
@ -10,6 +10,7 @@ nohash-hasher = "0.2"
|
||||||
glam = { version = "0.24", features = ["approx"] }
|
glam = { version = "0.24", features = ["approx"] }
|
||||||
glium = { git = "https://github.com/glium/glium", rev = "968fc92378caf", optional = true }
|
glium = { git = "https://github.com/glium/glium", rev = "968fc92378caf", optional = true }
|
||||||
fontdue = { version = "0.7", optional = true }
|
fontdue = { version = "0.7", optional = true }
|
||||||
|
rect_packer = { version = "0.2.1", optional = true }
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
@ -18,8 +19,9 @@ glium = { git = "https://github.com/glium/glium", rev = "968fc92378caf" }
|
||||||
winit = "0.29"
|
winit = "0.29"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["builtin_elements", "text_rendering", "builtin_font", "backend_glium"]
|
default = ["builtin_elements", "texture_manager", "text_rendering", "builtin_font", "backend_glium"]
|
||||||
backend_glium = ["dep:glium"]
|
backend_glium = ["dep:glium"]
|
||||||
text_rendering = ["dep:fontdue"]
|
texture_manager = []
|
||||||
|
text_rendering = ["dep:fontdue", "texture_manager"]
|
||||||
builtin_font = ["text_rendering"]
|
builtin_font = ["text_rendering"]
|
||||||
builtin_elements = []
|
builtin_elements = []
|
||||||
|
|
|
@ -7,7 +7,10 @@ pub mod draw;
|
||||||
pub mod backend;
|
pub mod backend;
|
||||||
pub mod measure;
|
pub mod measure;
|
||||||
pub mod state;
|
pub mod state;
|
||||||
|
#[cfg(feature = "text_rendering")]
|
||||||
pub mod font;
|
pub mod font;
|
||||||
|
#[cfg(feature = "texture_manager")]
|
||||||
|
pub mod texman;
|
||||||
|
|
||||||
use element::UiElement;
|
use element::UiElement;
|
||||||
use state::StateRepo;
|
use state::StateRepo;
|
||||||
|
|
3
kubi-ui/src/texman.rs
Normal file
3
kubi-ui/src/texman.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
struct TextureSpace {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue