ScummVM API documentation
MADS::DirtyAreas Class Reference
Inheritance diagram for MADS::DirtyAreas:
Common::Array< DirtyArea >

Public Member Functions

 DirtyAreas (MADSEngine *vm)
 
void merge (int startIndex, int count)
 
bool intersects (int idx1, int idx2)
 
void mergeAreas (int idx1, int idx2)
 
void copy (BaseSurface *srcSurface, BaseSurface *destSurface, const Common::Point &posAdjust)
 
void copyToScreen ()
 
void reset ()
 
- Public Member Functions inherited from Common::Array< DirtyArea >
 Array (size_type count)
 
 Array (size_type count, const DirtyArea &value)
 
 Array (const Array< DirtyArea > &array)
 
 Array (Array< DirtyArea > &&old)
 
 Array (std::initializer_list< DirtyArea > list)
 
 Array (const T2 *array, size_type n)
 
void emplace (const_iterator pos, TArgs &&... args)
 
void emplace_back (TArgs &&...args)
 
void push_back (const DirtyArea &element)
 
void push_back (DirtyArea &&element)
 
void push_back (const Array< DirtyArea > &array)
 
void pop_back ()
 
const DirtyArea * data () const
 
DirtyArea * data ()
 
DirtyArea & front ()
 
const DirtyArea & front () const
 
DirtyArea & back ()
 
const DirtyArea & back () const
 
void insert_at (size_type idx, const DirtyArea &element)
 
void insert_at (size_type idx, const Array< DirtyArea > &array)
 
void insert (iterator pos, const DirtyArea &element)
 
DirtyArea remove_at (size_type idx)
 
DirtyArea & operator[] (size_type idx)
 
const DirtyArea & operator[] (size_type idx) const
 
Array< DirtyArea > & operator= (const Array< DirtyArea > &array)
 
Arrayoperator= (Array< DirtyArea > &&old)
 
size_type size () const
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
bool empty () const
 
bool operator== (const Array< DirtyArea > &other) const
 
bool operator!= (const Array< DirtyArea > &other) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void reserve (size_type newCapacity)
 
void resize (size_type newSize)
 
void resize (size_type newSize, const DirtyArea value)
 
void assign (const_iterator first, const_iterator last)
 
void swap (Array &arr)
 

Additional Inherited Members

- Public Types inherited from Common::Array< DirtyArea >
typedef DirtyArea * iterator
 
typedef const DirtyArea * const_iterator
 
typedef DirtyArea value_type
 
typedef uint size_type
 
- Protected Member Functions inherited from Common::Array< DirtyArea >
void allocCapacity (size_type capacity)
 
void freeStorage (DirtyArea *storage, const size_type elements)
 
iterator insert_aux (iterator pos, const_iterator first, const_iterator last)
 
- Static Protected Member Functions inherited from Common::Array< DirtyArea >
static size_type roundUpCapacity (size_type capacity)
 
- Protected Attributes inherited from Common::Array< DirtyArea >
size_type _capacity
 
size_type _size
 
DirtyArea * _storage
 

Member Function Documentation

◆ merge()

void MADS::DirtyAreas::merge ( int  startIndex,
int  count 
)

Merge together any designated dirty areas that overlap

Parameters
startIndex1-based starting dirty area starting index
countNumber of entries to process

◆ copy()

void MADS::DirtyAreas::copy ( BaseSurface srcSurface,
BaseSurface destSurface,
const Common::Point posAdjust 
)

Copy the data specified by the dirty rect list between surfaces

Parameters
srcSurfaceSource surface
destSurfaceDest surface
posAdjustPosition adjustment

◆ copyToScreen()

void MADS::DirtyAreas::copyToScreen ( )

Use the lsit of dirty areas to copy areas of the screen surface to the physical screen


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