MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetPerObjectData

Method GetPerObjectData

trinity/Eve/SpaceObject/EveMissileWarhead.cpp:605–615  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Provide perobject data. Is very simple just a world transform Arguments: accumulator - used to allocate new perobject data Return value: Returns the populated perobject data --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

603// Returns the populated perobject data
604// --------------------------------------------------------------------------------
605Tr2PerObjectData* EveMissileWarhead::GetPerObjectData( ITriRenderBatchAccumulator* accumulator )
606{
607 EveMissileWarheadPerObjectData* data = accumulator->Allocate<EveMissileWarheadPerObjectData>();
608 if( !data )
609 {
610 return NULL;
611 }
612 data->Initialize( this, &m_perObjectDataVs, &m_perObjectDataPs );
613
614 return data;
615}
616
617uint32_t EveMissileWarhead::GetPerObjectDataSize( Tr2RenderContextEnum::ShaderType shaderType ) const
618{

Callers

nothing calls this directly

Calls 1

InitializeMethod · 0.45

Tested by

no test coverage detected