mtgos-mtgos-3ds9/kernel/hw/framebuffer/framebuffer.hpp

18 lines
528 B
C++
Raw Permalink Normal View History

2017-04-28 21:06:30 +00:00
#pragma once
#include <tty.hpp>
/**
* Framebuffer TTY. Has no limitations besides requiring a Framebuffer of some sort.
* The implementation is very flexible (and thus slow). It can support every framebuffer format
* and color format.
*/
2017-04-28 21:06:30 +00:00
class Framebuffer : public TTY {
protected:
virtual auto plotPixel(int x, int y, int col) -> void;
virtual auto plotChar(int x, int y, int c) -> void;
public:
Framebuffer(int height, int width);
virtual ~Framebuffer();
virtual auto rgbSupport() -> bool;
};