#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