Qt5 OpenGL cannot load bmp file as texture to cube
Clash Royale CLAN TAG #URR8PPP Qt5 OpenGL cannot load bmp file as texture to cube I found this sample project based on NEHE Tutorial but doesn't work on my Qt version 5, tried editing some code but this the file cannot be loaded. And warning exists also warning: C4005: 'CALLBACK': macro redefinition The codes: void loadGLTextures() { QImage t; QImage b; //../images/nehe.bmp //original file path if ( !b.load( ":/nehe.png" ) ) { //b = QImage( 16, 16, 32 ); //b.fill( Qt::green.rgb() ); QMessageBox::information(this, "Error", "Could not load file"); QImage b(16, 16, QImage::Format_RGB32); //****** b.fill(Qt::green); //************* } t = QGLWidget::convertToGLFormat( b ); if(t.isNull()) { QMessageBox::information(this, "Error", "IMAGE IS NULL"); } glGenTextures( 1, texture );// Create The Texture glBindTexture( GL_TEXTURE_2D, texture[0] )...