Challenge of handmade OS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
369 B

#include <Protocol/GraphicsOutput.h>
struct FrameBuffer {
EFI_PHYSICAL_ADDRESS BaseAddress;
UINTN Size;
UINT32 HorizontalRes;
UINT32 VerticalRes;
EFI_GRAPHICS_PIXEL_FORMAT PixelFormat;
};
extern struct FrameBuffer buffer;
void FrameBuffer_init(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop);
void RGBtoPixel(EFI_GRAPHICS_OUTPUT_BLT_PIXEL *pixel, UINT32 RGB);