[][src]Trait opencv::prelude::ArraysTrait

pub trait ArraysTrait {
    pub fn as_raw_Arrays(&self) -> *const c_void;
pub fn as_raw_mut_Arrays(&mut self) -> *mut c_void; pub fn set_vertex_array(&mut self, vertex: &dyn ToInputArray) -> Result<()> { ... }
pub fn reset_vertex_array(&mut self) -> Result<()> { ... }
pub fn set_color_array(&mut self, color: &dyn ToInputArray) -> Result<()> { ... }
pub fn reset_color_array(&mut self) -> Result<()> { ... }
pub fn set_normal_array(&mut self, normal: &dyn ToInputArray) -> Result<()> { ... }
pub fn reset_normal_array(&mut self) -> Result<()> { ... }
pub fn set_tex_coord_array(
        &mut self,
        tex_coord: &dyn ToInputArray
    ) -> Result<()> { ... }
pub fn reset_tex_coord_array(&mut self) -> Result<()> { ... }
pub fn release(&mut self) -> Result<()> { ... }
pub fn set_auto_release(&mut self, flag: bool) -> Result<()> { ... }
pub fn bind(&self) -> Result<()> { ... }
pub fn size(&self) -> Result<i32> { ... }
pub fn empty(&self) -> Result<bool> { ... } }

Wrapper for OpenGL Client-Side Vertex arrays.

ogl::Arrays stores vertex data in ogl::Buffer objects.

Required methods

Loading content...

Provided methods

pub fn set_vertex_array(&mut self, vertex: &dyn ToInputArray) -> Result<()>[src]

Sets an array of vertex coordinates.

Parameters

  • vertex: array with vertex coordinates, can be both host and device memory.

pub fn reset_vertex_array(&mut self) -> Result<()>[src]

Resets vertex coordinates.

pub fn set_color_array(&mut self, color: &dyn ToInputArray) -> Result<()>[src]

Sets an array of vertex colors.

Parameters

  • color: array with vertex colors, can be both host and device memory.

pub fn reset_color_array(&mut self) -> Result<()>[src]

Resets vertex colors.

pub fn set_normal_array(&mut self, normal: &dyn ToInputArray) -> Result<()>[src]

Sets an array of vertex normals.

Parameters

  • normal: array with vertex normals, can be both host and device memory.

pub fn reset_normal_array(&mut self) -> Result<()>[src]

Resets vertex normals.

pub fn set_tex_coord_array(
    &mut self,
    tex_coord: &dyn ToInputArray
) -> Result<()>
[src]

Sets an array of vertex texture coordinates.

Parameters

  • texCoord: array with vertex texture coordinates, can be both host and device memory.

pub fn reset_tex_coord_array(&mut self) -> Result<()>[src]

Resets vertex texture coordinates.

pub fn release(&mut self) -> Result<()>[src]

Releases all inner buffers.

pub fn set_auto_release(&mut self, flag: bool) -> Result<()>[src]

Sets auto release mode all inner buffers.

Parameters

  • flag: Auto release mode.

pub fn bind(&self) -> Result<()>[src]

Binds all vertex arrays.

pub fn size(&self) -> Result<i32>[src]

Returns the vertex count.

pub fn empty(&self) -> Result<bool>[src]

Loading content...

Implementors

impl ArraysTrait for Arrays[src]

Loading content...