aboutsummaryrefslogtreecommitdiff
path: root/sp/src/utils/vrad/imagepacker.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/utils/vrad/imagepacker.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/utils/vrad/imagepacker.h')
-rw-r--r--sp/src/utils/vrad/imagepacker.h102
1 files changed, 51 insertions, 51 deletions
diff --git a/sp/src/utils/vrad/imagepacker.h b/sp/src/utils/vrad/imagepacker.h
index 0ee1f50e..93a4421a 100644
--- a/sp/src/utils/vrad/imagepacker.h
+++ b/sp/src/utils/vrad/imagepacker.h
@@ -1,51 +1,51 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// The copyright to the contents herein is the property of Valve, L.L.C.
-// The contents may be used and/or copied only with the written permission of
-// Valve, L.L.C., or in accordance with the terms and conditions stipulated in
-// the agreement/contract under which the contents have been supplied.
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-// $NoKeywords: $
-//=============================================================================
-
-#ifndef IMAGEPACKER_H
-#define IMAGEPACKER_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#define MAX_MAX_LIGHTMAP_WIDTH 2048
-
-
-//-----------------------------------------------------------------------------
-// This packs a single lightmap
-//-----------------------------------------------------------------------------
-class CImagePacker
-{
-public:
- bool Reset( int maxLightmapWidth, int maxLightmapHeight );
- bool AddBlock( int width, int height, int *returnX, int *returnY );
-
-protected:
- int GetMaxYIndex( int firstX, int width );
-
- int m_MaxLightmapWidth;
- int m_MaxLightmapHeight;
- int m_pLightmapWavefront[MAX_MAX_LIGHTMAP_WIDTH];
- int m_AreaUsed;
- int m_MinimumHeight;
-
- // For optimization purposes:
- // These store the width + height of the first image
- // that was unable to be stored in this image
- int m_MaxBlockWidth;
- int m_MaxBlockHeight;
-};
-
-
-#endif // IMAGEPACKER_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// The copyright to the contents herein is the property of Valve, L.L.C.
+// The contents may be used and/or copied only with the written permission of
+// Valve, L.L.C., or in accordance with the terms and conditions stipulated in
+// the agreement/contract under which the contents have been supplied.
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+// $NoKeywords: $
+//=============================================================================
+
+#ifndef IMAGEPACKER_H
+#define IMAGEPACKER_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#define MAX_MAX_LIGHTMAP_WIDTH 2048
+
+
+//-----------------------------------------------------------------------------
+// This packs a single lightmap
+//-----------------------------------------------------------------------------
+class CImagePacker
+{
+public:
+ bool Reset( int maxLightmapWidth, int maxLightmapHeight );
+ bool AddBlock( int width, int height, int *returnX, int *returnY );
+
+protected:
+ int GetMaxYIndex( int firstX, int width );
+
+ int m_MaxLightmapWidth;
+ int m_MaxLightmapHeight;
+ int m_pLightmapWavefront[MAX_MAX_LIGHTMAP_WIDTH];
+ int m_AreaUsed;
+ int m_MinimumHeight;
+
+ // For optimization purposes:
+ // These store the width + height of the first image
+ // that was unable to be stored in this image
+ int m_MaxBlockWidth;
+ int m_MaxBlockHeight;
+};
+
+
+#endif // IMAGEPACKER_H