[][src]Function opencv::core::render_2

pub fn render_2(
    arr: &Arrays,
    indices: &dyn ToInputArray,
    mode: i32,
    color: Scalar
) -> Result<()>

Render OpenGL texture or primitives.

Parameters

  • tex: Texture to draw.
  • wndRect: Region of window, where to draw a texture (normalized coordinates).
  • texRect: Region of texture to draw (normalized coordinates).

Overloaded parameters

  • arr: Array of privitives vertices.
  • indices: Array of vertices indices (host or device memory).
  • mode: Render mode. One of cv::ogl::RenderModes
  • color: Color for all vertices. Will be used if arr doesn't contain color array.

C++ default parameters

  • mode: POINTS
  • color: Scalar::all(255)