mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
test: print current backend engine name
Change-Id: Iaafa521556a614b47994914c09228b8e8ae9c9e9
This commit is contained in:
parent
3fe2eedd89
commit
0a562a4ae2
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
#include <thorvg.h>
|
#include <thorvg.h>
|
||||||
|
#include <iostream>
|
||||||
#include <Elementary.h>
|
#include <Elementary.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -107,6 +108,9 @@ int main(int argc, char **argv)
|
||||||
if (!strcmp(argv[1], "gl")) swEngine = false;
|
if (!strcmp(argv[1], "gl")) swEngine = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (swEngine) cout << "engine: software" << endl;
|
||||||
|
else cout << "engine: opengl" << endl;
|
||||||
|
|
||||||
elm_init(argc, argv);
|
elm_init(argc, argv);
|
||||||
|
|
||||||
//Show the result using EFL...
|
//Show the result using EFL...
|
||||||
|
|
Loading…
Add table
Reference in a new issue