- Applied a modified version of Karate Chris's screenshot naming patch.
- Sbarinfo optimization: Creating and destroying bar textures every frame is a relatively expensive operation. We can skip the custom texture entirely and just draw the bars directly to the screen, using the clipping parameters for DrawTexture(). This also means bars are no longer limited to the game palette, and the bar itself has the same resolution as the screen. SVN r731 (trunk)
This commit is contained in:
parent
9a785239f2
commit
d1e27e533f
9 changed files with 219 additions and 194 deletions
19
src/tarray.h
19
src/tarray.h
|
|
@ -286,6 +286,21 @@ private:
|
|||
}
|
||||
};
|
||||
|
||||
// TDeletingArray -----------------------------------------------------------
|
||||
// An array that deletes its elements when it gets deleted.
|
||||
template<class T, class TT=T>
|
||||
class TDeletingArray : public TArray<T, TT>
|
||||
{
|
||||
public:
|
||||
~TDeletingArray<T, TT> ()
|
||||
{
|
||||
for (unsigned int i = 0; i < Size(); ++i)
|
||||
{
|
||||
delete (*this)[i];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// TAutoGrowArray -----------------------------------------------------------
|
||||
// An array with accessors that automatically grow the array as needed.
|
||||
// It can still be used as a normal TArray if needed. ACS uses this for
|
||||
|
|
@ -788,8 +803,8 @@ public:
|
|||
// NextPair
|
||||
//
|
||||
// Returns false if there are no more entries in the table. Otherwise, it
|
||||
// returns true, and key and value are filled with pointers to the
|
||||
// respective parts of the next pair in the table.
|
||||
// returns true, and pair is filled with a pointer to the pair in the
|
||||
// table.
|
||||
//
|
||||
//=======================================================================
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue