MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetModelMatrix

Method SetModelMatrix

Source/Graphics/graphics.cpp:1366–1369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1364}
1365
1366void Graphics::SetModelMatrix(const mat4& matrix, const mat3& normal_matrix) {
1367 Shaders::Instance()->GetCurrentProgram()->SetUniform(MODEL_MATRIX, matrix);
1368 Shaders::Instance()->GetCurrentProgram()->SetUniform(NORMAL_MATRIX, normal_matrix);
1369}
1370
1371struct SimpleLineDrawState {
1372 GLState state;

Callers 1

DrawMethod · 0.80

Calls 2

SetUniformMethod · 0.80
GetCurrentProgramMethod · 0.80

Tested by

no test coverage detected