SilentPenguin / Sparrow

Sparrow is a game engine framework built in C# for the .net core runtime.
MIT License
6 stars 0 forks source link

Remove unsafe types from the OpenGL wrapper. #2

Open SilentPenguin opened 7 years ago

SilentPenguin commented 7 years ago

The OpenGL wrapper currently contains unmanaged types at the public API level.

The C# API should not ask programmers working with the API to learn the concepts of unsafe code without good reason.

To resolve this, the wrapper should preferably interop using marshalled managed types, or ensure that any unmanaged types are not public facing.