micromenu/inc/gfx/screen.h

39 lines
610 B
C
Raw Normal View History

2018-11-01 18:39:19 +00:00
//
// Created by jedi on 11/1/18.
//
#ifndef MGL_DMXMENU_SCREEN_H
#define MGL_DMXMENU_SCREEN_H
#include "hal.h"
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);
}
2018-11-05 09:53:59 +00:00
void draw(int x, int y, canvas& c){
for (int x_ = 0; x_ < 128; x_++)
for (int y_ = 0; y_ < 32; y_++)
if(c.buffer_.get(x_*32+y_))
hal_draw(x+x_,y+y_);
}
2018-11-01 18:39:19 +00:00
void print(int x, int y, char* str){
}
};
#endif //MGL_DMXMENU_SCREEN_H