luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
568 stars 108 forks source link

modern opengl doesn't work #111

Closed zengxiuhao closed 6 years ago

zengxiuhao commented 6 years ago

Now,I use This Opengl.Net library to draw Triangle. When I use VAO VBO Object, the triangle don't display in the glcontrol and the window remain the backgroundcolor. the same code can run correctly in opentk. However,When I use fixed pipeline to draw triange,it display correctly.

zengxiuhao commented 6 years ago

I don't know how to resolve it . Can you give me a simple demo that use VAO、Vbo to draw triange in glcontrol.

zengxiuhao commented 6 years ago

I don't know how to resolve it . Can you give me a simple demo that use VAO、Vbo to draw triange in glcontrol.

luca-piccioni commented 6 years ago

Did you read the HelloTriangle sample source? It does render using VAO. (https://github.com/luca-piccioni/OpenGL.Net/blob/master/Samples/HelloTriangle/SampleForm.cs)