Jump to content

LWJGL help

- - - - -

  • Please log in to reply
2 replies to this topic

#1
floorman

floorman

    Newbie

  • Members
  • PipPip
  • 29 posts
Hello,

I've got this question with LWJGL, google just returned crap.

When I see other people program LWJGL they can just declare things like this:

glEnable(GL_LIGHTING);

whereas I have to declare things like this:

GL11.glEnable(GL11.GL_LIGHTING);

why is this?

It's just kinda annoying that I have to declare GL11 over and over again.



Thanks,

#2
lethalwire

lethalwire

    while(false){ ... }

  • Members
  • PipPipPipPipPipPipPip
  • 748 posts
  • Programming Language:Java, PHP
  • Learning:Java, PHP
Stack imports.
Static Import

#3
floorman

floorman

    Newbie

  • Members
  • PipPip
  • 29 posts

lethalwire said:

Stack imports.
Static Import

Awesome, thanks very much for this.

This makes life 10x easier. :)

---------- Post added at 04:58 PM ---------- Previous post was at 04:28 PM ----------

Hey,

I've now got more errors! because now even with the static import it still doesn't like the methods and variables not being declared! :cursing:

I really don't know what is happening now. :(

--EDIT--
I know why, ignore me.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users