2023-03-10 10:32:50 +00:00
|
|
|
// This file is part of noxos and licensed under the MIT open source license
|
2023-02-19 21:25:45 +00:00
|
|
|
|
|
|
|
#ifndef NOX_FRAMEBUFFER_H
|
|
|
|
#define NOX_FRAMEBUFFER_H
|
|
|
|
|
|
|
|
#include "utils/stdtypes.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
void* address;
|
|
|
|
uint64_t width;
|
|
|
|
uint64_t height;
|
|
|
|
uint64_t pitch;
|
|
|
|
uint16_t bits_per_pixel;
|
|
|
|
uint8_t bytes_per_pixel;
|
2023-02-20 08:29:45 +00:00
|
|
|
uint8_t shift_red;
|
|
|
|
uint8_t shift_green;
|
|
|
|
uint8_t shift_blue;
|
2023-02-19 21:25:45 +00:00
|
|
|
} framebuffer_T;
|
|
|
|
|
|
|
|
#endif //NOX_FRAMEBUFFER_H
|