1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

First version of the SOurce SDK 2013

This commit is contained in:
Joe Ludwig
2013-06-26 15:22:04 -07:00
commit e7d6f4c174
3682 changed files with 1624327 additions and 0 deletions

View File

@ -0,0 +1,59 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef HUDTEXTUREHANDLE_H
#define HUDTEXTUREHANDLE_H
#ifdef _WIN32
#pragma once
#endif
class CHudTexture;
class CHudTextureHandle
{
public:
CHudTextureHandle()
{
m_pValue = NULL;
}
// Assign a value to the handle.
const CHudTextureHandle& operator=( const CHudTexture *t )
{
m_pValue = (CHudTexture *)t;
return *this;
}
void Set( CHudTexture *t )
{
m_pValue = t;
}
CHudTexture *Get()
{
return m_pValue;
}
operator CHudTexture*()
{
return m_pValue;
}
operator CHudTexture*() const
{
return m_pValue;
}
CHudTexture *operator->() const
{
return m_pValue;
}
private:
CHudTexture *m_pValue;
};
#endif // HUDTEXTUREHANDLE_H