<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 07/02/2012, at 7:00 AM, Clark Gaebel wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font face="verdana,sans-serif">Using the OpenGL package on Hackage, how do I load a texture from an array?<br><br>In the red book[1], I see their code using glGenTextures and glBindTexture, but I can't find these in the documentation. Are there different functions I should be calling?<br></font></blockquote></div><br><div>The Gloss graphics library has texture support, and the code for drawing them is confined to this module:</div><div><br></div><div><a href="http://code.ouroborus.net/gloss/gloss-head/gloss/Graphics/Gloss/Internals/Render/Picture.hs">http://code.ouroborus.net/gloss/gloss-head/gloss/Graphics/Gloss/Internals/Render/Picture.hs</a></div><div><br></div><div>Feel free to steal the code from there.</div><div><br></div><div>Ben.</div><div><br></div><div><br></div></body></html>