Max OS 0.3
Loading...
Searching...
No Matches
video.h
Go to the documentation of this file.
1
9#ifndef MAXOS_DRIVERS_VIDEO_VIDEO_H
10#define MAXOS_DRIVERS_VIDEO_VIDEO_H
11
12#include <stdint.h>
13#include <drivers/driver.h>
15
16namespace MaxOS
17{
18 namespace drivers
19 {
20 namespace video
21 {
27
28 protected:
29 virtual bool internal_set_mode(uint32_t width, uint32_t height, uint32_t color_depth);
30
31 public:
34
35 virtual bool supports_mode(uint32_t width, uint32_t height, uint32_t color_depth);
36 bool set_mode(uint32_t width, uint32_t height, uint32_t color_depth);
37 };
38
39 }
40 }
41}
42
43#endif //MAXOS_DRIVERS_VIDEO_VIDEO_H
Draws pixels to the screen, and handles drawing lines, rectangles and circles.
uint32_t width() const
Gets the width of the screen.
uint32_t height() const
Gets the height of the screen.
uint32_t color_depth() const
Gets the current color depth (bits per pixel)
base class for all drivers, handles the activation, deactivation, initialisation and reset of the dri...
Definition driver.h:27
Driver for the video controller, handles the setting of the video mode.
Definition video.h:26
virtual bool internal_set_mode(uint32_t width, uint32_t height, uint32_t color_depth)
Set the mode of the video driver.
Definition video.cpp:29
bool set_mode(uint32_t width, uint32_t height, uint32_t color_depth)
Set the mode of the video driver.
Definition video.cpp:53
virtual bool supports_mode(uint32_t width, uint32_t height, uint32_t color_depth)
Check if the video driver supports a certain mode.
Definition video.cpp:41
Defines a base Driver class and DriverManager for managing drivers.
Defines a GraphicsContext class for drawing pixels, lines, rectangles and circles to the screen.