2004-05-29 22:56:24 +02:00
|
|
|
//-----------------------------------------------------------
|
|
|
|
//
|
|
|
|
// Name: Texture.h
|
|
|
|
// Last Update: 25/11/03
|
|
|
|
// Author: Rich Cross
|
|
|
|
// Contact: rich@0ad.wildfiregames.com
|
|
|
|
//
|
|
|
|
// Description: Basic texture class
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef _TEXTURE_H
|
|
|
|
#define _TEXTURE_H
|
|
|
|
|
2005-08-12 19:06:53 +02:00
|
|
|
#include "lib/res/handle.h"
|
2006-06-02 04:10:27 +02:00
|
|
|
#include "ps/CStr.h"
|
2004-05-29 22:56:24 +02:00
|
|
|
|
|
|
|
class CTexture
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CTexture() : m_Handle(0) {}
|
|
|
|
CTexture(const char* name) : m_Name(name), m_Handle(0) {}
|
|
|
|
|
|
|
|
void SetName(const char* name) { m_Name=name; }
|
|
|
|
const char* GetName() const { return (const char*) m_Name; }
|
|
|
|
|
|
|
|
Handle GetHandle() const { return m_Handle; }
|
|
|
|
void SetHandle(Handle handle) { m_Handle=handle; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
CStr m_Name;
|
|
|
|
Handle m_Handle;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|