CCTextureETC

#ifndef __CCETCTEXTURE_H__

#define __CCETCTEXTURE_H__


#include "cocoa/CCObject.h"

#include "platform/CCPlatformMacros.h"

#include "CCGL.h"


NS_CC_BEGIN


class CC_DLL CCTextureETC : public CCObject

{

public:

    CCTextureETC();

    virtual ~CCTextureETC();


    bool initWithFile(const char* file);


    unsigned int getName() const;

    unsigned int getWidth() const;

    unsigned int getHeight() const;

    

private:

    bool loadTexture(const char* file);


private:

    GLuint _name;

    unsigned int _width;

    unsigned int _height;

};


NS_CC_END


#endif /* defined(__CCETCTEXTURE_H__) */


posted @ 2014-05-22 09:43  sssssnian  阅读(107)  评论(0)    收藏  举报