diff options
Diffstat (limited to 'Private/Source/Framebuffer.cxx')
| -rw-r--r-- | Private/Source/Framebuffer.cxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Private/Source/Framebuffer.cxx b/Private/Source/Framebuffer.cxx index 3b8fa229..61f946a7 100644 --- a/Private/Source/Framebuffer.cxx +++ b/Private/Source/Framebuffer.cxx @@ -3,20 +3,32 @@ Copyright Mahrouss Logic File: Framebuffer.cxx - Purpose: EFI C++ library + Purpose: Framebuffer object Revision History: 01/02/24: Added file (amlel) + 02/02/24: Add documentation (amlel) ------------------------------------------- */ #include <KernelKit/Framebuffer.hpp> +/** + * @brief Framebuffer object implementation. + * + */ + using namespace HCore; -volatile UIntPtr *Framebuffer::operator[](const UIntPtr &width_and_height) { - return (UIntPtr *)(m_FrameBufferAddr->m_Base * width_and_height); +/** + * @brief Get Pixel at + * + * @param pos position of pixel. + * @return volatile* + */ +volatile UIntPtr *Framebuffer::operator[](const UIntPtr &pos) { + return (UIntPtr *)(m_FrameBufferAddr->m_Base * pos); } const FramebufferColorKind &Framebuffer::Color( |
