MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / SetProgram

Method SetProgram

Sources/nCine/Graphics/GL/GLShaderUniforms.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 void GLShaderUniforms::SetProgram(GLShaderProgram* shaderProgram, const char* includeOnly, const char* exclude)
28 {
29 DEATH_ASSERT(shaderProgram != nullptr);
30
31 shaderProgram_ = shaderProgram;
32 shaderProgram_->ProcessDeferredQueries();
33 uniformCaches_.clear();
34
35 if (shaderProgram_->GetStatus() == GLShaderProgram::Status::LinkedWithIntrospection) {
36 ImportUniforms(includeOnly, exclude);
37 }
38 }
39
40 void GLShaderUniforms::SetUniformsDataPointer(GLubyte* dataPointer)
41 {

Callers 2

SetShaderProgramMethod · 0.45

Calls 4

DEATH_ASSERTFunction · 0.85
clearMethod · 0.45
GetStatusMethod · 0.45

Tested by

no test coverage detected