| 40 | } |
| 41 | |
| 42 | bool 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 | |
| 55 | void EngineGL33::BeginInstancedRunUpload() |
| 56 | { |
nothing calls this directly
no test coverage detected