diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/public/vphysics/virtualmesh.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/public/vphysics/virtualmesh.h')
| -rw-r--r-- | mp/src/public/vphysics/virtualmesh.h | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/mp/src/public/vphysics/virtualmesh.h b/mp/src/public/vphysics/virtualmesh.h index 3300d02d..41da4ea6 100644 --- a/mp/src/public/vphysics/virtualmesh.h +++ b/mp/src/public/vphysics/virtualmesh.h @@ -1,46 +1,46 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================
-
-#ifndef VIRTUALMESH_H
-#define VIRTUALMESH_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-// NOTE: These are fixed length to make it easy to fill these out without memory allocation or storage
-const int MAX_VIRTUAL_TRIANGLES = 1024;
-struct virtualmeshlist_t
-{
- Vector *pVerts;
- int indexCount;
- int triangleCount;
- int vertexCount;
- int surfacePropsIndex;
- byte *pHull;
- unsigned short indices[MAX_VIRTUAL_TRIANGLES*3];
-};
-
-struct virtualmeshtrianglelist_t
-{
- int triangleCount;
- unsigned short triangleIndices[MAX_VIRTUAL_TRIANGLES*3];
-};
-
-class IVirtualMeshEvent
-{
-public:
- virtual void GetVirtualMesh( void *userData, virtualmeshlist_t *pList ) = 0;
- virtual void GetWorldspaceBounds( void *userData, Vector *pMins, Vector *pMaxs ) = 0;
- virtual void GetTrianglesInSphere( void *userData, const Vector ¢er, float radius, virtualmeshtrianglelist_t *pList ) = 0;
-};
-struct virtualmeshparams_t
-{
- IVirtualMeshEvent *pMeshEventHandler;
- void *userData;
- bool buildOuterHull;
-};
-
-#endif // VIRTUALMESH_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef VIRTUALMESH_H +#define VIRTUALMESH_H +#ifdef _WIN32 +#pragma once +#endif + +// NOTE: These are fixed length to make it easy to fill these out without memory allocation or storage +const int MAX_VIRTUAL_TRIANGLES = 1024; +struct virtualmeshlist_t +{ + Vector *pVerts; + int indexCount; + int triangleCount; + int vertexCount; + int surfacePropsIndex; + byte *pHull; + unsigned short indices[MAX_VIRTUAL_TRIANGLES*3]; +}; + +struct virtualmeshtrianglelist_t +{ + int triangleCount; + unsigned short triangleIndices[MAX_VIRTUAL_TRIANGLES*3]; +}; + +class IVirtualMeshEvent +{ +public: + virtual void GetVirtualMesh( void *userData, virtualmeshlist_t *pList ) = 0; + virtual void GetWorldspaceBounds( void *userData, Vector *pMins, Vector *pMaxs ) = 0; + virtual void GetTrianglesInSphere( void *userData, const Vector ¢er, float radius, virtualmeshtrianglelist_t *pList ) = 0; +}; +struct virtualmeshparams_t +{ + IVirtualMeshEvent *pMeshEventHandler; + void *userData; + bool buildOuterHull; +}; + +#endif // VIRTUALMESH_H |