[][src]Function opencv::core::render

pub fn render(
    tex: &Texture2D,
    wnd_rect: Rect_<f64>,
    tex_rect: Rect_<f64>
) -> 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).

C++ default parameters

  • wnd_rect: Rect_(0.0,0.0,1.0,1.0)
  • tex_rect: Rect_(0.0,0.0,1.0,1.0)