aboutsummaryrefslogtreecommitdiff
path: root/init.lua
blob: 0a831ca94ec0f5ef888b70a266ccc3c40ed32303 (plain)
1
2
3
4
5
6
7
8
9
10
11
tga_encoder = {}

function tga_encoder.encode_pixels(pixels)
end

function tga_encoder.save_image(filename, pixels)
	local f = assert(io.open(filename))
	local encoded = tga_encoder.encode_pixels(pixels)
	f:write(encoded)
	f:close()
end