[][src]Trait opencv::core::ArraysTrait

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

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.

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

Resets vertex coordinates.

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.

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

Resets vertex colors.

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.

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

Resets vertex normals.

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.

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

Resets vertex texture coordinates.

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

Releases all inner buffers.

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

Sets auto release mode all inner buffers.

Parameters

  • flag: Auto release mode.

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

Binds all vertex arrays.

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

Returns the vertex count.

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

Loading content...

Implementors

impl ArraysTrait for Arrays[src]

Loading content...