Pyrogenesis  trunk
Public Member Functions | Public Attributes | List of all members
GridUpdateInformation Struct Reference

Structure holding grid dirtiness informations, for clever updates. More...

#include <Grid.h>

Collaboration diagram for GridUpdateInformation:
Collaboration graph
[legend]

Public Member Functions

void swap (GridUpdateInformation &b)
 
void Clean ()
 Mark everything as clean. More...
 

Public Attributes

bool dirty
 
bool globallyDirty
 
bool globalRecompute
 
Grid< u8dirtinessGrid
 

Detailed Description

Structure holding grid dirtiness informations, for clever updates.

Note: globallyDirty should be used to know which parts of the grid have been changed after an update, whereas globalRecompute should be used during the update itself, to avoid unnecessary recomputations.

Member Function Documentation

void GridUpdateInformation::Clean ( )
inline

Mark everything as clean.

void GridUpdateInformation::swap ( GridUpdateInformation b)
inline

Member Data Documentation

Grid<u8> GridUpdateInformation::dirtinessGrid
bool GridUpdateInformation::dirty
bool GridUpdateInformation::globallyDirty
bool GridUpdateInformation::globalRecompute

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