LWJGL
May 25, 2013, 05:55:23 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Best way to load images into textures?  (Read 851 times)
roadkillguy
Newbie
*
Posts: 9


« on: October 23, 2011, 17:22:29 »

Hi, I was wondering if there was a quick function that's able to take in a string (filename) and load the texture data from it.  Back in c++ I used SDL and SDL_Image to do this, but I'm not sure of the java equivalent.  Do I need to write my own parser, or is there a universal one already written?

Thanks.
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1112



« Reply #1 on: October 24, 2011, 01:55:15 »

Have a look at the LWJGL wiki, there are links and tutorials there to libraries that can do this for you (e.g. Slick-Utils or PNGDecoder).
Logged
broumbroum
Prolific Timewaster
****
Posts: 316



WWW
« Reply #2 on: October 25, 2011, 07:35:53 »

Hi, you may also  consider using IOTexture.java provided by this LWJGL-RFE ("Request for Enhancement") release : http://lwjgl.org/forum/index.php/topic,4181.0.html .
best regards Cool
Logged

Sf3JSwing project, code repo (Apache License) -  http://www.sourceforge.net/p/sf3jswing
Sf3jswing Project Forum - http://apps.sourceforge.net/phpbb/sf3jswing/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!