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

sokol: type alias all sgl structs, support sgl_context (#13018)

This commit is contained in:
Larpon
2022-01-03 14:05:24 +01:00
committed by GitHub
parent 9974495f5e
commit 88a973b617
16 changed files with 128 additions and 39 deletions

View File

@@ -111,7 +111,7 @@ pub mut:
height int
clear_pass gfx.PassAction
window sapp.Desc
timage_pip C.sgl_pipeline
timage_pip sgl.Pipeline
config Config
user_data voidptr
ft &FT
@@ -150,7 +150,7 @@ fn gg_init_sokol_window(user_data voidptr) {
}
*/
gfx.setup(&desc)
sgl_desc := C.sgl_desc_t{}
sgl_desc := sgl.Desc{}
sgl.setup(&sgl_desc)
g.scale = dpi_scale()
// is_high_dpi := sapp.high_dpi()