[−][src]Trait opencv::core::ArraysTrait
Wrapper for OpenGL Client-Side Vertex arrays.
ogl::Arrays stores vertex data in ogl::Buffer objects.
Required methods
fn as_raw_Arrays(&self) -> *const c_void
[src]
fn as_raw_mut_Arrays(&mut self) -> *mut c_void
[src]
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]
fn bind(&self) -> Result<()>
[src]
Binds all vertex arrays.
fn size(&self) -> Result<i32>
[src]
Returns the vertex count.