I am making a simple 3d program and now I need to insert an 2D image as a background. I need to use the tao framework for college. This is a part of the code. How do I load the image into an int
array?
Gl.glEnable(Gl.GL_TEXTURE_2D);
int texture; // storage for texture for one picture
texture = ????? ;
Gl.glGenTextures(1, texture); ??????
// Create The Texture
// Typical Texture Generation Using Data From The Bitmap
Gl.glBindTexture(Gl.GL_TEXTURE_2D, texture);
Gl.glTexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_MIN_FILTER, Gl.GL_LINEAR); // Linear Filtering
Gl.glTexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_MAG_FILTER, Gl.GL_LINEAR);