1 #include "apisurface.h"
6 ApiSurface::ApiSurface()
10 QSize ApiSurface::size() const
15 void ApiSurface::setSize(const QSize &size)
20 int ApiSurface::numChannels() const
25 void ApiSurface::setNumChannels(int numChannels)
27 m_numChannels = numChannels;
30 void ApiSurface::contentsFromBase64(const QByteArray &base64)
32 QByteArray dataArray = QByteArray::fromBase64(base64);
33 m_image.loadFromData(dataArray, "png");
34 m_thumb = m_image.scaled(64, 64, Qt::KeepAspectRatio);
37 QImage ApiSurface::image() const
42 QImage ApiSurface::thumb() const
48 int ApiSurface::depth() const
53 void ApiSurface::setDepth(int depth)
58 ApiTexture::ApiTexture()
63 QString ApiTexture::label() const
68 void ApiTexture::setLabel(const QString &str)
73 ApiFramebuffer::ApiFramebuffer()
78 QString ApiFramebuffer::type() const
83 void ApiFramebuffer::setType(const QString &str)