2021-11-18 14:58:01 +00:00
|
|
|
#ifndef DUST3D_APPLICATION_DDS_FILE_H_
|
|
|
|
#define DUST3D_APPLICATION_DDS_FILE_H_
|
|
|
|
|
2020-03-18 14:17:09 +00:00
|
|
|
#include <QOpenGLTexture>
|
2022-10-18 09:35:04 +00:00
|
|
|
#include <QString>
|
|
|
|
#include <memory>
|
2020-03-18 14:17:09 +00:00
|
|
|
|
2022-10-18 09:35:04 +00:00
|
|
|
class DdsFileReader {
|
2020-03-18 14:17:09 +00:00
|
|
|
public:
|
2022-10-18 09:35:04 +00:00
|
|
|
DdsFileReader(const QString& filename);
|
|
|
|
QOpenGLTexture* createOpenGLTexture();
|
2022-09-23 11:03:35 +00:00
|
|
|
std::unique_ptr<std::vector<std::unique_ptr<QOpenGLTexture>>> createOpenGLTextures();
|
2022-10-18 09:35:04 +00:00
|
|
|
|
2020-03-18 14:17:09 +00:00
|
|
|
private:
|
|
|
|
QString m_filename;
|
|
|
|
};
|
|
|
|
|
2021-11-18 14:58:01 +00:00
|
|
|
#endif
|