Value | Meaning |
---|---|
no | No OpenGL context is created |
yes | Yes, create an OpenGL context |
See more: in the 3d topic.
import arsd.simpledisplay; void main() { auto window = new SimpleWindow(500, 500, "OpenGL Test", OpenGlOptions.yes); // Set up the matrix window.setAsCurrentOpenGlContext(); // make this window active // This is called on each frame, we will draw our scene window.redrawOpenGlScene = delegate() { }; window.eventLoop(0); }
Determines if you want an OpenGL context created on the new window.