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 78 of file Graphics.h.

Member Data Documentation

◆ base

uintptr_t Graphics::Buffer::base

Base of this buffer in memory. For internal use only.

Definition at line 80 of file Graphics.h.

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

◆ bufferId

size_t Graphics::Buffer::bufferId

Buffer ID, for easy identification within drivers.

Definition at line 96 of file Graphics.h.

Referenced by Framebuffer::swCreateBuffer().

◆ bytesPerPixel

size_t Graphics::Buffer::bytesPerPixel

Number of bytes per pixel (as it may be different to the format).

Definition at line 93 of file Graphics.h.

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

◆ format

PixelFormat Graphics::Buffer::format

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

Definition at line 90 of file Graphics.h.

Referenced by Framebuffer::swCreateBuffer().

◆ height

size_t Graphics::Buffer::height

Height of the buffer in pixels.

Definition at line 86 of file Graphics.h.

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

◆ pBacking

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 100 of file Graphics.h.

Referenced by Framebuffer::swCreateBuffer().

◆ width

size_t Graphics::Buffer::width

Width of the buffer in pixels.

Definition at line 83 of file Graphics.h.

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


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