The QtOpenVG 模块是提供对 OpenVG 描绘支持的插件。 更多...
该文档编制在 Qt 4.6 引入。
OpenVG is a standard API from the Khronos Group for accelerated 2D vector graphics that is appearing in an increasing number of embedded devices.
OpenVG support can be enabled by passing the
-openvg
option to configure. It is assumed that the following qmake variables are set to appropriate values in the qmake.conf file for your platform:
Most OpenVG implementations are based on EGL, so the following variables may also need to be set:
见 qmake Variable Reference for more information on these variables.
Two kinds of OpenVG engines are currently supported: EGL based, and engines built on top of OpenGL 譬如 ShivaVG . EGL based engines are preferred.
Once the graphics system plugin has been built and installed, applications can be run as follows to use the plugin:
app -graphicssystem OpenVG
If ShivaVG is being used, then substitute
ShivaVG
而不是
OpenVG
in the line above.