Refactored TTexture to allow encoding sprite(s) at an arbitrary location within
a (possibly shared) physical texture.
The original variant only allowed encoding a sprite at the bottomleft of a
larger physical texture to use NPOT sprites on POT only supporting systems.
#include <QLabel>
#include <QRect>
#include <QList>
#include <QMouseEvent>
class PixLabel : public QLabel
{
Q_OBJECT
public:
PixLabel();
QList<QRect> rects;
public slots:
void AddRect();
private:
void paintEvent(QPaintEvent * event);
void mousePressEvent(QMouseEvent * e);
};