Organized project to be more portable and require fewer steps to integrate into application projects in Xcode.

Moved standard assets into bundles
This commit is contained in:
2013-01-31 02:16:47 -08:00
parent 291461d912
commit ff63061722
199 changed files with 937 additions and 457 deletions

View File

@@ -0,0 +1,40 @@
//
// KRTexturePVR.h
// KREngine
//
// Created by Kearwood Gilbert on 2012-10-23.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#ifndef KRTEXTUREPVR_H
#define KRTEXTUREPVR_H
#include "KRTexture2D.h"
class KRTexturePVR : public KRTexture2D
{
public:
KRTexturePVR(KRContext &context, KRDataBlock *data, std::string name);
virtual ~KRTexturePVR();
virtual std::string getExtension();
bool uploadTexture(GLenum target, int lod_max_dim, int &current_lod_max_dim, long &textureMemUsed);
virtual long getMemRequiredForSize(int max_dim);
protected:
uint32_t m_iWidth;
uint32_t m_iHeight;
GLenum m_internalFormat;
bool m_bHasAlpha;
struct dataBlockStruct {
void *start;
uint32_t length;
};
std::list<dataBlockStruct> m_blocks;
};
#endif