![]() |
![]() |
![]() |
Cogl Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
CoglBool cogl_check_extension (const
,char *nameconst
);char *extvoid cogl_viewport (unsigned
,int widthunsigned
);int heightvoid cogl_get_bitmasks (,
int *red,
int *green,
int *blue);
int *alphavoid cogl_set_depth_test_enabled ();
CoglBool settingCoglBool cogl_get_depth_test_enabled (void
);
CoglBool cogl_check_extension (const
,char *nameconst
);char *ext
cogl_check_extension
has been deprecated since version 1.2 and should not be used in newly-written code. OpenGL is an implementation detail for Cogl and so it's
not appropriate to expose OpenGL extensions through the Cogl API. This
function can be replaced by the following equivalent code:
CoglBool retval = (strstr (ext, name) != NULL) ? TRUE : FALSE;
Check whether name
occurs in list of extensions in ext
.
|
extension to check for |
|
list of extensions |
Returns : |
TRUE FALSE |
void cogl_viewport (unsigned
,int widthunsigned
);int height
cogl_viewport
has been deprecated since version 1.2 and should not be used in newly-written code. Use cogl_set_viewport()
instead
Replace the current viewport with the given values.
|
Width of the viewport |
|
Height of the viewport |
Since 0.8.2
void cogl_get_bitmasks (,
int *red,
int *green,
int *blue);
int *alpha
Gets the number of bitplanes used for each of the color components
in the color buffer. Pass NULL
|
Return location for the number of red bits or NULL |
|
Return location for the number of green bits or NULL |
|
Return location for the number of blue bits or NULL |
|
Return location for the number of alpha bits or NULL |
void cogl_set_depth_test_enabled ();
CoglBool setting
cogl_set_depth_test_enabled
has been deprecated since version 1.4 and should not be used in newly-written code. Use cogl_material_set_depth_test_enabled()
Sets whether depth testing is enabled. If it is disabled then the
order that actors are layered on the screen depends solely on the
order specified using clutter_actor_raise()
clutter_actor_lower()
|
TRUE FALSE |
CoglBool cogl_get_depth_test_enabled (void
);
cogl_get_depth_test_enabled
has been deprecated since version 1.4 and should not be used in newly-written code. Use cogl_material_get_depth_test_enabled()
Queries if depth testing has been enabled via cogl_set_depth_test_enable()
Returns : |
TRUE FALSE |