adamdruppe / arsd

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
http://arsd-official.dpldocs.info/arsd.html
530 stars 127 forks source link

resize handling constructor/"documentation" require openGlOptions passing #263

Closed crazymonkyyy closed 3 years ago

crazymonkyyy commented 3 years ago
auto window = new SimpleWindow(Size(500, 500), "Event example - simpledisplay.d",OpenGlOptions.no,Resizability.allowResizing);

window resize handling: pass Resizability.allowResizing to the constructor, set a handler on window.windowResized

It needed the opengl options whatever that is to be passed.

adamdruppe commented 3 years ago

added an overload so you can swap the order there and it still works