Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support for an OpenGL Render Control. #39

Open
azunyuuuuuuu opened this Issue · 5 comments

3 participants

@azunyuuuuuuu

In short: is there any kind of OpenGL Render Control planned which is being used in conjunction with OpenTK?

@cwensley
Owner

Wasn't specifically planned, but easy enough to do. It looks like OpenTK is MIT licensed so it would fit well with Eto.Forms.

There might be some complications though, as you'd have to compile your app with different references based on the target platform, unless Eto.Forms had a wrapper of sorts around OpenTK, which I would not necessarily like to do.

@hultqvist

I have observed that you have separate platform DLLs for Windows, Gtk and Mac, couldn't that be the location for placing the platform specific code.
to use OpenTK you will need to reference one common platform independent OpenTK.dll and one platform specific whose code could be added to the existing Eto.Platform.*.dll since those most likely already contain the necessary references.

I have been working with modifying and stripping down a fork of OpenTK found at https://github.com/hultqvist/opentk
But be warned that fork has some major modifications that makes it incompatible with the original Opentk project(mainly using column vectors).

Still the part I'm talking about has not changed in that regard, specifically the projects OpenTK.GLControl and OpenTK.GLWidget for Windows and Gtk respectively, I guess a similar one could be made for Mac but currently the only implementation is from the original OpenTK gamewindow class.

@cwensley
Owner

Indeed, that would be a way to do that.

@cwensley
Owner

I looked at this a little - It is unfortunate that MonoMac uses a custom OpenTK built into MonoMac.dll.. We may have to create a wrapper around the whole API, which would be unfortunate

@cwensley
Owner

Progress has been made on an OpenGL control for eto here:

https://github.com/bchavez/SharpFlame/tree/eto/source

@SuperNova2150 SuperNova2150 referenced this issue in LogicAndTrick/sledge
Open

Cross-Platform UI Suggestion #212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.