Does anybody know how i can get my image into opengl.Iv set my code up as follows
//Generate the texture
glTexImage2D(GL_TEXTURE_2D, 0, 3, 64, 64,
0, GL_RGB, GL_UNSIGNED_BYTE, data);
does it not work? in your draw code rember to put glBindTExture(GL_TEXTURE_2D, ID);
This the only code i have in.I was just wondering what is the next step.How to load in an image?
I know then i would use
to draw the image i think
Well *data needs to contain the data for the bitmap. Either learn how to load BMP files or TGA files, they’re the easiest ones.