aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/tier2/meshutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/public/tier2/meshutils.h')
-rw-r--r--mp/src/public/tier2/meshutils.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/mp/src/public/tier2/meshutils.h b/mp/src/public/tier2/meshutils.h
new file mode 100644
index 00000000..e9e34008
--- /dev/null
+++ b/mp/src/public/tier2/meshutils.h
@@ -0,0 +1,26 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: A set of utilities to help with generating meshes
+//
+//===========================================================================//
+
+#ifndef MESHUTILS_H
+#define MESHUTILS_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+//-----------------------------------------------------------------------------
+// Helper methods to create various standard index buffer types
+//-----------------------------------------------------------------------------
+void GenerateSequentialIndexBuffer( unsigned short* pIndexMemory, int nIndexCount, int nFirstVertex );
+void GenerateQuadIndexBuffer( unsigned short* pIndexMemory, int nIndexCount, int nFirstVertex );
+void GeneratePolygonIndexBuffer( unsigned short* pIndexMemory, int nIndexCount, int nFirstVertex );
+void GenerateLineStripIndexBuffer( unsigned short* pIndexMemory, int nIndexCount, int nFirstVertex );
+void GenerateLineLoopIndexBuffer( unsigned short* pIndexMemory, int nIndexCount, int nFirstVertex );
+
+
+#endif // MESHUTILS_H
+