mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
added pure color texture (#845)
This commit is contained in:
@@ -1307,6 +1307,7 @@ pub(crate) fn initialize_resource_manager_loaders(
|
||||
state.built_in_resources.add(BUILT_IN_FONT.clone());
|
||||
|
||||
state.built_in_resources.add(texture::PLACEHOLDER.clone());
|
||||
state.built_in_resources.add(texture::PURE_COLOR.clone());
|
||||
state.built_in_resources.add(style::DEFAULT_STYLE.clone());
|
||||
|
||||
for material in [
|
||||
|
||||
@@ -682,6 +682,17 @@ lazy_static! {
|
||||
)
|
||||
.unwrap()
|
||||
});
|
||||
/// Pure color texture.
|
||||
pub static ref PURE_COLOR: BuiltInResource<Texture> = BuiltInResource::new("__PureColorTexture", embedded_data_source!("pure_color.png"),
|
||||
|data| {
|
||||
TextureResource::load_from_memory(
|
||||
uuid!("9709eef2-305c-44da-91e5-6f293d74408a"),
|
||||
ResourceKind::External,
|
||||
data,
|
||||
Default::default()
|
||||
)
|
||||
.unwrap()
|
||||
});
|
||||
}
|
||||
|
||||
/// Type alias for texture resources.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 120 B |
Reference in New Issue
Block a user