mirror of
https://github.com/cowmonk/cowos.git
synced 2025-10-28 15:03:27 +00:00
cowos moves to 64bit! and framebuffers too ig
This commit is contained in:
parent
b78e4fc24d
commit
babc65305d
32 changed files with 4074 additions and 146 deletions
22
kernel/include/fb.h
Normal file
22
kernel/include/fb.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef FB_H
|
||||
#define FB_H
|
||||
|
||||
/* *pixel = vram + y*pitch + x*pixelwidth */
|
||||
|
||||
/*
|
||||
| width | how many pixels you have on a horizontal line |
|
||||
|===========================================================================|
|
||||
| height | how many horizontal lines of pixels are present |
|
||||
|===========================================================================|
|
||||
| pitch | how many bytes of VRAM you should skip to go one pixel down |
|
||||
|===========================================================================|
|
||||
| depth | how many bits of color you have |
|
||||
|===========================================================================|
|
||||
| pixelwidth | how many bytes of VRAM you should skip to go one pixel right |
|
||||
*/
|
||||
|
||||
#include <klibc/types.h>
|
||||
|
||||
void putpixel(int pos_x, int pos_y, unsigned char VGA_COLOR);
|
||||
|
||||
#endif /* FB_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue