v / vlib / sokol / sgl / sgl_allocator_and_logger.c.v
18 lines · 15 sloc · 322 bytes · 227dbc7d4a3943fe8f1541f595b6ef9851bef552
Raw
1module sgl
2
3import sokol.memory
4
5@[typedef]
6pub struct C.sgl_allocator_t {
7pub mut:
8 alloc_fn memory.FnAllocatorAlloc = unsafe { nil }
9 free_fn memory.FnAllocatorFree = unsafe { nil }
10 user_data voidptr
11}
12
13@[typedef]
14pub struct C.sgl_logger_t {
15pub mut:
16 func memory.FnLogCb = unsafe { nil }
17 user_data voidptr
18}
19