blob: a7508d86857ae69f0d3aef2429445e26f352777e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/**
* Simple example illustrating usage of evas_init() and
* evas_shutdown(). Usually one would instantiate a canvas to have
* something useful out of Evas. For an example of this kind, see the
* @ref Example_Evas_Buffer_Simple.
*
* Here, we are just listing the engine Evas was compiled with support
* to.
*
* @verbatim
* gcc -o evas-init-shutdown evas-init-shutdown.c `pkg-config --libs \
* --cflags evas`
* @endverbatim
*
*/
#include <Evas.h>
#include <stdio.h>
#include <errno.h>
/*
* Simple example illustrating usage of evas_init() and
* evas_shutdown(). Usually one would instantiate a canvas to have
* something useful out of Evas. For an example of this kind, see the
* evas-buffer-simple.c, which requires the buffer engine module
* compiled in Evas.
*
* Here, we are just listing the engine Evas was compiled with support
* to.
*/
int
main(void)
{
Eina_List *engine_list, *l;
char *engine_name;
evas_init();
engine_list = evas_render_method_list();
if (!engine_list)
{
fprintf(stderr, "ERROR: Evas supports no engines! Exit.\n");
exit(-1);
}
printf("Available Evas Engines:\n");
EINA_LIST_FOREACH(engine_list, l, engine_name)
printf("%s\n", engine_name);
evas_render_method_list_free(engine_list);
evas_shutdown();
return 0;
}
|