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

Method UpdatePerObjectBuffer

trinity/Eve/SpaceObject/EveSwarm.cpp:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void EveSwarmRenderable::UpdatePerObjectBuffer( Tr2RenderContextEnum::ShaderType shaderType, uint32_t size, void* data )
86{
87 if( shaderType == Tr2RenderContextEnum::PIXEL_SHADER )
88 {
89 uint8_t* perObjectPS = (uint8_t*)data;
90 memcpy( perObjectPS, &m_psData, sizeof( m_psData ) );
91 }
92 else
93 {
94 uint8_t* perObjectVS = (uint8_t*)data;
95 memcpy( perObjectVS, &m_vsData, sizeof( m_vsData ) );
96 }
97}
98
99bool EveSwarmRenderable::HasTransparentBatches()
100{

Callers 3

UpdateBufferMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected