summaryrefslogtreecommitdiff
path: root/lyt
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-08-19 01:48:36 +0200
committerTreeki <treeki@gmail.com>2012-08-19 01:48:36 +0200
commit2883326061ccadc1b21376dc25c92e1d6751d592 (patch)
tree8488da79605991d1b02a97d3eb78741c47647103 /lyt
parent195efe4ebab933bfbba7f7bf06cf4592b865d008 (diff)
downloadLayoutStudio-2883326061ccadc1b21376dc25c92e1d6751d592.tar.gz
LayoutStudio-2883326061ccadc1b21376dc25c92e1d6751d592.zip
added a tex coord set editor and the beginnings of a Picture tab
Diffstat (limited to '')
-rw-r--r--lyt/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lyt/common.h b/lyt/common.h
index 49061ce..a343c32 100644
--- a/lyt/common.h
+++ b/lyt/common.h
@@ -40,6 +40,14 @@ union Version {
struct LYTTexCoords {
QPointF coord[4];
+
+ LYTTexCoords() {
+ // Sane defaults
+ coord[0] = QPointF(0.0f, 0.0f);
+ coord[1] = QPointF(1.0f, 0.0f);
+ coord[2] = QPointF(0.0f, 1.0f);
+ coord[3] = QPointF(1.0f, 1.0f);
+ }
};