MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / InstancedRunAdd

Method InstancedRunAdd

engine/PoseidonGL33/EngineGL33_Mesh.cpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool EngineGL33::InstancedRunAdd(const Matrix4& modelToWorld)
43{
44 if (_instPending >= 256)
45 return false;
46 GfxMatrix& m = _instArray[_instPending];
47 ConvertMatrix(m, modelToWorld);
48 m._41 -= _frameState.cameraPos[0];
49 m._42 -= _frameState.cameraPos[1];
50 m._43 -= _frameState.cameraPos[2];
51 ++_instPending;
52 return true;
53}
54
55void EngineGL33::BeginInstancedRunUpload()
56{

Callers

nothing calls this directly

Calls 1

ConvertMatrixFunction · 0.85

Tested by

no test coverage detected