Requirements
|
WW.GL 4.0
OpenGL in .NET has never been easier! WW.GL is a typesafe wrapper around OpenGL 1.1. Unlike in other OpenGL wrappers, all OpenGL constants are represented by enums, letting you take full advantage of intellisense and autocompletion. Let the compiler catch the errors for you: all method signatures make full use of these enums. In version 4.0.38.124 text rendering support has been added.
Below is a typical C# code snippet showing how easy WW.GL's type safety makes OpenGL programming:
GL.DepthFunc(ComparisonFunction.LessEqual);
GL.ShadeModel(ShadingModel.Smooth);
GL.Enable(Capability.CullFace);
GL.Enable(Capability.ColorMaterial);
GL.LightModeli(LightModelParameter.TwoSide, true);
GL.LightModeli(LightModelParameter.Ambient, true);
GL.ShadeModel(ShadingModel.Smooth);
GL.Enable(Capability.CullFace);
GL.Enable(Capability.ColorMaterial);
GL.LightModeli(LightModelParameter.TwoSide, true);
GL.LightModeli(LightModelParameter.Ambient, true);
![]() |
Tessellation example (a star is cut out from the grey square, and the resulting polygon is tessellated). |
![]() |
Texturing example. |