Initial checkin of v1.04 - KTX file format support, basic ETC1 compression/decompression, Linux makefile with proper gcc options, lots of high-level improvements to get crnlib into a state where I can more easily add additional formats.

This commit is contained in:
richgel99@gmail.com
2012-11-25 08:41:25 +00:00
parent a8011e9d7f
commit f71b49be60
92 changed files with 20362 additions and 781 deletions
+5 -5
View File
@@ -2,7 +2,7 @@
// See Copyright Notice and license at the end of inc/crnlib.h
#pragma once
#include "crn_comp.h"
#include "crn_dds_texture.h"
#include "crn_mipmapped_texture.h"
#include "crn_texture_comp.h"
namespace crnlib
@@ -25,8 +25,8 @@ namespace crnlib
virtual crnlib::vector<uint8>& get_comp_data() { return m_comp_data; }
private:
dds_texture m_src_tex;
dds_texture m_packed_tex;
mipmapped_texture m_src_tex;
mipmapped_texture m_packed_tex;
crnlib::vector<uint8> m_comp_data;
@@ -38,10 +38,10 @@ namespace crnlib
task_pool m_task_pool;
qdxt1_params m_q1_params;
qdxt5_params m_q5_params;
dds_texture::qdxt_state *m_pQDXT_state;
mipmapped_texture::qdxt_state *m_pQDXT_state;
void clear();
bool create_dds_tex(dds_texture &dds_tex);
bool create_dds_tex(mipmapped_texture &dds_tex);
bool convert_to_dxt(const crn_comp_params& params);
};