diff options
Diffstat (limited to 'utils/studiomdl/hardwarevertexcache.h')
| -rw-r--r-- | utils/studiomdl/hardwarevertexcache.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/utils/studiomdl/hardwarevertexcache.h b/utils/studiomdl/hardwarevertexcache.h new file mode 100644 index 0000000..a9eb2a5 --- /dev/null +++ b/utils/studiomdl/hardwarevertexcache.h @@ -0,0 +1,32 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef HARDWAREVERTEXCACHE_H +#define HARDWAREVERTEXCACHE_H +#ifdef _WIN32 +#pragma once +#endif + +// emulate a hardware post T&L vertex fifo + +class CHardwareVertexCache +{ +public: + CHardwareVertexCache(); + void Init( int size ); + void Insert( int index ); + bool IsPresent( int index ); + void Flush( void ); + void Print( void ); +private: + int m_Size; + int *m_Fifo; + int m_HeadIndex; + int m_NumEntries; +}; + +#endif // HARDWAREVERTEXCACHE_H |