: In the OnPaint event of the panel, you can begin making standard OpenGL calls. A simple triangle might look like this:

To demonstrate the mechanics, we will create a simple application that initializes OpenGL and clears the screen to a color.

// Each face: two triangles (4 vertices) Context.DrawCubeFace(i, 1.0); // Custom helper (see below)

Application Depth

0 - 1/4" Max Width: 1/2"

Max Width: 1/2"

Foot Traffic

24 Hours

Hours