Refactor texture handling #10

Merged
shaunrd0 merged 12 commits from texture into master 2022-11-24 22:26:54 +00:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 08620e33a9 - Show all commits

View File

@ -1,4 +1,6 @@
# Qtk
[![All Builds](https://github.com/shaunrd0/qtk/actions/workflows/all-builds.yml/badge.svg)](https://github.com/shaunrd0/qtk/actions/workflows/all-builds.yml)
[![Linting](https://github.com/shaunrd0/qtk/actions/workflows/linting.yml/badge.svg)](https://github.com/shaunrd0/qtk/actions/workflows/linting.yml)
Practice project for learning about using OpenGL in Qt widget applications.
Model loader using [Assimp](https://assimp.org/) within a Qt widget application.

View File

@ -72,8 +72,9 @@ QOpenGLTexture * OpenGLTextureFactory::initCubeMap(
int i = 0;
for(const auto & face : faces) {
QImage faceImage(faceTextures[i]);
if(faceImage.isNull())
if(faceImage.isNull()) {
qDebug() << "Error loading cube map image\n";
}
faceImage = faceImage.convertToFormat(QImage::Format_RGBA8888);
// On the first iteration, set format and allocate texture storage