mirror of
https://github.com/0TheSpy/Seaside.git
synced 2025-01-07 10:03:29 +08:00
52 lines
661 B
C++
52 lines
661 B
C++
#ifndef HUDTEXTUREHANDLE_H
|
|
#define HUDTEXTUREHANDLE_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
class CHudTexture;
|
|
|
|
class CHudTextureHandle
|
|
{
|
|
public:
|
|
CHudTextureHandle()
|
|
{
|
|
m_pValue = NULL;
|
|
}
|
|
|
|
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 |