Public Types | |
| typedef astl::vector< T > | tElVec |
Public Member Functions | |
| BufferCache (const tU32 anReserve) | |
| void | Invalidate () |
| tU32 | GetNumPending () const |
| Get the number of pending elements in the cache. More... | |
| tBool | HasPending () const |
| Return eTrue if the cache has any pending element that haven't been updated. More... | |
| void | Reset () |
| Reset the cache. More... | |
| void | NextFrame () |
| Notify that the current frame has been submitted. More... | |
| void | Add (const T &ulV) |
| Add an element in the cache. More... | |
| void | Add (const T *apEls, tU32 anNumEls) |
| Add an array of element in the cache. More... | |
| void | Add (const tElVec &vVertices) |
| Add a vector of element in the cache. More... | |
| const tU32 | GetCacheSize () const |
| Get the size of the cache. More... | |
| const T * | GetEl (tU32 anIndex) const |
| Get an element in the cache. More... | |
| T * | GetEl (tU32 anIndex) |
| Get an element in the cache. More... | |
| tU32 | GetCurrentEl () const |
| Get the current element. More... | |
| tU32 | GetCurrentIndex () const |
| Get the current index. More... | |
| sVec2i | Update () |
| Update the buffer. More... | |
| typedef astl::vector<T> tElVec |
| BufferCache | ( | const tU32 | anReserve | ) |
| void Invalidate | ( | ) |
| tU32 GetNumPending | ( | ) | const |
Get the number of pending elements in the cache.
| tBool HasPending | ( | ) | const |
Return eTrue if the cache has any pending element that haven't been updated.
| void Reset | ( | ) |
Reset the cache.
| void NextFrame | ( | ) |
Notify that the current frame has been submitted.
| void Add | ( | const T & | ulV | ) |
Add an element in the cache.
| const tU32 GetCacheSize | ( | ) | const |
Get the size of the cache.
| const T* GetEl | ( | tU32 | anIndex | ) | const |
Get an element in the cache.
| T* GetEl | ( | tU32 | anIndex | ) |
Get an element in the cache.
| tU32 GetCurrentEl | ( | ) | const |
Get the current element.
| tU32 GetCurrentIndex | ( | ) | const |
Get the current index.
| sVec2i Update | ( | ) |
Update the buffer.
1.8.7