Type Definition skia_safe::vertices::Builder

source ·
pub type Builder = Handle<SkVertices_Builder>;

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