diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/game/client/hudtexturehandle.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/game/client/hudtexturehandle.h')
| -rw-r--r-- | sp/src/game/client/hudtexturehandle.h | 118 |
1 files changed, 59 insertions, 59 deletions
diff --git a/sp/src/game/client/hudtexturehandle.h b/sp/src/game/client/hudtexturehandle.h index 50636e27..2e1ef794 100644 --- a/sp/src/game/client/hudtexturehandle.h +++ b/sp/src/game/client/hudtexturehandle.h @@ -1,59 +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
+//========= 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 |