]> git.cworth.org Git - apitrace/blobdiff - gui/vertexdatainterpreter.h
Use skiplist-based FastCallSet within trace::CallSet
[apitrace] / gui / vertexdatainterpreter.h
index 8492593f8cd0d62aaa5e3517ad289627e308a3ff..6bf9b11c65a0c77976451f02cd1a991cd3b3eebd 100644 (file)
@@ -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