add 5x4 Font
This commit is contained in:
parent
987aa92a23
commit
1009d689bc
15 changed files with 346 additions and 25 deletions
32
inc/gfx/screen.h
Normal file
32
inc/gfx/screen.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
//
|
||||
// Created by jedi on 11/1/18.
|
||||
//
|
||||
|
||||
#ifndef MGL_DMXMENU_SCREEN_H
|
||||
#define MGL_DMXMENU_SCREEN_H
|
||||
|
||||
#include "hal.h"
|
||||
|
||||
//template <int WIDTH, int HEIGHT>
|
||||
class screen {
|
||||
private:
|
||||
const int width_;
|
||||
const int height_;
|
||||
|
||||
public:
|
||||
screen(int w, int h): width_(w), height_(h){
|
||||
|
||||
}
|
||||
|
||||
void draw(int x, int y){
|
||||
hal_draw(x,y);
|
||||
}
|
||||
|
||||
void print(int x, int y, char* str){
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif //MGL_DMXMENU_SCREEN_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue