UpNext

11.5.1  Overview

THE OPENGL BINDING IS NOT YET OPERATIONAL; PLEASE IGNORE THIS SECTION FOR NOW.

Providing a production-quality Opengl binding in Mythryl cannot be done simply by providing one-to-one bindings to the Opengl C functions:

The Mythryl Opengl binding provides two interfaces intended for use by the application programmer:

The Easy_Opengl interface is defined by src/opt/opengl/src/easy-opengl.api; the Opengl_Client interface is defined by src/opt/opengl/src/opengl-client.api.

The Opengl interface uses tuple or record arguments to a function according to a simple rule:

Using tuple arguments when all parameters are of different types maximizes convenience without loss of type-safety; any mis-ordering of arguments will result in a compile-time type error.

Using record arguments when multiple parameters of the same type are present minimizes the risk of mis-ordering arguments to produce an error which cannot be caught at compile time.


Comments and suggestions to: bugs@mythryl.org

UpNext