Skip to content

Instantly share code, notes, and snippets.

View jornvandebeek's full-sized avatar

Jorn van de Beek jornvandebeek

View GitHub Profile
@jornvandebeek
jornvandebeek / texture.rs
Created January 2, 2021 11:28
Texturehandle replacement in 0.4.0
use bevy::{
prelude::*,
render::texture::{Extent3d, Texture, TextureDimension, TextureFormat},
};
struct MyTimer {
timer: Timer,
}
struct LogoHandle(Option<Handle<StandardMaterial>>);
@jornvandebeek
jornvandebeek / texture.rs
Created December 28, 2020 20:17
Texture replacement in bevy 0.4,0
use bevy::{
prelude::*,
render::texture::{Extent3d, Texture, TextureDimension, TextureFormat},
};
struct MyTimer {
timer: Timer,
}
struct LogoHandle(Option<Handle<Texture>>);
@jornvandebeek
jornvandebeek / texture.rs
Created December 28, 2020 20:13
Texture replacement in bevy 0.3,0
use bevy::{
prelude::*,
render::texture::{Extent3d, Texture, TextureDimension, TextureFormat},
};
struct MyTimer {
timer: Timer,
}
struct LogoHandle(Option<Handle<Texture>>);