QSize size() const;
void setSize(const QSize &size);
+ int depth() const;
+ void setDepth(int depth);
+
+ QString formatName() const;
+ void setFormatName(const QString &str);
+
void contentsFromBase64(const QByteArray &base64);
QImage image() const;
private:
QSize m_size;
+ int m_numChannels;
QImage m_image;
QImage m_thumb;
+ int m_depth;
+ QString m_formatName;
};
public:
ApiTexture();
- int unit() const;
- void setUnit(int un);
-
- int level() const;
- void setLevel(int l);
-
- QString target() const;
- void setTarget(const QString &str);
+ QString label() const;
+ void setLabel(const QString &str);
private:
- int m_unit;
- int m_level;
- QString m_target;
+ QString m_label;
};
class ApiFramebuffer : public ApiSurface