This commit is contained in:
d1str4ught
2025-08-18 19:46:48 +02:00
parent 65582e25ec
commit 4be475f111
1334 changed files with 456590 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#include "StdAfx.h"
#include "GrpVertexBufferDynamic.h"
bool CDynamicVertexBuffer::Create(int vtxCount, int fvf)
{
if (m_lpd3dVB)
{
if (m_fvf == fvf)
{
if (m_vtxCount >= vtxCount)
return true;
}
}
m_vtxCount = vtxCount;
m_fvf = fvf;
return CGraphicVertexBuffer::Create(m_vtxCount, m_fvf, D3DUSAGE_DYNAMIC, D3DPOOL_SYSTEMMEM);
}
CDynamicVertexBuffer::CDynamicVertexBuffer()
{
m_vtxCount = 0;
m_fvf = 0;
}
CDynamicVertexBuffer::~CDynamicVertexBuffer()
{
}