luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
570 stars 109 forks source link

Game Loop #46

Closed LordSkittles closed 7 years ago

LordSkittles commented 7 years ago

Hi, I was wondering is there a way to continuously call the render event every frame so that you could essentially make a game editor in windows forms.

luca-piccioni commented 7 years ago

This commit should resolve your issue: https://github.com/luca-piccioni/OpenGL.Net/commit/4089196b171f8d63990e91b9271f702814e3e3f7

Essentially set Animation to true.

LordSkittles commented 7 years ago

Thanks! When will this be added to the NuGet package?

luca-piccioni commented 7 years ago

Yeah, I'm playing on it. When everything is automated with AppVeyor, I'll push the master branch on nuget.

LordSkittles commented 7 years ago

Thanks. You're a legend Luca!

LordSkittles commented 7 years ago

Hey, so I ended up doing it the build way, and now the program launches, but crashes instantly, but still has items going on in the background. Any ideas?

luca-piccioni commented 7 years ago

Debug? Exception message and stack trace? By the way, you can upgrade to 0.5.1-beta, upload ed yesterday.