Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » openGL question
openGL question [message #467634] Thu, 02 February 2006 15:23 Go to next message
Eclipse UserFriend
Originally posted by: vze3gfkr.verizon.net

Hi i have just recently been learning JOGL using the book " Learning
Java Bindings for OpenGL" . In the examples in the book they implement
the GLEventListener which implements the methods init() and display(). I
am now trying to implement these examples using the SWT 3.2 M4 and have
run the code snipplet 209 which works but does not use the
GLEventListener interface. Is there any documentation on how SWT handles
the GLEventListener or can some one explain how resizing or redrawing a
window works. Thanks for any help in this area

regards
Fintan Mac Cormack
Re: openGL question [message #467747 is a reply to message #467634] Sun, 05 February 2006 19:50 Go to previous messageGo to next message
Billy Biggs is currently offline Billy BiggsFriend
Messages: 94
Registered: July 2009
Member
fintan Mac Cormack wrote:
> Hi i have just recently been learning JOGL using the book " Learning
> Java Bindings for OpenGL" . In the examples in the book they implement
> the GLEventListener which implements the methods init() and display(). I
> am now trying to implement these examples using the SWT 3.2 M4 and have
> run the code snipplet 209 which works but does not use the
> GLEventListener interface. Is there any documentation on how SWT handles
> the GLEventListener or can some one explain how resizing or redrawing a
> window works. Thanks for any help in this area

Support for GLEventListener is dependent on a GLDrawable
implementation for SWT:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=110757

However, this system doesn't really fit well with the SWT model
anyway. Resizing and redrawing of an OpenGL GLCanvas widget works the
same as any other SWT widget. You can use display.timerExec() or
display.asyncExec() to queue runnables for updating the display, and
listen for the SWT.Resize event on the GLCanvas widget to update any
state, and the GL viewport, when resizing occurs.

-Billy
Re: openGL question [message #467760 is a reply to message #467747] Mon, 06 February 2006 09:28 Go to previous message
Eclipse UserFriend
Originally posted by: vze3gfkr.verizon.net

Billy Biggs wrote:
> fintan Mac Cormack wrote:
>> Hi i have just recently been learning JOGL using the book " Learning
>> Java Bindings for OpenGL" . In the examples in the book they implement
>> the GLEventListener which implements the methods init() and display().
>> I am now trying to implement these examples using the SWT 3.2 M4 and
>> have run the code snipplet 209 which works but does not use the
>> GLEventListener interface. Is there any documentation on how SWT
>> handles the GLEventListener or can some one explain how resizing or
>> redrawing a window works. Thanks for any help in this area
>
> Support for GLEventListener is dependent on a GLDrawable
> implementation for SWT:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=110757
>
> However, this system doesn't really fit well with the SWT model
> anyway. Resizing and redrawing of an OpenGL GLCanvas widget works the
> same as any other SWT widget. You can use display.timerExec() or
> display.asyncExec() to queue runnables for updating the display, and
> listen for the SWT.Resize event on the GLCanvas widget to update any
> state, and the GL viewport, when resizing occurs.
>
> -Billy
thanks for the feedback bill. I had used the paintlistener to allow for
resizes. but when you do a resize you can see the back ground been
redrawn. however when I used the resize i did not see this effect. I am
also using the keylistener interface to allow updates if certain keys
are entered is this a good way to update the display. Also is there any
inforamtion on using JOGL in an RCP.

thanks
fintan
Previous Topic:Unable to create table with checkbox columns
Next Topic:What is Correct Way to Exit J9/SWT on PPC
Goto Forum:
  


Current Time: Thu Sep 19 14:47:14 GMT 2019

Powered by FUDForum. Page generated in 0.01685 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top