LWJGL Forum

Programming => OpenGL => Topic started by: Zin on July 12, 2016, 01:59:53

Title: is it possible to load B.M.P. files as a texture with LWJGL?
Post by: Zin on July 12, 2016, 01:59:53
is it possible to load BMP files as a texture with LWJGL? and how to do it? i got a large high definition photo/picture and i want to load it but i don't know if i can or how to please explain to me and tell me if possible :D thanks
Title: Re: is it possible to load B.M.P. files as a texture with LWJGL?
Post by: spasi on July 12, 2016, 06:03:42
Yes, using stb_image. Here's a demo (https://github.com/LWJGL/lwjgl3/blob/master/modules/core/src/test/java/org/lwjgl/demo/stb/Image.java) to get you started.
Title: Re: is it possible to load B.M.P. files as a texture with LWJGL?
Post by: Zin on July 12, 2016, 16:51:52
thanks :>