openGL question [message #467634] |
Thu, 02 February 2006 15:23 |
Eclipse User |
|
|
|
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 #467760 is a reply to message #467747] |
Mon, 06 February 2006 09:28 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02198 seconds