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

gg: fixes and Android support (#6161)

This commit is contained in:
spaceface777
2020-08-19 07:10:42 +02:00
committed by GitHub
parent c42ca84850
commit c1651bd271
8 changed files with 118 additions and 57 deletions

View File

@@ -1,5 +1,8 @@
module sapp
// Android needs a global reference to `g_desc`
__global g_desc C.sapp_desc
/* returns true after sokol-app has been initialized */
[inline]
pub fn isvalid() bool {
@@ -111,6 +114,7 @@ pub fn get_clipboard_string() byteptr {
/* special run-function for SOKOL_NO_ENTRY (in standard mode this is an empty stub) */
[inline]
pub fn run(desc &C.sapp_desc) int {
g_desc = desc
return C.sapp_run(desc)
}