From 600ff28dd73f2cf17725382b68a4b1b2573f2e34 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 4 Dec 2025 13:58:02 +0100 Subject: First commit --- src/dtx/dtx.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/dtx/dtx.h (limited to 'src/dtx/dtx.h') diff --git a/src/dtx/dtx.h b/src/dtx/dtx.h new file mode 100644 index 0000000..24a7a7b --- /dev/null +++ b/src/dtx/dtx.h @@ -0,0 +1,37 @@ +#ifndef DTX_H +#define DTX_H + +#include +#include + +class dtx +{ +public: + typedef std::vector pixdata; + + dtx(); + ~dtx(); + int parse(rez::file &f); + int draw() const; + +private: + + enum bpp + { + bpp_8_pal, + bpp_8, + bpp_16, + bpp_32, + bpp_s3tc_dxt1, + bpp_s3tc_dxt3, + bpp_s3tc_dxt5, + bpp_32_pal, + + n_bpp + } bpp; + + GLuint texture; + unsigned w, h; +}; + +#endif -- cgit v1.2.3