Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
643 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef HARDWAREVERTEXCACHE_H
  8. #define HARDWAREVERTEXCACHE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. // emulate a hardware post T&L vertex fifo
  13. class CHardwareVertexCache
  14. {
  15. public:
  16. CHardwareVertexCache();
  17. void Init( int size );
  18. void Insert( int index );
  19. bool IsPresent( int index );
  20. void Flush( void );
  21. void Print( void );
  22. private:
  23. int m_Size;
  24. int *m_Fifo;
  25. int m_HeadIndex;
  26. int m_NumEntries;
  27. };
  28. #endif // HARDWAREVERTEXCACHE_H