aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/include/framebuffer.h
blob: 6080810b407a53360c4fc447726e0b7fe99f2620 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef FRAMEBUFFER_H
#define FRAMEBUFFER_H

#include <stdint.h>

class Framebuffer {
    private:
    uint32_t* addr;
    const uint64_t width;
    const uint64_t height;

    public:
    Framebuffer(uint32_t* addr, const uint64_t width, const uint64_t height);
    void clear();
    void drawpixel(const uint64_t x, const uint64_t y, const uint32_t color);
};

#endif