Struct rusty_spine::draw::CombinedRenderable
source · pub struct CombinedRenderable {
pub vertices: Vec<[f32; 2]>,
pub uvs: Vec<[f32; 2]>,
pub colors: Vec<[f32; 4]>,
pub dark_colors: Vec<[f32; 4]>,
pub indices: Vec<u16>,
pub blend_mode: BlendMode,
pub attachment_renderer_object: Option<*const c_void>,
}
Expand description
Renderables generated from CombinedDrawer::draw
.
Fields§
§vertices: Vec<[f32; 2]>
A list of vertex attributes for a mesh.
uvs: Vec<[f32; 2]>
A list of UV attributes for a mesh.
colors: Vec<[f32; 4]>
A list of color attributes for a mesh.
dark_colors: Vec<[f32; 4]>
A list of dark color attributes for a mesh. See the Spine User Guide.
indices: Vec<u16>
A list of indices for a mesh.
blend_mode: BlendMode
The blend mode to use when drawing this mesh.
attachment_renderer_object: Option<*const c_void>
The attachment’s renderer object as a raw pointer. Usually represents the texture created
from extension::set_create_texture_cb
.
Auto Trait Implementations§
impl Freeze for CombinedRenderable
impl RefUnwindSafe for CombinedRenderable
impl !Send for CombinedRenderable
impl !Sync for CombinedRenderable
impl Unpin for CombinedRenderable
impl UnwindSafe for CombinedRenderable
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more