diff options
Diffstat (limited to 'lyt/common.h')
-rw-r--r-- | lyt/common.h | 8 |
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); + } }; |