This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// File: crn_texture_comp.h
|
||||
// See Copyright Notice and license at the end of inc/crnlib.h
|
||||
#pragma once
|
||||
|
||||
#include "../inc/crnlib.h"
|
||||
|
||||
namespace crnlib
|
||||
{
|
||||
class dds_texture;
|
||||
|
||||
class itexture_comp
|
||||
{
|
||||
CRNLIB_NO_COPY_OR_ASSIGNMENT_OP(itexture_comp);
|
||||
|
||||
public:
|
||||
itexture_comp() { }
|
||||
virtual ~itexture_comp() { }
|
||||
|
||||
virtual const wchar_t *get_ext() const = 0;
|
||||
|
||||
virtual bool compress_init(const crn_comp_params& params) = 0;
|
||||
virtual bool compress_pass(const crn_comp_params& params, float *pEffective_bitrate) = 0;
|
||||
virtual void compress_deinit() = 0;
|
||||
|
||||
virtual const crnlib::vector<uint8>& get_comp_data() const = 0;
|
||||
virtual crnlib::vector<uint8>& get_comp_data() = 0;
|
||||
};
|
||||
|
||||
bool create_compressed_texture(const crn_comp_params ¶ms, crnlib::vector<uint8> &comp_data, uint32 *pActual_quality_level, float *pActual_bitrate);
|
||||
bool create_texture_mipmaps(dds_texture &work_tex, const crn_comp_params ¶ms, const crn_mipmap_params &mipmap_params, bool generate_mipmaps);
|
||||
bool create_compressed_texture(const crn_comp_params ¶ms, const crn_mipmap_params &mipmap_params, crnlib::vector<uint8> &comp_data, uint32 *pActual_quality_level, float *pActual_bitrate);
|
||||
|
||||
} // namespace crnlib
|
||||
Reference in New Issue
Block a user