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