MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / set

Method set

Engine/source/gfx/gfxPrimitiveBuffer.cpp:74–82  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Set -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

72// Set
73//-----------------------------------------------------------------------------
74void GFXPrimitiveBufferHandle::set(GFXDevice *theDevice, U32 indexCount, U32 primitiveCount, GFXBufferType bufferType, String desc)
75{
76 StrongRefPtr<GFXPrimitiveBuffer>::operator=( theDevice->allocPrimitiveBuffer(indexCount, primitiveCount, bufferType) );
77
78#ifdef TORQUE_DEBUG
79 if( desc.isNotEmpty() )
80 getPointer()->mDebugCreationPath = desc;
81#endif
82}
83
84//-----------------------------------------------------------------------------
85// immutable

Callers

nothing calls this directly

Calls 3

operator=Function · 0.50
allocPrimitiveBufferMethod · 0.45
isNotEmptyMethod · 0.45

Tested by

no test coverage detected