Main Site Documentation

Lynx - Module API Suggestion : DisplayModule


#1

It would be useful if you created a DisplayModule base class which has draw, setPixel, and rgbToShort as pure virtual.

This way it would be easy to support other display modules and leverage the existing algorithms for rendering the 2D primitives. Another advantage, and what I am really looking for, would be that we could write routines that support multiple displays based on the base DisplayModule rather than the interface of a specific implementation.