attach_shader


Description:

public void attach_shader (Shader shader_handle)

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.




2022 vala-language.org