Fixed various issues with updates from sokol.

This commit is contained in:
dlannan 2025-01-29 17:43:41 +10:30
parent d44112408e
commit 1950204d54
3 changed files with 12 additions and 2234 deletions

View File

@ -18,6 +18,14 @@ local lcpp = require("tools.lcpp")
-- just use LuaJIT ffi and lcpp together -- just use LuaJIT ffi and lcpp together
HEADER_PATH = HEADER_PATH or "" HEADER_PATH = HEADER_PATH or ""
ffi.cdef([[#include "]]..HEADER_PATH..[[ffi/sokol-headers/sokol_gfx.h" ]]) ffi.cdef([[
#include "]]..HEADER_PATH..[[ffi/sokol-headers/sokol_gfx.h"
enum sg_params_extended {
SG_SHADERSTAGE_VS,
SG_SHADERSTAGE_FS
} sg_params_extended;
]])
return sokol_gfx return sokol_gfx

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
package.path = package.path..";../../?.lua"
package.path = package.path..";../?.lua"
local dirtools = require("tools.vfs.dirtools").init("sokol%-luajit") local dirtools = require("tools.vfs.dirtools").init("sokol%-luajit")
--_G.SOKOL_DLL = "sokol_debug_dll" --_G.SOKOL_DLL = "sokol_debug_dll"