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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 128 additions and 39 deletions

View file

@ -325,7 +325,7 @@ fn my_init(mut app App) {
// for a large number of the same type of object it is better use the instances!!
desc := sapp.create_desc()
gfx.setup(&desc)
sgl_desc := C.sgl_desc_t{
sgl_desc := sgl.Desc{
max_vertices: 50 * 65536
}
sgl.setup(&sgl_desc)