Add features table

This commit is contained in:
Nils Dagsson Moskopp 2023-10-17 12:33:29 +02:00
parent aad231f5e4
commit 48d94720c1
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 18 additions and 0 deletions

View File

@ -1,5 +1,23 @@
tga_encoder = {}
tga_encoder.features = {}
tga_encoder.features.color_format = {
"A1R5G5B5",
"B8G8R8",
"B8G8R8A8",
"Y8",
}
tga_encoder.features.colormap = {
}
tga_encoder.features.compression = {
"RAW",
"RLE",
}
tga_encoder.features.scanline_order = {
"bottom-top",
"top-bottom",
}
local image = setmetatable({}, {
__call = function(self, ...)
local t = setmetatable({}, {__index = self})