Some code that might be useful to someone…
http://www.cokeandcode.com/feck
Kev
Just to be a pain… Any chance you could put a jar of the src/ directory up? I find it really difficult to browse code online - it’s easier to just put it into eclipse and view it in there.
Thanks
That’s AWESOME! ;D Thank you so much for your generosity! Those files represent a lot of work and an immense knowledgebase and will provie for and excellent resource for me as well as many others I am sure!
Consider the zip available (src.zip on the website)
Kev
Ooh, nice things in there. Got most of 'em already meself of course but there’s a few bits I’d like to steal
Cas
wow, thats an amazing resource!!! probably the best java gaming resource on the web, great work and thanks for your kindness!
Thank you. That’s great.
Added some particle engine stuff and a few fixes to sound (ogg decoding etc).
Kev
Excellent! :drools:
I love to see how others implement things. This is just in time, too. I just finished my own particle system
I think its lwjgl only code, althought I spotted one JOGL from docs.
file: http://www.cokeandcode.com/code/src/render/org/newdawn/render/texture/Texture.java
package org.newdawn.render.texture;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import org.lwjgl.opengl.GL11;
/**
* A texture to be bound within JOGL. This object is responsible for
* keeping track of a given OpenGL texture and for calculating the
* texturing mapping coordinates of the full image.
...clip...
yeah, its LWJGL only. Its just a remaining comment from the tutorial I originally wrote. Good point tho.
Kev