3D City v-1.0
Computer Graphics Project
framebuffer Struct Reference

Framebuffer implementation for cpu. More...

#include <engine.h>

Public Member Functions

 framebuffer (const size_t &x, const size_t &y)
 
 ~framebuffer ()
 
void clear ()
 

Public Attributes

std::vector< std::tuple< Vertex2 *, Mesh * > > fragments
 
float * z
 
color * colorlayer
 
float * clearedz
 
color * clearedcolorlayer
 
size_t x_size
 
size_t y_size
 
int xmax
 
int xmin
 
int ymax
 
int ymin
 

Detailed Description

Framebuffer implementation for cpu.

Definition at line 25 of file engine.h.

Constructor & Destructor Documentation

◆ framebuffer()

framebuffer::framebuffer ( const size_t &  x,
const size_t &  y 
)
inline

Definition at line 34 of file engine.h.

◆ ~framebuffer()

framebuffer::~framebuffer ( )
inline

Definition at line 54 of file engine.h.

Member Function Documentation

◆ clear()

void framebuffer::clear ( )
inline

Definition at line 59 of file engine.h.

Member Data Documentation

◆ clearedcolorlayer

color* framebuffer::clearedcolorlayer

Definition at line 31 of file engine.h.

◆ clearedz

float* framebuffer::clearedz

Definition at line 30 of file engine.h.

◆ colorlayer

color* framebuffer::colorlayer

Definition at line 28 of file engine.h.

◆ fragments

std::vector<std::tuple<Vertex2 *, Mesh *> > framebuffer::fragments

Definition at line 26 of file engine.h.

◆ x_size

size_t framebuffer::x_size

Definition at line 32 of file engine.h.

◆ xmax

int framebuffer::xmax

Definition at line 33 of file engine.h.

◆ xmin

int framebuffer::xmin

Definition at line 33 of file engine.h.

◆ y_size

size_t framebuffer::y_size

Definition at line 32 of file engine.h.

◆ ymax

int framebuffer::ymax

Definition at line 33 of file engine.h.

◆ ymin

int framebuffer::ymin

Definition at line 33 of file engine.h.

◆ z

float* framebuffer::z

Definition at line 27 of file engine.h.