X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fvertexdatainterpreter.h;h=6bf9b11c65a0c77976451f02cd1a991cd3b3eebd;hb=HEAD;hp=8492593f8cd0d62aaa5e3517ad289627e308a3ff;hpb=8e7a4ff9d168734533fa1f725b013c048e49b3e9;p=apitrace diff --git a/gui/vertexdatainterpreter.h b/gui/vertexdatainterpreter.h index 8492593..6bf9b11 100644 --- a/gui/vertexdatainterpreter.h +++ b/gui/vertexdatainterpreter.h @@ -5,6 +5,17 @@ class QListWidget; +enum DataType { + DT_INT8, + DT_UINT8, + DT_INT16, + DT_UINT16, + DT_INT32, + DT_UINT32, + DT_FLOAT, + DT_DOUBLE, +}; + class VertexDataInterpreter : public QObject { Q_OBJECT @@ -16,6 +27,7 @@ public: int type() const; int stride() const; int components() const; + int startingOffset() const; void setListWidget(QListWidget *listWidget); @@ -27,6 +39,7 @@ public slots: void setStride(int stride); void setComponents(int num); void setType(int type); + void setStartingOffset(int offset); private: QListWidget *m_listWidget; @@ -34,6 +47,7 @@ private: int m_type; int m_stride; int m_components; + int m_startingOffset; }; #endif