Function obs_sys::obs_source_draw

source ·
pub unsafe extern "C" fn obs_source_draw(
    image: *mut gs_texture_t,
    x: c_int,
    y: c_int,
    cx: u32,
    cy: u32,
    flip: bool
)
Expand description

Helper function to draw sprites for a source (synchronous video).

@param image The sprite texture to draw. Assigns to the ‘image’ variable of the current effect. @param x X position of the sprite. @param y Y position of the sprite. @param cx Width of the sprite. If 0, uses the texture width. @param cy Height of the sprite. If 0, uses the texture height. @param flip Specifies whether to flip the image vertically.