GL11.glVertex2f cannot be resolved to a type

Started by miivers, July 13, 2011, 23:14:10

Previous topic - Next topic

miivers

Hello LWJGL forum.

I started to use bouth Java and LWJGL for first time today. I do have expirence with programming but I am having some problems finding out why my org.lwjgl.opengl.GL11 package does not contain anything. I have followed the installation guides on the wiki page and I have all .jar files included in my project. I have a black window which tells me it run as expected.

I am developing using Eclipse and LWJGL and no other library's and booth are up to date. The message i get in Eclipse is:

org.lwjgl.opengl.GL11
Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.


It would be great if anyone could point me in the right direction.

miivers

To answer my own question. It seems like something strange is happening with Eclipse. Nothing is listed when I ctrl+spac. If I look in the api documentation and write the whole function/datatype myself it seems to work. No errors when compiling and the application is running as intended.

It is a bit annoying not being able to ctrl+space when coding, but it for do for now.

Evil-Devil

Have you downloaded the source package? IIRC you have to include it to the lib settings in eclipse. The Javadoc alone won't work.