From 9794a239b1aad767f7cbd6ea3dab39dde2a77dc4 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 7 Feb 2023 12:53:31 +0200 Subject: [PATCH] sokol.sgl: add wrapper for scissor_rectf too --- vlib/sokol/sgl/sgl.c.v | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vlib/sokol/sgl/sgl.c.v b/vlib/sokol/sgl/sgl.c.v index 7f39020381..e96f8f3248 100644 --- a/vlib/sokol/sgl/sgl.c.v +++ b/vlib/sokol/sgl/sgl.c.v @@ -106,6 +106,11 @@ pub fn scissor_rect(x int, y int, w int, h int, origin_top_left bool) { C.sgl_scissor_rect(x, y, w, h, origin_top_left) } +[inline] +pub fn scissor_rectf(x f32, y f32, w f32, h f32, origin_top_left bool) { + C.sgl_scissor_rectf(x, y, w, h, origin_top_left) +} + [inline] pub fn enable_texture() { C.sgl_enable_texture()