dcearth/bmp.lua

19 lines
332 B
Lua
Raw Normal View History

2023-04-28 17:35:52 +00:00
--Load and save the bmp formats used by DEFCON.
local t = {}
local lfs = love.filesystem
2023-04-28 17:35:52 +00:00
--FFI bit-twiddling stuff.
local ffi = require 'ffi'
local bit = require 'bit'
2023-04-28 17:35:52 +00:00
function t.load( filename )
local bytes, size = lfs.read( filename )
print( "LOADED", filename, size)
end
function t.save( data, format )
end
return t