Constructor
CoglSnippetnew
Declaration [src]
CoglSnippet*
cogl_snippet_new (
CoglSnippetHook hook,
const char* declarations,
const char* post
)
Description [src]
Allocates and initializes a new snippet with the given source strings.
| Stability: | Unstable |
| Available since: | 1.10 |
Parameters
hook |
CoglSnippetHook |
The point in the pipeline that this snippet will wrap around or replace. |
|
declarations |
const char* |
The source code for the declarations for this
snippet or |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. | |
| The value is a NUL terminated UTF-8 string. | |
post |
const char* |
The source code to run after the hook point where this
shader snippet is attached or |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. | |
| The value is a NUL terminated UTF-8 string. |
Return value
| Returns: | CoglSnippet |
A pointer to a new |
|
| The caller of the function takes ownership of the data, and is responsible for freeing it. |