The Pedigree Project  0.1
Public Attributes | List of all members
Graphics::Buffer Struct Reference
+ Collaboration diagram for Graphics::Buffer:

Public Attributes

uintptr_t base
 Base of this buffer in memory. For internal use only.
 
size_t width
 Width of the buffer in pixels.
 
size_t height
 Height of the buffer in pixels.
 
PixelFormat format
 
size_t bytesPerPixel
 Number of bytes per pixel (as it may be different to the format).
 
size_t bufferId
 Buffer ID, for easy identification within drivers.
 
void * pBacking
 

Detailed Description

Definition at line 83 of file system/include/pedigree/kernel/graphics/Graphics.h.

Member Data Documentation

PixelFormat Graphics::Buffer::format

Output format of the buffer. NOT the input format. Used for byte-per-pixel calculations.

Definition at line 96 of file system/include/pedigree/kernel/graphics/Graphics.h.

Referenced by Framebuffer::setPixel(), and Framebuffer::swCreateBuffer().

void* Graphics::Buffer::pBacking

Backing pointer, for drivers. Typically holds a MemoryRegion for software-only framebuffers to identify the memory's location.

Definition at line 106 of file system/include/pedigree/kernel/graphics/Graphics.h.

Referenced by Framebuffer::setPixel(), and Framebuffer::swCreateBuffer().


The documentation for this struct was generated from the following file: