mirror of
https://github.com/ProgramSnail/snake_2024.git
synced 2025-12-13 09:58:44 +00:00
text rendering + food couter, minor fixes
This commit is contained in:
parent
421574ab40
commit
0d30ca5575
8 changed files with 216 additions and 17 deletions
18
include/Text.hpp
Normal file
18
include/Text.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include "Canvas.hpp"
|
||||
|
||||
namespace canvas {
|
||||
|
||||
struct Text : public Object {
|
||||
uint scale;
|
||||
uint value;
|
||||
};
|
||||
|
||||
} // namespace canvas
|
||||
|
||||
namespace paint {
|
||||
|
||||
void text(const canvas::Text &t);
|
||||
|
||||
} // namespace paint
|
||||
Loading…
Add table
Add a link
Reference in a new issue