Skip to content
Snippets Groups Projects
Commit e0c63e78 authored by Claudio Hoffmann's avatar Claudio Hoffmann
Browse files

GameLoop: Remove the ancient border around the framebuffer

parent 9bc58dca
No related branches found
No related tags found
No related merge requests found
...@@ -60,14 +60,7 @@ class GameLoop { ...@@ -60,14 +60,7 @@ class GameLoop {
Score Highscore = {screenWidth,screenHeigth}; Score Highscore = {screenWidth,screenHeigth};
public: public:
void run(Platform& platform, FloatSeconds const &frame_time, Level &level, Player &player_) { void run(Platform& platform, FloatSeconds const &frame_time, Level &level, Player &player_) {
for(int y = 0; y < framebuffer.h(); ++y) { framebuffer.clear(_0);
for(int x = 0; x < framebuffer.w(); ++x) {
framebuffer.at({ x, y }) =
(y == 0 || y == (framebuffer.h() - 1)) ? _t :
(x == 0 || x == (framebuffer.w() - 1)) ? _t :
_0;
}
}
if(frame_time.count() != 0.0f) { if(frame_time.count() != 0.0f) {
if(!debug){ if(!debug){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment