mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-18 14:31:58 +00:00
add hl1,portal,dod source code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user