1 #include "apisurface.h"
7 ApiSurface::ApiSurface()
11 QSize ApiSurface::size() const
16 void ApiSurface::setSize(const QSize &size)
21 int ApiSurface::numChannels() const
26 void ApiSurface::setNumChannels(int numChannels)
28 m_numChannels = numChannels;
31 void ApiSurface::contentsFromBase64(const QByteArray &base64)
33 QByteArray dataArray = QByteArray::fromBase64(base64);
34 m_image.loadFromData(dataArray, "png");
35 m_thumb = thumbnail(m_image);
38 QImage ApiSurface::image() const
43 QImage ApiSurface::thumb() const
48 int ApiSurface::depth() const
53 void ApiSurface::setDepth(int depth)
58 QString ApiSurface::formatName() const
63 void ApiSurface::setFormatName(const QString &str)
69 ApiTexture::ApiTexture()
74 QString ApiTexture::label() const
79 void ApiTexture::setLabel(const QString &str)
84 ApiFramebuffer::ApiFramebuffer()
89 QString ApiFramebuffer::type() const
94 void ApiFramebuffer::setType(const QString &str)