
Repeat textures
Posted Wednesday, 25 July, 2012 - 15:58 by betafy inIn my previous project I was using the Tao framework and for repeating textures all I had to do was do this:
Gl.glTexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_WRAP_S, Gl.GL_REPEAT);
Gl.glTexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_WRAP_T, Gl.GL_REPEAT);
I can do this with OpenTK up until the Gl.GL_REPEAT parameter because there is no enumeration containing something like GL_REPEAT (at least that I have found). All of the overloads I've seen require some kind of int or float for the final parameter. Does anyone know what I need to put here?


Comments
Re: Repeat textures
Yes, it's a bit strange, but this should work: