mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Move render utils to dedicated file. * Implement more render/mesh utils. * Added structure for OverlayTriangle_t, OverlaySweptBox_t and OverlayCapsule_t. OverlayCapsule_t has been modified to accommodate the size in r5 (2 new vectors).
27 lines
1.0 KiB
C
27 lines
1.0 KiB
C
//===== Copyright <20> 2005-2005, 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
|
||
|