Describes common texture properties and methods.
You can find more information in comments below.
class IBaseTexture : public virtual IReleasable
{
protected:
bool m_bCreated;
PlatformHandle m_hHandle;
TextureFormat m_eFormat;
nitisa::Rect m_sRect;
RectF m_sRectf;
nitisa::Rect m_sInvalidRect;
public:
bool const &Created;
PlatformHandle const &Handle;
TextureFormat const &Format;
int const &Width;
float const &Widthf;
int const &Height;
float const &Heightf;
Point const &Size;
PointF const &Sizef;
nitisa::Rect const &Rect;
RectF const &Rectf;
nitisa::Rect const &InvalidRect;
virtual bool isValid() const = 0; // Return true only if invalid rectangle value is invalid
virtual bool setFormat(const TextureFormat value) = 0;
virtual bool setSize(const int width, const int height) = 0; // Resize
virtual bool setValid(const bool value) = 0;
virtual bool setInvalidRect(const nitisa::Rect &value) = 0;
};
Namespace: | nitisa |
Include: | Nitisa/Interfaces/IBaseTexture.h |