aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/matsys_controls/vmtpanel.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/vmtpanel.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/vmtpanel.h')
-rw-r--r--mp/src/public/matsys_controls/vmtpanel.h180
1 files changed, 90 insertions, 90 deletions
diff --git a/mp/src/public/matsys_controls/vmtpanel.h b/mp/src/public/matsys_controls/vmtpanel.h
index fc31f21d..ee2e6cc8 100644
--- a/mp/src/public/matsys_controls/vmtpanel.h
+++ b/mp/src/public/matsys_controls/vmtpanel.h
@@ -1,91 +1,91 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//===========================================================================//
-
-#ifndef VMTPANEL_H
-#define VMTPANEL_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "matsys_controls/potterywheelpanel.h"
-
-
-//-----------------------------------------------------------------------------
-// Forward declarations
-//-----------------------------------------------------------------------------
-class IMaterial;
-class CMeshBuilder;
-class Vector;
-
-namespace vgui
-{
- class ScrollBar;
- class IScheme;
-}
-
-
-//-----------------------------------------------------------------------------
-// Material Viewer Panel
-//-----------------------------------------------------------------------------
-class CVMTPanel : public CPotteryWheelPanel
-{
- DECLARE_CLASS_SIMPLE( CVMTPanel, CPotteryWheelPanel );
-
-public:
- // constructor, destructor
- CVMTPanel( vgui::Panel *pParent, const char *pName );
- virtual ~CVMTPanel();
-
- // Set the material to draw
- void SetMaterial( IMaterial *pMaterial );
-
- // Set rendering mode (stretch to full screen, or use actual size)
- void RenderUsingActualSize( bool bEnable );
-
- // performs the layout
- virtual void PerformLayout();
-
- virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
-
-private:
- // paint it stretched to the window size
- void DrawStretchedToPanel( CMeshBuilder &meshBuilder );
-
- // paint it actual size
- void DrawActualSize( CMeshBuilder &meshBuilder );
-
- // Draw it on a sphere
- void RenderSphere( const Vector &vCenter, float flRadius, int nTheta, int nPhi );
-
- // paint it!
- virtual void OnPaint3D();
-
-private:
- // The material to draw
- IMaterial *m_pMaterial;
-
- // A texture to use for a lightmap
- CTextureReference m_pLightmapTexture;
-
- // The default env_cubemap
- CTextureReference m_DefaultEnvCubemap;
-
- // Are we using actual size or not?
- bool m_bUseActualSize;
-
- // Scroll bars
- vgui::ScrollBar *m_pHorizontalBar;
- vgui::ScrollBar *m_pVerticalBar;
-
- // The viewable size
- int m_iViewableWidth;
- int m_iViewableHeight;
-};
-
-#endif // VMTPANEL_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//===========================================================================//
+
+#ifndef VMTPANEL_H
+#define VMTPANEL_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "matsys_controls/potterywheelpanel.h"
+
+
+//-----------------------------------------------------------------------------
+// Forward declarations
+//-----------------------------------------------------------------------------
+class IMaterial;
+class CMeshBuilder;
+class Vector;
+
+namespace vgui
+{
+ class ScrollBar;
+ class IScheme;
+}
+
+
+//-----------------------------------------------------------------------------
+// Material Viewer Panel
+//-----------------------------------------------------------------------------
+class CVMTPanel : public CPotteryWheelPanel
+{
+ DECLARE_CLASS_SIMPLE( CVMTPanel, CPotteryWheelPanel );
+
+public:
+ // constructor, destructor
+ CVMTPanel( vgui::Panel *pParent, const char *pName );
+ virtual ~CVMTPanel();
+
+ // Set the material to draw
+ void SetMaterial( IMaterial *pMaterial );
+
+ // Set rendering mode (stretch to full screen, or use actual size)
+ void RenderUsingActualSize( bool bEnable );
+
+ // performs the layout
+ virtual void PerformLayout();
+
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
+
+private:
+ // paint it stretched to the window size
+ void DrawStretchedToPanel( CMeshBuilder &meshBuilder );
+
+ // paint it actual size
+ void DrawActualSize( CMeshBuilder &meshBuilder );
+
+ // Draw it on a sphere
+ void RenderSphere( const Vector &vCenter, float flRadius, int nTheta, int nPhi );
+
+ // paint it!
+ virtual void OnPaint3D();
+
+private:
+ // The material to draw
+ IMaterial *m_pMaterial;
+
+ // A texture to use for a lightmap
+ CTextureReference m_pLightmapTexture;
+
+ // The default env_cubemap
+ CTextureReference m_DefaultEnvCubemap;
+
+ // Are we using actual size or not?
+ bool m_bUseActualSize;
+
+ // Scroll bars
+ vgui::ScrollBar *m_pHorizontalBar;
+ vgui::ScrollBar *m_pVerticalBar;
+
+ // The viewable size
+ int m_iViewableWidth;
+ int m_iViewableHeight;
+};
+
+#endif // VMTPANEL_H
\ No newline at end of file