From 48d94720c10ada906ed10545b70fc3012856a150 Mon Sep 17 00:00:00 2001 From: Nils Dagsson Moskopp Date: Tue, 17 Oct 2023 12:33:29 +0200 Subject: [PATCH] Add features table --- init.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/init.lua b/init.lua index 1a0bd47..dbf1d1d 100644 --- a/init.lua +++ b/init.lua @@ -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})