srp
software rendering pipeline
Loading...
Searching...
No Matches
SRPFramebuffer Struct Reference

#include <framebuffer.h>

Public Attributes

size_t width
 
size_t height
 
size_t size
 
uint32_t * color
 
double * depth
 

Detailed Description

Holds RBGA8888 color buffer and depth buffer

Examples
01_colored_triangle/main.c, 02_spinning_triangle/main.c, and 03_spinning_textured_cube/main.c.

Member Data Documentation

◆ color

uint32_t* SRPFramebuffer::color

Pointer to color buffer

◆ depth

double* SRPFramebuffer::depth

Pointer to depth buffer

◆ height

size_t SRPFramebuffer::height

Height

◆ size

size_t SRPFramebuffer::size

N of pixels (width*height)

◆ width

size_t SRPFramebuffer::width

Width


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