aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/splinepatch.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 /mp/src/game/client/splinepatch.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 'mp/src/game/client/splinepatch.h')
-rw-r--r--mp/src/game/client/splinepatch.h176
1 files changed, 88 insertions, 88 deletions
diff --git a/mp/src/game/client/splinepatch.h b/mp/src/game/client/splinepatch.h
index caf01f64..31af0f00 100644
--- a/mp/src/game/client/splinepatch.h
+++ b/mp/src/game/client/splinepatch.h
@@ -1,88 +1,88 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: A little helper class that computes a spline patch
-//
-// $Workfile: $
-// $Date: $
-//
-//-----------------------------------------------------------------------------
-// $Log: $
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef SPLINEPATCH_H
-#define SPLINEPATCH_H
-#pragma once
-
-#include "mathlib/vector4d.h"
-
-//-----------------------------------------------------------------------------
-// Spline patch:
-//-----------------------------------------------------------------------------
-
-class CSplinePatch
-{
-public:
- // The last argument represents the number of float channels in addition to position
- CSplinePatch( );
- ~CSplinePatch();
-
- // Call this to initialize the patch
- void Init( int w, int h, int extraChannels );
-
- // 0 = linear, 1 = spliney!
- void SetLinearBlend( float factor );
-
- // Hooks the patch up to externally controlled data...
- void SetControlPositions( Vector const** pPositions );
- void SetChannelData( int channel, float* pChannel );
-
- // This interface isn't wonderful; it's limited by optimization issues...
-
- // Call this before querying the patch for data at (i,j)
- void SetupPatchQuery( float i, float j );
-
- // Gets the point and normal at (i,j) specified above
- void GetPointAndNormal( Vector& position, Vector& normal ) const;
-
- // Gets at other channels
- float GetChannel( int channel ) const;
-
- // Gets at the dimensions
- int Width() const { return m_Width; }
- int Height() const { return m_Height; }
-
-public:
- // The integer + float values for the patch query
- int m_is, m_it;
- float m_fs, m_ft;
-
-private:
- enum
- {
- MAX_CHANNELS = 4
- };
-
- // no copy constructor
- CSplinePatch( const CSplinePatch& );
-
- // Computes indices of the samples to read for this interpolation
- void ComputeIndices( );
-
- // input data
- int m_Width;
- int m_Height;
- int m_ChannelCount;
- Vector const** m_ppPositions;
- float const* m_pChannel[MAX_CHANNELS];
-
- // temporary data used for a single patch query
- int m_SampleIndices[4][4];
- Vector4D m_SVec;
- Vector4D m_TVec;
-
- float m_LinearFactor;
-};
-
-#endif // SPLINEPATCH_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: A little helper class that computes a spline patch
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef SPLINEPATCH_H
+#define SPLINEPATCH_H
+#pragma once
+
+#include "mathlib/vector4d.h"
+
+//-----------------------------------------------------------------------------
+// Spline patch:
+//-----------------------------------------------------------------------------
+
+class CSplinePatch
+{
+public:
+ // The last argument represents the number of float channels in addition to position
+ CSplinePatch( );
+ ~CSplinePatch();
+
+ // Call this to initialize the patch
+ void Init( int w, int h, int extraChannels );
+
+ // 0 = linear, 1 = spliney!
+ void SetLinearBlend( float factor );
+
+ // Hooks the patch up to externally controlled data...
+ void SetControlPositions( Vector const** pPositions );
+ void SetChannelData( int channel, float* pChannel );
+
+ // This interface isn't wonderful; it's limited by optimization issues...
+
+ // Call this before querying the patch for data at (i,j)
+ void SetupPatchQuery( float i, float j );
+
+ // Gets the point and normal at (i,j) specified above
+ void GetPointAndNormal( Vector& position, Vector& normal ) const;
+
+ // Gets at other channels
+ float GetChannel( int channel ) const;
+
+ // Gets at the dimensions
+ int Width() const { return m_Width; }
+ int Height() const { return m_Height; }
+
+public:
+ // The integer + float values for the patch query
+ int m_is, m_it;
+ float m_fs, m_ft;
+
+private:
+ enum
+ {
+ MAX_CHANNELS = 4
+ };
+
+ // no copy constructor
+ CSplinePatch( const CSplinePatch& );
+
+ // Computes indices of the samples to read for this interpolation
+ void ComputeIndices( );
+
+ // input data
+ int m_Width;
+ int m_Height;
+ int m_ChannelCount;
+ Vector const** m_ppPositions;
+ float const* m_pChannel[MAX_CHANNELS];
+
+ // temporary data used for a single patch query
+ int m_SampleIndices[4][4];
+ Vector4D m_SVec;
+ Vector4D m_TVec;
+
+ float m_LinearFactor;
+};
+
+#endif // SPLINEPATCH_H