spice/client/gui/softtexture.h
Alexander Larsson 90104b39ae Revert automatic renames that were wrong
Seems my rename script didn't handle C++ namespaces that well.
2010-02-04 18:49:05 +01:00

41 lines
972 B
C++

#ifndef _softtexture_h_
#define _softtexture_h_
#include <stdint.h>
#include "CEGUIBase.h"
#include "CEGUITexture.h"
namespace CEGUI
{
class SoftTexture : public Texture
{
public:
SoftTexture(Renderer* owner);
SoftTexture(Renderer* owner, uint size);
SoftTexture(Renderer* owner, const String& filename,
const String& resourceGroup);
virtual ~SoftTexture();
virtual ushort getWidth(void) const { return _width;}
virtual ushort getHeight(void) const { return _height;}
virtual void loadFromFile(const String& filename, const String& resourceGroup);
virtual void loadFromMemory(const void* buffPtr, uint buffWidth, uint buffHeight,
PixelFormat pixelFormat);
private:
void freeSurf();
private:
uint32_t* _surf;
ushort _width;
ushort _height;
friend class SoftRenderer;
};
}
#endif