Skip to content

Commit

Permalink
Fix documentation for TextureId::Managed(0)
Browse files Browse the repository at this point in the history
TextureId::Epaint was renamed to TextureId::Managed during the
development of emilk#1110.  Update the documentation to match.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed May 18, 2023
1 parent 7b76161 commit cfd9432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/epaint/src/lib.rs
Expand Up @@ -65,13 +65,13 @@ pub const WHITE_UV: emath::Pos2 = emath::pos2(0.0, 0.0);

/// What texture to use in a [`Mesh`] mesh.
///
/// If you don't want to use a texture, use `TextureId::Epaint(0)` and the [`WHITE_UV`] for uv-coord.
/// If you don't want to use a texture, use `TextureId::Managed(0)` and the [`WHITE_UV`] for uv-coord.
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub enum TextureId {
/// Textures allocated using [`TextureManager`].
///
/// The first texture (`TextureId::Epaint(0)`) is used for the font data.
/// The first texture (`TextureId::Managed(0)`) is used for the font data.
Managed(u64),

/// Your own texture, defined in any which way you want.
Expand Down

0 comments on commit cfd9432

Please sign in to comment.