| SWT Widget handle on linux+GTK [message #667512] |
Fri, 29 April 2011 05:44  |
Karthik Srinivasan Messages: 9 Registered: July 2009 |
Junior Member |
|
|
Hi,
I am trying to do some native opengl rendering on an SWT composite on linux and windows.
For windows I have followed the method described in this link and it works fine.
http://www.eclipsezone.com/eclipse/forums/t95593.html
However, I'm having a hard time getting it to work on linux (ubuntu).
Here is another link which describes the exact same thing. It doesn't seem to work for me.
http://www.eclipsezone.com/eclipse/forums/t26596.html
Casting the handle to a GtkWidget* doesn't seem to work for me. I get a segmentation fault.
I'm very new new to GTK and have hardly any idea. I've just read up a little to do what I need.
My question is - Is the technique described for Linux+GTK in the second link still valid?
Any pointers on how to get this working on linux will be very useful.
Thanks,
Karthik
|
|
|
|
| Re: SWT Widget handle on linux+GTK [message #667518 is a reply to message #667515] |
Fri, 29 April 2011 06:18  |
Karthik Srinivasan Messages: 9 Registered: July 2009 |
Junior Member |
|
|
| Tom Schindl wrote on Fri, 29 April 2011 05:53 | Why are are you not using GLCanvas and e.g. lwjgl to do OpenGL Rendering?
Tom
|
Hi Tom, GLCanvas was the first thing I checked for this requirement. But from what I saw, if I used GLCanvas, all of my opengl code will be on the java side. I have a requirement where the opengl code needs to be on the C/C++ side.
Do you think I can use GLCanvas with all my opengl code coming from the native side? If I can, then that would also work for me.
Also I will need to be able to use a specific opengl library/emulator for this.
Thanks,
Karthik
[Updated on: Fri, 29 April 2011 06:47] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.06117 seconds