luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenGL.CoreUI does not exist .NET Core 2.0

hugglesfox opened this issue · comments

When trying using OpenGL.CoreUI on .NET Core 2.0 after installing the nuget package I get the error saying something along the lines of namespace CoreUI does not exist. Help would be much appreciated (I'm using Ubuntu 17.10).

The CoreUI namespace is not included in nuget package (it will be in a separated package, anyway).

Moreover, the CoreUI currently support only Windows (altought it should be straightforward to support Linux too).

How do you create a window then without the NativeWindow class? (I'm new to OpenGL programming)

The NativeWindow can be created with the factory pattern, just extend NativeWindow with a class NativeWindowX11 (or NativeWindowGLX), which implements windowing using XLib/X11 methods.

You can start from scratch using an authoritative sample, just translating calls using P/Invoke (Glx has the necessary definitions, they could made public). A faster method could be copy and replicate the internal implementation of the native window.

At the moment in CoreUI there is only the strictly necessary for running .NET Core 1/2 samples on Windows, and I don't require anymore; your can PR the Linux implementation, if you wish; however, be warned that recently I've noticed instabilities when using my GLX implementation.