2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* Texture.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX Texture definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _XFX_GRAPHICS_TEXTURE_
|
|
|
|
|
#define _XFX_GRAPHICS_TEXTURE_
|
|
|
|
|
|
|
|
|
|
#include <System/Types.h>
|
|
|
|
|
#include <System/IO/Stream.h>
|
|
|
|
|
#include "GraphicsResource.h"
|
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
namespace Graphics
|
|
|
|
|
{
|
2011-11-07 01:29:50 +00:00
|
|
|
|
// Represents a texture resource.
|
2012-09-28 20:36:02 +00:00
|
|
|
|
class Texture : public GraphicsResource
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
2010-12-27 01:01:25 +00:00
|
|
|
|
private:
|
|
|
|
|
static ImageFileFormat_t ILimageformat2XNAimageformat(int ILFormat);
|
2011-05-02 17:33:24 +00:00
|
|
|
|
int _levelCount;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2010-12-27 01:01:25 +00:00
|
|
|
|
protected:
|
2011-11-07 01:29:50 +00:00
|
|
|
|
virtual void Dispose(bool disposing);
|
2010-12-27 01:01:25 +00:00
|
|
|
|
|
|
|
|
|
public:
|
2012-09-28 20:36:02 +00:00
|
|
|
|
SurfaceFormat_t getFormat() const;
|
|
|
|
|
int getLevelCount() const;
|
|
|
|
|
virtual bool MustClamp() const;
|
2011-03-10 22:55:43 +00:00
|
|
|
|
|
|
|
|
|
Texture();
|
|
|
|
|
~Texture();
|
2010-12-27 01:01:25 +00:00
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
void GenerateMipMaps(const TextureFilter_t filterType);
|
|
|
|
|
int GetType() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_TEXTURE_
|