add dynamic buffers

This commit is contained in:
j3d1 2018-11-05 10:53:59 +01:00
parent 3f3c40a9b1
commit d958452e48
14 changed files with 176 additions and 67 deletions

View file

@ -7,7 +7,6 @@
#include "hal.h"
//template <int WIDTH, int HEIGHT>
class screen {
private:
const int width_;
@ -22,6 +21,13 @@ public:
hal_draw(x,y);
}
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_);
}
void print(int x, int y, char* str){
}