Original Post
Hello there! I'm pretty new to opengl but i used directX then I decided to use opengl. I'm having serious problems with the Textureing. My Problem is that i do not understand how GL works. 1) At first i call Gl.glGenTextures(Gl.GL_TEXTURE_2D, out i); (I use mono & tao). What does GL do in this call? Does it provide memory for a new Texture? 2)Secondly i call Gl.glBindTexture(Gl.GL_TEXTURE_2D, i);. I why do i Bind the Texture? is it nessessary to Bind Texture X just before i call the render statements? 3)After that i call Gl.glTexImage2D( Gl.GL_TEXTURE_2D, 0, Gl.GL_RGB5_A1, 64, 64, 0, Gl.GL_LUMINANCE, Gl.GL_UNSIGNED_SHORT, TexMulReader[id]); (The picture is an 64x64 graphic TexMulReader[id] gives back an byte[] with the data stored in it. 4) I call Gl.glTexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_MIN_FILTER, Gl.GL_LINEAR); and Gl.glTexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_MAG_FILTER, Gl.GL_LINEAR); 5) At the end i render my texture and before i call my render statements I call Gl.glBindTexture(Gl.GL_TEXTURE_2D, i); Now can you tell my what i'm doing wrong and how it works? Also can i also bind about 6000 textures with open gl about a time? thx Hurraa