pub struct RenderDrawGroup {
pub _group_handle: u64,
pub _buffer_handle: u64,
pub _buffer_draw: Vec<f32>,
pub _format: Vec<BufferFormat>,
pub _stride: u64,
pub _primitive_type: RenderObjType,
}Expand description
§the following is analogous to vertex array object in opengl
Fields§
§_group_handle: u64§_buffer_handle: u64§_buffer_draw: Vec<f32>§_format: Vec<BufferFormat>§_stride: u64§_primitive_type: RenderObjTypeImplementations§
Source§impl RenderDrawGroup
impl RenderDrawGroup
pub fn init( internal_group_handle: u64, buffer_handle: u64, format: Vec<BufferFormat>, stride: u64, primitive_type: RenderObjType, ) -> RenderDrawGroup
pub fn init_with_default_format_triangle( internal_group_handle: u64, buffer_handle: u64, ) -> RenderDrawGroup
pub fn init_with_default_format_point( internal_group_handle: u64, buffer_handle: u64, ) -> RenderDrawGroup
Trait Implementations§
Source§impl Debug for RenderDrawGroup
impl Debug for RenderDrawGroup
Source§impl RenderDevice for RenderDrawGroup
impl RenderDevice for RenderDrawGroup
fn bind_buffer(&mut self) -> Result<(), &'static str>
fn draw_buffer_all(&mut self) -> Result<(), &'static str>
fn draw_buffer_range(&mut self) -> Result<(), &'static str>
fn clear_buff_data(&mut self)
fn store_buff_data( &mut self, data: &HashMap<BuffDataType, Vec<f32>>, ) -> Result<(), &'static str>
Auto Trait Implementations§
impl Freeze for RenderDrawGroup
impl RefUnwindSafe for RenderDrawGroup
impl Send for RenderDrawGroup
impl Sync for RenderDrawGroup
impl Unpin for RenderDrawGroup
impl UnsafeUnpin for RenderDrawGroup
impl UnwindSafe for RenderDrawGroup
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more