• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GLCanvas class

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.eclipse.org/swt/opengl/
 
Michael Imhof
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic