LWJGL
May 23, 2012, 02:51:26 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Best way to load images into textures?  (Read 539 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: 961



« 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: 285



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 (Apache License) -  http://sf.net/projects/sf3jswing
Sf3jswing Project Forum - http://apps.sourceforge.net/phpbb/sf3jswing/ (recent updates)
Mercurial Repository - http://sf3jswing.hg.sourceforge.net/hgweb/sf3jswing/sf3jswing/summary
Pages: [1]
  Print  
 
Jump to:  

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