add bounding box

This commit is contained in:
Fabien Freling 2022-02-12 00:28:54 +01:00
parent 2e24f0314b
commit 7c383dc245
12 changed files with 153 additions and 4 deletions

23
src/frame.h Normal file
View file

@ -0,0 +1,23 @@
#pragma once
#include <cstdint>
struct Pixel {
uint32_t r;
uint32_t g;
uint32_t b;
};
struct Frame {
uint32_t width;
uint32_t height;
Pixel* data;
Frame(uint32_t width, uint32_t height);
Frame(const Frame& other);
Frame& operator=(const Frame& other);
Frame(Frame&& other);
~Frame();
void fill(uint8_t p);
};