Files
kraken/KREngine/kraken/KRTextureTGA.h
Kearwood Gilbert d906f67f76 TGA Images working once again on iOS and OSX runtimes.
Image import / compression pipeline fixed -- was broken with TGA support
Corrected TGA RLE decompression -- 24bpp RLE compressed TGA's now tested and working.
No longer attempting to generate mipmaps for cube maps automatically at runtime.

--HG--
branch : nfb
2014-01-24 02:13:34 -08:00

33 lines
782 B
C++

//
// KRTextureTGA.h
// KREngine
//
// Created by Kearwood Gilbert on 2012-10-23.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#ifndef KRTEXTURETGA_H
#define KRTEXTURETGA_H
#include "KRTexture2D.h"
class KRTextureTGA : public KRTexture2D
{
public:
KRTextureTGA(KRContext &context, KRDataBlock *data, std::string name);
virtual ~KRTextureTGA();
virtual std::string getExtension();
bool uploadTexture(GLenum target, int lod_max_dim, int &current_lod_max_dim, int prev_lod_max_dim, bool compress = false, bool premultiply_alpha = false);
#if !TARGET_OS_IPHONE
virtual KRTexture *compress(bool premultiply_alpha = false);
#endif
virtual long getMemRequiredForSize(int max_dim);
private:
long m_imageSize;
};
#endif