MCPcopy Create free account
hub / github.com/InkboxSoftware/all-screen-keyboard / loadCustomShaderProgram

Method loadCustomShaderProgram

keyboard/src/graphics.cpp:881–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881int window::loadCustomShaderProgram(const char* vertexShaderFilename, const char* fragmentShaderFilename){
882 GLuint newShader = loadShaderProgram(vertexShaderFilename, fragmentShaderFilename);
883 if (newShader == 0){ //did not load correctly
884 cout << "Shader program failed to load" << endl;
885 return -1;
886 }
887 customShaderPrograms.push_back(newShader);
888 return 0;
889}
890
891int window::setCustomGlobalTextureShader(int index){
892 if (index >= 0 && index < customShaderPrograms.size())

Callers 1

loadCustomShaderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected