renderImage
Calls renderTexture with the texture created from source
Only valid between Window.beginand Window.end.
Parameters
- source:ImageSource
- ImageSource
- rs:RectScale
- RectScale
- opts:TextureOptions
- TextureOptions
Source
Implementation
pub fn renderImage(source: ImageSource, rs: RectScale, opts: TextureOptions) (Backend.TextureError || StbImageError)!void {
if (rs.s == 0) return;
if (dvui.clipGet().intersect(rs.r).empty()) return;
try renderTexture(try source.getTexture(), rs, opts);
}