OpenGlOptions

Determines if you want an OpenGL context created on the new window.

More...

Values

ValueMeaning
no

No OpenGL context is created

yes

Yes, create an OpenGL context

Detailed Description

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);
}

Meta