aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes GLCanvas class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "GLCanvas class" Watch "GLCanvas class" New topic
Author

GLCanvas class

Michael Imhof
Greenhorn

Joined: Nov 07, 2004
Posts: 24
I would like to run a demo code showing how to use SWT with LWJGL (Leight Weight Java Game Library):

Snippet195

To run this code I need the following classes:



Where can I get a library containing this two classes. I was searching
on the web but I can't find a library with this two classes!
Shouldn't this classes belong to the swt.opengl library?!

Michael
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

http://www.eclipse.org/swt/opengl/


GenRocket - Experts at Building Test Data
Michael Imhof
Greenhorn

Joined: Nov 07, 2004
Posts: 24
Thanks Gregg,
I was already on this path and downloaded following libraries
from the url http://www.eclipse.org/swt/opengl/:

swt.jar (swt-3.1-win32-x86)
ogl.jar (org.eclipse.opengl_0.5.0)
jlwgl.jar (lwjgl-win32-0.98)

But the two classes are not part of any of this libraries!

Michael
Michael Imhof
Greenhorn

Joined: Nov 07, 2004
Posts: 24
I found the problem.

I had eclipse 3.1.1 installed and OpenGL is not supported with this
version.
Written on http://www.eclipse.org/swt/opengl/:

Support for OpenGL is included in SWT 3.2 (all builds after M2) in the package org.eclipse.swt.opengl...

Michael
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

Originally posted by Michael Imhof:
I found the problem.

I had eclipse 3.1.1 installed and OpenGL is not supported with this
version.
Written on http://www.eclipse.org/swt/opengl/:

Support for OpenGL is included in SWT 3.2 (all builds after M2) in the package org.eclipse.swt.opengl...

Michael


I found out the same information. Was going to tell you when I saw you had already found it. Good deal.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GLCanvas class