mirror of
https://github.com/ProgramSnail/snake_2024.git
synced 2025-12-06 06:28:43 +00:00
34 lines
462 B
C++
34 lines
462 B
C++
#pragma once
|
|
|
|
#include <cmath>
|
|
|
|
#include "Engine.h"
|
|
#include "Utils.hpp"
|
|
#include "Vec.hpp"
|
|
|
|
using Screen = uint32_t[SCREEN_HEIGHT][SCREEN_WIDTH];
|
|
|
|
namespace canvas {
|
|
|
|
struct Object {
|
|
Veci pos;
|
|
Color color;
|
|
};
|
|
|
|
struct Square : public Object {
|
|
int64_t side;
|
|
};
|
|
|
|
struct Circle : public Object {
|
|
int64_t radius;
|
|
};
|
|
|
|
} // namespace canvas
|
|
|
|
namespace paint {
|
|
|
|
void square(const canvas::Square &s);
|
|
|
|
void circle(const canvas::Circle &c);
|
|
|
|
} // namespace paint
|