Iam writing a code for texture mapping using RGBpixmap class and header file and reading from an image but after executing the following lines it creates the checkerboard but prints that image is not 24 bit/pixel or is compressed ...
pix.makeCheckerboard(); // make pixmap procedurally
pix.setTexture(2001); // create texture
pix.readBMPFile("jhh.bmp"); // make pixmap from image
pix.setTexture(2022); // create texture
what should i do