Struct rin::gl::vao_mesh::VaoMesh [−][src]
pub struct VaoMesh<T> { /* fields omitted */ }
Contains geometry in RAM and GPU memory and updates the GPU version before drawing if the RAM version changed since the last draw
See Mesh for more info
Implementations
impl<T> VaoMesh<T> where
T: 'static + Clone,
[src]
impl<T> VaoMesh<T> where
T: 'static + Clone,
[src]pub fn mesh(&self) -> &Mesh<T>
[src]
pub fn mesh_mut(&mut self) -> &mut Mesh<T>
[src]
pub fn primitive_type(&self) -> PrimitiveType
[src]
pub fn set_primitive_type(&mut self, ty: PrimitiveType)
[src]
pub fn vao(&self) -> &SimpleVao<T>
[src]
pub fn vao_mut(&mut self) -> &mut SimpleVao<T>
[src]
Trait Implementations
impl<T> Render3d for VaoMesh<T> where
T: 'static + Clone + VertexFormat,
[src]
impl<T> Render3d for VaoMesh<T> where
T: 'static + Clone + VertexFormat,
[src]pub fn render<R>(&self, gl: &Renderer<'_, R>) where
R: RenderSurface,
[src]
R: RenderSurface,
impl<'a, T> VaoRange for &'a VaoMesh<T> where
T: 'static + Clone,
[src]
impl<'a, T> VaoRange for &'a VaoMesh<T> where
T: 'static + Clone,
[src]pub fn id(&self) -> u32
[src]
pub fn start(&self) -> usize
[src]
pub fn end(&self) -> usize
[src]
pub fn count(&self) -> usize
[src]
pub fn num_indices(&self) -> usize
[src]
pub fn num_vertices(&self) -> usize
[src]
pub fn has_indices(&self) -> bool
[src]
pub fn base_vertex(&self) -> Option<i32>
[src]
pub fn base_instance(&self) -> Option<u32>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for VaoMesh<T>
impl<T> !Send for VaoMesh<T>
impl<T> !Sync for VaoMesh<T>
impl<T> Unpin for VaoMesh<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for VaoMesh<T>
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]