MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / gltLoadShaderSrc

Function gltLoadShaderSrc

examples/OpenGLWindow/LoadShader.cpp:8–14  ·  view source on GitHub ↗

Load the shader from the source text

Source from the content-addressed store, hash-verified

6
7// Load the shader from the source text
8void gltLoadShaderSrc(const char *szShaderSrc, GLuint shader)
9{
10 GLchar *fsStringPtr[1];
11
12 fsStringPtr[0] = (GLchar *)szShaderSrc;
13 glShaderSource(shader, 1, (const GLchar **)fsStringPtr, NULL);
14}
15
16GLuint gltLoadShaderPair(const char *szVertexProg, const char *szFragmentProg)
17{

Callers 1

gltLoadShaderPairFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected