|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
winforms + tao under linux ?I have some code that works fine under windows, and now another person is trying to get it to compile under linux/mono.
This is what happens: "Unhandled Exception: System.EntryPointNotFoundException: GetDC at (wrapper managed-to-native) Tao.Platform.Windows.User:GetDC (intptr) at Tao.Platform.Windows.SimpleOpenGlControl.InitializeContexts () [0x00000] at (wrapper remoting-invoke-with-check) Tao.Platform.Windows.SimpleOpenGlControl:InitializeContexts () at monoCAM.GLWindow..ctor () [0x00000] at (wrapper remoting-invoke-with-check) monoCAM.GLWindow:.ctor () at monoCAM.Program.Main (System.String[] args) [0x00000] in /Project/src/Main.cs:13 " Is it possible to write cross-platform code that uses both winforms and tao? how? I notice I have a reference " Tao.Platform.Windows" in my project. should that change to something else under linux/mono? some googling suggests that OpenTK is better in this respect? AW _______________________________________________ Tao-list mailing list Tao-list@... http://galactus.ximian.com/mailman/listinfo/tao-list |
|
|
Re: winforms + tao under linux ?(Resending mail to the tao-list).
SimpleOpenGlControl is Windows only (GetDC is a winapi call). The problem is that there's no Tao.Platform.X11 yet, although that will probably change soon (I have implemented bindings for X event handling, window creation and more, while Borrillis, of Axiom engine fame, has donated his GLX bindings). There is a cross-platform alternative to SimpleOpenGLControl in OpenTK, which I'm intending to release as soon as keyboard handling works. The current release (0.3.8 - https://sourceforge.net/projects/opentk), which contains an early version of GLControl which can be hosted in an existing Form. What's more, OpenTK can interoperate with Tao.OpenGl (you can even mix OpenTK.OpenGL calls with Tao.OpenGl ones), so it should be possible to integrate with an existing project (if you are not averse to using alpha-quality software that is). I can help you with any problems that may come up, so don't hesitate to post here, or at the (tao/opentk) forums. Best wishes, - Stephen A On Sat, 04 Aug 2007 08:41:29 +0300, Anders Wallin <anders.e.e.wallin@...> wrote: I have some code that works fine under windows, and now another person is trying to get it to compile under linux/mono. This is what happens: "Unhandled Exception: System.EntryPointNotFoundException: GetDC at (wrapper managed-to-native) Tao.Platform.Windows.User:GetDC (intptr) at Tao.Platform.Windows.SimpleOpenGlControl.InitializeContexts () [0x00000] at (wrapper remoting-invoke-with-check) Tao.Platform.Windows.SimpleOpenGlControl:InitializeContexts () at monoCAM.GLWindow..ctor () [0x00000] at (wrapper remoting-invoke-with-check) monoCAM.GLWindow:.ctor () at monoCAM.Program.Main (System.String[] args) [0x00000] in /Project/src/Main.cs:13 " Is it possible to write cross-platform code that uses both winforms and tao? how? I notice I have a reference "Tao.Platform.Windows" in my project. should that change to something else under linux/mono? some googling suggests that OpenTK is better in this respect? AW -- In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move - Douglas Adams _______________________________________________ Tao-list mailing list Tao-list@... http://galactus.ximian.com/mailman/listinfo/tao-list |
| Free embeddable forum powered by Nabble | Forum Help |