]> git.cworth.org Git - apitrace/blobdiff - gui/apisurface.cpp
Add depth info to the surfaces.
[apitrace] / gui / apisurface.cpp
index 050c081756bf4ef7e1f9079802c0790b7589fe35..b8e820bc82f16f333aed5639fa0e59e93207f0f8 100644 (file)
@@ -44,6 +44,17 @@ QImage ApiSurface::thumb() const
     return m_thumb;
 }
 
+
+int ApiSurface::depth() const
+{
+    return m_depth;
+}
+
+void ApiSurface::setDepth(int depth)
+{
+    m_depth = depth;
+}
+
 ApiTexture::ApiTexture()
     : ApiSurface()
 {
@@ -73,3 +84,4 @@ void ApiFramebuffer::setType(const QString &str)
 {
     m_type = str;
 }
+