GOP: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
No edit summary |
m Fix minor grammar issues |
||
Line 4:
It has basically the same functions as VESA, you can query the modes, set the modes. It also provides an efficient BitBlitter function, which you can't use from your OS unfortunately. GOP is an EFI Boot Time Service, meaning you can't access it after you call ExitBootServices(). However, the framebuffer provided by GOP persists, so you can continue to use it for graphics output in your OS.
NOTE: UEFI uses
=== Detecting GOP ===
Line 16:
PrintLn(L"Unable to locate GOP");
</source>
GOP is the default protocol, so you should be able to locate it on all UEFI firmware. It can probably only fail if you're on an old EFI (pre-UEFI) machine, like and old iMac or
=== Get the Current Mode ===
Line 68:
}
</source>
To get the same value as scanline in VESA (also
<source lang="c">
pitch = 4 * gop->Mode->Info->PixelsPerScanLine;
|