[glfw, qt] Added missing docs (#6428)

This commit is contained in:
Bruno de Oliveira Abinader
2016-09-22 15:38:03 +03:00
committed by Thiago Marcos P. Santos
parent d5679b07be
commit d3eaf98ca1
2 changed files with 8 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ Set the environment variable `MAPBOX_ACCESS_TOKEN` to your [Mapbox access token]
export MAPBOX_ACCESS_TOKEN=MYTOKEN
Optionally, you can specify a custom style to the test application:
export MAPBOX_STYLE_URL=MYSTYLEURL
Then, you can then proceed to build the test application:
make glfw-app

View File

@@ -31,6 +31,10 @@ to provide it by setting the environment variable `MAPBOX_ACCESS_TOKEN`:
export MAPBOX_ACCESS_TOKEN=MYTOKEN
Optionally, you can specify a custom style to the QMapboxGL example application:
export MAPBOX_STYLE_URL=MYSTYLEURL
#### Using QMapboxGL
`QMapboxGL` is a [QObject](http://doc.qt.io/qt-5/qobject.html) - [MapWindow](https://github.com/mapbox/mapbox-gl-native/blob/master/platform/qt/app/mapwindow.hpp) provides an example [QGLWidget](http://doc.qt.io/qt-5/qglwidget.html) that contains a `QMapboxGL` object. If you use `QMapboxGL` in non-standard Qt widgets, make sure to initialize the GL extensions required by Mapbox whenever possible: