Cogl.Snippet – doc Reference Manual
Packages
doc
Cogl
Snippet
Snippet
get_declarations
get_hook
get_post
get_pre
get_replace
set_declarations
set_post
set_pre
set_replace
Snippet
Object Hierarchy:
Description:
public
class
Snippet
:
Object
Namespace:
Cogl
Package:
doc
Content:
Creation methods:
public
Snippet
(
SnippetHook
hook,
string
declarations,
string
post)
Allocates and initializes a new snippet with the given source strings.
Methods:
public
unowned
string
get_declarations
()
public
SnippetHook
get_hook
()
public
unowned
string
get_post
()
public
unowned
string
get_pre
()
public
unowned
string
get_replace
()
public
void
set_declarations
(
string
declarations)
Sets a source string that will be inserted in the global scope of the generated shader when this snippet is used on a pipeline.
public
void
set_post
(
string
post)
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.
public
void
set_pre
(
string
pre)
Sets a source string that will be inserted before the hook point in the generated shader for the pipeline that this snippet is attached to.
public
void
set_replace
(
string
replace)
Sets a source string that will be used instead of any generated source code or any previous snippets for this hook point.
Inherited Members:
All known members inherited from class Cogl.Object
value_set_object