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
32 lines
643 B
//========= Copyright © 1996-2005, 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
|