Image loaded from TGA texture isn't displayed correctly
- by Ramy Al Zuhouri
I have a TGA texture containing this image:
The texture is 256x256.
So I'm trying to load it and map it to a cube:
#import <OpenGL/OpenGL.h>
#import <GLUT/GLUT.h>
#import <stdlib.h>
#import <stdio.h>
#import <assert.h>
GLuint width=640, height=480;
GLuint texture;
const char* const filename=…