add bounding box
This commit is contained in:
parent
2e24f0314b
commit
7c383dc245
12 changed files with 153 additions and 4 deletions
23
src/frame.h
Normal file
23
src/frame.h
Normal 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);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue