attach_shader
Description:
Attaches a shader to a program object.
Note:
Use CoglSnippet
api
A program can have multiple vertex or fragment shaders but only one of them may provide a main
function. It is allowed to use a
program with only a vertex shader or only a fragment shader.
Parameters:
shader_handle |
a VertexBufferIndices for a vertex of fragment shader. |
program_handle |
a VertexBufferIndices for a shdaer program. |