Function render_def

Source
pub fn render_def(tex: &impl Texture2DTraitConst) -> Result<()>
Expand description

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).

§Note

This alternative version of render function uses the following default values for its arguments:

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