diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/portal/Portal_DynamicMeshRenderingUtils.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/portal/Portal_DynamicMeshRenderingUtils.h')
| -rw-r--r-- | game/client/portal/Portal_DynamicMeshRenderingUtils.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/game/client/portal/Portal_DynamicMeshRenderingUtils.h b/game/client/portal/Portal_DynamicMeshRenderingUtils.h new file mode 100644 index 0000000..3154590 --- /dev/null +++ b/game/client/portal/Portal_DynamicMeshRenderingUtils.h @@ -0,0 +1,32 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef PORTAL_DYNAMICMESHRENDERINGUTILS_H +#define PORTAL_DYNAMICMESHRENDERINGUTILS_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "materialsystem/imaterial.h" +#include "mathlib/mathlib.h" +#include "PortalRender.h" + +struct PortalMeshPoint_t +{ + Vector vWorldSpacePosition; + Vector2D texCoord; +}; + +int ClipPolyToPlane_LerpTexCoords( PortalMeshPoint_t *inVerts, int vertCount, PortalMeshPoint_t *outVerts, const Vector& normal, float dist, float fOnPlaneEpsilon ); +void RenderPortalMeshConvexPolygon( PortalMeshPoint_t *pVerts, int iVertCount, const IMaterial *pMaterial, void *pBind ); + +void Clip_And_Render_Convex_Polygon( PortalMeshPoint_t *pVerts, int iVertCount, const IMaterial *pMaterial, void *pBind ); + + +#endif //#ifndef PORTAL_DYNAMICMESHRENDERINGUTILS_H + |