Question with OpenGL.net?

119 views
Skip to first unread message

Jens Eckervogt

unread,
May 23, 2017, 9:59:14 AM5/23/17
to XWT Widget Toolkit
Hello, 
Can I add OpenGL.net C# on Xwt or GtK#? It works under Linux and Windows too
I wish I have get Gl-viewport for Xwt - If I bind it.

I am already installing with ngut server and have added:
using OpenGL;

       
Gl.Viewport(0, 0, (int)MainWindow.Width, (int)MainWindow.Height);
            Gl.Clear(ClearBufferMask.ColorBufferBit);
           
Gl.MatrixMode(MatrixMode.Projection);
           
Gl.LoadIdentity();
           
Gl.Ortho(0.0, 1.0, 0.0, 1.0, 0.0, 1.0);

But I build and run Why does viewport doesn't show. 

Can you check GitHub OpenGL.Net


Bert Bruggeman

unread,
Jun 5, 2019, 11:02:07 AM6/5/19
to XWT Widget Toolkit
Hi for those interested for OpenTK with Xwt, i got a project in progress still needing work at https://github.com/Bert1974/BB74.OpenTK.Xwt but it  already does a triangle in opengl for  XamMac,GTK,WPF
Reply all
Reply to author
Forward
0 new messages