LWJGL
May 23, 2012, 02:51:05
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.8.3 released!
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
OpenGL
>
Best way to load images into textures?
Pages: [
1
]
« previous
next »
Print
Author
Topic: Best way to load images into textures? (Read 539 times)
roadkillguy
Newbie
Posts: 9
Best way to load images into textures?
«
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
Re: Best way to load images into textures?
«
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
Re: Best way to load images into textures?
«
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
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...