1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sokol.sgl: add wrapper for scissor_rectf too

This commit is contained in:
Delyan Angelov 2023-02-07 12:53:31 +02:00
parent a173f2964e
commit 9794a239b1
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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()