Method

CoglSnippetset_post

since: 1.10

Declaration [src]

void
cogl_snippet_set_post (
  CoglSnippet* snippet,
  const char* post
)

Description [src]

Sets a source string that will be inserted after the hook point in the generated shader for the pipeline that this snippet is attached to. Please see the documentation of each hook point in CoglPipeline for a description of how this string should be used.

This function should only be called before the snippet is attached to its first pipeline. After that the snippet should be considered immutable.

Stability: Unstable

Available since: 1.10

Parameters

post

Type: const char*

The new source string for the post section of this snippet.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.