Public Types | |
| typedef BufferCache< TVERTEX, BufferCacheVertex< TVERTEX > > | tBase |
| typedef TVERTEX | tVertex |
Public Types inherited from BufferCache< TVERTEX, BufferCacheVertex< TVERTEX > > | |
| typedef astl::vector< TVERTEX > | tElVec |
Public Types inherited from cIUnknownImpl< iUnknown > | |
| typedef cIUnknownImpl < iUnknown, FLAGS, T1, T2, T3, T4 > | BaseImpl |
| typedef iUnknown | Base0 |
| typedef T1 | Base1 |
| typedef T2 | Base2 |
| typedef T3 | Base3 |
| typedef T4 | Base4 |
Public Member Functions | |
| BufferCacheVertex (iGraphics *apGraphics, tU32 anReserve) | |
| void | _Invalidate () |
| void | _NextFrame () |
| tBool | _HasCapacity (const tU32 anNumEls) |
| tBool | _Init (const tU32 anNumEls) |
| tBool | _Upload (const TVERTEX *apVerts, tU32 aUpBase, tU32 aUpCount) |
Public Member Functions inherited from BufferCache< TVERTEX, BufferCacheVertex< TVERTEX > > | |
| 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 TVERTEX &ulV) |
| Add an element in the cache. More... | |
| void | Add (const TVERTEX *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 TVERTEX * | GetEl (tU32 anIndex) const |
| Get an element in the cache. More... | |
| TVERTEX * | 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... | |
Public Member Functions inherited from cIUnknownImpl< iUnknown > | |
| cIUnknownImpl () | |
| virtual tBool | IsOK () const |
| virtual void | Invalidate () |
| virtual iUnknown * | QueryInterface (const ni::tUUID &aIID) |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32) const |
Public Attributes | |
| Ptr< iGraphics > | mptrGraphics |
| Ptr< iVertexArray > | mptrVA |
| typedef BufferCache<TVERTEX,BufferCacheVertex<TVERTEX> > tBase |
| typedef TVERTEX tVertex |
| BufferCacheVertex | ( | iGraphics * | apGraphics, |
| tU32 | anReserve | ||
| ) |
| void _Invalidate | ( | ) |
| void _NextFrame | ( | ) |
| Ptr<iVertexArray> mptrVA |
1.8.7