Function

Coglprogram_attach_shader

Declaration [src]

void
cogl_program_attach_shader (
  CoglHandle program_handle,
  CoglHandle shader_handle
)

Description [src]

Attaches a shader to a program object. 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.

Deprecated since:1.16

Use CoglSnippet api.

Parameters

program_handle CoglHandle
 

A CoglHandle for a shdaer program.

shader_handle CoglHandle
 

A CoglHandle for a vertex of fragment shader.