SWT

Started by pedr0t, March 31, 2004, 14:04:54

Previous topic - Next topic

Matzon

Well, I like to think that an implementation should be as simple to use and to distribute.
Therefore I think that depending on the complexity, you should do it in native code, or do it using a .win32.GLCanvas | .linux.GLCanvas style class - and then just always distribute them along.

Why do you need to make different versions of GLCanvas? - isn't the management the same?

cfmdobbie

Another vote here for not having multiple lwjgl.jars.  How you manage it is up to you! :lol:
ellomynameis Charlie Dobbie.

fbi

Well...the problem is that SWT is distributed as different jars for different platforms  :shock:
Why?!? The reason is that the Eclipse team wanted to access the native methods from the Java side...for example on Windows you can call something like OS.GetDeviceCaps and on Linux you can make similar calls to the OS.
But there's no problem: I will move each and everything into the native code so that we have no distribution problem at all (I will drift away from SWT philosophy indeed)  :D
A small note: I won't be able to connect from tomorrow afternoon to the next Tuesdayso because I won't be at home.
I will work on the Windows and Linux versions following these guidelines.
One Java class and multiple native implementations (of course) for Win32 and X-Windows.
When I get back on Wednesday I'll post the produced code.
If everything runs fine we can integrate it or...we'll need to modify something  :D

elias

Hmmm, moving everything into native code doesn't sound like progress to me. Why not merge the win32, X and macosx jars into one and be done with it?

- elias

jjones7947

Any chance of getting the web server turned on again? Or is it move to a new site?
Jim

rgrzywinski

If you are in need of an SWT OpenGL binding, mine is available at:

http://www.realityinteractive.com/software/oss/index.html#SWTOGL

sir_wojciech

So where can one get a SWT Canvas class?

Matzon

check SharedContextTest for how to render to a canvas

sir_wojciech

where is it?

Matzon


sir_wojciech

it's a bit old

Matzon

just nuke the lwjgl jar and dll and use the latest - works fine @ my end.

rgrzywinski

Old doesn't imply out of date.  It simply means that it does what it needs to do regardless of the LWJGL version.  It's a testament to the great work that these guys are doing over here at LWJGL central.

If you have any questions or problems with it, email me directly.

sir_wojciech