Enum egui::TextureId [−][src]
pub enum TextureId {
Egui,
User(u64),
}
Expand description
What texture to use in a Mesh
mesh.
Variants
The egui font texture.
If you don’t want to use a texture, pick this and the WHITE_UV
for uv-coord.
User(u64)
Your own texture, defined in any which way you want. egui won’t care. The backend renderer will presumably use this to look up what texture to use.
Tuple Fields of User
0: u64
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<TextureId, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<TextureId, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for TextureId
impl UnwindSafe for TextureId
Blanket Implementations
Mutably borrows from an owned value. Read more