[Teton] Draw a green square into the framebuffer.
This commit is contained in:
parent
28719ac726
commit
fb458e6fd4
4 changed files with 45 additions and 2 deletions
16
sys/teton/framebuffer/framebuffer.h
Normal file
16
sys/teton/framebuffer/framebuffer.h
Normal 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_;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue