• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GLCanvas class

 
Michael Imhof
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
 
Michael Imhof
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic