pub type Vertices = RCHandle<SkVertices>;
Aliased Typeยง
struct Vertices(/* private fields */);
Implementationsยง
Sourceยงimpl Vertices
impl Vertices
pub const MAX_CUSTOM_ATTRIBUTES: usize = 8usize
pub fn new_copy( mode: VertexMode, positions: &[Point], texs: &[Point], colors: &[Color], indices: Option<&[u16]>, ) -> Vertices
pub fn unique_id(&self) -> u32
pub fn mode(&self) -> VertexMode
๐Deprecated since 0.29.0: will be removed without replacement
pub fn bounds(&self) -> &Rect
pub fn has_colors(&self) -> bool
๐Deprecated since 0.29.0: will be removed without replacement
pub fn has_tex_coords(&self) -> bool
๐Deprecated since 0.29.0: will be removed without replacement
pub fn has_bones(&self) -> bool
๐Deprecated since 0.29.0: returns false
pub fn has_indices(&self) -> bool
๐Deprecated since 0.29.0: will be removed without replacement
pub fn vertex_count(&self) -> usize
๐Deprecated since 0.29.0: will be removed without replacement
pub fn index_count(&self) -> usize
๐Deprecated since 0.29.0: will be removed without replacement
pub fn positions(&self) -> &[Point]
๐Deprecated since 0.29.0: will be removed without replacement
pub fn tex_coords(&self) -> Option<&[Point]>
๐Deprecated since 0.29.0: will be removed without replacement
pub fn colors(&self) -> Option<&[Color]>
๐Deprecated since 0.29.0: will be removed without replacement
pub fn bone_indices(&self) -> Option<&[BoneIndices]>
๐Deprecated since 0.29.0: returns None
pub fn bone_weights(&self) -> Option<&[BoneWeights]>
๐Deprecated since 0.29.0: returns None
pub fn indices(&self) -> Option<&[u16]>
๐Deprecated since 0.29.0: will be removed without replacement
pub fn is_volatile(&self) -> bool
๐Deprecated since 0.29.0: returns false
pub fn apply_bones(&self, _bones: &[Bone]) -> !
๐Deprecated since 0.29.0: removed without replacement
pub fn approximate_size(&self) -> usize
pub fn decode(_buffer: &[u8]) -> !
๐Deprecated since 0.31.0: removed without replacement
pub fn encode(&self) -> !
๐Deprecated since 0.31.0: removed without replacement