[WIP] C++ SDL2 implementation of JsMB API
"[!]" - doesn't work
- int Main() => 0
- bool Loop() => true
- bool createWindow(const char *title, uint16 width, uint16 height) => true
- void delay(int32 ms)
- uint16 screenWidth()
- uint16 screenHeight()
Using math.h
- double ctg(double x)
- float random(double min, double max)
- int random(int min, int max)
- bool setColor(uint8 red, uint8 green, uint8 blue) => true
- [!] bool setBgColor(uint8 red, uint8 green, uint8 blue) => false
- bool cls() => true
- bool repaint() => true
- bool drawRect(int16 x, int16 y, int16 width, int16 height) => true
- bool fillRect(int16 x, int16 y, int16 width, int16 height) => true
- bool fillScreen(uint8 red, uint8 green, uint8 blue) => true