nest-rs / nest

A simple rust 2D graphics library inspired by LOVE2D and https://github.com/alexandercampbell/simple
MIT License
6 stars 3 forks source link

Decouple public API from glutin and glium #4

Open vadixidav opened 7 years ago

vadixidav commented 7 years ago

In several places, elements of glutin and glium are publicly exposed by the API. From the user's perspective, only necessary entry points should be exposed and wrapped by structs/implement traits which are in the library and then hide everything else about the implementation with the backend.

vadixidav commented 6 years ago

On example of this currently is that the texture type being used now is an Rc, where Texture2d comes from glium.