Could somebody post some code that turns a bitmap into an opengl texture? I dont care if it uses the win api or stdio or whatever. thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-05-22
maybe DevIL library can help you.
you can find this at http://openil.sourceforge.net/ or http://www.imagelib.org/
this library loads bitmaps in many formats and (... text from documentation ... ) "The ilutGLTexImage function binds an image to an OpenGL texture".
you can download source code.
furas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Could somebody post some code that turns a bitmap into an opengl texture? I dont care if it uses the win api or stdio or whatever. thanks
maybe DevIL library can help you.
you can find this at http://openil.sourceforge.net/ or http://www.imagelib.org/
this library loads bitmaps in many formats and (... text from documentation ... ) "The ilutGLTexImage function binds an image to an OpenGL texture".
you can download source code.
furas