LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: appel on October 15, 2006, 23:21:12

Title: Tired of always typing GL11.gl....?
Post by: appel on October 15, 2006, 23:21:12
Try this:

import static org.lwjgl.opengl.GL11.*;

and then always refer to glWhatever :)
Title: Tired of always typing GL11.gl....?
Post by: princec on October 16, 2006, 00:04:46
...and just in case you're developing for 1.4, you can use Retroweaver to allow your 1.5 code to run on 1.4 VMs :)

Cas :)
Title: Re: Tired of always typing GL11.gl....?
Post by: the2bears on October 16, 2006, 05:35:20
Quote from: "appel"Try this:

import static org.lwjgl.opengl.GL11.*;

and then always refer to glWhatever :)

You see... I ignore some of these new language features until someone show's me just how useful they'd be!  Thanks, because I am indeed tired of typing GL11.* :)

Bill