20 lines
466 B
Lua
20 lines
466 B
Lua
--Load and save the bmp formats used by DEFCON.
|
|
local t = {}
|
|
local love = assert( love )
|
|
local lfs = love.filesystem
|
|
|
|
--FFI bit-twiddling stuff.
|
|
local ffi = require 'ffi'
|
|
local bit = require 'bit'
|
|
|
|
function t.load( filename )
|
|
local imgd = love.image.newImageData( filename )
|
|
print( "LOADING BITMAP: ", filename, imgd:getSize(), imgd:getFormat(), imgd:getDimensions() )
|
|
return love.graphics.newImage( imgd )
|
|
end
|
|
|
|
function t.save( data, format )
|
|
|
|
end
|
|
|
|
return t |