[cl-opengl-devel] textures

Tudor Achim t.achim at gmail.com
Sat Sep 8 17:46:44 UTC 2007


Hi,
I'm following nehe's tutorials at nehe.gamedev.net, and I'm having a lot of
trouble with loading and binding textures. So, I *tried* to approximate what
happened in his tutorial:

I opened a stream to the bmp file with
(setf test (open "/home/tudor/email.bmp" :element-type
'(cl-user::unsigned-byte 8)))

Then, I made an 1d array of 5000 elements (just so it was 'big enough') and
stored the rgb values in it with
(read-sequence test-array test)

However, when I do (gl:bind-texture gl:tex-image-2d test-array),
it says that cl-opengl:tex-image-2d is unbound.

What am I doing wrong?

Thanks,
Tudor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-opengl-devel/attachments/20070908/c5ac78e9/attachment.html>


More information about the cl-opengl-devel mailing list