LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Riven on December 12, 2012, 10:26:39

Title: Small static import finder tool (for LWJGL)
Post by: Riven on December 12, 2012, 10:26:39
N.B: crosspost from: java-gaming.org thread (http://www.java-gaming.org/topics/small-static-import-finder-tool-for-lwjgl/28060/view.html)


Introduction
I bet anybody working with LWJGL has run into this problem... you need, say, the methods & the field
but where on earth are they defined? Google usually answered my question, but it was such a hassle!

Static-Import-Tool to the rescue!

Features

Screenshots
(http://indiespot.net/files/published/static-import-tool.png?v=2)
(http://indiespot.net/files/published/static-import-tool-2.png)

Download


Usage:
[/list]
java -jar static-import-tool.jar /path/to/lwjgl.jar
// or just Run in Eclipse, and it will search for lwjgl.jar in the classpath
Title: Re: Small static import finder tool (for LWJGL)
Post by: Rednax on December 15, 2012, 20:49:02
import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL12.*;
import static org.lwjgl.opengl.GL13.*;
import static org.lwjgl.opengl.GL14.*;
import static org.lwjgl.opengl.GL15.*;
import static org.lwjgl.opengl.GL20.*;
import static org.lwjgl.opengl.GL21.*;
import static org.lwjgl.opengl.GL30.*;
import static org.lwjgl.opengl.GL31.*;
import static org.lwjgl.opengl.GL32.*;
import static org.lwjgl.opengl.GL33.*;
import static org.lwjgl.opengl.GL40.*;
import static org.lwjgl.opengl.GL41.*;
import static org.lwjgl.opengl.GL42.*;
:P
Title: Re: Small static import finder tool (for LWJGL)
Post by: CodeBunny on December 16, 2012, 15:06:07
This does seem like an unnecessary addition to the workflow. I feel like this would slow you down.

After all, if you know what functions you need to call, you probably have at least a good idea of what class they are in; and if you don't, you can just do what Rednax posted.