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

sokol: add sg_isvalid wrapper to gfx (#12081)

This commit is contained in:
Larpon
2021-10-07 09:41:57 +02:00
committed by GitHub
parent f454d30318
commit 53aa4eba0d
3 changed files with 8 additions and 4 deletions

View File

@@ -18,6 +18,11 @@ pub fn shutdown() {
C.sg_shutdown()
}
[inline]
pub fn is_valid() bool {
return C.sg_isvalid()
}
[inline]
pub fn reset_state_cache() {
C.sg_reset_state_cache()

View File

@@ -3,6 +3,7 @@ module gfx
// setup and misc functions
fn C.sg_setup(desc &C.sg_desc)
fn C.sg_shutdown()
fn C.sg_isvalid() bool
fn C.sg_reset_state_cache()
// resource creation, destruction and updating