skia_safe::vertices

Type Alias Builder

Source
pub type Builder = Handle<SkVertices_Builder>;

Aliased Type§

struct Builder(/* private fields */);

Implementations§

Source§

impl Builder

Source

pub fn new( mode: VertexMode, vertex_count: usize, index_count: usize, flags: BuilderFlags, ) -> Builder

Source

pub fn positions(&mut self) -> &mut [Point]

Source

pub fn indices(&mut self) -> Option<&mut [u16]>

Source

pub fn tex_coords(&mut self) -> Option<&mut [Point]>

Source

pub fn colors(&mut self) -> Option<&mut [Color]>

Source

pub fn is_volatile(&self) -> bool

👎Deprecated since 0.29.0: returns false
Source

pub fn bone_indices(&mut self) -> Option<&mut [BoneIndices]>

👎Deprecated since 0.29.0: returns None
Source

pub fn bone_weights(&mut self) -> Option<&mut [BoneWeights]>

👎Deprecated since 0.29.0: returns None
Source

pub fn detach(self) -> Vertices

Trait Implementations§

Source§

impl Debug for Builder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Send for Builder

Source§

impl Sync for Builder