Load the vertex, geometry and fragment shaders from source codes in memory.
This function loads the vertex, geometry and the fragment shaders. If one of
them fails to load, the shader is left empty (the valid shader is
unloaded). The sources must be valid shaders in GLSL language. GLSL is a
C-like language dedicated to OpenGL shaders; you'll probably need to read
a good documentation for it before writing your own shaders.
Load the vertex, geometry and fragment shaders from source codes in memory.
This function loads the vertex, geometry and the fragment shaders. If one of them fails to load, the shader is left empty (the valid shader is unloaded). The sources must be valid shaders in GLSL language. GLSL is a C-like language dedicated to OpenGL shaders; you'll probably need to read a good documentation for it before writing your own shaders.