[Teton] Draw a green square into the framebuffer.

This commit is contained in:
Drew Galbraith 2023-11-15 19:20:52 -08:00
parent 28719ac726
commit fb458e6fd4
4 changed files with 45 additions and 2 deletions

View file

@ -0,0 +1,16 @@
#pragma once
#include <yellowstone/yellowstone.yunq.h>
class Framebuffer {
public:
Framebuffer(const FramebufferInfo& info);
void DrawPixel(uint32_t row, uint32_t col, uint32_t pixel);
private:
// FIXME: Implement Yunq copy or move so we
// don't have to store a reference here.
const FramebufferInfo& fb_info_;
uint32_t* fb_;
};