MLXXXp/Arduboy2

Consider making more drawing functions static

Closed this issue · 1 comments

Given that the frame buffer is static and that some of the drawing functions are already static (e.g. drawPixel, drawBitmap, drawCompressed), it makes sense that the remaining drawing functions (e.g. drawLine, drawRect, fillRect, etc.) should also be made static so that Arduboy2Base can be used to perform drawing without requiring an instance of the class.

(Perhaps it might even make sense to put either the drawing functionality or the non-drawing functionality into a separate class so that #33 could also be satisfied, but that might make more sense as a separate issue.)

All functions and variables that could be made static have been.
4698dd2