aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/matsys_controls/vmtpreviewpanel.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/public/matsys_controls/vmtpreviewpanel.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/public/matsys_controls/vmtpreviewpanel.h')
-rw-r--r--mp/src/public/matsys_controls/vmtpreviewpanel.h160
1 files changed, 80 insertions, 80 deletions
diff --git a/mp/src/public/matsys_controls/vmtpreviewpanel.h b/mp/src/public/matsys_controls/vmtpreviewpanel.h
index 3aeebf34..f080d6ce 100644
--- a/mp/src/public/matsys_controls/vmtpreviewpanel.h
+++ b/mp/src/public/matsys_controls/vmtpreviewpanel.h
@@ -1,81 +1,81 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================
-
-#ifndef VMTPREVIEWPANEL_H
-#define VMTPREVIEWPANEL_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-#include "vgui_controls/Panel.h"
-#include "tier1/utlstring.h"
-#include "materialsystem/MaterialSystemUtil.h"
-#include "mathlib/vector.h"
-
-
-//-----------------------------------------------------------------------------
-// Forward declarations
-//-----------------------------------------------------------------------------
-
-
-//-----------------------------------------------------------------------------
-//
-// VMT Preview panel
-//
-//-----------------------------------------------------------------------------
-class CVMTPreviewPanel : public vgui::Panel
-{
- DECLARE_CLASS_SIMPLE( CVMTPreviewPanel, vgui::Panel );
-
-public:
- // constructor
- CVMTPreviewPanel( vgui::Panel *pParent, const char *pName );
- void SetVMT( const char *pMaterialName );
- const char *GetVMT() const;
-
- // Paints the texture
- virtual void Paint( void );
-
- // View it in 3D or 2D mode
- void DrawIn3DMode( bool b3DMode );
-
-private:
- // Two different preview methods
- void DrawSphere( void );
- void DrawRectangle( void );
-
- // Set up a projection matrix for a 90 degree fov
- void SetupProjectionMatrix( int nWidth, int nHeight );
- void SetupOrthoMatrix( int nWidth, int nHeight );
-
- // Sets the camera to look at the the thing we're spinning around
- void LookAt( const Vector &vecLookAt, float flRadius );
-
- // Sets up lighting state
- void SetupLightingState();
-
- // Draw a sphere
- void RenderSphere( const Vector &vCenter, float flRadius, int nTheta, int nPhi );
-
- // Draw sprite-card based materials
- void RenderSpriteCard( const Vector &vCenter, float flRadius );
-
- CUtlString m_VMTName;
- CMaterialReference m_Material;
- CTextureReference m_pLightmapTexture;
- CTextureReference m_DefaultEnvCubemap;
- Vector m_LightDirection;
- Color m_LightColor;
- float m_flLightIntensity;
- Vector m_vecCameraDirection;
- float m_flLastRotationTime;
- bool m_bDrawIn3DMode;
-};
-
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef VMTPREVIEWPANEL_H
+#define VMTPREVIEWPANEL_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include "vgui_controls/Panel.h"
+#include "tier1/utlstring.h"
+#include "materialsystem/MaterialSystemUtil.h"
+#include "mathlib/vector.h"
+
+
+//-----------------------------------------------------------------------------
+// Forward declarations
+//-----------------------------------------------------------------------------
+
+
+//-----------------------------------------------------------------------------
+//
+// VMT Preview panel
+//
+//-----------------------------------------------------------------------------
+class CVMTPreviewPanel : public vgui::Panel
+{
+ DECLARE_CLASS_SIMPLE( CVMTPreviewPanel, vgui::Panel );
+
+public:
+ // constructor
+ CVMTPreviewPanel( vgui::Panel *pParent, const char *pName );
+ void SetVMT( const char *pMaterialName );
+ const char *GetVMT() const;
+
+ // Paints the texture
+ virtual void Paint( void );
+
+ // View it in 3D or 2D mode
+ void DrawIn3DMode( bool b3DMode );
+
+private:
+ // Two different preview methods
+ void DrawSphere( void );
+ void DrawRectangle( void );
+
+ // Set up a projection matrix for a 90 degree fov
+ void SetupProjectionMatrix( int nWidth, int nHeight );
+ void SetupOrthoMatrix( int nWidth, int nHeight );
+
+ // Sets the camera to look at the the thing we're spinning around
+ void LookAt( const Vector &vecLookAt, float flRadius );
+
+ // Sets up lighting state
+ void SetupLightingState();
+
+ // Draw a sphere
+ void RenderSphere( const Vector &vCenter, float flRadius, int nTheta, int nPhi );
+
+ // Draw sprite-card based materials
+ void RenderSpriteCard( const Vector &vCenter, float flRadius );
+
+ CUtlString m_VMTName;
+ CMaterialReference m_Material;
+ CTextureReference m_pLightmapTexture;
+ CTextureReference m_DefaultEnvCubemap;
+ Vector m_LightDirection;
+ Color m_LightColor;
+ float m_flLightIntensity;
+ Vector m_vecCameraDirection;
+ float m_flLastRotationTime;
+ bool m_bDrawIn3DMode;
+};
+
+
#endif // VMTPREVIEWPANEL_H \ No newline at end of file