MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / getAllUniformLocations

Method getAllUniformLocations

src/Shaders/RaceNetShader.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void RaceNetShader::getAllUniformLocations() {
20 // Get handles for uniforms
21 transformationMatrixLocation = getUniformLocation("transformationMatrix");
22 projectionMatrixLocation = getUniformLocation("projectionMatrix");
23 colourLocation = getUniformLocation("spriteColour");
24}
25
26void RaceNetShader::loadProjectionMatrix(const glm::mat4 &projection) {
27 loadMat4(projectionMatrixLocation, &projection[0][0]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected