A GUI typesetting display engine and cross platform GUI application development framework based on NodeJS/OpenGL
Qgr Tools
===============
A GUI typesetting display engine and cross platform GUI application development framework based on NodeJS/OpenGL
Goal: developing GUI applications on this basis can take into account both the simplicity and speed of developing WEB applications, as well as the performance and experience of Native applications.
一个GUI的排版显示引擎和跨平台的GUI应用程序开发框架,基于NodeJS/OpenGL
目标:在此基础上开发GUI应用程序可拥有开发WEB应用般简单与速度同时兼顾Native应用程序的性能与体验
* Only iOS and Android systems are supported for the time being, this does not include AndroidTV, because TV applications are very different from mobile applications
* From here, Go API Index can go to API Documents Index
| !Screenshot | !Screenshot | !Screenshot |
|--|--|--|
This is a simple program to display Hello world on the screen
``jsx`
import { GUIApplication, Root } from 'qgr'
new GUIApplication().start(
)
You can get a more detailed [Examples]
If you've never used Qgr before, you can start from here and build your Qgr program step by step.
First, you need to install the toolkit provided by Qgr
* Install qgr-tools using nodejs npm
* Open Terminal and execute the following command:
`shshell
$ sudo npm install -g qgr-tools
`qgr-tools
* Running requires dependency on nodejs and python2.7
* And now do not support the windows system, you need to use it under mac
Create a new Qgr project using the following shell command:
`sh`shell
$ mkdir myproject
$ cd myproject
$ qgr init
This step compresses and packages the JavaScript code and resource files inside the project,
If this is a new project, you can skip this step and go directly to the next step
`js`shell
$ qgr build
This step exports [Xcode] or [Android Studio] project,because you eventually publish the program that be a .apk or .ipa
`js`shell
export xcode ios project
$ qgr export iosexport android studio project
$ qgr export android
After exporting the project, next you can open it using [Xcode] and [Android Studio]
qgr-tools provides a test http server, each time you change the js or jsx code, you don't have to reinstall every time.
Execute the following code to start it:
`js`shell
$ qgr
* Examples demo [Android APK] Install package
* Project [Source code] from Github
[Examples]: https://github.com/louis-tru/qgr/tree/master/demoXcode
[]: https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.htmlAndroid Studio
[]: https://developer.android.com/studio/projects/create-project.htmlAndroid APK
[]: https://github.com/louis-tru/qgr/releases/download/v0.1.0/examples-release.apkNPM
[]: https://www.npmjs.com/package/qgr-toolsSource code`]: https://github.com/louis-tru/qgr
[