Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Widget handle on linux+GTK
SWT Widget handle on linux+GTK [message #667512] Fri, 29 April 2011 09:44 Go to next message
Karthik Srinivasan is currently offline Karthik SrinivasanFriend
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 #667515 is a reply to message #667512] Fri, 29 April 2011 09:53 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6559
Registered: July 2009
Senior Member
Why are are you not using GLCanvas and e.g. lwjgl to do OpenGL Rendering?

Tom

Am 29.04.11 11:44, schrieb Karthik Srinivasan:
> 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 10:18 Go to previous message
Karthik Srinivasan is currently offline Karthik SrinivasanFriend
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 10:47]

Report message to a moderator

Previous Topic:Combo box
Next Topic:Table ScrollBars
Goto Forum:
  


Current Time: Thu Jul 09 08:05:05 GMT 2020

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

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

Back to the top