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

sokol: upgrade to latest version, add program icon support (#11559)

* updated sokol_gfx.h to the last version: 16d7b2e

* merged sokol_app and update enums.v

* added missing icons structs

* try to fixing Mac keyboard problems

* added v patch marker to sokol_app.h

* upgrade for sokol_gl.h, sokol_fontstash.h

* manage sgl_load_default_pipeline

* added load_default_pipeline() for sokol coherence

* vfmt sapp_structs.c.v

Co-authored-by: Delyan Angelov <delian66@gmail.com>
This commit is contained in:
penguindark
2021-09-21 08:55:06 +02:00
committed by GitHub
parent 49886b8c40
commit e4bd2306da
8 changed files with 2487 additions and 1020 deletions

View File

@@ -112,7 +112,7 @@
sgl_load_pipeline(...);
sgl_begin_triangles();
for each vertex:
sg_v2f_t2f_c1i(...);
sgl_v2f_t2f_c1i(...);
sgl_end();
sgl_pop_pipeline();
sgl_disable_texture();
@@ -1645,8 +1645,8 @@ static int _sfons_render_create(void* user_ptr, int width, int height) {
shd_desc.fs.byte_code = _sfons_fs_bytecode_wgpu;
shd_desc.fs.byte_code_size = sizeof(_sfons_fs_bytecode_wgpu);
#else
shd_desc.vs.source = _sfons_vs_src_dummy;
shd_desc.fs.source = _sfons_fs_src_dummy;
shd_desc.vs.source = _sfons_vs_source_dummy;
shd_desc.fs.source = _sfons_fs_source_dummy;
#endif
shd_desc.label = "sfons-shader";
sfons->shd = sg_make_shader(&shd_desc);
@@ -1782,4 +1782,4 @@ SOKOL_API_IMPL uint32_t sfons_rgba(uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
return ((uint32_t)r) | ((uint32_t)g<<8) | ((uint32_t)b<<16) | ((uint32_t)a<<24);
}
#endif /* SOKOL_FONTSTASH_IMPL */
#endif /* SOKOL_FONTSTASH_IMPL */

File diff suppressed because it is too large Load Diff