aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/bone_accessor.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/bone_accessor.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/bone_accessor.h')
-rw-r--r--sp/src/public/bone_accessor.h262
1 files changed, 131 insertions, 131 deletions
diff --git a/sp/src/public/bone_accessor.h b/sp/src/public/bone_accessor.h
index 4418f846..99e07f9f 100644
--- a/sp/src/public/bone_accessor.h
+++ b/sp/src/public/bone_accessor.h
@@ -1,131 +1,131 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef BONE_ACCESSOR_H
-#define BONE_ACCESSOR_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-#include "studio.h"
-
-
-class C_BaseAnimating;
-
-
-class CBoneAccessor
-{
-public:
-
- CBoneAccessor();
- CBoneAccessor( matrix3x4_t *pBones ); // This can be used to allow access to all bones.
-
- // Initialize.
-#if defined( CLIENT_DLL )
- void Init( const C_BaseAnimating *pAnimating, matrix3x4_t *pBones );
-#endif
-
- int GetReadableBones();
- void SetReadableBones( int flags );
-
- int GetWritableBones();
- void SetWritableBones( int flags );
-
- // Get bones for read or write access.
- const matrix3x4_t& GetBone( int iBone ) const;
- const matrix3x4_t& operator[]( int iBone ) const;
- matrix3x4_t& GetBoneForWrite( int iBone );
-
- matrix3x4_t *GetBoneArrayForWrite( ) const;
-
-private:
-
-#if defined( CLIENT_DLL ) && defined( _DEBUG )
- void SanityCheckBone( int iBone, bool bReadable ) const;
-#endif
-
- // Only used in the client DLL for debug verification.
- const C_BaseAnimating *m_pAnimating;
-
- matrix3x4_t *m_pBones;
-
- int m_ReadableBones; // Which bones can be read.
- int m_WritableBones; // Which bones can be written.
-};
-
-
-inline CBoneAccessor::CBoneAccessor()
-{
- m_pAnimating = NULL;
- m_pBones = NULL;
- m_ReadableBones = m_WritableBones = 0;
-}
-
-inline CBoneAccessor::CBoneAccessor( matrix3x4_t *pBones )
-{
- m_pAnimating = NULL;
- m_pBones = pBones;
-}
-
-#if defined( CLIENT_DLL )
- inline void CBoneAccessor::Init( const C_BaseAnimating *pAnimating, matrix3x4_t *pBones )
- {
- m_pAnimating = pAnimating;
- m_pBones = pBones;
- }
-#endif
-
-inline int CBoneAccessor::GetReadableBones()
-{
- return m_ReadableBones;
-}
-
-inline void CBoneAccessor::SetReadableBones( int flags )
-{
- m_ReadableBones = flags;
-}
-
-inline int CBoneAccessor::GetWritableBones()
-{
- return m_WritableBones;
-}
-
-inline void CBoneAccessor::SetWritableBones( int flags )
-{
- m_WritableBones = flags;
-}
-
-inline const matrix3x4_t& CBoneAccessor::GetBone( int iBone ) const
-{
-#if defined( CLIENT_DLL ) && defined( _DEBUG )
- SanityCheckBone( iBone, true );
-#endif
- return m_pBones[iBone];
-}
-
-inline const matrix3x4_t& CBoneAccessor::operator[]( int iBone ) const
-{
-#if defined( CLIENT_DLL ) && defined( _DEBUG )
- SanityCheckBone( iBone, true );
-#endif
- return m_pBones[iBone];
-}
-
-inline matrix3x4_t& CBoneAccessor::GetBoneForWrite( int iBone )
-{
-#if defined( CLIENT_DLL ) && defined( _DEBUG )
- SanityCheckBone( iBone, false );
-#endif
- return m_pBones[iBone];
-}
-
-inline matrix3x4_t *CBoneAccessor::GetBoneArrayForWrite( void ) const
-{
- return m_pBones;
-}
-
-#endif // BONE_ACCESSOR_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef BONE_ACCESSOR_H
+#define BONE_ACCESSOR_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include "studio.h"
+
+
+class C_BaseAnimating;
+
+
+class CBoneAccessor
+{
+public:
+
+ CBoneAccessor();
+ CBoneAccessor( matrix3x4_t *pBones ); // This can be used to allow access to all bones.
+
+ // Initialize.
+#if defined( CLIENT_DLL )
+ void Init( const C_BaseAnimating *pAnimating, matrix3x4_t *pBones );
+#endif
+
+ int GetReadableBones();
+ void SetReadableBones( int flags );
+
+ int GetWritableBones();
+ void SetWritableBones( int flags );
+
+ // Get bones for read or write access.
+ const matrix3x4_t& GetBone( int iBone ) const;
+ const matrix3x4_t& operator[]( int iBone ) const;
+ matrix3x4_t& GetBoneForWrite( int iBone );
+
+ matrix3x4_t *GetBoneArrayForWrite( ) const;
+
+private:
+
+#if defined( CLIENT_DLL ) && defined( _DEBUG )
+ void SanityCheckBone( int iBone, bool bReadable ) const;
+#endif
+
+ // Only used in the client DLL for debug verification.
+ const C_BaseAnimating *m_pAnimating;
+
+ matrix3x4_t *m_pBones;
+
+ int m_ReadableBones; // Which bones can be read.
+ int m_WritableBones; // Which bones can be written.
+};
+
+
+inline CBoneAccessor::CBoneAccessor()
+{
+ m_pAnimating = NULL;
+ m_pBones = NULL;
+ m_ReadableBones = m_WritableBones = 0;
+}
+
+inline CBoneAccessor::CBoneAccessor( matrix3x4_t *pBones )
+{
+ m_pAnimating = NULL;
+ m_pBones = pBones;
+}
+
+#if defined( CLIENT_DLL )
+ inline void CBoneAccessor::Init( const C_BaseAnimating *pAnimating, matrix3x4_t *pBones )
+ {
+ m_pAnimating = pAnimating;
+ m_pBones = pBones;
+ }
+#endif
+
+inline int CBoneAccessor::GetReadableBones()
+{
+ return m_ReadableBones;
+}
+
+inline void CBoneAccessor::SetReadableBones( int flags )
+{
+ m_ReadableBones = flags;
+}
+
+inline int CBoneAccessor::GetWritableBones()
+{
+ return m_WritableBones;
+}
+
+inline void CBoneAccessor::SetWritableBones( int flags )
+{
+ m_WritableBones = flags;
+}
+
+inline const matrix3x4_t& CBoneAccessor::GetBone( int iBone ) const
+{
+#if defined( CLIENT_DLL ) && defined( _DEBUG )
+ SanityCheckBone( iBone, true );
+#endif
+ return m_pBones[iBone];
+}
+
+inline const matrix3x4_t& CBoneAccessor::operator[]( int iBone ) const
+{
+#if defined( CLIENT_DLL ) && defined( _DEBUG )
+ SanityCheckBone( iBone, true );
+#endif
+ return m_pBones[iBone];
+}
+
+inline matrix3x4_t& CBoneAccessor::GetBoneForWrite( int iBone )
+{
+#if defined( CLIENT_DLL ) && defined( _DEBUG )
+ SanityCheckBone( iBone, false );
+#endif
+ return m_pBones[iBone];
+}
+
+inline matrix3x4_t *CBoneAccessor::GetBoneArrayForWrite( void ) const
+{
+ return m_pBones;
+}
+
+#endif // BONE_ACCESSOR_H