diff --git a/.cproject b/.cproject deleted file mode 100644 index 43f99020af95d6f5d0d494e76fd4774c485bbc46..0000000000000000000000000000000000000000 --- a/.cproject +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mingw32-make - - release - false - false - true - - - mingw32-make - - debug - false - false - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.gitignore b/.gitignore index 03c213b1f2285a7bc777c77d60cbc51094575be1..ddd3a437bcf567f86a35d64d86f8ecc3575d2098 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *Makefile* +tags build Info.plist obj @@ -25,3 +26,17 @@ deploy/mac deploy/linux controller_log* user_config.pri +*.app + +*.ncb +*.vcproj +*.sln +*.sln +*.vcproj +*.user +*.ncb +*.idb +*.project +*.cproject +*.sln +*.suo \ No newline at end of file diff --git a/.project b/.project deleted file mode 100644 index fc9b8c2de7d855347764478762ca7b92aed604e6..0000000000000000000000000000000000000000 --- a/.project +++ /dev/null @@ -1,88 +0,0 @@ - - - qgroundcontrol - - - - - - com.trolltech.qtcppproject.QtMakefileGenerator - - - - - org.eclipse.cdt.make.core.makeBuilder - clean,full,incremental, - - - org.eclipse.cdt.core.errorOutputParser - org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GmakeErrorParser;org.eclipse.cdt.core.VCErrorParser;org.eclipse.cdt.core.CWDLocator;org.eclipse.cdt.core.MakeErrorParser; - - - org.eclipse.cdt.make.core.append_environment - true - - - org.eclipse.cdt.make.core.build.arguments - - - - org.eclipse.cdt.make.core.build.command - mingw32-make - - - org.eclipse.cdt.make.core.build.target.auto - debug - - - org.eclipse.cdt.make.core.build.target.clean - clean - - - org.eclipse.cdt.make.core.build.target.inc - debug - - - org.eclipse.cdt.make.core.enableAutoBuild - false - - - org.eclipse.cdt.make.core.enableCleanBuild - true - - - org.eclipse.cdt.make.core.enableFullBuild - true - - - org.eclipse.cdt.make.core.enabledIncrementalBuild - true - - - org.eclipse.cdt.make.core.environment - QMAKESPEC=win32-g++|PATH=C:\\Qt\\2010.04\\qt\\bin;${env_var:PATH}| - - - org.eclipse.cdt.make.core.stopOnError - false - - - org.eclipse.cdt.make.core.useDefaultBuildCmd - false - - - - - org.eclipse.cdt.make.core.ScannerConfigBuilder - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.core.ccnature - org.eclipse.cdt.make.core.makeNature - org.eclipse.cdt.make.core.ScannerConfigNature - com.trolltech.qtcppproject.QtNature - - diff --git a/data/kinect.cal b/data/kinect.cal new file mode 100644 index 0000000000000000000000000000000000000000..ee802fa7c43fcac35c76f002e4d856a39a0e0dfd --- /dev/null +++ b/data/kinect.cal @@ -0,0 +1,37 @@ +[rgb] +principal_point\x=314.70228964 +principal_point\y=264.30478827 +focal_length\x=527.91246131 +focal_length\y=527.91246131 +distortion\k1=0.20496745 +distortion\k2=-0.36341243 +distortion\k3=0.00000000 +distortion\k4=0.00000000 +distortion\k5=0.00000000 + +[depth] +principal_point\x=311.88621344 +principal_point\y=247.63447078 +focal_length\x=593.89813561 +focal_length\y=593.89813561 +distortion\k1=0.00000000 +distortion\k2=0.00000000 +distortion\k3=0.00000000 +distortion\k4=0.00000000 +distortion\k5=0.00000000 + +[transform] +R11=0.999982 +R12=0.000556 +R13=0.005927 +R21=-0.000563 +R22=0.999999 +R23=0.001235 +R31=-0.005926 +R32=-0.001239 +R33=0.999982 +Tx=-0.024287 +Ty=0.001018 +Tz=-0.015195 +baseline=0.06061 +disparity_offset=1092.3403 diff --git a/data/yahoo_aerial.earth b/data/yahoo_aerial.earth new file mode 100644 index 0000000000000000000000000000000000000000..679c01f5b2347cbec8af1b15af16da8ab54a9c89 --- /dev/null +++ b/data/yahoo_aerial.earth @@ -0,0 +1,23 @@ + + + + + + /tmp/OsgEarthCache + + + + satellite + + + + true + + diff --git a/data/yahoo_heightfield.earth b/data/yahoo_heightfield.earth new file mode 100644 index 0000000000000000000000000000000000000000..4fe6133adb6fccaa37240d8d433ee01810f0087e --- /dev/null +++ b/data/yahoo_heightfield.earth @@ -0,0 +1,33 @@ + + + + + + satellite + + + + false + + + http://onearth.jpl.nasa.gov/wms.cgi + worldwind_dem + + tiff + ft + + + true + + 50 + + 0.01 + + diff --git a/data/yahoo_maps.earth b/data/yahoo_maps.earth new file mode 100644 index 0000000000000000000000000000000000000000..871a114b0d35a248fd7ccd9c32c413a094aef91d --- /dev/null +++ b/data/yahoo_maps.earth @@ -0,0 +1,19 @@ + + + + + + roads + + + + true + + diff --git a/data/zurich.earth b/data/zurich.earth new file mode 100644 index 0000000000000000000000000000000000000000..4ee5ea3dee0c98caeec63a8dc6f5d61cecd72ee7 --- /dev/null +++ b/data/zurich.earth @@ -0,0 +1,7 @@ + + + + ../map/zurich/tms.xml + + + diff --git a/deploy/mac_create_dmg.sh b/deploy/mac_create_dmg.sh index b35a041869d3121e99887eecde6e642b055ce22a..bcdfe4381a653e1ee7b0af1901be6fa6dfe49cd9 100644 --- a/deploy/mac_create_dmg.sh +++ b/deploy/mac_create_dmg.sh @@ -12,6 +12,7 @@ cp -r ../bin/mac/qgroundcontrol.app mac/. cp -r ../audio mac/qgroundcontrol.app/Contents/MacOs/. mkdir -p mac/qgroundcontrol.app/Contents/Frameworks/ +# SDL is not copied by Qt - for whatever reason cp -r SDL.framework mac/qgroundcontrol.app/Contents/Frameworks/. echo -e '\n\nStarting to create disk image. This may take a while..\n' macdeployqt mac/qgroundcontrol.app -dmg diff --git a/deploy/qgroundcontrol_installer.nsi b/deploy/qgroundcontrol_installer.nsi index dca29cb1b430bc963ef31544818ff2bf02a062e5..d2c351a6f692f5b95fe80dd9467bc4edb9d17b33 100644 --- a/deploy/qgroundcontrol_installer.nsi +++ b/deploy/qgroundcontrol_installer.nsi @@ -16,20 +16,20 @@ LicenseData ..\license.txt Section "" SetOutPath $INSTDIR - File qgroundcontrol\*.* - WriteUninstaller $INSTDIR\QGroundcontrol_uninstall.exe + File ..\release\*.* + WriteUninstaller $INSTDIR\QGroundControl_uninstall.exe SectionEnd Section "Uninstall" - Delete $INSTDIR\QGroundcontrol_uninstall.exe + Delete $INSTDIR\QGroundControl_uninstall.exe Delete $INSTDIR\*.* RMDir $INSTDIR - Delete "$SMPROGRAMS\QGroundcontrol\*.*" - RMDir "$SMPROGRAMS\QGroundcontrol\" + Delete "$SMPROGRAMS\QGroundControl\*.*" + RMDir "$SMPROGRAMS\QGroundControl\" SectionEnd Section "create Start Menu Shortcuts" - CreateDirectory "$SMPROGRAMS\QGroundcontrol" - CreateShortCut "$SMPROGRAMS\QGroundcontrol\uninstall.lnk" "$INSTDIR\QGroundcontrol_uninstall.exe" "" "$INSTDIR\QGroundcontrol_uninstall.exe" 0 - CreateShortCut "$SMPROGRAMS\QGroundcontrol\QGroundcontrol.lnk" "$INSTDIR\qgroundcontrol.exe" "" "$INSTDIR\qgroundcontrol.exe" 0 + CreateDirectory "$SMPROGRAMS\QGroundControl" + CreateShortCut "$SMPROGRAMS\QGroundControl\uninstall.lnk" "$INSTDIR\QGroundControl_uninstall.exe" "" "$INSTDIR\QGroundControl_uninstall.exe" 0 + CreateShortCut "$SMPROGRAMS\QGroundControl\QGroundControl.lnk" "$INSTDIR\qgroundcontrol.exe" "" "$INSTDIR\qgroundcontrol.exe" 0 SectionEnd \ No newline at end of file diff --git a/images/contrib/slugs.png b/images/contrib/slugs.png new file mode 100644 index 0000000000000000000000000000000000000000..4af15559a963287e696c51a6b00c6b5dd5163c6b Binary files /dev/null and b/images/contrib/slugs.png differ diff --git a/images/earth.html b/images/earth.html new file mode 100644 index 0000000000000000000000000000000000000000..a3087fd3b265ba84a52233fff9a698835321f428 --- /dev/null +++ b/images/earth.html @@ -0,0 +1,312 @@ + + + + + + + + QGroundControl Google Earth View + + + + + + + + + +
+
+
+ + diff --git a/images/mapproviders/googleearth.svg b/images/mapproviders/googleearth.svg new file mode 100644 index 0000000000000000000000000000000000000000..0cb3de179f351f02088c7f09bc70cc91942245b8 --- /dev/null +++ b/images/mapproviders/googleearth.svg @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/images/patterns/abby.jpg b/images/patterns/abby.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b39b9a5e53e0b741934eec8c7d8d5bcf4b88faa7 Binary files /dev/null and b/images/patterns/abby.jpg differ diff --git a/images/patterns/cake.jpg b/images/patterns/cake.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a6ea3434ab67b1a0bd5e045e08d4efef8a796ffa Binary files /dev/null and b/images/patterns/cake.jpg differ diff --git a/images/patterns/cola.jpg b/images/patterns/cola.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2faed5d5235fbbe96b85c4e62a485cb0f2e29f98 Binary files /dev/null and b/images/patterns/cola.jpg differ diff --git a/images/patterns/flag.jpg b/images/patterns/flag.jpg new file mode 100644 index 0000000000000000000000000000000000000000..667a7c18679512186570155a409d3ddc3ca31c9f Binary files /dev/null and b/images/patterns/flag.jpg differ diff --git a/images/patterns/mona.jpg b/images/patterns/mona.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3f440d7f24af41efd3ca47c987c41d6427f92ec0 Binary files /dev/null and b/images/patterns/mona.jpg differ diff --git a/images/patterns/sign.jpg b/images/patterns/sign.jpg new file mode 100644 index 0000000000000000000000000000000000000000..89efc8f9a36d0a1939d93f5b3402191e532168e0 Binary files /dev/null and b/images/patterns/sign.jpg differ diff --git a/images/patterns/supa.png b/images/patterns/supa.png new file mode 100644 index 0000000000000000000000000000000000000000..5d8552f45c2476d8c82aa8feb0740925d66e877e Binary files /dev/null and b/images/patterns/supa.png differ diff --git a/images/patterns/turm.jpg b/images/patterns/turm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5ccbfe36075278aa3dfe40fd32d6af3739582212 Binary files /dev/null and b/images/patterns/turm.jpg differ diff --git a/images/patterns/work.jpg b/images/patterns/work.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1fa2cb12959351de9649814a0193c1312d938dd1 Binary files /dev/null and b/images/patterns/work.jpg differ diff --git a/images/style-mission.css b/images/style-mission.css index ee1f1635f07a018dc5de440b2380374abcc950c3..5831e88853c9a6d8cd922d936800b7b87686907d 100644 --- a/images/style-mission.css +++ b/images/style-mission.css @@ -77,10 +77,43 @@ border: 1px solid #777777; color: #DDDDDF; } + QMainWindow::separator { + background: #090909; + width: 2px; /* when vertical */ + height: 2px; /* when horizontal */ + } + + QMainWindow::separator:hover { + background: white; + } + QDockWidget { - font: bold; - border: 1px solid #32345E; -} + border: 1px solid #32345E; + /* titlebar-close-icon: url(close.png); + titlebar-normal-icon: url(undock.png);*/ + } + + QDockWidget::title { + text-align: left; /* align the text to the left */ + background: lightgray; + padding-left: 5px; + } + + QDockWidget::close-button, QDockWidget::float-button { + border: 1px solid transparent; + background: darkgray; + padding: 0px; + } + + QDockWidget::close-button:hover, QDockWidget::float-button:hover { + background: gray; + } + + QDockWidget::close-button:pressed, QDockWidget::float-button:pressed { + padding: 1px -1px -1px 1px; + } + + QDockWidget::close-button, QDockWidget::float-button { background-color: #181820; diff --git a/lib/QMapControl/src/emptymapadapter.cpp b/lib/QMapControl/src/emptymapadapter.cpp index 93cf3c99b7792dcaa5cfe123407d1920421205fa..0de9cc47378574b07d57aa1660372d354d12082d 100644 --- a/lib/QMapControl/src/emptymapadapter.cpp +++ b/lib/QMapControl/src/emptymapadapter.cpp @@ -98,8 +98,8 @@ namespace qmapcontrol z= min_zoom - z; } - if (x<0 || x>pow(2,z)-1 || - y<0 || y>pow(2,z)-1) + if (x<0 || x>pow(2.0,z)-1 || + y<0 || y>pow(2.0,z)-1) { return false; } @@ -108,7 +108,7 @@ namespace qmapcontrol } int EmptyMapAdapter::tilesonzoomlevel(int zoomlevel) const { - return int(pow(2, zoomlevel)); + return int(pow(2.0, zoomlevel)); } int EmptyMapAdapter::xoffset(int x) const { diff --git a/lib/QMapControl/src/layer.cpp b/lib/QMapControl/src/layer.cpp index 32f63583277935c897a6edfac2f59c3866a3f10d..62d78f1de186ce76c5d23c3a73911a5f3863cf1b 100644 --- a/lib/QMapControl/src/layer.cpp +++ b/lib/QMapControl/src/layer.cpp @@ -99,9 +99,10 @@ namespace qmapcontrol Geometry* Layer::get_Geometry(int index) { + Geometry* geo = NULL; if(geometrySelected) { - return geometrySelected; + geo = geometrySelected; } else { @@ -110,7 +111,7 @@ namespace qmapcontrol Geometry *geometry = geometries[i]; if(geometry->name() == QString::number(index)) { - return geometry; + geo = geometry; } } @@ -124,7 +125,7 @@ namespace qmapcontrol // } } - + return geo; } bool Layer::isVisible() const diff --git a/lib/QMapControl/src/layermanager.cpp b/lib/QMapControl/src/layermanager.cpp index 3e10bb225a580e39e6ed11dc755aef0ced94bb19..3358605a41af94821e9c45b9783d0c0db6293d02 100644 --- a/lib/QMapControl/src/layermanager.cpp +++ b/lib/QMapControl/src/layermanager.cpp @@ -112,7 +112,14 @@ namespace qmapcontrol void LayerManager::setView(const QPointF& coordinate) { + QPoint oldMapPx = mapmiddle_px; + mapmiddle_px = layer()->mapadapter()->coordinateToDisplay(coordinate); + + scroll += mapmiddle_px - oldMapPx; + zoomImageScroll+= mapmiddle_px - oldMapPx; + + mapmiddle = coordinate; //TODO: muss wegen moveTo() raus @@ -125,7 +132,8 @@ namespace qmapcontrol //TODO: // verschiebung ausrechnen // oder immer neues offscreenimage - newOffscreenImage(); + //newOffscreenImage(); + moveWidgets(); } } diff --git a/lib/QMapControl/src/mapcontrol.cpp b/lib/QMapControl/src/mapcontrol.cpp index 2f4c6d6094fdf9de1d68a75dadf982d759d5ed11..2872765dab8b14751d843c93fccfce9b839bcdca 100644 --- a/lib/QMapControl/src/mapcontrol.cpp +++ b/lib/QMapControl/src/mapcontrol.cpp @@ -157,7 +157,7 @@ namespace qmapcontrol { if (currentZoom() >= 0 && distanceList.size() > currentZoom()) { - line = distanceList.at( currentZoom() ) / pow(2, 18-currentZoom() ) / 0.597164; + line = distanceList.at( currentZoom() ) / pow(2.0, 18-currentZoom() ) / 0.597164; // draw the scale painter.setPen(Qt::black); @@ -210,7 +210,7 @@ namespace qmapcontrol // Draw the Lat and Lon if needed if (cursorPosVisible) { - line = distanceList.at( currentZoom() ) / pow(2, 18-currentZoom() ) / 0.597164; + line = distanceList.at( currentZoom() ) / pow(2.0, 18-currentZoom() ) / 0.597164; QString str; str = QString(tr(" Lat: %1")).arg(currentWorldCoordinate.y()); diff --git a/lib/QMapControl/src/mapnetwork.cpp b/lib/QMapControl/src/mapnetwork.cpp index f1430d05ab8bc143b4d58a4295c7b9eb5debb27f..155d9202f1029ec00851f6d1e8cddbe2e3e41c2c 100644 --- a/lib/QMapControl/src/mapnetwork.cpp +++ b/lib/QMapControl/src/mapnetwork.cpp @@ -95,7 +95,9 @@ namespace qmapcontrol } else { - qDebug() << "NETWORK_PIXMAP_ERROR: " << ax; + // QGC FIXME Error is currently undetected + // TODO Error is currently undetected + //qDebug() << "NETWORK_PIXMAP_ERROR: " << ax; } } diff --git a/lib/QMapControl/src/point.cpp b/lib/QMapControl/src/point.cpp index e1831befa6ac1d0c23270fefd8d9ec032a4fa526..45793a628996d3f310c0424cb0b2760ed4f4894e 100644 --- a/lib/QMapControl/src/point.cpp +++ b/lib/QMapControl/src/point.cpp @@ -144,8 +144,8 @@ namespace qmapcontrol int diffzoom = homelevel-currentzoom; int viewheight = size.height(); int viewwidth = size.width(); - viewheight = int(viewheight / pow(2, diffzoom)); - viewwidth = int(viewwidth / pow(2, diffzoom)); + viewheight = int(viewheight / pow(2.0, diffzoom)); + viewwidth = int(viewwidth / pow(2.0, diffzoom)); if (minsize.height()!= -1 && viewheight < minsize.height()) viewheight = minsize.height(); diff --git a/lib/QMapControl/src/tilemapadapter.cpp b/lib/QMapControl/src/tilemapadapter.cpp index e61cbc90814fa45f7704d94067974abc4cc6e506..17d0e3b52ab19af9d0ea2af9f71bf5c6fec9277c 100644 --- a/lib/QMapControl/src/tilemapadapter.cpp +++ b/lib/QMapControl/src/tilemapadapter.cpp @@ -162,8 +162,8 @@ namespace qmapcontrol z= min_zoom - z; } - if (x<0 || x>pow(2,z)-1 || - y<0 || y>pow(2,z)-1) + if (x<0 || x>pow(2.0,z)-1 || + y<0 || y>pow(2.0,z)-1) { return false; } @@ -172,7 +172,7 @@ namespace qmapcontrol } int TileMapAdapter::tilesonzoomlevel(int zoomlevel) const { - return int(pow(2, zoomlevel)); + return int(pow(2.0, zoomlevel)); } int TileMapAdapter::xoffset(int x) const { diff --git a/lib/QMapControl/src/wmsmapadapter.cpp b/lib/QMapControl/src/wmsmapadapter.cpp index 96fa4fe60da9bf36d626d4679540720ff4f72acf..c6441a9bdb05f88bedd7a8374d4201786f4c37e6 100644 --- a/lib/QMapControl/src/wmsmapadapter.cpp +++ b/lib/QMapControl/src/wmsmapadapter.cpp @@ -47,7 +47,7 @@ namespace qmapcontrol this->serverPath.append("&WIDTH=").append(loc.toString(tilesize)) .append("&HEIGHT=").append(loc.toString(tilesize)) .append("&BBOX="); - numberOfTiles = pow(2, current_zoom); + numberOfTiles = pow(2.0, current_zoom); coord_per_x_tile = 360. / numberOfTiles; coord_per_y_tile = 180. / numberOfTiles; } @@ -72,14 +72,14 @@ namespace qmapcontrol void WMSMapAdapter::zoom_in() { current_zoom+=1; - numberOfTiles = pow(2, current_zoom); + numberOfTiles = pow(2.0, current_zoom); coord_per_x_tile = 360. / numberOfTiles; coord_per_y_tile = 180. / numberOfTiles; } void WMSMapAdapter::zoom_out() { current_zoom-=1; - numberOfTiles = pow(2, current_zoom); + numberOfTiles = pow(2.0, current_zoom); coord_per_x_tile = 360. / numberOfTiles; coord_per_y_tile = 180. / numberOfTiles; } diff --git a/lib/QMapControl/src/yahoomapadapter.cpp b/lib/QMapControl/src/yahoomapadapter.cpp index 863d7c2089a246f1c8eee9e820f3c157e84adbfd..b264080552e2ab7832494322debbf8b8e6da351d 100644 --- a/lib/QMapControl/src/yahoomapadapter.cpp +++ b/lib/QMapControl/src/yahoomapadapter.cpp @@ -30,13 +30,13 @@ namespace qmapcontrol : TileMapAdapter("png.maps.yimg.com", "/png?v=3.1.0&x=%2&y=%3&z=%1", 256, 17,0) { int zoom = max_zoom < min_zoom ? min_zoom - current_zoom : current_zoom; - numberOfTiles = pow(2, zoom+1); + numberOfTiles = pow(2.0, zoom+1); } YahooMapAdapter::YahooMapAdapter(QString host, QString url) : TileMapAdapter(host, url, 256, 17,0) { int zoom = max_zoom < min_zoom ? min_zoom - current_zoom : current_zoom; - numberOfTiles = pow(2, zoom+1); + numberOfTiles = pow(2.0, zoom+1); } YahooMapAdapter::~YahooMapAdapter() { @@ -49,14 +49,14 @@ namespace qmapcontrol int YahooMapAdapter::tilesonzoomlevel(int zoomlevel) const { - return int(pow(2, zoomlevel+1)); + return int(pow(2.0, zoomlevel+1)); } int YahooMapAdapter::yoffset(int y) const { int zoom = max_zoom < min_zoom ? min_zoom - current_zoom : current_zoom; - int tiles = int(pow(2, zoom)); + int tiles = int(pow(2.0, zoom)); y = y*(-1)+tiles-1; return int(y); } diff --git a/lib/mac32-gcc40/frameworks/.gitignore b/lib/mac32-gcc40/frameworks/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..39aa8067655ced203e5e936db165559cad9040d8 --- /dev/null +++ b/lib/mac32-gcc40/frameworks/.gitignore @@ -0,0 +1,2 @@ +*.framework +osgPlugins* diff --git a/lib/mac32-gcc40/frameworks/README b/lib/mac32-gcc40/frameworks/README new file mode 100644 index 0000000000000000000000000000000000000000..2436e3d15e557bb60a2adcecf99663c59df5963b --- /dev/null +++ b/lib/mac32-gcc40/frameworks/README @@ -0,0 +1,3 @@ +For instructions how to download or build the frameworks necessary to get OSG / osgEarth support, please refer to the QGroundControl wiki: + +http://qgroundcontrol.org/dev/open_scene_graph diff --git a/lib/mac32-gcc40/include/.gitignore b/lib/mac32-gcc40/include/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..256a7a811270f51885b8d016129ba17789fb45ee --- /dev/null +++ b/lib/mac32-gcc40/include/.gitignore @@ -0,0 +1,2 @@ +OpenThreads +osg* diff --git a/lib/mac32-gcc40/include/curl/curl.h b/lib/mac32-gcc40/include/curl/curl.h new file mode 100644 index 0000000000000000000000000000000000000000..cb9d0fbfbf5a98ec19e78bd37f868e78371abb01 --- /dev/null +++ b/lib/mac32-gcc40/include/curl/curl.h @@ -0,0 +1,2119 @@ +#ifndef __CURL_CURL_H +#define __CURL_CURL_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2010, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ + +/* + * If you have libcurl problems, all docs and details are found here: + * http://curl.haxx.se/libcurl/ + * + * curl-library mailing list subscription and unsubscription web interface: + * http://cool.haxx.se/mailman/listinfo/curl-library/ + */ + +#include "curlver.h" /* libcurl version defines */ +#include "curlbuild.h" /* libcurl build definitions */ +#include "curlrules.h" /* libcurl rules enforcement */ + +/* + * Define WIN32 when build target is Win32 API + */ + +#if (defined(_WIN32) || defined(__WIN32__)) && \ + !defined(WIN32) && !defined(__SYMBIAN32__) +#define WIN32 +#endif + +#include +#include + +#if defined(__FreeBSD__) && (__FreeBSD__ >= 2) +/* Needed for __FreeBSD_version symbol definition */ +#include +#endif + +/* The include stuff here below is mainly for time_t! */ +#include +#include + +#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__GNUC__) && \ + !defined(__CYGWIN__) || defined(__MINGW32__) +#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H)) +/* The check above prevents the winsock2 inclusion if winsock.h already was + included, since they can't co-exist without problems */ +#include +#include +#endif +#else + +/* HP-UX systems version 9, 10 and 11 lack sys/select.h and so does oldish + libc5-based Linux systems. Only include it on system that are known to + require it! */ +#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \ + defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \ + defined(ANDROID) || \ + (defined(__FreeBSD_version) && (__FreeBSD_version < 800000)) +#include +#endif + +#ifndef _WIN32_WCE +#include +#endif +#if !defined(WIN32) && !defined(__WATCOMC__) && !defined(__VXWORKS__) +#include +#endif +#include +#endif + +#ifdef __BEOS__ +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void CURL; + +/* + * Decorate exportable functions for Win32 and Symbian OS DLL linking. + * This avoids using a .def file for building libcurl.dll. + */ +#if (defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__)) && \ + !defined(CURL_STATICLIB) +#if defined(BUILDING_LIBCURL) +#define CURL_EXTERN __declspec(dllexport) +#else +#define CURL_EXTERN __declspec(dllimport) +#endif +#else + +#ifdef CURL_HIDDEN_SYMBOLS +/* + * This definition is used to make external definitions visible in the + * shared library when symbols are hidden by default. It makes no + * difference when compiling applications whether this is set or not, + * only when compiling the library. + */ +#define CURL_EXTERN CURL_EXTERN_SYMBOL +#else +#define CURL_EXTERN +#endif +#endif + +#ifndef curl_socket_typedef +/* socket typedef */ +#ifdef WIN32 +typedef SOCKET curl_socket_t; +#define CURL_SOCKET_BAD INVALID_SOCKET +#else +typedef int curl_socket_t; +#define CURL_SOCKET_BAD -1 +#endif +#define curl_socket_typedef +#endif /* curl_socket_typedef */ + +struct curl_httppost { + struct curl_httppost *next; /* next entry in the list */ + char *name; /* pointer to allocated name */ + long namelength; /* length of name length */ + char *contents; /* pointer to allocated data contents */ + long contentslength; /* length of contents field */ + char *buffer; /* pointer to allocated buffer contents */ + long bufferlength; /* length of buffer field */ + char *contenttype; /* Content-Type */ + struct curl_slist* contentheader; /* list of extra headers for this form */ + struct curl_httppost *more; /* if one field name has more than one + file, this link should link to following + files */ + long flags; /* as defined below */ +#define HTTPPOST_FILENAME (1<<0) /* specified content is a file name */ +#define HTTPPOST_READFILE (1<<1) /* specified content is a file name */ +#define HTTPPOST_PTRNAME (1<<2) /* name is only stored pointer + do not free in formfree */ +#define HTTPPOST_PTRCONTENTS (1<<3) /* contents is only stored pointer + do not free in formfree */ +#define HTTPPOST_BUFFER (1<<4) /* upload file from buffer */ +#define HTTPPOST_PTRBUFFER (1<<5) /* upload file from pointer contents */ +#define HTTPPOST_CALLBACK (1<<6) /* upload file contents by using the + regular read callback to get the data + and pass the given pointer as custom + pointer */ + + char *showfilename; /* The file name to show. If not set, the + actual file name will be used (if this + is a file part) */ + void *userp; /* custom pointer used for + HTTPPOST_CALLBACK posts */ +}; + +typedef int (*curl_progress_callback)(void *clientp, + double dltotal, + double dlnow, + double ultotal, + double ulnow); + +#ifndef CURL_MAX_WRITE_SIZE + /* Tests have proven that 20K is a very bad buffer size for uploads on + Windows, while 16K for some odd reason performed a lot better. + We do the ifndef check to allow this value to easier be changed at build + time for those who feel adventurous. The practical minimum is about + 400 bytes since libcurl uses a buffer of this size as a scratch area + (unrelated to network send operations). */ +#define CURL_MAX_WRITE_SIZE 16384 +#endif + +#ifndef CURL_MAX_HTTP_HEADER +/* The only reason to have a max limit for this is to avoid the risk of a bad + server feeding libcurl with a never-ending header that will cause reallocs + infinitely */ +#define CURL_MAX_HTTP_HEADER (100*1024) +#endif + + +/* This is a magic return code for the write callback that, when returned, + will signal libcurl to pause receiving on the current transfer. */ +#define CURL_WRITEFUNC_PAUSE 0x10000001 +typedef size_t (*curl_write_callback)(char *buffer, + size_t size, + size_t nitems, + void *outstream); + + + +/* enumeration of file types */ +typedef enum { + CURLFILETYPE_FILE = 0, + CURLFILETYPE_DIRECTORY, + CURLFILETYPE_SYMLINK, + CURLFILETYPE_DEVICE_BLOCK, + CURLFILETYPE_DEVICE_CHAR, + CURLFILETYPE_NAMEDPIPE, + CURLFILETYPE_SOCKET, + CURLFILETYPE_DOOR, /* is possible only on Sun Solaris now */ + + CURLFILETYPE_UNKNOWN /* should never occur */ +} curlfiletype; + +#define CURLFINFOFLAG_KNOWN_FILENAME (1<<0) +#define CURLFINFOFLAG_KNOWN_FILETYPE (1<<1) +#define CURLFINFOFLAG_KNOWN_TIME (1<<2) +#define CURLFINFOFLAG_KNOWN_PERM (1<<3) +#define CURLFINFOFLAG_KNOWN_UID (1<<4) +#define CURLFINFOFLAG_KNOWN_GID (1<<5) +#define CURLFINFOFLAG_KNOWN_SIZE (1<<6) +#define CURLFINFOFLAG_KNOWN_HLINKCOUNT (1<<7) + +/* Content of this structure depends on information which is known and is + achievable (e.g. by FTP LIST parsing). Please see the url_easy_setopt(3) man + page for callbacks returning this structure -- some fields are mandatory, + some others are optional. The FLAG field has special meaning. */ +struct curl_fileinfo { + char *filename; + curlfiletype filetype; + time_t time; + unsigned int perm; + int uid; + int gid; + curl_off_t size; + long int hardlinks; + + struct { + /* If some of these fields is not NULL, it is a pointer to b_data. */ + char *time; + char *perm; + char *user; + char *group; + char *target; /* pointer to the target filename of a symlink */ + } strings; + + unsigned int flags; + + /* used internally */ + char * b_data; + size_t b_size; + size_t b_used; +}; + +/* return codes for CURLOPT_CHUNK_BGN_FUNCTION */ +#define CURL_CHUNK_BGN_FUNC_OK 0 +#define CURL_CHUNK_BGN_FUNC_FAIL 1 /* tell the lib to end the task */ +#define CURL_CHUNK_BGN_FUNC_SKIP 2 /* skip this chunk over */ + +/* if splitting of data transfer is enabled, this callback is called before + download of an individual chunk started. Note that parameter "remains" works + only for FTP wildcard downloading (for now), otherwise is not used */ +typedef long (*curl_chunk_bgn_callback)(const void *transfer_info, + void *ptr, + int remains); + +/* return codes for CURLOPT_CHUNK_END_FUNCTION */ +#define CURL_CHUNK_END_FUNC_OK 0 +#define CURL_CHUNK_END_FUNC_FAIL 1 /* tell the lib to end the task */ + +/* If splitting of data transfer is enabled this callback is called after + download of an individual chunk finished. + Note! After this callback was set then it have to be called FOR ALL chunks. + Even if downloading of this chunk was skipped in CHUNK_BGN_FUNC. + This is the reason why we don't need "transfer_info" parameter in this + callback and we are not interested in "remains" parameter too. */ +typedef long (*curl_chunk_end_callback)(void *ptr); + +/* return codes for FNMATCHFUNCTION */ +#define CURL_FNMATCHFUNC_MATCH 0 /* string corresponds to the pattern */ +#define CURL_FNMATCHFUNC_NOMATCH 1 /* pattern doesn't match the string */ +#define CURL_FNMATCHFUNC_FAIL 2 /* an error occurred */ + +/* callback type for wildcard downloading pattern matching. If the + string matches the pattern, return CURL_FNMATCHFUNC_MATCH value, etc. */ +typedef int (*curl_fnmatch_callback)(void *ptr, + const char *pattern, + const char *string); + +/* These are the return codes for the seek callbacks */ +#define CURL_SEEKFUNC_OK 0 +#define CURL_SEEKFUNC_FAIL 1 /* fail the entire transfer */ +#define CURL_SEEKFUNC_CANTSEEK 2 /* tell libcurl seeking can't be done, so + libcurl might try other means instead */ +typedef int (*curl_seek_callback)(void *instream, + curl_off_t offset, + int origin); /* 'whence' */ + +/* This is a return code for the read callback that, when returned, will + signal libcurl to immediately abort the current transfer. */ +#define CURL_READFUNC_ABORT 0x10000000 +/* This is a return code for the read callback that, when returned, will + signal libcurl to pause sending data on the current transfer. */ +#define CURL_READFUNC_PAUSE 0x10000001 + +typedef size_t (*curl_read_callback)(char *buffer, + size_t size, + size_t nitems, + void *instream); + +typedef enum { + CURLSOCKTYPE_IPCXN, /* socket created for a specific IP connection */ + CURLSOCKTYPE_LAST /* never use */ +} curlsocktype; + +typedef int (*curl_sockopt_callback)(void *clientp, + curl_socket_t curlfd, + curlsocktype purpose); + +struct curl_sockaddr { + int family; + int socktype; + int protocol; + unsigned int addrlen; /* addrlen was a socklen_t type before 7.18.0 but it + turned really ugly and painful on the systems that + lack this type */ + struct sockaddr addr; +}; + +typedef curl_socket_t +(*curl_opensocket_callback)(void *clientp, + curlsocktype purpose, + struct curl_sockaddr *address); + +typedef enum { + CURLIOE_OK, /* I/O operation successful */ + CURLIOE_UNKNOWNCMD, /* command was unknown to callback */ + CURLIOE_FAILRESTART, /* failed to restart the read */ + CURLIOE_LAST /* never use */ +} curlioerr; + +typedef enum { + CURLIOCMD_NOP, /* no operation */ + CURLIOCMD_RESTARTREAD, /* restart the read stream from start */ + CURLIOCMD_LAST /* never use */ +} curliocmd; + +typedef curlioerr (*curl_ioctl_callback)(CURL *handle, + int cmd, + void *clientp); + +/* + * The following typedef's are signatures of malloc, free, realloc, strdup and + * calloc respectively. Function pointers of these types can be passed to the + * curl_global_init_mem() function to set user defined memory management + * callback routines. + */ +typedef void *(*curl_malloc_callback)(size_t size); +typedef void (*curl_free_callback)(void *ptr); +typedef void *(*curl_realloc_callback)(void *ptr, size_t size); +typedef char *(*curl_strdup_callback)(const char *str); +typedef void *(*curl_calloc_callback)(size_t nmemb, size_t size); + +/* the kind of data that is passed to information_callback*/ +typedef enum { + CURLINFO_TEXT = 0, + CURLINFO_HEADER_IN, /* 1 */ + CURLINFO_HEADER_OUT, /* 2 */ + CURLINFO_DATA_IN, /* 3 */ + CURLINFO_DATA_OUT, /* 4 */ + CURLINFO_SSL_DATA_IN, /* 5 */ + CURLINFO_SSL_DATA_OUT, /* 6 */ + CURLINFO_END +} curl_infotype; + +typedef int (*curl_debug_callback) + (CURL *handle, /* the handle/transfer this concerns */ + curl_infotype type, /* what kind of data */ + char *data, /* points to the data */ + size_t size, /* size of the data pointed to */ + void *userptr); /* whatever the user please */ + +/* All possible error codes from all sorts of curl functions. Future versions + may return other values, stay prepared. + + Always add new return codes last. Never *EVER* remove any. The return + codes must remain the same! + */ + +typedef enum { + CURLE_OK = 0, + CURLE_UNSUPPORTED_PROTOCOL, /* 1 */ + CURLE_FAILED_INIT, /* 2 */ + CURLE_URL_MALFORMAT, /* 3 */ + CURLE_OBSOLETE4, /* 4 - NOT USED */ + CURLE_COULDNT_RESOLVE_PROXY, /* 5 */ + CURLE_COULDNT_RESOLVE_HOST, /* 6 */ + CURLE_COULDNT_CONNECT, /* 7 */ + CURLE_FTP_WEIRD_SERVER_REPLY, /* 8 */ + CURLE_REMOTE_ACCESS_DENIED, /* 9 a service was denied by the server + due to lack of access - when login fails + this is not returned. */ + CURLE_OBSOLETE10, /* 10 - NOT USED */ + CURLE_FTP_WEIRD_PASS_REPLY, /* 11 */ + CURLE_OBSOLETE12, /* 12 - NOT USED */ + CURLE_FTP_WEIRD_PASV_REPLY, /* 13 */ + CURLE_FTP_WEIRD_227_FORMAT, /* 14 */ + CURLE_FTP_CANT_GET_HOST, /* 15 */ + CURLE_OBSOLETE16, /* 16 - NOT USED */ + CURLE_FTP_COULDNT_SET_TYPE, /* 17 */ + CURLE_PARTIAL_FILE, /* 18 */ + CURLE_FTP_COULDNT_RETR_FILE, /* 19 */ + CURLE_OBSOLETE20, /* 20 - NOT USED */ + CURLE_QUOTE_ERROR, /* 21 - quote command failure */ + CURLE_HTTP_RETURNED_ERROR, /* 22 */ + CURLE_WRITE_ERROR, /* 23 */ + CURLE_OBSOLETE24, /* 24 - NOT USED */ + CURLE_UPLOAD_FAILED, /* 25 - failed upload "command" */ + CURLE_READ_ERROR, /* 26 - couldn't open/read from file */ + CURLE_OUT_OF_MEMORY, /* 27 */ + /* Note: CURLE_OUT_OF_MEMORY may sometimes indicate a conversion error + instead of a memory allocation error if CURL_DOES_CONVERSIONS + is defined + */ + CURLE_OPERATION_TIMEDOUT, /* 28 - the timeout time was reached */ + CURLE_OBSOLETE29, /* 29 - NOT USED */ + CURLE_FTP_PORT_FAILED, /* 30 - FTP PORT operation failed */ + CURLE_FTP_COULDNT_USE_REST, /* 31 - the REST command failed */ + CURLE_OBSOLETE32, /* 32 - NOT USED */ + CURLE_RANGE_ERROR, /* 33 - RANGE "command" didn't work */ + CURLE_HTTP_POST_ERROR, /* 34 */ + CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */ + CURLE_BAD_DOWNLOAD_RESUME, /* 36 - couldn't resume download */ + CURLE_FILE_COULDNT_READ_FILE, /* 37 */ + CURLE_LDAP_CANNOT_BIND, /* 38 */ + CURLE_LDAP_SEARCH_FAILED, /* 39 */ + CURLE_OBSOLETE40, /* 40 - NOT USED */ + CURLE_FUNCTION_NOT_FOUND, /* 41 */ + CURLE_ABORTED_BY_CALLBACK, /* 42 */ + CURLE_BAD_FUNCTION_ARGUMENT, /* 43 */ + CURLE_OBSOLETE44, /* 44 - NOT USED */ + CURLE_INTERFACE_FAILED, /* 45 - CURLOPT_INTERFACE failed */ + CURLE_OBSOLETE46, /* 46 - NOT USED */ + CURLE_TOO_MANY_REDIRECTS , /* 47 - catch endless re-direct loops */ + CURLE_UNKNOWN_TELNET_OPTION, /* 48 - User specified an unknown option */ + CURLE_TELNET_OPTION_SYNTAX , /* 49 - Malformed telnet option */ + CURLE_OBSOLETE50, /* 50 - NOT USED */ + CURLE_PEER_FAILED_VERIFICATION, /* 51 - peer's certificate or fingerprint + wasn't verified fine */ + CURLE_GOT_NOTHING, /* 52 - when this is a specific error */ + CURLE_SSL_ENGINE_NOTFOUND, /* 53 - SSL crypto engine not found */ + CURLE_SSL_ENGINE_SETFAILED, /* 54 - can not set SSL crypto engine as + default */ + CURLE_SEND_ERROR, /* 55 - failed sending network data */ + CURLE_RECV_ERROR, /* 56 - failure in receiving network data */ + CURLE_OBSOLETE57, /* 57 - NOT IN USE */ + CURLE_SSL_CERTPROBLEM, /* 58 - problem with the local certificate */ + CURLE_SSL_CIPHER, /* 59 - couldn't use specified cipher */ + CURLE_SSL_CACERT, /* 60 - problem with the CA cert (path?) */ + CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized transfer encoding */ + CURLE_LDAP_INVALID_URL, /* 62 - Invalid LDAP URL */ + CURLE_FILESIZE_EXCEEDED, /* 63 - Maximum file size exceeded */ + CURLE_USE_SSL_FAILED, /* 64 - Requested FTP SSL level failed */ + CURLE_SEND_FAIL_REWIND, /* 65 - Sending the data requires a rewind + that failed */ + CURLE_SSL_ENGINE_INITFAILED, /* 66 - failed to initialise ENGINE */ + CURLE_LOGIN_DENIED, /* 67 - user, password or similar was not + accepted and we failed to login */ + CURLE_TFTP_NOTFOUND, /* 68 - file not found on server */ + CURLE_TFTP_PERM, /* 69 - permission problem on server */ + CURLE_REMOTE_DISK_FULL, /* 70 - out of disk space on server */ + CURLE_TFTP_ILLEGAL, /* 71 - Illegal TFTP operation */ + CURLE_TFTP_UNKNOWNID, /* 72 - Unknown transfer ID */ + CURLE_REMOTE_FILE_EXISTS, /* 73 - File already exists */ + CURLE_TFTP_NOSUCHUSER, /* 74 - No such user */ + CURLE_CONV_FAILED, /* 75 - conversion failed */ + CURLE_CONV_REQD, /* 76 - caller must register conversion + callbacks using curl_easy_setopt options + CURLOPT_CONV_FROM_NETWORK_FUNCTION, + CURLOPT_CONV_TO_NETWORK_FUNCTION, and + CURLOPT_CONV_FROM_UTF8_FUNCTION */ + CURLE_SSL_CACERT_BADFILE, /* 77 - could not load CACERT file, missing + or wrong format */ + CURLE_REMOTE_FILE_NOT_FOUND, /* 78 - remote file not found */ + CURLE_SSH, /* 79 - error from the SSH layer, somewhat + generic so the error message will be of + interest when this has happened */ + + CURLE_SSL_SHUTDOWN_FAILED, /* 80 - Failed to shut down the SSL + connection */ + CURLE_AGAIN, /* 81 - socket is not ready for send/recv, + wait till it's ready and try again (Added + in 7.18.2) */ + CURLE_SSL_CRL_BADFILE, /* 82 - could not load CRL file, missing or + wrong format (Added in 7.19.0) */ + CURLE_SSL_ISSUER_ERROR, /* 83 - Issuer check failed. (Added in + 7.19.0) */ + CURLE_FTP_PRET_FAILED, /* 84 - a PRET command failed */ + CURLE_RTSP_CSEQ_ERROR, /* 85 - mismatch of RTSP CSeq numbers */ + CURLE_RTSP_SESSION_ERROR, /* 86 - mismatch of RTSP Session Identifiers */ + CURLE_FTP_BAD_FILE_LIST, /* 87 - unable to parse FTP file list */ + CURLE_CHUNK_FAILED, /* 88 - chunk callback reported error */ + + CURL_LAST /* never use! */ +} CURLcode; + +#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all + the obsolete stuff removed! */ + +/* Backwards compatibility with older names */ + +/* The following were added in 7.17.1 */ +/* These are scheduled to disappear by 2009 */ +#define CURLE_SSL_PEER_CERTIFICATE CURLE_PEER_FAILED_VERIFICATION + +/* The following were added in 7.17.0 */ +/* These are scheduled to disappear by 2009 */ +#define CURLE_OBSOLETE CURLE_OBSOLETE50 /* noone should be using this! */ +#define CURLE_BAD_PASSWORD_ENTERED CURLE_OBSOLETE46 +#define CURLE_BAD_CALLING_ORDER CURLE_OBSOLETE44 +#define CURLE_FTP_USER_PASSWORD_INCORRECT CURLE_OBSOLETE10 +#define CURLE_FTP_CANT_RECONNECT CURLE_OBSOLETE16 +#define CURLE_FTP_COULDNT_GET_SIZE CURLE_OBSOLETE32 +#define CURLE_FTP_COULDNT_SET_ASCII CURLE_OBSOLETE29 +#define CURLE_FTP_WEIRD_USER_REPLY CURLE_OBSOLETE12 +#define CURLE_FTP_WRITE_ERROR CURLE_OBSOLETE20 +#define CURLE_LIBRARY_NOT_FOUND CURLE_OBSOLETE40 +#define CURLE_MALFORMAT_USER CURLE_OBSOLETE24 +#define CURLE_SHARE_IN_USE CURLE_OBSOLETE57 +#define CURLE_URL_MALFORMAT_USER CURLE_OBSOLETE4 + +#define CURLE_FTP_ACCESS_DENIED CURLE_REMOTE_ACCESS_DENIED +#define CURLE_FTP_COULDNT_SET_BINARY CURLE_FTP_COULDNT_SET_TYPE +#define CURLE_FTP_QUOTE_ERROR CURLE_QUOTE_ERROR +#define CURLE_TFTP_DISKFULL CURLE_REMOTE_DISK_FULL +#define CURLE_TFTP_EXISTS CURLE_REMOTE_FILE_EXISTS +#define CURLE_HTTP_RANGE_ERROR CURLE_RANGE_ERROR +#define CURLE_FTP_SSL_FAILED CURLE_USE_SSL_FAILED + +/* The following were added earlier */ + +#define CURLE_OPERATION_TIMEOUTED CURLE_OPERATION_TIMEDOUT + +#define CURLE_HTTP_NOT_FOUND CURLE_HTTP_RETURNED_ERROR +#define CURLE_HTTP_PORT_FAILED CURLE_INTERFACE_FAILED +#define CURLE_FTP_COULDNT_STOR_FILE CURLE_UPLOAD_FAILED + +#define CURLE_FTP_PARTIAL_FILE CURLE_PARTIAL_FILE +#define CURLE_FTP_BAD_DOWNLOAD_RESUME CURLE_BAD_DOWNLOAD_RESUME + +/* This was the error code 50 in 7.7.3 and a few earlier versions, this + is no longer used by libcurl but is instead #defined here only to not + make programs break */ +#define CURLE_ALREADY_COMPLETE 99999 + +#endif /*!CURL_NO_OLDIES*/ + +/* This prototype applies to all conversion callbacks */ +typedef CURLcode (*curl_conv_callback)(char *buffer, size_t length); + +typedef CURLcode (*curl_ssl_ctx_callback)(CURL *curl, /* easy handle */ + void *ssl_ctx, /* actually an + OpenSSL SSL_CTX */ + void *userptr); + +typedef enum { + CURLPROXY_HTTP = 0, /* added in 7.10, new in 7.19.4 default is to use + CONNECT HTTP/1.1 */ + CURLPROXY_HTTP_1_0 = 1, /* added in 7.19.4, force to use CONNECT + HTTP/1.0 */ + CURLPROXY_SOCKS4 = 4, /* support added in 7.15.2, enum existed already + in 7.10 */ + CURLPROXY_SOCKS5 = 5, /* added in 7.10 */ + CURLPROXY_SOCKS4A = 6, /* added in 7.18.0 */ + CURLPROXY_SOCKS5_HOSTNAME = 7 /* Use the SOCKS5 protocol but pass along the + host name rather than the IP address. added + in 7.18.0 */ +} curl_proxytype; /* this enum was added in 7.10 */ + +#define CURLAUTH_NONE 0 /* nothing */ +#define CURLAUTH_BASIC (1<<0) /* Basic (default) */ +#define CURLAUTH_DIGEST (1<<1) /* Digest */ +#define CURLAUTH_GSSNEGOTIATE (1<<2) /* GSS-Negotiate */ +#define CURLAUTH_NTLM (1<<3) /* NTLM */ +#define CURLAUTH_DIGEST_IE (1<<4) /* Digest with IE flavour */ +#define CURLAUTH_ANY (~CURLAUTH_DIGEST_IE) /* all fine types set */ +#define CURLAUTH_ANYSAFE (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE)) + +#define CURLSSH_AUTH_ANY ~0 /* all types supported by the server */ +#define CURLSSH_AUTH_NONE 0 /* none allowed, silly but complete */ +#define CURLSSH_AUTH_PUBLICKEY (1<<0) /* public/private key files */ +#define CURLSSH_AUTH_PASSWORD (1<<1) /* password */ +#define CURLSSH_AUTH_HOST (1<<2) /* host key files */ +#define CURLSSH_AUTH_KEYBOARD (1<<3) /* keyboard interactive */ +#define CURLSSH_AUTH_DEFAULT CURLSSH_AUTH_ANY + +#define CURL_ERROR_SIZE 256 + +struct curl_khkey { + const char *key; /* points to a zero-terminated string encoded with base64 + if len is zero, otherwise to the "raw" data */ + size_t len; + enum type { + CURLKHTYPE_UNKNOWN, + CURLKHTYPE_RSA1, + CURLKHTYPE_RSA, + CURLKHTYPE_DSS + } keytype; +}; + +/* this is the set of return values expected from the curl_sshkeycallback + callback */ +enum curl_khstat { + CURLKHSTAT_FINE_ADD_TO_FILE, + CURLKHSTAT_FINE, + CURLKHSTAT_REJECT, /* reject the connection, return an error */ + CURLKHSTAT_DEFER, /* do not accept it, but we can't answer right now so + this causes a CURLE_DEFER error but otherwise the + connection will be left intact etc */ + CURLKHSTAT_LAST /* not for use, only a marker for last-in-list */ +}; + +/* this is the set of status codes pass in to the callback */ +enum curl_khmatch { + CURLKHMATCH_OK, /* match */ + CURLKHMATCH_MISMATCH, /* host found, key mismatch! */ + CURLKHMATCH_MISSING, /* no matching host/key found */ + CURLKHMATCH_LAST /* not for use, only a marker for last-in-list */ +}; + +typedef int + (*curl_sshkeycallback) (CURL *easy, /* easy handle */ + const struct curl_khkey *knownkey, /* known */ + const struct curl_khkey *foundkey, /* found */ + enum curl_khmatch, /* libcurl's view on the keys */ + void *clientp); /* custom pointer passed from app */ + +/* parameter for the CURLOPT_USE_SSL option */ +typedef enum { + CURLUSESSL_NONE, /* do not attempt to use SSL */ + CURLUSESSL_TRY, /* try using SSL, proceed anyway otherwise */ + CURLUSESSL_CONTROL, /* SSL for the control connection or fail */ + CURLUSESSL_ALL, /* SSL for all communication or fail */ + CURLUSESSL_LAST /* not an option, never use */ +} curl_usessl; + +#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all + the obsolete stuff removed! */ + +/* Backwards compatibility with older names */ +/* These are scheduled to disappear by 2009 */ + +#define CURLFTPSSL_NONE CURLUSESSL_NONE +#define CURLFTPSSL_TRY CURLUSESSL_TRY +#define CURLFTPSSL_CONTROL CURLUSESSL_CONTROL +#define CURLFTPSSL_ALL CURLUSESSL_ALL +#define CURLFTPSSL_LAST CURLUSESSL_LAST +#define curl_ftpssl curl_usessl +#endif /*!CURL_NO_OLDIES*/ + +/* parameter for the CURLOPT_FTP_SSL_CCC option */ +typedef enum { + CURLFTPSSL_CCC_NONE, /* do not send CCC */ + CURLFTPSSL_CCC_PASSIVE, /* Let the server initiate the shutdown */ + CURLFTPSSL_CCC_ACTIVE, /* Initiate the shutdown */ + CURLFTPSSL_CCC_LAST /* not an option, never use */ +} curl_ftpccc; + +/* parameter for the CURLOPT_FTPSSLAUTH option */ +typedef enum { + CURLFTPAUTH_DEFAULT, /* let libcurl decide */ + CURLFTPAUTH_SSL, /* use "AUTH SSL" */ + CURLFTPAUTH_TLS, /* use "AUTH TLS" */ + CURLFTPAUTH_LAST /* not an option, never use */ +} curl_ftpauth; + +/* parameter for the CURLOPT_FTP_CREATE_MISSING_DIRS option */ +typedef enum { + CURLFTP_CREATE_DIR_NONE, /* do NOT create missing dirs! */ + CURLFTP_CREATE_DIR, /* (FTP/SFTP) if CWD fails, try MKD and then CWD + again if MKD succeeded, for SFTP this does + similar magic */ + CURLFTP_CREATE_DIR_RETRY, /* (FTP only) if CWD fails, try MKD and then CWD + again even if MKD failed! */ + CURLFTP_CREATE_DIR_LAST /* not an option, never use */ +} curl_ftpcreatedir; + +/* parameter for the CURLOPT_FTP_FILEMETHOD option */ +typedef enum { + CURLFTPMETHOD_DEFAULT, /* let libcurl pick */ + CURLFTPMETHOD_MULTICWD, /* single CWD operation for each path part */ + CURLFTPMETHOD_NOCWD, /* no CWD at all */ + CURLFTPMETHOD_SINGLECWD, /* one CWD to full dir, then work on file */ + CURLFTPMETHOD_LAST /* not an option, never use */ +} curl_ftpmethod; + +/* CURLPROTO_ defines are for the CURLOPT_*PROTOCOLS options */ +#define CURLPROTO_HTTP (1<<0) +#define CURLPROTO_HTTPS (1<<1) +#define CURLPROTO_FTP (1<<2) +#define CURLPROTO_FTPS (1<<3) +#define CURLPROTO_SCP (1<<4) +#define CURLPROTO_SFTP (1<<5) +#define CURLPROTO_TELNET (1<<6) +#define CURLPROTO_LDAP (1<<7) +#define CURLPROTO_LDAPS (1<<8) +#define CURLPROTO_DICT (1<<9) +#define CURLPROTO_FILE (1<<10) +#define CURLPROTO_TFTP (1<<11) +#define CURLPROTO_IMAP (1<<12) +#define CURLPROTO_IMAPS (1<<13) +#define CURLPROTO_POP3 (1<<14) +#define CURLPROTO_POP3S (1<<15) +#define CURLPROTO_SMTP (1<<16) +#define CURLPROTO_SMTPS (1<<17) +#define CURLPROTO_RTSP (1<<18) +#define CURLPROTO_RTMP (1<<19) +#define CURLPROTO_RTMPT (1<<20) +#define CURLPROTO_RTMPE (1<<21) +#define CURLPROTO_RTMPTE (1<<22) +#define CURLPROTO_RTMPS (1<<23) +#define CURLPROTO_RTMPTS (1<<24) +#define CURLPROTO_GOPHER (1<<25) +#define CURLPROTO_ALL (~0) /* enable everything */ + +/* long may be 32 or 64 bits, but we should never depend on anything else + but 32 */ +#define CURLOPTTYPE_LONG 0 +#define CURLOPTTYPE_OBJECTPOINT 10000 +#define CURLOPTTYPE_FUNCTIONPOINT 20000 +#define CURLOPTTYPE_OFF_T 30000 + +/* name is uppercase CURLOPT_, + type is one of the defined CURLOPTTYPE_ + number is unique identifier */ +#ifdef CINIT +#undef CINIT +#endif + +#ifdef CURL_ISOCPP +#define CINIT(name,type,number) CURLOPT_ ## name = CURLOPTTYPE_ ## type + number +#else +/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */ +#define LONG CURLOPTTYPE_LONG +#define OBJECTPOINT CURLOPTTYPE_OBJECTPOINT +#define FUNCTIONPOINT CURLOPTTYPE_FUNCTIONPOINT +#define OFF_T CURLOPTTYPE_OFF_T +#define CINIT(name,type,number) CURLOPT_/**/name = type + number +#endif + +/* + * This macro-mania below setups the CURLOPT_[what] enum, to be used with + * curl_easy_setopt(). The first argument in the CINIT() macro is the [what] + * word. + */ + +typedef enum { + /* This is the FILE * or void * the regular output should be written to. */ + CINIT(FILE, OBJECTPOINT, 1), + + /* The full URL to get/put */ + CINIT(URL, OBJECTPOINT, 2), + + /* Port number to connect to, if other than default. */ + CINIT(PORT, LONG, 3), + + /* Name of proxy to use. */ + CINIT(PROXY, OBJECTPOINT, 4), + + /* "name:password" to use when fetching. */ + CINIT(USERPWD, OBJECTPOINT, 5), + + /* "name:password" to use with proxy. */ + CINIT(PROXYUSERPWD, OBJECTPOINT, 6), + + /* Range to get, specified as an ASCII string. */ + CINIT(RANGE, OBJECTPOINT, 7), + + /* not used */ + + /* Specified file stream to upload from (use as input): */ + CINIT(INFILE, OBJECTPOINT, 9), + + /* Buffer to receive error messages in, must be at least CURL_ERROR_SIZE + * bytes big. If this is not used, error messages go to stderr instead: */ + CINIT(ERRORBUFFER, OBJECTPOINT, 10), + + /* Function that will be called to store the output (instead of fwrite). The + * parameters will use fwrite() syntax, make sure to follow them. */ + CINIT(WRITEFUNCTION, FUNCTIONPOINT, 11), + + /* Function that will be called to read the input (instead of fread). The + * parameters will use fread() syntax, make sure to follow them. */ + CINIT(READFUNCTION, FUNCTIONPOINT, 12), + + /* Time-out the read operation after this amount of seconds */ + CINIT(TIMEOUT, LONG, 13), + + /* If the CURLOPT_INFILE is used, this can be used to inform libcurl about + * how large the file being sent really is. That allows better error + * checking and better verifies that the upload was successful. -1 means + * unknown size. + * + * For large file support, there is also a _LARGE version of the key + * which takes an off_t type, allowing platforms with larger off_t + * sizes to handle larger files. See below for INFILESIZE_LARGE. + */ + CINIT(INFILESIZE, LONG, 14), + + /* POST static input fields. */ + CINIT(POSTFIELDS, OBJECTPOINT, 15), + + /* Set the referrer page (needed by some CGIs) */ + CINIT(REFERER, OBJECTPOINT, 16), + + /* Set the FTP PORT string (interface name, named or numerical IP address) + Use i.e '-' to use default address. */ + CINIT(FTPPORT, OBJECTPOINT, 17), + + /* Set the User-Agent string (examined by some CGIs) */ + CINIT(USERAGENT, OBJECTPOINT, 18), + + /* If the download receives less than "low speed limit" bytes/second + * during "low speed time" seconds, the operations is aborted. + * You could i.e if you have a pretty high speed connection, abort if + * it is less than 2000 bytes/sec during 20 seconds. + */ + + /* Set the "low speed limit" */ + CINIT(LOW_SPEED_LIMIT, LONG, 19), + + /* Set the "low speed time" */ + CINIT(LOW_SPEED_TIME, LONG, 20), + + /* Set the continuation offset. + * + * Note there is also a _LARGE version of this key which uses + * off_t types, allowing for large file offsets on platforms which + * use larger-than-32-bit off_t's. Look below for RESUME_FROM_LARGE. + */ + CINIT(RESUME_FROM, LONG, 21), + + /* Set cookie in request: */ + CINIT(COOKIE, OBJECTPOINT, 22), + + /* This points to a linked list of headers, struct curl_slist kind */ + CINIT(HTTPHEADER, OBJECTPOINT, 23), + + /* This points to a linked list of post entries, struct curl_httppost */ + CINIT(HTTPPOST, OBJECTPOINT, 24), + + /* name of the file keeping your private SSL-certificate */ + CINIT(SSLCERT, OBJECTPOINT, 25), + + /* password for the SSL or SSH private key */ + CINIT(KEYPASSWD, OBJECTPOINT, 26), + + /* send TYPE parameter? */ + CINIT(CRLF, LONG, 27), + + /* send linked-list of QUOTE commands */ + CINIT(QUOTE, OBJECTPOINT, 28), + + /* send FILE * or void * to store headers to, if you use a callback it + is simply passed to the callback unmodified */ + CINIT(WRITEHEADER, OBJECTPOINT, 29), + + /* point to a file to read the initial cookies from, also enables + "cookie awareness" */ + CINIT(COOKIEFILE, OBJECTPOINT, 31), + + /* What version to specifically try to use. + See CURL_SSLVERSION defines below. */ + CINIT(SSLVERSION, LONG, 32), + + /* What kind of HTTP time condition to use, see defines */ + CINIT(TIMECONDITION, LONG, 33), + + /* Time to use with the above condition. Specified in number of seconds + since 1 Jan 1970 */ + CINIT(TIMEVALUE, LONG, 34), + + /* 35 = OBSOLETE */ + + /* Custom request, for customizing the get command like + HTTP: DELETE, TRACE and others + FTP: to use a different list command + */ + CINIT(CUSTOMREQUEST, OBJECTPOINT, 36), + + /* HTTP request, for odd commands like DELETE, TRACE and others */ + CINIT(STDERR, OBJECTPOINT, 37), + + /* 38 is not used */ + + /* send linked-list of post-transfer QUOTE commands */ + CINIT(POSTQUOTE, OBJECTPOINT, 39), + + /* Pass a pointer to string of the output using full variable-replacement + as described elsewhere. */ + CINIT(WRITEINFO, OBJECTPOINT, 40), + + CINIT(VERBOSE, LONG, 41), /* talk a lot */ + CINIT(HEADER, LONG, 42), /* throw the header out too */ + CINIT(NOPROGRESS, LONG, 43), /* shut off the progress meter */ + CINIT(NOBODY, LONG, 44), /* use HEAD to get http document */ + CINIT(FAILONERROR, LONG, 45), /* no output on http error codes >= 300 */ + CINIT(UPLOAD, LONG, 46), /* this is an upload */ + CINIT(POST, LONG, 47), /* HTTP POST method */ + CINIT(DIRLISTONLY, LONG, 48), /* return bare names when listing directories */ + + CINIT(APPEND, LONG, 50), /* Append instead of overwrite on upload! */ + + /* Specify whether to read the user+password from the .netrc or the URL. + * This must be one of the CURL_NETRC_* enums below. */ + CINIT(NETRC, LONG, 51), + + CINIT(FOLLOWLOCATION, LONG, 52), /* use Location: Luke! */ + + CINIT(TRANSFERTEXT, LONG, 53), /* transfer data in text/ASCII format */ + CINIT(PUT, LONG, 54), /* HTTP PUT */ + + /* 55 = OBSOLETE */ + + /* Function that will be called instead of the internal progress display + * function. This function should be defined as the curl_progress_callback + * prototype defines. */ + CINIT(PROGRESSFUNCTION, FUNCTIONPOINT, 56), + + /* Data passed to the progress callback */ + CINIT(PROGRESSDATA, OBJECTPOINT, 57), + + /* We want the referrer field set automatically when following locations */ + CINIT(AUTOREFERER, LONG, 58), + + /* Port of the proxy, can be set in the proxy string as well with: + "[host]:[port]" */ + CINIT(PROXYPORT, LONG, 59), + + /* size of the POST input data, if strlen() is not good to use */ + CINIT(POSTFIELDSIZE, LONG, 60), + + /* tunnel non-http operations through a HTTP proxy */ + CINIT(HTTPPROXYTUNNEL, LONG, 61), + + /* Set the interface string to use as outgoing network interface */ + CINIT(INTERFACE, OBJECTPOINT, 62), + + /* Set the krb4/5 security level, this also enables krb4/5 awareness. This + * is a string, 'clear', 'safe', 'confidential' or 'private'. If the string + * is set but doesn't match one of these, 'private' will be used. */ + CINIT(KRBLEVEL, OBJECTPOINT, 63), + + /* Set if we should verify the peer in ssl handshake, set 1 to verify. */ + CINIT(SSL_VERIFYPEER, LONG, 64), + + /* The CApath or CAfile used to validate the peer certificate + this option is used only if SSL_VERIFYPEER is true */ + CINIT(CAINFO, OBJECTPOINT, 65), + + /* 66 = OBSOLETE */ + /* 67 = OBSOLETE */ + + /* Maximum number of http redirects to follow */ + CINIT(MAXREDIRS, LONG, 68), + + /* Pass a long set to 1 to get the date of the requested document (if + possible)! Pass a zero to shut it off. */ + CINIT(FILETIME, LONG, 69), + + /* This points to a linked list of telnet options */ + CINIT(TELNETOPTIONS, OBJECTPOINT, 70), + + /* Max amount of cached alive connections */ + CINIT(MAXCONNECTS, LONG, 71), + + /* What policy to use when closing connections when the cache is filled + up */ + CINIT(CLOSEPOLICY, LONG, 72), + + /* 73 = OBSOLETE */ + + /* Set to explicitly use a new connection for the upcoming transfer. + Do not use this unless you're absolutely sure of this, as it makes the + operation slower and is less friendly for the network. */ + CINIT(FRESH_CONNECT, LONG, 74), + + /* Set to explicitly forbid the upcoming transfer's connection to be re-used + when done. Do not use this unless you're absolutely sure of this, as it + makes the operation slower and is less friendly for the network. */ + CINIT(FORBID_REUSE, LONG, 75), + + /* Set to a file name that contains random data for libcurl to use to + seed the random engine when doing SSL connects. */ + CINIT(RANDOM_FILE, OBJECTPOINT, 76), + + /* Set to the Entropy Gathering Daemon socket pathname */ + CINIT(EGDSOCKET, OBJECTPOINT, 77), + + /* Time-out connect operations after this amount of seconds, if connects + are OK within this time, then fine... This only aborts the connect + phase. [Only works on unix-style/SIGALRM operating systems] */ + CINIT(CONNECTTIMEOUT, LONG, 78), + + /* Function that will be called to store headers (instead of fwrite). The + * parameters will use fwrite() syntax, make sure to follow them. */ + CINIT(HEADERFUNCTION, FUNCTIONPOINT, 79), + + /* Set this to force the HTTP request to get back to GET. Only really usable + if POST, PUT or a custom request have been used first. + */ + CINIT(HTTPGET, LONG, 80), + + /* Set if we should verify the Common name from the peer certificate in ssl + * handshake, set 1 to check existence, 2 to ensure that it matches the + * provided hostname. */ + CINIT(SSL_VERIFYHOST, LONG, 81), + + /* Specify which file name to write all known cookies in after completed + operation. Set file name to "-" (dash) to make it go to stdout. */ + CINIT(COOKIEJAR, OBJECTPOINT, 82), + + /* Specify which SSL ciphers to use */ + CINIT(SSL_CIPHER_LIST, OBJECTPOINT, 83), + + /* Specify which HTTP version to use! This must be set to one of the + CURL_HTTP_VERSION* enums set below. */ + CINIT(HTTP_VERSION, LONG, 84), + + /* Specifically switch on or off the FTP engine's use of the EPSV command. By + default, that one will always be attempted before the more traditional + PASV command. */ + CINIT(FTP_USE_EPSV, LONG, 85), + + /* type of the file keeping your SSL-certificate ("DER", "PEM", "ENG") */ + CINIT(SSLCERTTYPE, OBJECTPOINT, 86), + + /* name of the file keeping your private SSL-key */ + CINIT(SSLKEY, OBJECTPOINT, 87), + + /* type of the file keeping your private SSL-key ("DER", "PEM", "ENG") */ + CINIT(SSLKEYTYPE, OBJECTPOINT, 88), + + /* crypto engine for the SSL-sub system */ + CINIT(SSLENGINE, OBJECTPOINT, 89), + + /* set the crypto engine for the SSL-sub system as default + the param has no meaning... + */ + CINIT(SSLENGINE_DEFAULT, LONG, 90), + + /* Non-zero value means to use the global dns cache */ + CINIT(DNS_USE_GLOBAL_CACHE, LONG, 91), /* To become OBSOLETE soon */ + + /* DNS cache timeout */ + CINIT(DNS_CACHE_TIMEOUT, LONG, 92), + + /* send linked-list of pre-transfer QUOTE commands */ + CINIT(PREQUOTE, OBJECTPOINT, 93), + + /* set the debug function */ + CINIT(DEBUGFUNCTION, FUNCTIONPOINT, 94), + + /* set the data for the debug function */ + CINIT(DEBUGDATA, OBJECTPOINT, 95), + + /* mark this as start of a cookie session */ + CINIT(COOKIESESSION, LONG, 96), + + /* The CApath directory used to validate the peer certificate + this option is used only if SSL_VERIFYPEER is true */ + CINIT(CAPATH, OBJECTPOINT, 97), + + /* Instruct libcurl to use a smaller receive buffer */ + CINIT(BUFFERSIZE, LONG, 98), + + /* Instruct libcurl to not use any signal/alarm handlers, even when using + timeouts. This option is useful for multi-threaded applications. + See libcurl-the-guide for more background information. */ + CINIT(NOSIGNAL, LONG, 99), + + /* Provide a CURLShare for mutexing non-ts data */ + CINIT(SHARE, OBJECTPOINT, 100), + + /* indicates type of proxy. accepted values are CURLPROXY_HTTP (default), + CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A and CURLPROXY_SOCKS5. */ + CINIT(PROXYTYPE, LONG, 101), + + /* Set the Accept-Encoding string. Use this to tell a server you would like + the response to be compressed. */ + CINIT(ENCODING, OBJECTPOINT, 102), + + /* Set pointer to private data */ + CINIT(PRIVATE, OBJECTPOINT, 103), + + /* Set aliases for HTTP 200 in the HTTP Response header */ + CINIT(HTTP200ALIASES, OBJECTPOINT, 104), + + /* Continue to send authentication (user+password) when following locations, + even when hostname changed. This can potentially send off the name + and password to whatever host the server decides. */ + CINIT(UNRESTRICTED_AUTH, LONG, 105), + + /* Specifically switch on or off the FTP engine's use of the EPRT command ( it + also disables the LPRT attempt). By default, those ones will always be + attempted before the good old traditional PORT command. */ + CINIT(FTP_USE_EPRT, LONG, 106), + + /* Set this to a bitmask value to enable the particular authentications + methods you like. Use this in combination with CURLOPT_USERPWD. + Note that setting multiple bits may cause extra network round-trips. */ + CINIT(HTTPAUTH, LONG, 107), + + /* Set the ssl context callback function, currently only for OpenSSL ssl_ctx + in second argument. The function must be matching the + curl_ssl_ctx_callback proto. */ + CINIT(SSL_CTX_FUNCTION, FUNCTIONPOINT, 108), + + /* Set the userdata for the ssl context callback function's third + argument */ + CINIT(SSL_CTX_DATA, OBJECTPOINT, 109), + + /* FTP Option that causes missing dirs to be created on the remote server. + In 7.19.4 we introduced the convenience enums for this option using the + CURLFTP_CREATE_DIR prefix. + */ + CINIT(FTP_CREATE_MISSING_DIRS, LONG, 110), + + /* Set this to a bitmask value to enable the particular authentications + methods you like. Use this in combination with CURLOPT_PROXYUSERPWD. + Note that setting multiple bits may cause extra network round-trips. */ + CINIT(PROXYAUTH, LONG, 111), + + /* FTP option that changes the timeout, in seconds, associated with + getting a response. This is different from transfer timeout time and + essentially places a demand on the FTP server to acknowledge commands + in a timely manner. */ + CINIT(FTP_RESPONSE_TIMEOUT, LONG, 112), +#define CURLOPT_SERVER_RESPONSE_TIMEOUT CURLOPT_FTP_RESPONSE_TIMEOUT + + /* Set this option to one of the CURL_IPRESOLVE_* defines (see below) to + tell libcurl to resolve names to those IP versions only. This only has + affect on systems with support for more than one, i.e IPv4 _and_ IPv6. */ + CINIT(IPRESOLVE, LONG, 113), + + /* Set this option to limit the size of a file that will be downloaded from + an HTTP or FTP server. + + Note there is also _LARGE version which adds large file support for + platforms which have larger off_t sizes. See MAXFILESIZE_LARGE below. */ + CINIT(MAXFILESIZE, LONG, 114), + + /* See the comment for INFILESIZE above, but in short, specifies + * the size of the file being uploaded. -1 means unknown. + */ + CINIT(INFILESIZE_LARGE, OFF_T, 115), + + /* Sets the continuation offset. There is also a LONG version of this; + * look above for RESUME_FROM. + */ + CINIT(RESUME_FROM_LARGE, OFF_T, 116), + + /* Sets the maximum size of data that will be downloaded from + * an HTTP or FTP server. See MAXFILESIZE above for the LONG version. + */ + CINIT(MAXFILESIZE_LARGE, OFF_T, 117), + + /* Set this option to the file name of your .netrc file you want libcurl + to parse (using the CURLOPT_NETRC option). If not set, libcurl will do + a poor attempt to find the user's home directory and check for a .netrc + file in there. */ + CINIT(NETRC_FILE, OBJECTPOINT, 118), + + /* Enable SSL/TLS for FTP, pick one of: + CURLFTPSSL_TRY - try using SSL, proceed anyway otherwise + CURLFTPSSL_CONTROL - SSL for the control connection or fail + CURLFTPSSL_ALL - SSL for all communication or fail + */ + CINIT(USE_SSL, LONG, 119), + + /* The _LARGE version of the standard POSTFIELDSIZE option */ + CINIT(POSTFIELDSIZE_LARGE, OFF_T, 120), + + /* Enable/disable the TCP Nagle algorithm */ + CINIT(TCP_NODELAY, LONG, 121), + + /* 122 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */ + /* 123 OBSOLETE. Gone in 7.16.0 */ + /* 124 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */ + /* 125 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */ + /* 126 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */ + /* 127 OBSOLETE. Gone in 7.16.0 */ + /* 128 OBSOLETE. Gone in 7.16.0 */ + + /* When FTP over SSL/TLS is selected (with CURLOPT_USE_SSL), this option + can be used to change libcurl's default action which is to first try + "AUTH SSL" and then "AUTH TLS" in this order, and proceed when a OK + response has been received. + + Available parameters are: + CURLFTPAUTH_DEFAULT - let libcurl decide + CURLFTPAUTH_SSL - try "AUTH SSL" first, then TLS + CURLFTPAUTH_TLS - try "AUTH TLS" first, then SSL + */ + CINIT(FTPSSLAUTH, LONG, 129), + + CINIT(IOCTLFUNCTION, FUNCTIONPOINT, 130), + CINIT(IOCTLDATA, OBJECTPOINT, 131), + + /* 132 OBSOLETE. Gone in 7.16.0 */ + /* 133 OBSOLETE. Gone in 7.16.0 */ + + /* zero terminated string for pass on to the FTP server when asked for + "account" info */ + CINIT(FTP_ACCOUNT, OBJECTPOINT, 134), + + /* feed cookies into cookie engine */ + CINIT(COOKIELIST, OBJECTPOINT, 135), + + /* ignore Content-Length */ + CINIT(IGNORE_CONTENT_LENGTH, LONG, 136), + + /* Set to non-zero to skip the IP address received in a 227 PASV FTP server + response. Typically used for FTP-SSL purposes but is not restricted to + that. libcurl will then instead use the same IP address it used for the + control connection. */ + CINIT(FTP_SKIP_PASV_IP, LONG, 137), + + /* Select "file method" to use when doing FTP, see the curl_ftpmethod + above. */ + CINIT(FTP_FILEMETHOD, LONG, 138), + + /* Local port number to bind the socket to */ + CINIT(LOCALPORT, LONG, 139), + + /* Number of ports to try, including the first one set with LOCALPORT. + Thus, setting it to 1 will make no additional attempts but the first. + */ + CINIT(LOCALPORTRANGE, LONG, 140), + + /* no transfer, set up connection and let application use the socket by + extracting it with CURLINFO_LASTSOCKET */ + CINIT(CONNECT_ONLY, LONG, 141), + + /* Function that will be called to convert from the + network encoding (instead of using the iconv calls in libcurl) */ + CINIT(CONV_FROM_NETWORK_FUNCTION, FUNCTIONPOINT, 142), + + /* Function that will be called to convert to the + network encoding (instead of using the iconv calls in libcurl) */ + CINIT(CONV_TO_NETWORK_FUNCTION, FUNCTIONPOINT, 143), + + /* Function that will be called to convert from UTF8 + (instead of using the iconv calls in libcurl) + Note that this is used only for SSL certificate processing */ + CINIT(CONV_FROM_UTF8_FUNCTION, FUNCTIONPOINT, 144), + + /* if the connection proceeds too quickly then need to slow it down */ + /* limit-rate: maximum number of bytes per second to send or receive */ + CINIT(MAX_SEND_SPEED_LARGE, OFF_T, 145), + CINIT(MAX_RECV_SPEED_LARGE, OFF_T, 146), + + /* Pointer to command string to send if USER/PASS fails. */ + CINIT(FTP_ALTERNATIVE_TO_USER, OBJECTPOINT, 147), + + /* callback function for setting socket options */ + CINIT(SOCKOPTFUNCTION, FUNCTIONPOINT, 148), + CINIT(SOCKOPTDATA, OBJECTPOINT, 149), + + /* set to 0 to disable session ID re-use for this transfer, default is + enabled (== 1) */ + CINIT(SSL_SESSIONID_CACHE, LONG, 150), + + /* allowed SSH authentication methods */ + CINIT(SSH_AUTH_TYPES, LONG, 151), + + /* Used by scp/sftp to do public/private key authentication */ + CINIT(SSH_PUBLIC_KEYFILE, OBJECTPOINT, 152), + CINIT(SSH_PRIVATE_KEYFILE, OBJECTPOINT, 153), + + /* Send CCC (Clear Command Channel) after authentication */ + CINIT(FTP_SSL_CCC, LONG, 154), + + /* Same as TIMEOUT and CONNECTTIMEOUT, but with ms resolution */ + CINIT(TIMEOUT_MS, LONG, 155), + CINIT(CONNECTTIMEOUT_MS, LONG, 156), + + /* set to zero to disable the libcurl's decoding and thus pass the raw body + data to the application even when it is encoded/compressed */ + CINIT(HTTP_TRANSFER_DECODING, LONG, 157), + CINIT(HTTP_CONTENT_DECODING, LONG, 158), + + /* Permission used when creating new files and directories on the remote + server for protocols that support it, SFTP/SCP/FILE */ + CINIT(NEW_FILE_PERMS, LONG, 159), + CINIT(NEW_DIRECTORY_PERMS, LONG, 160), + + /* Set the behaviour of POST when redirecting. Values must be set to one + of CURL_REDIR* defines below. This used to be called CURLOPT_POST301 */ + CINIT(POSTREDIR, LONG, 161), + + /* used by scp/sftp to verify the host's public key */ + CINIT(SSH_HOST_PUBLIC_KEY_MD5, OBJECTPOINT, 162), + + /* Callback function for opening socket (instead of socket(2)). Optionally, + callback is able change the address or refuse to connect returning + CURL_SOCKET_BAD. The callback should have type + curl_opensocket_callback */ + CINIT(OPENSOCKETFUNCTION, FUNCTIONPOINT, 163), + CINIT(OPENSOCKETDATA, OBJECTPOINT, 164), + + /* POST volatile input fields. */ + CINIT(COPYPOSTFIELDS, OBJECTPOINT, 165), + + /* set transfer mode (;type=) when doing FTP via an HTTP proxy */ + CINIT(PROXY_TRANSFER_MODE, LONG, 166), + + /* Callback function for seeking in the input stream */ + CINIT(SEEKFUNCTION, FUNCTIONPOINT, 167), + CINIT(SEEKDATA, OBJECTPOINT, 168), + + /* CRL file */ + CINIT(CRLFILE, OBJECTPOINT, 169), + + /* Issuer certificate */ + CINIT(ISSUERCERT, OBJECTPOINT, 170), + + /* (IPv6) Address scope */ + CINIT(ADDRESS_SCOPE, LONG, 171), + + /* Collect certificate chain info and allow it to get retrievable with + CURLINFO_CERTINFO after the transfer is complete. (Unfortunately) only + working with OpenSSL-powered builds. */ + CINIT(CERTINFO, LONG, 172), + + /* "name" and "pwd" to use when fetching. */ + CINIT(USERNAME, OBJECTPOINT, 173), + CINIT(PASSWORD, OBJECTPOINT, 174), + + /* "name" and "pwd" to use with Proxy when fetching. */ + CINIT(PROXYUSERNAME, OBJECTPOINT, 175), + CINIT(PROXYPASSWORD, OBJECTPOINT, 176), + + /* Comma separated list of hostnames defining no-proxy zones. These should + match both hostnames directly, and hostnames within a domain. For + example, local.com will match local.com and www.local.com, but NOT + notlocal.com or www.notlocal.com. For compatibility with other + implementations of this, .local.com will be considered to be the same as + local.com. A single * is the only valid wildcard, and effectively + disables the use of proxy. */ + CINIT(NOPROXY, OBJECTPOINT, 177), + + /* block size for TFTP transfers */ + CINIT(TFTP_BLKSIZE, LONG, 178), + + /* Socks Service */ + CINIT(SOCKS5_GSSAPI_SERVICE, OBJECTPOINT, 179), + + /* Socks Service */ + CINIT(SOCKS5_GSSAPI_NEC, LONG, 180), + + /* set the bitmask for the protocols that are allowed to be used for the + transfer, which thus helps the app which takes URLs from users or other + external inputs and want to restrict what protocol(s) to deal + with. Defaults to CURLPROTO_ALL. */ + CINIT(PROTOCOLS, LONG, 181), + + /* set the bitmask for the protocols that libcurl is allowed to follow to, + as a subset of the CURLOPT_PROTOCOLS ones. That means the protocol needs + to be set in both bitmasks to be allowed to get redirected to. Defaults + to all protocols except FILE and SCP. */ + CINIT(REDIR_PROTOCOLS, LONG, 182), + + /* set the SSH knownhost file name to use */ + CINIT(SSH_KNOWNHOSTS, OBJECTPOINT, 183), + + /* set the SSH host key callback, must point to a curl_sshkeycallback + function */ + CINIT(SSH_KEYFUNCTION, FUNCTIONPOINT, 184), + + /* set the SSH host key callback custom pointer */ + CINIT(SSH_KEYDATA, OBJECTPOINT, 185), + + /* set the SMTP mail originator */ + CINIT(MAIL_FROM, OBJECTPOINT, 186), + + /* set the SMTP mail receiver(s) */ + CINIT(MAIL_RCPT, OBJECTPOINT, 187), + + /* FTP: send PRET before PASV */ + CINIT(FTP_USE_PRET, LONG, 188), + + /* RTSP request method (OPTIONS, SETUP, PLAY, etc...) */ + CINIT(RTSP_REQUEST, LONG, 189), + + /* The RTSP session identifier */ + CINIT(RTSP_SESSION_ID, OBJECTPOINT, 190), + + /* The RTSP stream URI */ + CINIT(RTSP_STREAM_URI, OBJECTPOINT, 191), + + /* The Transport: header to use in RTSP requests */ + CINIT(RTSP_TRANSPORT, OBJECTPOINT, 192), + + /* Manually initialize the client RTSP CSeq for this handle */ + CINIT(RTSP_CLIENT_CSEQ, LONG, 193), + + /* Manually initialize the server RTSP CSeq for this handle */ + CINIT(RTSP_SERVER_CSEQ, LONG, 194), + + /* The stream to pass to INTERLEAVEFUNCTION. */ + CINIT(INTERLEAVEDATA, OBJECTPOINT, 195), + + /* Let the application define a custom write method for RTP data */ + CINIT(INTERLEAVEFUNCTION, FUNCTIONPOINT, 196), + + /* Turn on wildcard matching */ + CINIT(WILDCARDMATCH, LONG, 197), + + /* Directory matching callback called before downloading of an + individual file (chunk) started */ + CINIT(CHUNK_BGN_FUNCTION, FUNCTIONPOINT, 198), + + /* Directory matching callback called after the file (chunk) + was downloaded, or skipped */ + CINIT(CHUNK_END_FUNCTION, FUNCTIONPOINT, 199), + + /* Change match (fnmatch-like) callback for wildcard matching */ + CINIT(FNMATCH_FUNCTION, FUNCTIONPOINT, 200), + + /* Let the application define custom chunk data pointer */ + CINIT(CHUNK_DATA, OBJECTPOINT, 201), + + /* FNMATCH_FUNCTION user pointer */ + CINIT(FNMATCH_DATA, OBJECTPOINT, 202), + + CURLOPT_LASTENTRY /* the last unused */ +} CURLoption; + +#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all + the obsolete stuff removed! */ + +/* Backwards compatibility with older names */ +/* These are scheduled to disappear by 2011 */ + +/* This was added in version 7.19.1 */ +#define CURLOPT_POST301 CURLOPT_POSTREDIR + +/* These are scheduled to disappear by 2009 */ + +/* The following were added in 7.17.0 */ +#define CURLOPT_SSLKEYPASSWD CURLOPT_KEYPASSWD +#define CURLOPT_FTPAPPEND CURLOPT_APPEND +#define CURLOPT_FTPLISTONLY CURLOPT_DIRLISTONLY +#define CURLOPT_FTP_SSL CURLOPT_USE_SSL + +/* The following were added earlier */ + +#define CURLOPT_SSLCERTPASSWD CURLOPT_KEYPASSWD +#define CURLOPT_KRB4LEVEL CURLOPT_KRBLEVEL + +#else +/* This is set if CURL_NO_OLDIES is defined at compile-time */ +#undef CURLOPT_DNS_USE_GLOBAL_CACHE /* soon obsolete */ +#endif + + + /* Below here follows defines for the CURLOPT_IPRESOLVE option. If a host + name resolves addresses using more than one IP protocol version, this + option might be handy to force libcurl to use a specific IP version. */ +#define CURL_IPRESOLVE_WHATEVER 0 /* default, resolves addresses to all IP + versions that your system allows */ +#define CURL_IPRESOLVE_V4 1 /* resolve to ipv4 addresses */ +#define CURL_IPRESOLVE_V6 2 /* resolve to ipv6 addresses */ + + /* three convenient "aliases" that follow the name scheme better */ +#define CURLOPT_WRITEDATA CURLOPT_FILE +#define CURLOPT_READDATA CURLOPT_INFILE +#define CURLOPT_HEADERDATA CURLOPT_WRITEHEADER +#define CURLOPT_RTSPHEADER CURLOPT_HTTPHEADER + + /* These enums are for use with the CURLOPT_HTTP_VERSION option. */ +enum { + CURL_HTTP_VERSION_NONE, /* setting this means we don't care, and that we'd + like the library to choose the best possible + for us! */ + CURL_HTTP_VERSION_1_0, /* please use HTTP 1.0 in the request */ + CURL_HTTP_VERSION_1_1, /* please use HTTP 1.1 in the request */ + + CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */ +}; + +/* + * Public API enums for RTSP requests + */ +enum { + CURL_RTSPREQ_NONE, /* first in list */ + CURL_RTSPREQ_OPTIONS, + CURL_RTSPREQ_DESCRIBE, + CURL_RTSPREQ_ANNOUNCE, + CURL_RTSPREQ_SETUP, + CURL_RTSPREQ_PLAY, + CURL_RTSPREQ_PAUSE, + CURL_RTSPREQ_TEARDOWN, + CURL_RTSPREQ_GET_PARAMETER, + CURL_RTSPREQ_SET_PARAMETER, + CURL_RTSPREQ_RECORD, + CURL_RTSPREQ_RECEIVE, + CURL_RTSPREQ_LAST /* last in list */ +}; + + /* These enums are for use with the CURLOPT_NETRC option. */ +enum CURL_NETRC_OPTION { + CURL_NETRC_IGNORED, /* The .netrc will never be read. + * This is the default. */ + CURL_NETRC_OPTIONAL, /* A user:password in the URL will be preferred + * to one in the .netrc. */ + CURL_NETRC_REQUIRED, /* A user:password in the URL will be ignored. + * Unless one is set programmatically, the .netrc + * will be queried. */ + CURL_NETRC_LAST +}; + +enum { + CURL_SSLVERSION_DEFAULT, + CURL_SSLVERSION_TLSv1, + CURL_SSLVERSION_SSLv2, + CURL_SSLVERSION_SSLv3, + + CURL_SSLVERSION_LAST /* never use, keep last */ +}; + +/* symbols to use with CURLOPT_POSTREDIR. + CURL_REDIR_POST_301 and CURL_REDIR_POST_302 can be bitwise ORed so that + CURL_REDIR_POST_301 | CURL_REDIR_POST_302 == CURL_REDIR_POST_ALL */ + +#define CURL_REDIR_GET_ALL 0 +#define CURL_REDIR_POST_301 1 +#define CURL_REDIR_POST_302 2 +#define CURL_REDIR_POST_ALL (CURL_REDIR_POST_301|CURL_REDIR_POST_302) + +typedef enum { + CURL_TIMECOND_NONE, + + CURL_TIMECOND_IFMODSINCE, + CURL_TIMECOND_IFUNMODSINCE, + CURL_TIMECOND_LASTMOD, + + CURL_TIMECOND_LAST +} curl_TimeCond; + + +/* curl_strequal() and curl_strnequal() are subject for removal in a future + libcurl, see lib/README.curlx for details */ +CURL_EXTERN int (curl_strequal)(const char *s1, const char *s2); +CURL_EXTERN int (curl_strnequal)(const char *s1, const char *s2, size_t n); + +/* name is uppercase CURLFORM_ */ +#ifdef CFINIT +#undef CFINIT +#endif + +#ifdef CURL_ISOCPP +#define CFINIT(name) CURLFORM_ ## name +#else +/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */ +#define CFINIT(name) CURLFORM_/**/name +#endif + +typedef enum { + CFINIT(NOTHING), /********* the first one is unused ************/ + + /* */ + CFINIT(COPYNAME), + CFINIT(PTRNAME), + CFINIT(NAMELENGTH), + CFINIT(COPYCONTENTS), + CFINIT(PTRCONTENTS), + CFINIT(CONTENTSLENGTH), + CFINIT(FILECONTENT), + CFINIT(ARRAY), + CFINIT(OBSOLETE), + CFINIT(FILE), + + CFINIT(BUFFER), + CFINIT(BUFFERPTR), + CFINIT(BUFFERLENGTH), + + CFINIT(CONTENTTYPE), + CFINIT(CONTENTHEADER), + CFINIT(FILENAME), + CFINIT(END), + CFINIT(OBSOLETE2), + + CFINIT(STREAM), + + CURLFORM_LASTENTRY /* the last unused */ +} CURLformoption; + +#undef CFINIT /* done */ + +/* structure to be used as parameter for CURLFORM_ARRAY */ +struct curl_forms { + CURLformoption option; + const char *value; +}; + +/* use this for multipart formpost building */ +/* Returns code for curl_formadd() + * + * Returns: + * CURL_FORMADD_OK on success + * CURL_FORMADD_MEMORY if the FormInfo allocation fails + * CURL_FORMADD_OPTION_TWICE if one option is given twice for one Form + * CURL_FORMADD_NULL if a null pointer was given for a char + * CURL_FORMADD_MEMORY if the allocation of a FormInfo struct failed + * CURL_FORMADD_UNKNOWN_OPTION if an unknown option was used + * CURL_FORMADD_INCOMPLETE if the some FormInfo is not complete (or error) + * CURL_FORMADD_MEMORY if a curl_httppost struct cannot be allocated + * CURL_FORMADD_MEMORY if some allocation for string copying failed. + * CURL_FORMADD_ILLEGAL_ARRAY if an illegal option is used in an array + * + ***************************************************************************/ +typedef enum { + CURL_FORMADD_OK, /* first, no error */ + + CURL_FORMADD_MEMORY, + CURL_FORMADD_OPTION_TWICE, + CURL_FORMADD_NULL, + CURL_FORMADD_UNKNOWN_OPTION, + CURL_FORMADD_INCOMPLETE, + CURL_FORMADD_ILLEGAL_ARRAY, + CURL_FORMADD_DISABLED, /* libcurl was built with this disabled */ + + CURL_FORMADD_LAST /* last */ +} CURLFORMcode; + +/* + * NAME curl_formadd() + * + * DESCRIPTION + * + * Pretty advanced function for building multi-part formposts. Each invoke + * adds one part that together construct a full post. Then use + * CURLOPT_HTTPPOST to send it off to libcurl. + */ +CURL_EXTERN CURLFORMcode curl_formadd(struct curl_httppost **httppost, + struct curl_httppost **last_post, + ...); + +/* + * callback function for curl_formget() + * The void *arg pointer will be the one passed as second argument to + * curl_formget(). + * The character buffer passed to it must not be freed. + * Should return the buffer length passed to it as the argument "len" on + * success. + */ +typedef size_t (*curl_formget_callback)(void *arg, const char *buf, size_t len); + +/* + * NAME curl_formget() + * + * DESCRIPTION + * + * Serialize a curl_httppost struct built with curl_formadd(). + * Accepts a void pointer as second argument which will be passed to + * the curl_formget_callback function. + * Returns 0 on success. + */ +CURL_EXTERN int curl_formget(struct curl_httppost *form, void *arg, + curl_formget_callback append); +/* + * NAME curl_formfree() + * + * DESCRIPTION + * + * Free a multipart formpost previously built with curl_formadd(). + */ +CURL_EXTERN void curl_formfree(struct curl_httppost *form); + +/* + * NAME curl_getenv() + * + * DESCRIPTION + * + * Returns a malloc()'ed string that MUST be curl_free()ed after usage is + * complete. DEPRECATED - see lib/README.curlx + */ +CURL_EXTERN char *curl_getenv(const char *variable); + +/* + * NAME curl_version() + * + * DESCRIPTION + * + * Returns a static ascii string of the libcurl version. + */ +CURL_EXTERN char *curl_version(void); + +/* + * NAME curl_easy_escape() + * + * DESCRIPTION + * + * Escapes URL strings (converts all letters consider illegal in URLs to their + * %XX versions). This function returns a new allocated string or NULL if an + * error occurred. + */ +CURL_EXTERN char *curl_easy_escape(CURL *handle, + const char *string, + int length); + +/* the previous version: */ +CURL_EXTERN char *curl_escape(const char *string, + int length); + + +/* + * NAME curl_easy_unescape() + * + * DESCRIPTION + * + * Unescapes URL encoding in strings (converts all %XX codes to their 8bit + * versions). This function returns a new allocated string or NULL if an error + * occurred. + * Conversion Note: On non-ASCII platforms the ASCII %XX codes are + * converted into the host encoding. + */ +CURL_EXTERN char *curl_easy_unescape(CURL *handle, + const char *string, + int length, + int *outlength); + +/* the previous version */ +CURL_EXTERN char *curl_unescape(const char *string, + int length); + +/* + * NAME curl_free() + * + * DESCRIPTION + * + * Provided for de-allocation in the same translation unit that did the + * allocation. Added in libcurl 7.10 + */ +CURL_EXTERN void curl_free(void *p); + +/* + * NAME curl_global_init() + * + * DESCRIPTION + * + * curl_global_init() should be invoked exactly once for each application that + * uses libcurl and before any call of other libcurl functions. + * + * This function is not thread-safe! + */ +CURL_EXTERN CURLcode curl_global_init(long flags); + +/* + * NAME curl_global_init_mem() + * + * DESCRIPTION + * + * curl_global_init() or curl_global_init_mem() should be invoked exactly once + * for each application that uses libcurl. This function can be used to + * initialize libcurl and set user defined memory management callback + * functions. Users can implement memory management routines to check for + * memory leaks, check for mis-use of the curl library etc. User registered + * callback routines with be invoked by this library instead of the system + * memory management routines like malloc, free etc. + */ +CURL_EXTERN CURLcode curl_global_init_mem(long flags, + curl_malloc_callback m, + curl_free_callback f, + curl_realloc_callback r, + curl_strdup_callback s, + curl_calloc_callback c); + +/* + * NAME curl_global_cleanup() + * + * DESCRIPTION + * + * curl_global_cleanup() should be invoked exactly once for each application + * that uses libcurl + */ +CURL_EXTERN void curl_global_cleanup(void); + +/* linked-list structure for the CURLOPT_QUOTE option (and other) */ +struct curl_slist { + char *data; + struct curl_slist *next; +}; + +/* + * NAME curl_slist_append() + * + * DESCRIPTION + * + * Appends a string to a linked list. If no list exists, it will be created + * first. Returns the new list, after appending. + */ +CURL_EXTERN struct curl_slist *curl_slist_append(struct curl_slist *, + const char *); + +/* + * NAME curl_slist_free_all() + * + * DESCRIPTION + * + * free a previously built curl_slist. + */ +CURL_EXTERN void curl_slist_free_all(struct curl_slist *); + +/* + * NAME curl_getdate() + * + * DESCRIPTION + * + * Returns the time, in seconds since 1 Jan 1970 of the time string given in + * the first argument. The time argument in the second parameter is unused + * and should be set to NULL. + */ +CURL_EXTERN time_t curl_getdate(const char *p, const time_t *unused); + +/* info about the certificate chain, only for OpenSSL builds. Asked + for with CURLOPT_CERTINFO / CURLINFO_CERTINFO */ +struct curl_certinfo { + int num_of_certs; /* number of certificates with information */ + struct curl_slist **certinfo; /* for each index in this array, there's a + linked list with textual information in the + format "name: value" */ +}; + +#define CURLINFO_STRING 0x100000 +#define CURLINFO_LONG 0x200000 +#define CURLINFO_DOUBLE 0x300000 +#define CURLINFO_SLIST 0x400000 +#define CURLINFO_MASK 0x0fffff +#define CURLINFO_TYPEMASK 0xf00000 + +typedef enum { + CURLINFO_NONE, /* first, never use this */ + CURLINFO_EFFECTIVE_URL = CURLINFO_STRING + 1, + CURLINFO_RESPONSE_CODE = CURLINFO_LONG + 2, + CURLINFO_TOTAL_TIME = CURLINFO_DOUBLE + 3, + CURLINFO_NAMELOOKUP_TIME = CURLINFO_DOUBLE + 4, + CURLINFO_CONNECT_TIME = CURLINFO_DOUBLE + 5, + CURLINFO_PRETRANSFER_TIME = CURLINFO_DOUBLE + 6, + CURLINFO_SIZE_UPLOAD = CURLINFO_DOUBLE + 7, + CURLINFO_SIZE_DOWNLOAD = CURLINFO_DOUBLE + 8, + CURLINFO_SPEED_DOWNLOAD = CURLINFO_DOUBLE + 9, + CURLINFO_SPEED_UPLOAD = CURLINFO_DOUBLE + 10, + CURLINFO_HEADER_SIZE = CURLINFO_LONG + 11, + CURLINFO_REQUEST_SIZE = CURLINFO_LONG + 12, + CURLINFO_SSL_VERIFYRESULT = CURLINFO_LONG + 13, + CURLINFO_FILETIME = CURLINFO_LONG + 14, + CURLINFO_CONTENT_LENGTH_DOWNLOAD = CURLINFO_DOUBLE + 15, + CURLINFO_CONTENT_LENGTH_UPLOAD = CURLINFO_DOUBLE + 16, + CURLINFO_STARTTRANSFER_TIME = CURLINFO_DOUBLE + 17, + CURLINFO_CONTENT_TYPE = CURLINFO_STRING + 18, + CURLINFO_REDIRECT_TIME = CURLINFO_DOUBLE + 19, + CURLINFO_REDIRECT_COUNT = CURLINFO_LONG + 20, + CURLINFO_PRIVATE = CURLINFO_STRING + 21, + CURLINFO_HTTP_CONNECTCODE = CURLINFO_LONG + 22, + CURLINFO_HTTPAUTH_AVAIL = CURLINFO_LONG + 23, + CURLINFO_PROXYAUTH_AVAIL = CURLINFO_LONG + 24, + CURLINFO_OS_ERRNO = CURLINFO_LONG + 25, + CURLINFO_NUM_CONNECTS = CURLINFO_LONG + 26, + CURLINFO_SSL_ENGINES = CURLINFO_SLIST + 27, + CURLINFO_COOKIELIST = CURLINFO_SLIST + 28, + CURLINFO_LASTSOCKET = CURLINFO_LONG + 29, + CURLINFO_FTP_ENTRY_PATH = CURLINFO_STRING + 30, + CURLINFO_REDIRECT_URL = CURLINFO_STRING + 31, + CURLINFO_PRIMARY_IP = CURLINFO_STRING + 32, + CURLINFO_APPCONNECT_TIME = CURLINFO_DOUBLE + 33, + CURLINFO_CERTINFO = CURLINFO_SLIST + 34, + CURLINFO_CONDITION_UNMET = CURLINFO_LONG + 35, + CURLINFO_RTSP_SESSION_ID = CURLINFO_STRING + 36, + CURLINFO_RTSP_CLIENT_CSEQ = CURLINFO_LONG + 37, + CURLINFO_RTSP_SERVER_CSEQ = CURLINFO_LONG + 38, + CURLINFO_RTSP_CSEQ_RECV = CURLINFO_LONG + 39, + CURLINFO_PRIMARY_PORT = CURLINFO_LONG + 40, + CURLINFO_LOCAL_IP = CURLINFO_STRING + 41, + CURLINFO_LOCAL_PORT = CURLINFO_LONG + 42, + /* Fill in new entries below here! */ + + CURLINFO_LASTONE = 42 +} CURLINFO; + +/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as + CURLINFO_HTTP_CODE */ +#define CURLINFO_HTTP_CODE CURLINFO_RESPONSE_CODE + +typedef enum { + CURLCLOSEPOLICY_NONE, /* first, never use this */ + + CURLCLOSEPOLICY_OLDEST, + CURLCLOSEPOLICY_LEAST_RECENTLY_USED, + CURLCLOSEPOLICY_LEAST_TRAFFIC, + CURLCLOSEPOLICY_SLOWEST, + CURLCLOSEPOLICY_CALLBACK, + + CURLCLOSEPOLICY_LAST /* last, never use this */ +} curl_closepolicy; + +#define CURL_GLOBAL_SSL (1<<0) +#define CURL_GLOBAL_WIN32 (1<<1) +#define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32) +#define CURL_GLOBAL_NOTHING 0 +#define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL + + +/***************************************************************************** + * Setup defines, protos etc for the sharing stuff. + */ + +/* Different data locks for a single share */ +typedef enum { + CURL_LOCK_DATA_NONE = 0, + /* CURL_LOCK_DATA_SHARE is used internally to say that + * the locking is just made to change the internal state of the share + * itself. + */ + CURL_LOCK_DATA_SHARE, + CURL_LOCK_DATA_COOKIE, + CURL_LOCK_DATA_DNS, + CURL_LOCK_DATA_SSL_SESSION, + CURL_LOCK_DATA_CONNECT, + CURL_LOCK_DATA_LAST +} curl_lock_data; + +/* Different lock access types */ +typedef enum { + CURL_LOCK_ACCESS_NONE = 0, /* unspecified action */ + CURL_LOCK_ACCESS_SHARED = 1, /* for read perhaps */ + CURL_LOCK_ACCESS_SINGLE = 2, /* for write perhaps */ + CURL_LOCK_ACCESS_LAST /* never use */ +} curl_lock_access; + +typedef void (*curl_lock_function)(CURL *handle, + curl_lock_data data, + curl_lock_access locktype, + void *userptr); +typedef void (*curl_unlock_function)(CURL *handle, + curl_lock_data data, + void *userptr); + +typedef void CURLSH; + +typedef enum { + CURLSHE_OK, /* all is fine */ + CURLSHE_BAD_OPTION, /* 1 */ + CURLSHE_IN_USE, /* 2 */ + CURLSHE_INVALID, /* 3 */ + CURLSHE_NOMEM, /* out of memory */ + CURLSHE_LAST /* never use */ +} CURLSHcode; + +typedef enum { + CURLSHOPT_NONE, /* don't use */ + CURLSHOPT_SHARE, /* specify a data type to share */ + CURLSHOPT_UNSHARE, /* specify which data type to stop sharing */ + CURLSHOPT_LOCKFUNC, /* pass in a 'curl_lock_function' pointer */ + CURLSHOPT_UNLOCKFUNC, /* pass in a 'curl_unlock_function' pointer */ + CURLSHOPT_USERDATA, /* pass in a user data pointer used in the lock/unlock + callback functions */ + CURLSHOPT_LAST /* never use */ +} CURLSHoption; + +CURL_EXTERN CURLSH *curl_share_init(void); +CURL_EXTERN CURLSHcode curl_share_setopt(CURLSH *, CURLSHoption option, ...); +CURL_EXTERN CURLSHcode curl_share_cleanup(CURLSH *); + +/**************************************************************************** + * Structures for querying information about the curl library at runtime. + */ + +typedef enum { + CURLVERSION_FIRST, + CURLVERSION_SECOND, + CURLVERSION_THIRD, + CURLVERSION_FOURTH, + CURLVERSION_LAST /* never actually use this */ +} CURLversion; + +/* The 'CURLVERSION_NOW' is the symbolic name meant to be used by + basically all programs ever that want to get version information. It is + meant to be a built-in version number for what kind of struct the caller + expects. If the struct ever changes, we redefine the NOW to another enum + from above. */ +#define CURLVERSION_NOW CURLVERSION_FOURTH + +typedef struct { + CURLversion age; /* age of the returned struct */ + const char *version; /* LIBCURL_VERSION */ + unsigned int version_num; /* LIBCURL_VERSION_NUM */ + const char *host; /* OS/host/cpu/machine when configured */ + int features; /* bitmask, see defines below */ + const char *ssl_version; /* human readable string */ + long ssl_version_num; /* not used anymore, always 0 */ + const char *libz_version; /* human readable string */ + /* protocols is terminated by an entry with a NULL protoname */ + const char * const *protocols; + + /* The fields below this were added in CURLVERSION_SECOND */ + const char *ares; + int ares_num; + + /* This field was added in CURLVERSION_THIRD */ + const char *libidn; + + /* These field were added in CURLVERSION_FOURTH */ + + /* Same as '_libiconv_version' if built with HAVE_ICONV */ + int iconv_ver_num; + + const char *libssh_version; /* human readable string */ + +} curl_version_info_data; + +#define CURL_VERSION_IPV6 (1<<0) /* IPv6-enabled */ +#define CURL_VERSION_KERBEROS4 (1<<1) /* kerberos auth is supported */ +#define CURL_VERSION_SSL (1<<2) /* SSL options are present */ +#define CURL_VERSION_LIBZ (1<<3) /* libz features are present */ +#define CURL_VERSION_NTLM (1<<4) /* NTLM auth is supported */ +#define CURL_VERSION_GSSNEGOTIATE (1<<5) /* Negotiate auth support */ +#define CURL_VERSION_DEBUG (1<<6) /* built with debug capabilities */ +#define CURL_VERSION_ASYNCHDNS (1<<7) /* asynchronous dns resolves */ +#define CURL_VERSION_SPNEGO (1<<8) /* SPNEGO auth */ +#define CURL_VERSION_LARGEFILE (1<<9) /* supports files bigger than 2GB */ +#define CURL_VERSION_IDN (1<<10) /* International Domain Names support */ +#define CURL_VERSION_SSPI (1<<11) /* SSPI is supported */ +#define CURL_VERSION_CONV (1<<12) /* character conversions supported */ +#define CURL_VERSION_CURLDEBUG (1<<13) /* debug memory tracking supported */ + +/* + * NAME curl_version_info() + * + * DESCRIPTION + * + * This function returns a pointer to a static copy of the version info + * struct. See above. + */ +CURL_EXTERN curl_version_info_data *curl_version_info(CURLversion); + +/* + * NAME curl_easy_strerror() + * + * DESCRIPTION + * + * The curl_easy_strerror function may be used to turn a CURLcode value + * into the equivalent human readable error string. This is useful + * for printing meaningful error messages. + */ +CURL_EXTERN const char *curl_easy_strerror(CURLcode); + +/* + * NAME curl_share_strerror() + * + * DESCRIPTION + * + * The curl_share_strerror function may be used to turn a CURLSHcode value + * into the equivalent human readable error string. This is useful + * for printing meaningful error messages. + */ +CURL_EXTERN const char *curl_share_strerror(CURLSHcode); + +/* + * NAME curl_easy_pause() + * + * DESCRIPTION + * + * The curl_easy_pause function pauses or unpauses transfers. Select the new + * state by setting the bitmask, use the convenience defines below. + * + */ +CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask); + +#define CURLPAUSE_RECV (1<<0) +#define CURLPAUSE_RECV_CONT (0) + +#define CURLPAUSE_SEND (1<<2) +#define CURLPAUSE_SEND_CONT (0) + +#define CURLPAUSE_ALL (CURLPAUSE_RECV|CURLPAUSE_SEND) +#define CURLPAUSE_CONT (CURLPAUSE_RECV_CONT|CURLPAUSE_SEND_CONT) + +#ifdef __cplusplus +} +#endif + +/* unfortunately, the easy.h and multi.h include files need options and info + stuff before they can be included! */ +#include "easy.h" /* nothing in curl is fun without the easy stuff */ +#include "multi.h" + +/* the typechecker doesn't work in C++ (yet) */ +#if defined(__GNUC__) && defined(__GNUC_MINOR__) && \ + ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) && \ + !defined(__cplusplus) && !defined(CURL_DISABLE_TYPECHECK) +#include "typecheck-gcc.h" +#else +#if defined(__STDC__) && (__STDC__ >= 1) +/* This preprocessor magic that replaces a call with the exact same call is + only done to make sure application authors pass exactly three arguments + to these functions. */ +#define curl_easy_setopt(handle,opt,param) curl_easy_setopt(handle,opt,param) +#define curl_easy_getinfo(handle,info,arg) curl_easy_getinfo(handle,info,arg) +#define curl_share_setopt(share,opt,param) curl_share_setopt(share,opt,param) +#define curl_multi_setopt(handle,opt,param) curl_multi_setopt(handle,opt,param) +#endif /* __STDC__ >= 1 */ +#endif /* gcc >= 4.3 && !__cplusplus */ + +#endif /* __CURL_CURL_H */ diff --git a/lib/mac32-gcc40/include/curl/curlbuild.h b/lib/mac32-gcc40/include/curl/curlbuild.h new file mode 100644 index 0000000000000000000000000000000000000000..81f4a285470c0e6a8bec459574d8a7e64c02e666 --- /dev/null +++ b/lib/mac32-gcc40/include/curl/curlbuild.h @@ -0,0 +1,191 @@ +/* include/curl/curlbuild.h. Generated from curlbuild.h.in by configure. */ +#ifndef __CURL_CURLBUILD_H +#define __CURL_CURLBUILD_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2009, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ + +/* ================================================================ */ +/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ +/* ================================================================ */ + +/* + * NOTE 1: + * ------- + * + * Nothing in this file is intended to be modified or adjusted by the + * curl library user nor by the curl library builder. + * + * If you think that something actually needs to be changed, adjusted + * or fixed in this file, then, report it on the libcurl development + * mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/ + * + * This header file shall only export symbols which are 'curl' or 'CURL' + * prefixed, otherwise public name space would be polluted. + * + * NOTE 2: + * ------- + * + * Right now you might be staring at file include/curl/curlbuild.h.in or + * at file include/curl/curlbuild.h, this is due to the following reason: + * + * On systems capable of running the configure script, the configure process + * will overwrite the distributed include/curl/curlbuild.h file with one that + * is suitable and specific to the library being configured and built, which + * is generated from the include/curl/curlbuild.h.in template file. + * + */ + +/* ================================================================ */ +/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ +/* ================================================================ */ + +#ifdef CURL_SIZEOF_LONG +# error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined +#endif + +#ifdef CURL_TYPEOF_CURL_SOCKLEN_T +# error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined +#endif + +#ifdef CURL_SIZEOF_CURL_SOCKLEN_T +# error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined +#endif + +#ifdef CURL_TYPEOF_CURL_OFF_T +# error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined +#endif + +#ifdef CURL_FORMAT_CURL_OFF_T +# error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined +#endif + +#ifdef CURL_FORMAT_CURL_OFF_TU +# error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined +#endif + +#ifdef CURL_FORMAT_OFF_T +# error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined +#endif + +#ifdef CURL_SIZEOF_CURL_OFF_T +# error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined +#endif + +#ifdef CURL_SUFFIX_CURL_OFF_T +# error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined +#endif + +#ifdef CURL_SUFFIX_CURL_OFF_TU +# error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined +#endif + +/* ================================================================ */ +/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ +/* ================================================================ */ + +/* Configure process defines this to 1 when it finds out that system */ +/* header file ws2tcpip.h must be included by the external interface. */ +/* #undef CURL_PULL_WS2TCPIP_H */ +#ifdef CURL_PULL_WS2TCPIP_H +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif +# include +# include +# include +#endif + +/* Configure process defines this to 1 when it finds out that system */ +/* header file sys/types.h must be included by the external interface. */ +#define CURL_PULL_SYS_TYPES_H 1 +#ifdef CURL_PULL_SYS_TYPES_H +# include +#endif + +/* Configure process defines this to 1 when it finds out that system */ +/* header file stdint.h must be included by the external interface. */ +#define CURL_PULL_STDINT_H 1 +#ifdef CURL_PULL_STDINT_H +# include +#endif + +/* Configure process defines this to 1 when it finds out that system */ +/* header file inttypes.h must be included by the external interface. */ +#define CURL_PULL_INTTYPES_H 1 +#ifdef CURL_PULL_INTTYPES_H +# include +#endif + +/* Configure process defines this to 1 when it finds out that system */ +/* header file sys/socket.h must be included by the external interface. */ +#define CURL_PULL_SYS_SOCKET_H 1 +#ifdef CURL_PULL_SYS_SOCKET_H +# include +#endif + +/* The size of `long', as computed by sizeof. */ +#define CURL_SIZEOF_LONG 4 + +/* Integral data type used for curl_socklen_t. */ +#define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t + +/* The size of `curl_socklen_t', as computed by sizeof. */ +#define CURL_SIZEOF_CURL_SOCKLEN_T 4 + +/* Data type definition of curl_socklen_t. */ +typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t; + +/* Signed integral data type used for curl_off_t. */ +#define CURL_TYPEOF_CURL_OFF_T int64_t + +/* Data type definition of curl_off_t. */ +typedef CURL_TYPEOF_CURL_OFF_T curl_off_t; + +/* curl_off_t formatting string directive without "%" conversion specifier. */ +#define CURL_FORMAT_CURL_OFF_T "lld" + +/* unsigned curl_off_t formatting string without "%" conversion specifier. */ +#define CURL_FORMAT_CURL_OFF_TU "llu" + +/* curl_off_t formatting string directive with "%" conversion specifier. */ +#define CURL_FORMAT_OFF_T "%lld" + +/* The size of `curl_off_t', as computed by sizeof. */ +#define CURL_SIZEOF_CURL_OFF_T 8 + +/* curl_off_t constant suffix. */ +#define CURL_SUFFIX_CURL_OFF_T LL + +/* unsigned curl_off_t constant suffix. */ +#define CURL_SUFFIX_CURL_OFF_TU ULL + +#endif /* __CURL_CURLBUILD_H */ diff --git a/lib/mac32-gcc40/include/curl/curlrules.h b/lib/mac32-gcc40/include/curl/curlrules.h new file mode 100644 index 0000000000000000000000000000000000000000..8aad1df678c0d827ca792c16137d17d86963fc3d --- /dev/null +++ b/lib/mac32-gcc40/include/curl/curlrules.h @@ -0,0 +1,252 @@ +#ifndef __CURL_CURLRULES_H +#define __CURL_CURLRULES_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2010, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ + +/* ================================================================ */ +/* COMPILE TIME SANITY CHECKS */ +/* ================================================================ */ + +/* + * NOTE 1: + * ------- + * + * All checks done in this file are intentionally placed in a public + * header file which is pulled by curl/curl.h when an application is + * being built using an already built libcurl library. Additionally + * this file is also included and used when building the library. + * + * If compilation fails on this file it is certainly sure that the + * problem is elsewhere. It could be a problem in the curlbuild.h + * header file, or simply that you are using different compilation + * settings than those used to build the library. + * + * Nothing in this file is intended to be modified or adjusted by the + * curl library user nor by the curl library builder. + * + * Do not deactivate any check, these are done to make sure that the + * library is properly built and used. + * + * You can find further help on the libcurl development mailing list: + * http://cool.haxx.se/mailman/listinfo/curl-library/ + * + * NOTE 2 + * ------ + * + * Some of the following compile time checks are based on the fact + * that the dimension of a constant array can not be a negative one. + * In this way if the compile time verification fails, the compilation + * will fail issuing an error. The error description wording is compiler + * dependent but it will be quite similar to one of the following: + * + * "negative subscript or subscript is too large" + * "array must have at least one element" + * "-1 is an illegal array size" + * "size of array is negative" + * + * If you are building an application which tries to use an already + * built libcurl library and you are getting this kind of errors on + * this file, it is a clear indication that there is a mismatch between + * how the library was built and how you are trying to use it for your + * application. Your already compiled or binary library provider is the + * only one who can give you the details you need to properly use it. + */ + +/* + * Verify that some macros are actually defined. + */ + +#ifndef CURL_SIZEOF_LONG +# error "CURL_SIZEOF_LONG definition is missing!" + Error Compilation_aborted_CURL_SIZEOF_LONG_is_missing +#endif + +#ifndef CURL_TYPEOF_CURL_SOCKLEN_T +# error "CURL_TYPEOF_CURL_SOCKLEN_T definition is missing!" + Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_is_missing +#endif + +#ifndef CURL_SIZEOF_CURL_SOCKLEN_T +# error "CURL_SIZEOF_CURL_SOCKLEN_T definition is missing!" + Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_is_missing +#endif + +#ifndef CURL_TYPEOF_CURL_OFF_T +# error "CURL_TYPEOF_CURL_OFF_T definition is missing!" + Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_is_missing +#endif + +#ifndef CURL_FORMAT_CURL_OFF_T +# error "CURL_FORMAT_CURL_OFF_T definition is missing!" + Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_is_missing +#endif + +#ifndef CURL_FORMAT_CURL_OFF_TU +# error "CURL_FORMAT_CURL_OFF_TU definition is missing!" + Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_is_missing +#endif + +#ifndef CURL_FORMAT_OFF_T +# error "CURL_FORMAT_OFF_T definition is missing!" + Error Compilation_aborted_CURL_FORMAT_OFF_T_is_missing +#endif + +#ifndef CURL_SIZEOF_CURL_OFF_T +# error "CURL_SIZEOF_CURL_OFF_T definition is missing!" + Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_is_missing +#endif + +#ifndef CURL_SUFFIX_CURL_OFF_T +# error "CURL_SUFFIX_CURL_OFF_T definition is missing!" + Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_is_missing +#endif + +#ifndef CURL_SUFFIX_CURL_OFF_TU +# error "CURL_SUFFIX_CURL_OFF_TU definition is missing!" + Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_is_missing +#endif + +/* + * Macros private to this header file. + */ + +#define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1 + +#define CurlchkszGE(t1, t2) sizeof(t1) >= sizeof(t2) ? 1 : -1 + +/* + * Verify that the size previously defined and expected for long + * is the same as the one reported by sizeof() at compile time. + */ + +typedef char + __curl_rule_01__ + [CurlchkszEQ(long, CURL_SIZEOF_LONG)]; + +/* + * Verify that the size previously defined and expected for + * curl_off_t is actually the the same as the one reported + * by sizeof() at compile time. + */ + +typedef char + __curl_rule_02__ + [CurlchkszEQ(curl_off_t, CURL_SIZEOF_CURL_OFF_T)]; + +/* + * Verify at compile time that the size of curl_off_t as reported + * by sizeof() is greater or equal than the one reported for long + * for the current compilation. + */ + +typedef char + __curl_rule_03__ + [CurlchkszGE(curl_off_t, long)]; + +/* + * Verify that the size previously defined and expected for + * curl_socklen_t is actually the the same as the one reported + * by sizeof() at compile time. + */ + +typedef char + __curl_rule_04__ + [CurlchkszEQ(curl_socklen_t, CURL_SIZEOF_CURL_SOCKLEN_T)]; + +/* + * Verify at compile time that the size of curl_socklen_t as reported + * by sizeof() is greater or equal than the one reported for int for + * the current compilation. + */ + +typedef char + __curl_rule_05__ + [CurlchkszGE(curl_socklen_t, int)]; + +/* ================================================================ */ +/* EXTERNALLY AND INTERNALLY VISIBLE DEFINITIONS */ +/* ================================================================ */ + +/* + * CURL_ISOCPP and CURL_OFF_T_C definitions are done here in order to allow + * these to be visible and exported by the external libcurl interface API, + * while also making them visible to the library internals, simply including + * setup.h, without actually needing to include curl.h internally. + * If some day this section would grow big enough, all this should be moved + * to its own header file. + */ + +/* + * Figure out if we can use the ## preprocessor operator, which is supported + * by ISO/ANSI C and C++. Some compilers support it without setting __STDC__ + * or __cplusplus so we need to carefully check for them too. + */ + +#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \ + defined(__HP_aCC) || defined(__BORLANDC__) || defined(__LCC__) || \ + defined(__POCC__) || defined(__SALFORDC__) || defined(__HIGHC__) || \ + defined(__ILEC400__) + /* This compiler is believed to have an ISO compatible preprocessor */ +#define CURL_ISOCPP +#else + /* This compiler is believed NOT to have an ISO compatible preprocessor */ +#undef CURL_ISOCPP +#endif + +/* + * Macros for minimum-width signed and unsigned curl_off_t integer constants. + */ + +#ifdef CURL_ISOCPP +# define __CURL_OFF_T_C_HELPER2(Val,Suffix) Val ## Suffix +#else +# define __CURL_OFF_T_C_HELPER2(Val,Suffix) Val/**/Suffix +#endif +#define __CURL_OFF_T_C_HELPER1(Val,Suffix) __CURL_OFF_T_C_HELPER2(Val,Suffix) +#define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HELPER1(Val,CURL_SUFFIX_CURL_OFF_T) +#define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HELPER1(Val,CURL_SUFFIX_CURL_OFF_TU) + +/* + * Get rid of macros private to this header file. + */ + +#undef CurlchkszEQ +#undef CurlchkszGE + +/* + * Get rid of macros not intended to exist beyond this point. + */ + +#undef CURL_PULL_WS2TCPIP_H +#undef CURL_PULL_SYS_TYPES_H +#undef CURL_PULL_SYS_SOCKET_H +#undef CURL_PULL_STDINT_H +#undef CURL_PULL_INTTYPES_H + +#undef CURL_TYPEOF_CURL_SOCKLEN_T +#undef CURL_TYPEOF_CURL_OFF_T + +#ifdef CURL_NO_OLDIES +#undef CURL_FORMAT_OFF_T /* not required since 7.19.0 - obsoleted in 7.20.0 */ +#endif + +#endif /* __CURL_CURLRULES_H */ diff --git a/lib/mac32-gcc40/include/curl/curlver.h b/lib/mac32-gcc40/include/curl/curlver.h new file mode 100644 index 0000000000000000000000000000000000000000..e345f56dfbfe13a9c9e8252ff88a2d848096e46d --- /dev/null +++ b/lib/mac32-gcc40/include/curl/curlver.h @@ -0,0 +1,69 @@ +#ifndef __CURL_CURLVER_H +#define __CURL_CURLVER_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2010, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ + +/* This header file contains nothing but libcurl version info, generated by + a script at release-time. This was made its own header file in 7.11.2 */ + +/* This is the global package copyright */ +#define LIBCURL_COPYRIGHT "1996 - 2010 Daniel Stenberg, ." + +/* This is the version number of the libcurl package from which this header + file origins: */ +#define LIBCURL_VERSION "7.21.2" + +/* The numeric version number is also available "in parts" by using these + defines: */ +#define LIBCURL_VERSION_MAJOR 7 +#define LIBCURL_VERSION_MINOR 21 +#define LIBCURL_VERSION_PATCH 2 + +/* This is the numeric version of the libcurl version number, meant for easier + parsing and comparions by programs. The LIBCURL_VERSION_NUM define will + always follow this syntax: + + 0xXXYYZZ + + Where XX, YY and ZZ are the main version, release and patch numbers in + hexadecimal (using 8 bits each). All three numbers are always represented + using two digits. 1.2 would appear as "0x010200" while version 9.11.7 + appears as "0x090b07". + + This 6-digit (24 bits) hexadecimal number does not show pre-release number, + and it is always a greater number in a more recent release. It makes + comparisons with greater than and less than work. +*/ +#define LIBCURL_VERSION_NUM 0x071502 + +/* + * This is the date and time when the full source package was created. The + * timestamp is not stored in git, as the timestamp is properly set in the + * tarballs by the maketgz script. + * + * The format of the date should follow this template: + * + * "Mon Feb 12 11:35:33 UTC 2007" + */ +#define LIBCURL_TIMESTAMP "Tue Oct 12 22:03:31 UTC 2010" + +#endif /* __CURL_CURLVER_H */ diff --git a/lib/mac32-gcc40/include/curl/easy.h b/lib/mac32-gcc40/include/curl/easy.h new file mode 100644 index 0000000000000000000000000000000000000000..1ddb4fe5a2cb476f1a1278b83c7b576135bd5aa9 --- /dev/null +++ b/lib/mac32-gcc40/include/curl/easy.h @@ -0,0 +1,102 @@ +#ifndef __CURL_EASY_H +#define __CURL_EASY_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2008, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ +#ifdef __cplusplus +extern "C" { +#endif + +CURL_EXTERN CURL *curl_easy_init(void); +CURL_EXTERN CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...); +CURL_EXTERN CURLcode curl_easy_perform(CURL *curl); +CURL_EXTERN void curl_easy_cleanup(CURL *curl); + +/* + * NAME curl_easy_getinfo() + * + * DESCRIPTION + * + * Request internal information from the curl session with this function. The + * third argument MUST be a pointer to a long, a pointer to a char * or a + * pointer to a double (as the documentation describes elsewhere). The data + * pointed to will be filled in accordingly and can be relied upon only if the + * function returns CURLE_OK. This function is intended to get used *AFTER* a + * performed transfer, all results from this function are undefined until the + * transfer is completed. + */ +CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...); + + +/* + * NAME curl_easy_duphandle() + * + * DESCRIPTION + * + * Creates a new curl session handle with the same options set for the handle + * passed in. Duplicating a handle could only be a matter of cloning data and + * options, internal state info and things like persistant connections cannot + * be transfered. It is useful in multithreaded applications when you can run + * curl_easy_duphandle() for each new thread to avoid a series of identical + * curl_easy_setopt() invokes in every thread. + */ +CURL_EXTERN CURL* curl_easy_duphandle(CURL *curl); + +/* + * NAME curl_easy_reset() + * + * DESCRIPTION + * + * Re-initializes a CURL handle to the default values. This puts back the + * handle to the same state as it was in when it was just created. + * + * It does keep: live connections, the Session ID cache, the DNS cache and the + * cookies. + */ +CURL_EXTERN void curl_easy_reset(CURL *curl); + +/* + * NAME curl_easy_recv() + * + * DESCRIPTION + * + * Receives data from the connected socket. Use after successful + * curl_easy_perform() with CURLOPT_CONNECT_ONLY option. + */ +CURL_EXTERN CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen, + size_t *n); + +/* + * NAME curl_easy_send() + * + * DESCRIPTION + * + * Sends data over the connected socket. Use after successful + * curl_easy_perform() with CURLOPT_CONNECT_ONLY option. + */ +CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer, + size_t buflen, size_t *n); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/lib/mac32-gcc40/include/curl/mprintf.h b/lib/mac32-gcc40/include/curl/mprintf.h new file mode 100644 index 0000000000000000000000000000000000000000..de7dd2f3c360e327e6280372e8a10f335fcf3504 --- /dev/null +++ b/lib/mac32-gcc40/include/curl/mprintf.h @@ -0,0 +1,81 @@ +#ifndef __CURL_MPRINTF_H +#define __CURL_MPRINTF_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2006, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ + +#include +#include /* needed for FILE */ + +#include "curl.h" + +#ifdef __cplusplus +extern "C" { +#endif + +CURL_EXTERN int curl_mprintf(const char *format, ...); +CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...); +CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...); +CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength, + const char *format, ...); +CURL_EXTERN int curl_mvprintf(const char *format, va_list args); +CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args); +CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args); +CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength, + const char *format, va_list args); +CURL_EXTERN char *curl_maprintf(const char *format, ...); +CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args); + +#ifdef _MPRINTF_REPLACE +# undef printf +# undef fprintf +# undef sprintf +# undef vsprintf +# undef snprintf +# undef vprintf +# undef vfprintf +# undef vsnprintf +# undef aprintf +# undef vaprintf +# define printf curl_mprintf +# define fprintf curl_mfprintf +#ifdef CURLDEBUG +/* When built with CURLDEBUG we define away the sprintf() functions since we + don't want internal code to be using them */ +# define sprintf sprintf_was_used +# define vsprintf vsprintf_was_used +#else +# define sprintf curl_msprintf +# define vsprintf curl_mvsprintf +#endif +# define snprintf curl_msnprintf +# define vprintf curl_mvprintf +# define vfprintf curl_mvfprintf +# define vsnprintf curl_mvsnprintf +# define aprintf curl_maprintf +# define vaprintf curl_mvaprintf +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* __CURL_MPRINTF_H */ diff --git a/lib/mac32-gcc40/include/curl/multi.h b/lib/mac32-gcc40/include/curl/multi.h new file mode 100644 index 0000000000000000000000000000000000000000..f96566669c6771fbbf2e1735f826d8cb3a1fce11 --- /dev/null +++ b/lib/mac32-gcc40/include/curl/multi.h @@ -0,0 +1,345 @@ +#ifndef __CURL_MULTI_H +#define __CURL_MULTI_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2007, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ +/* + This is an "external" header file. Don't give away any internals here! + + GOALS + + o Enable a "pull" interface. The application that uses libcurl decides where + and when to ask libcurl to get/send data. + + o Enable multiple simultaneous transfers in the same thread without making it + complicated for the application. + + o Enable the application to select() on its own file descriptors and curl's + file descriptors simultaneous easily. + +*/ + +/* + * This header file should not really need to include "curl.h" since curl.h + * itself includes this file and we expect user applications to do #include + * without the need for especially including multi.h. + * + * For some reason we added this include here at one point, and rather than to + * break existing (wrongly written) libcurl applications, we leave it as-is + * but with this warning attached. + */ +#include "curl.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void CURLM; + +typedef enum { + CURLM_CALL_MULTI_PERFORM = -1, /* please call curl_multi_perform() or + curl_multi_socket*() soon */ + CURLM_OK, + CURLM_BAD_HANDLE, /* the passed-in handle is not a valid CURLM handle */ + CURLM_BAD_EASY_HANDLE, /* an easy handle was not good/valid */ + CURLM_OUT_OF_MEMORY, /* if you ever get this, you're in deep sh*t */ + CURLM_INTERNAL_ERROR, /* this is a libcurl bug */ + CURLM_BAD_SOCKET, /* the passed in socket argument did not match */ + CURLM_UNKNOWN_OPTION, /* curl_multi_setopt() with unsupported option */ + CURLM_LAST +} CURLMcode; + +/* just to make code nicer when using curl_multi_socket() you can now check + for CURLM_CALL_MULTI_SOCKET too in the same style it works for + curl_multi_perform() and CURLM_CALL_MULTI_PERFORM */ +#define CURLM_CALL_MULTI_SOCKET CURLM_CALL_MULTI_PERFORM + +typedef enum { + CURLMSG_NONE, /* first, not used */ + CURLMSG_DONE, /* This easy handle has completed. 'result' contains + the CURLcode of the transfer */ + CURLMSG_LAST /* last, not used */ +} CURLMSG; + +struct CURLMsg { + CURLMSG msg; /* what this message means */ + CURL *easy_handle; /* the handle it concerns */ + union { + void *whatever; /* message-specific data */ + CURLcode result; /* return code for transfer */ + } data; +}; +typedef struct CURLMsg CURLMsg; + +/* + * Name: curl_multi_init() + * + * Desc: inititalize multi-style curl usage + * + * Returns: a new CURLM handle to use in all 'curl_multi' functions. + */ +CURL_EXTERN CURLM *curl_multi_init(void); + +/* + * Name: curl_multi_add_handle() + * + * Desc: add a standard curl handle to the multi stack + * + * Returns: CURLMcode type, general multi error code. + */ +CURL_EXTERN CURLMcode curl_multi_add_handle(CURLM *multi_handle, + CURL *curl_handle); + + /* + * Name: curl_multi_remove_handle() + * + * Desc: removes a curl handle from the multi stack again + * + * Returns: CURLMcode type, general multi error code. + */ +CURL_EXTERN CURLMcode curl_multi_remove_handle(CURLM *multi_handle, + CURL *curl_handle); + + /* + * Name: curl_multi_fdset() + * + * Desc: Ask curl for its fd_set sets. The app can use these to select() or + * poll() on. We want curl_multi_perform() called as soon as one of + * them are ready. + * + * Returns: CURLMcode type, general multi error code. + */ +CURL_EXTERN CURLMcode curl_multi_fdset(CURLM *multi_handle, + fd_set *read_fd_set, + fd_set *write_fd_set, + fd_set *exc_fd_set, + int *max_fd); + + /* + * Name: curl_multi_perform() + * + * Desc: When the app thinks there's data available for curl it calls this + * function to read/write whatever there is right now. This returns + * as soon as the reads and writes are done. This function does not + * require that there actually is data available for reading or that + * data can be written, it can be called just in case. It returns + * the number of handles that still transfer data in the second + * argument's integer-pointer. + * + * Returns: CURLMcode type, general multi error code. *NOTE* that this only + * returns errors etc regarding the whole multi stack. There might + * still have occurred problems on invidual transfers even when this + * returns OK. + */ +CURL_EXTERN CURLMcode curl_multi_perform(CURLM *multi_handle, + int *running_handles); + + /* + * Name: curl_multi_cleanup() + * + * Desc: Cleans up and removes a whole multi stack. It does not free or + * touch any individual easy handles in any way. We need to define + * in what state those handles will be if this function is called + * in the middle of a transfer. + * + * Returns: CURLMcode type, general multi error code. + */ +CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle); + +/* + * Name: curl_multi_info_read() + * + * Desc: Ask the multi handle if there's any messages/informationals from + * the individual transfers. Messages include informationals such as + * error code from the transfer or just the fact that a transfer is + * completed. More details on these should be written down as well. + * + * Repeated calls to this function will return a new struct each + * time, until a special "end of msgs" struct is returned as a signal + * that there is no more to get at this point. + * + * The data the returned pointer points to will not survive calling + * curl_multi_cleanup(). + * + * The 'CURLMsg' struct is meant to be very simple and only contain + * very basic informations. If more involved information is wanted, + * we will provide the particular "transfer handle" in that struct + * and that should/could/would be used in subsequent + * curl_easy_getinfo() calls (or similar). The point being that we + * must never expose complex structs to applications, as then we'll + * undoubtably get backwards compatibility problems in the future. + * + * Returns: A pointer to a filled-in struct, or NULL if it failed or ran out + * of structs. It also writes the number of messages left in the + * queue (after this read) in the integer the second argument points + * to. + */ +CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle, + int *msgs_in_queue); + +/* + * Name: curl_multi_strerror() + * + * Desc: The curl_multi_strerror function may be used to turn a CURLMcode + * value into the equivalent human readable error string. This is + * useful for printing meaningful error messages. + * + * Returns: A pointer to a zero-terminated error message. + */ +CURL_EXTERN const char *curl_multi_strerror(CURLMcode); + +/* + * Name: curl_multi_socket() and + * curl_multi_socket_all() + * + * Desc: An alternative version of curl_multi_perform() that allows the + * application to pass in one of the file descriptors that have been + * detected to have "action" on them and let libcurl perform. + * See man page for details. + */ +#define CURL_POLL_NONE 0 +#define CURL_POLL_IN 1 +#define CURL_POLL_OUT 2 +#define CURL_POLL_INOUT 3 +#define CURL_POLL_REMOVE 4 + +#define CURL_SOCKET_TIMEOUT CURL_SOCKET_BAD + +#define CURL_CSELECT_IN 0x01 +#define CURL_CSELECT_OUT 0x02 +#define CURL_CSELECT_ERR 0x04 + +typedef int (*curl_socket_callback)(CURL *easy, /* easy handle */ + curl_socket_t s, /* socket */ + int what, /* see above */ + void *userp, /* private callback + pointer */ + void *socketp); /* private socket + pointer */ +/* + * Name: curl_multi_timer_callback + * + * Desc: Called by libcurl whenever the library detects a change in the + * maximum number of milliseconds the app is allowed to wait before + * curl_multi_socket() or curl_multi_perform() must be called + * (to allow libcurl's timed events to take place). + * + * Returns: The callback should return zero. + */ +typedef int (*curl_multi_timer_callback)(CURLM *multi, /* multi handle */ + long timeout_ms, /* see above */ + void *userp); /* private callback + pointer */ + +CURL_EXTERN CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s, + int *running_handles); + +CURL_EXTERN CURLMcode curl_multi_socket_action(CURLM *multi_handle, + curl_socket_t s, + int ev_bitmask, + int *running_handles); + +CURL_EXTERN CURLMcode curl_multi_socket_all(CURLM *multi_handle, + int *running_handles); + +#ifndef CURL_ALLOW_OLD_MULTI_SOCKET +/* This macro below was added in 7.16.3 to push users who recompile to use + the new curl_multi_socket_action() instead of the old curl_multi_socket() +*/ +#define curl_multi_socket(x,y,z) curl_multi_socket_action(x,y,0,z) +#endif + +/* + * Name: curl_multi_timeout() + * + * Desc: Returns the maximum number of milliseconds the app is allowed to + * wait before curl_multi_socket() or curl_multi_perform() must be + * called (to allow libcurl's timed events to take place). + * + * Returns: CURLM error code. + */ +CURL_EXTERN CURLMcode curl_multi_timeout(CURLM *multi_handle, + long *milliseconds); + +#undef CINIT /* re-using the same name as in curl.h */ + +#ifdef CURL_ISOCPP +#define CINIT(name,type,num) CURLMOPT_ ## name = CURLOPTTYPE_ ## type + num +#else +/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */ +#define LONG CURLOPTTYPE_LONG +#define OBJECTPOINT CURLOPTTYPE_OBJECTPOINT +#define FUNCTIONPOINT CURLOPTTYPE_FUNCTIONPOINT +#define OFF_T CURLOPTTYPE_OFF_T +#define CINIT(name,type,number) CURLMOPT_/**/name = type + number +#endif + +typedef enum { + /* This is the socket callback function pointer */ + CINIT(SOCKETFUNCTION, FUNCTIONPOINT, 1), + + /* This is the argument passed to the socket callback */ + CINIT(SOCKETDATA, OBJECTPOINT, 2), + + /* set to 1 to enable pipelining for this multi handle */ + CINIT(PIPELINING, LONG, 3), + + /* This is the timer callback function pointer */ + CINIT(TIMERFUNCTION, FUNCTIONPOINT, 4), + + /* This is the argument passed to the timer callback */ + CINIT(TIMERDATA, OBJECTPOINT, 5), + + /* maximum number of entries in the connection cache */ + CINIT(MAXCONNECTS, LONG, 6), + + CURLMOPT_LASTENTRY /* the last unused */ +} CURLMoption; + + +/* + * Name: curl_multi_setopt() + * + * Desc: Sets options for the multi handle. + * + * Returns: CURLM error code. + */ +CURL_EXTERN CURLMcode curl_multi_setopt(CURLM *multi_handle, + CURLMoption option, ...); + + +/* + * Name: curl_multi_assign() + * + * Desc: This function sets an association in the multi handle between the + * given socket and a private pointer of the application. This is + * (only) useful for curl_multi_socket uses. + * + * Returns: CURLM error code. + */ +CURL_EXTERN CURLMcode curl_multi_assign(CURLM *multi_handle, + curl_socket_t sockfd, void *sockp); + +#ifdef __cplusplus +} /* end of extern "C" */ +#endif + +#endif diff --git a/lib/mac32-gcc40/include/curl/stdcheaders.h b/lib/mac32-gcc40/include/curl/stdcheaders.h new file mode 100644 index 0000000000000000000000000000000000000000..ad82ef6335d6167aecf8b9e49d68c462ea028bfd --- /dev/null +++ b/lib/mac32-gcc40/include/curl/stdcheaders.h @@ -0,0 +1,33 @@ +#ifndef __STDC_HEADERS_H +#define __STDC_HEADERS_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2010, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ + +#include + +size_t fread (void *, size_t, size_t, FILE *); +size_t fwrite (const void *, size_t, size_t, FILE *); + +int strcasecmp(const char *, const char *); +int strncasecmp(const char *, const char *, size_t); + +#endif /* __STDC_HEADERS_H */ diff --git a/lib/mac32-gcc40/include/curl/typecheck-gcc.h b/lib/mac32-gcc40/include/curl/typecheck-gcc.h new file mode 100644 index 0000000000000000000000000000000000000000..e6f74a95840326a9156032507a7844cca76ad683 --- /dev/null +++ b/lib/mac32-gcc40/include/curl/typecheck-gcc.h @@ -0,0 +1,584 @@ +#ifndef __CURL_TYPECHECK_GCC_H +#define __CURL_TYPECHECK_GCC_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2010, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ + +/* wraps curl_easy_setopt() with typechecking */ + +/* To add a new kind of warning, add an + * if(_curl_is_sometype_option(_curl_opt)) + * if(!_curl_is_sometype(value)) + * _curl_easy_setopt_err_sometype(); + * block and define _curl_is_sometype_option, _curl_is_sometype and + * _curl_easy_setopt_err_sometype below + * + * NOTE: We use two nested 'if' statements here instead of the && operator, in + * order to work around gcc bug #32061. It affects only gcc 4.3.x/4.4.x + * when compiling with -Wlogical-op. + * + * To add an option that uses the same type as an existing option, you'll just + * need to extend the appropriate _curl_*_option macro + */ +#define curl_easy_setopt(handle, option, value) \ +__extension__ ({ \ + __typeof__ (option) _curl_opt = option; \ + if (__builtin_constant_p(_curl_opt)) { \ + if (_curl_is_long_option(_curl_opt)) \ + if (!_curl_is_long(value)) \ + _curl_easy_setopt_err_long(); \ + if (_curl_is_off_t_option(_curl_opt)) \ + if (!_curl_is_off_t(value)) \ + _curl_easy_setopt_err_curl_off_t(); \ + if (_curl_is_string_option(_curl_opt)) \ + if (!_curl_is_string(value)) \ + _curl_easy_setopt_err_string(); \ + if (_curl_is_write_cb_option(_curl_opt)) \ + if (!_curl_is_write_cb(value)) \ + _curl_easy_setopt_err_write_callback(); \ + if ((_curl_opt) == CURLOPT_READFUNCTION) \ + if (!_curl_is_read_cb(value)) \ + _curl_easy_setopt_err_read_cb(); \ + if ((_curl_opt) == CURLOPT_IOCTLFUNCTION) \ + if (!_curl_is_ioctl_cb(value)) \ + _curl_easy_setopt_err_ioctl_cb(); \ + if ((_curl_opt) == CURLOPT_SOCKOPTFUNCTION) \ + if (!_curl_is_sockopt_cb(value)) \ + _curl_easy_setopt_err_sockopt_cb(); \ + if ((_curl_opt) == CURLOPT_OPENSOCKETFUNCTION) \ + if (!_curl_is_opensocket_cb(value)) \ + _curl_easy_setopt_err_opensocket_cb(); \ + if ((_curl_opt) == CURLOPT_PROGRESSFUNCTION) \ + if (!_curl_is_progress_cb(value)) \ + _curl_easy_setopt_err_progress_cb(); \ + if ((_curl_opt) == CURLOPT_DEBUGFUNCTION) \ + if (!_curl_is_debug_cb(value)) \ + _curl_easy_setopt_err_debug_cb(); \ + if ((_curl_opt) == CURLOPT_SSL_CTX_FUNCTION) \ + if (!_curl_is_ssl_ctx_cb(value)) \ + _curl_easy_setopt_err_ssl_ctx_cb(); \ + if (_curl_is_conv_cb_option(_curl_opt)) \ + if (!_curl_is_conv_cb(value)) \ + _curl_easy_setopt_err_conv_cb(); \ + if ((_curl_opt) == CURLOPT_SEEKFUNCTION) \ + if (!_curl_is_seek_cb(value)) \ + _curl_easy_setopt_err_seek_cb(); \ + if (_curl_is_cb_data_option(_curl_opt)) \ + if (!_curl_is_cb_data(value)) \ + _curl_easy_setopt_err_cb_data(); \ + if ((_curl_opt) == CURLOPT_ERRORBUFFER) \ + if (!_curl_is_error_buffer(value)) \ + _curl_easy_setopt_err_error_buffer(); \ + if ((_curl_opt) == CURLOPT_STDERR) \ + if (!_curl_is_FILE(value)) \ + _curl_easy_setopt_err_FILE(); \ + if (_curl_is_postfields_option(_curl_opt)) \ + if (!_curl_is_postfields(value)) \ + _curl_easy_setopt_err_postfields(); \ + if ((_curl_opt) == CURLOPT_HTTPPOST) \ + if (!_curl_is_arr((value), struct curl_httppost)) \ + _curl_easy_setopt_err_curl_httpost(); \ + if (_curl_is_slist_option(_curl_opt)) \ + if (!_curl_is_arr((value), struct curl_slist)) \ + _curl_easy_setopt_err_curl_slist(); \ + if ((_curl_opt) == CURLOPT_SHARE) \ + if (!_curl_is_ptr((value), CURLSH)) \ + _curl_easy_setopt_err_CURLSH(); \ + } \ + curl_easy_setopt(handle, _curl_opt, value); \ +}) + +/* wraps curl_easy_getinfo() with typechecking */ +/* FIXME: don't allow const pointers */ +#define curl_easy_getinfo(handle, info, arg) \ +__extension__ ({ \ + __typeof__ (info) _curl_info = info; \ + if (__builtin_constant_p(_curl_info)) { \ + if (_curl_is_string_info(_curl_info)) \ + if (!_curl_is_arr((arg), char *)) \ + _curl_easy_getinfo_err_string(); \ + if (_curl_is_long_info(_curl_info)) \ + if (!_curl_is_arr((arg), long)) \ + _curl_easy_getinfo_err_long(); \ + if (_curl_is_double_info(_curl_info)) \ + if (!_curl_is_arr((arg), double)) \ + _curl_easy_getinfo_err_double(); \ + if (_curl_is_slist_info(_curl_info)) \ + if (!_curl_is_arr((arg), struct curl_slist *)) \ + _curl_easy_getinfo_err_curl_slist(); \ + } \ + curl_easy_getinfo(handle, _curl_info, arg); \ +}) + +/* TODO: typechecking for curl_share_setopt() and curl_multi_setopt(), + * for now just make sure that the functions are called with three + * arguments + */ +#define curl_share_setopt(share,opt,param) curl_share_setopt(share,opt,param) +#define curl_multi_setopt(handle,opt,param) curl_multi_setopt(handle,opt,param) + + +/* the actual warnings, triggered by calling the _curl_easy_setopt_err* + * functions */ + +/* To define a new warning, use _CURL_WARNING(identifier, "message") */ +#define _CURL_WARNING(id, message) \ + static void __attribute__((warning(message))) __attribute__((unused)) \ + __attribute__((noinline)) id(void) { __asm__(""); } + +_CURL_WARNING(_curl_easy_setopt_err_long, + "curl_easy_setopt expects a long argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_curl_off_t, + "curl_easy_setopt expects a curl_off_t argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_string, + "curl_easy_setopt expects a string (char* or char[]) argument for this option" + ) +_CURL_WARNING(_curl_easy_setopt_err_write_callback, + "curl_easy_setopt expects a curl_write_callback argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_read_cb, + "curl_easy_setopt expects a curl_read_callback argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_ioctl_cb, + "curl_easy_setopt expects a curl_ioctl_callback argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_sockopt_cb, + "curl_easy_setopt expects a curl_sockopt_callback argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_opensocket_cb, + "curl_easy_setopt expects a curl_opensocket_callback argument for this option" + ) +_CURL_WARNING(_curl_easy_setopt_err_progress_cb, + "curl_easy_setopt expects a curl_progress_callback argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_debug_cb, + "curl_easy_setopt expects a curl_debug_callback argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_ssl_ctx_cb, + "curl_easy_setopt expects a curl_ssl_ctx_callback argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_conv_cb, + "curl_easy_setopt expects a curl_conv_callback argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_seek_cb, + "curl_easy_setopt expects a curl_seek_callback argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_cb_data, + "curl_easy_setopt expects a private data pointer as argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_error_buffer, + "curl_easy_setopt expects a char buffer of CURL_ERROR_SIZE as argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_FILE, + "curl_easy_setopt expects a FILE* argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_postfields, + "curl_easy_setopt expects a void* or char* argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_curl_httpost, + "curl_easy_setopt expects a struct curl_httppost* argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_curl_slist, + "curl_easy_setopt expects a struct curl_slist* argument for this option") +_CURL_WARNING(_curl_easy_setopt_err_CURLSH, + "curl_easy_setopt expects a CURLSH* argument for this option") + +_CURL_WARNING(_curl_easy_getinfo_err_string, + "curl_easy_getinfo expects a pointer to char * for this info") +_CURL_WARNING(_curl_easy_getinfo_err_long, + "curl_easy_getinfo expects a pointer to long for this info") +_CURL_WARNING(_curl_easy_getinfo_err_double, + "curl_easy_getinfo expects a pointer to double for this info") +_CURL_WARNING(_curl_easy_getinfo_err_curl_slist, + "curl_easy_getinfo expects a pointer to struct curl_slist * for this info") + +/* groups of curl_easy_setops options that take the same type of argument */ + +/* To add a new option to one of the groups, just add + * (option) == CURLOPT_SOMETHING + * to the or-expression. If the option takes a long or curl_off_t, you don't + * have to do anything + */ + +/* evaluates to true if option takes a long argument */ +#define _curl_is_long_option(option) \ + (0 < (option) && (option) < CURLOPTTYPE_OBJECTPOINT) + +#define _curl_is_off_t_option(option) \ + ((option) > CURLOPTTYPE_OFF_T) + +/* evaluates to true if option takes a char* argument */ +#define _curl_is_string_option(option) \ + ((option) == CURLOPT_URL || \ + (option) == CURLOPT_PROXY || \ + (option) == CURLOPT_INTERFACE || \ + (option) == CURLOPT_NETRC_FILE || \ + (option) == CURLOPT_USERPWD || \ + (option) == CURLOPT_USERNAME || \ + (option) == CURLOPT_PASSWORD || \ + (option) == CURLOPT_PROXYUSERPWD || \ + (option) == CURLOPT_PROXYUSERNAME || \ + (option) == CURLOPT_PROXYPASSWORD || \ + (option) == CURLOPT_NOPROXY || \ + (option) == CURLOPT_ENCODING || \ + (option) == CURLOPT_REFERER || \ + (option) == CURLOPT_USERAGENT || \ + (option) == CURLOPT_COOKIE || \ + (option) == CURLOPT_COOKIEFILE || \ + (option) == CURLOPT_COOKIEJAR || \ + (option) == CURLOPT_COOKIELIST || \ + (option) == CURLOPT_FTPPORT || \ + (option) == CURLOPT_FTP_ALTERNATIVE_TO_USER || \ + (option) == CURLOPT_FTP_ACCOUNT || \ + (option) == CURLOPT_RANGE || \ + (option) == CURLOPT_CUSTOMREQUEST || \ + (option) == CURLOPT_SSLCERT || \ + (option) == CURLOPT_SSLCERTTYPE || \ + (option) == CURLOPT_SSLKEY || \ + (option) == CURLOPT_SSLKEYTYPE || \ + (option) == CURLOPT_KEYPASSWD || \ + (option) == CURLOPT_SSLENGINE || \ + (option) == CURLOPT_CAINFO || \ + (option) == CURLOPT_CAPATH || \ + (option) == CURLOPT_RANDOM_FILE || \ + (option) == CURLOPT_EGDSOCKET || \ + (option) == CURLOPT_SSL_CIPHER_LIST || \ + (option) == CURLOPT_KRBLEVEL || \ + (option) == CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 || \ + (option) == CURLOPT_SSH_PUBLIC_KEYFILE || \ + (option) == CURLOPT_SSH_PRIVATE_KEYFILE || \ + (option) == CURLOPT_CRLFILE || \ + (option) == CURLOPT_ISSUERCERT || \ + (option) == CURLOPT_SOCKS5_GSSAPI_SERVICE || \ + (option) == CURLOPT_SSH_KNOWNHOSTS || \ + (option) == CURLOPT_MAIL_FROM || \ + (option) == CURLOPT_RTSP_SESSION_ID || \ + (option) == CURLOPT_RTSP_STREAM_URI || \ + (option) == CURLOPT_RTSP_TRANSPORT || \ + 0) + +/* evaluates to true if option takes a curl_write_callback argument */ +#define _curl_is_write_cb_option(option) \ + ((option) == CURLOPT_HEADERFUNCTION || \ + (option) == CURLOPT_WRITEFUNCTION) + +/* evaluates to true if option takes a curl_conv_callback argument */ +#define _curl_is_conv_cb_option(option) \ + ((option) == CURLOPT_CONV_TO_NETWORK_FUNCTION || \ + (option) == CURLOPT_CONV_FROM_NETWORK_FUNCTION || \ + (option) == CURLOPT_CONV_FROM_UTF8_FUNCTION) + +/* evaluates to true if option takes a data argument to pass to a callback */ +#define _curl_is_cb_data_option(option) \ + ((option) == CURLOPT_WRITEDATA || \ + (option) == CURLOPT_READDATA || \ + (option) == CURLOPT_IOCTLDATA || \ + (option) == CURLOPT_SOCKOPTDATA || \ + (option) == CURLOPT_OPENSOCKETDATA || \ + (option) == CURLOPT_PROGRESSDATA || \ + (option) == CURLOPT_WRITEHEADER || \ + (option) == CURLOPT_DEBUGDATA || \ + (option) == CURLOPT_SSL_CTX_DATA || \ + (option) == CURLOPT_SEEKDATA || \ + (option) == CURLOPT_PRIVATE || \ + (option) == CURLOPT_SSH_KEYDATA || \ + (option) == CURLOPT_INTERLEAVEDATA || \ + (option) == CURLOPT_CHUNK_DATA || \ + (option) == CURLOPT_FNMATCH_DATA || \ + 0) + +/* evaluates to true if option takes a POST data argument (void* or char*) */ +#define _curl_is_postfields_option(option) \ + ((option) == CURLOPT_POSTFIELDS || \ + (option) == CURLOPT_COPYPOSTFIELDS || \ + 0) + +/* evaluates to true if option takes a struct curl_slist * argument */ +#define _curl_is_slist_option(option) \ + ((option) == CURLOPT_HTTPHEADER || \ + (option) == CURLOPT_HTTP200ALIASES || \ + (option) == CURLOPT_QUOTE || \ + (option) == CURLOPT_POSTQUOTE || \ + (option) == CURLOPT_PREQUOTE || \ + (option) == CURLOPT_TELNETOPTIONS || \ + (option) == CURLOPT_MAIL_RCPT || \ + 0) + +/* groups of curl_easy_getinfo infos that take the same type of argument */ + +/* evaluates to true if info expects a pointer to char * argument */ +#define _curl_is_string_info(info) \ + (CURLINFO_STRING < (info) && (info) < CURLINFO_LONG) + +/* evaluates to true if info expects a pointer to long argument */ +#define _curl_is_long_info(info) \ + (CURLINFO_LONG < (info) && (info) < CURLINFO_DOUBLE) + +/* evaluates to true if info expects a pointer to double argument */ +#define _curl_is_double_info(info) \ + (CURLINFO_DOUBLE < (info) && (info) < CURLINFO_SLIST) + +/* true if info expects a pointer to struct curl_slist * argument */ +#define _curl_is_slist_info(info) \ + (CURLINFO_SLIST < (info)) + + +/* typecheck helpers -- check whether given expression has requested type*/ + +/* For pointers, you can use the _curl_is_ptr/_curl_is_arr macros, + * otherwise define a new macro. Search for __builtin_types_compatible_p + * in the GCC manual. + * NOTE: these macros MUST NOT EVALUATE their arguments! The argument is + * the actual expression passed to the curl_easy_setopt macro. This + * means that you can only apply the sizeof and __typeof__ operators, no + * == or whatsoever. + */ + +/* XXX: should evaluate to true iff expr is a pointer */ +#define _curl_is_any_ptr(expr) \ + (sizeof(expr) == sizeof(void*)) + +/* evaluates to true if expr is NULL */ +/* XXX: must not evaluate expr, so this check is not accurate */ +#define _curl_is_NULL(expr) \ + (__builtin_types_compatible_p(__typeof__(expr), __typeof__(NULL))) + +/* evaluates to true if expr is type*, const type* or NULL */ +#define _curl_is_ptr(expr, type) \ + (_curl_is_NULL(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), type *) || \ + __builtin_types_compatible_p(__typeof__(expr), const type *)) + +/* evaluates to true if expr is one of type[], type*, NULL or const type* */ +#define _curl_is_arr(expr, type) \ + (_curl_is_ptr((expr), type) || \ + __builtin_types_compatible_p(__typeof__(expr), type [])) + +/* evaluates to true if expr is a string */ +#define _curl_is_string(expr) \ + (_curl_is_arr((expr), char) || \ + _curl_is_arr((expr), signed char) || \ + _curl_is_arr((expr), unsigned char)) + +/* evaluates to true if expr is a long (no matter the signedness) + * XXX: for now, int is also accepted (and therefore short and char, which + * are promoted to int when passed to a variadic function) */ +#define _curl_is_long(expr) \ + (__builtin_types_compatible_p(__typeof__(expr), long) || \ + __builtin_types_compatible_p(__typeof__(expr), signed long) || \ + __builtin_types_compatible_p(__typeof__(expr), unsigned long) || \ + __builtin_types_compatible_p(__typeof__(expr), int) || \ + __builtin_types_compatible_p(__typeof__(expr), signed int) || \ + __builtin_types_compatible_p(__typeof__(expr), unsigned int) || \ + __builtin_types_compatible_p(__typeof__(expr), short) || \ + __builtin_types_compatible_p(__typeof__(expr), signed short) || \ + __builtin_types_compatible_p(__typeof__(expr), unsigned short) || \ + __builtin_types_compatible_p(__typeof__(expr), char) || \ + __builtin_types_compatible_p(__typeof__(expr), signed char) || \ + __builtin_types_compatible_p(__typeof__(expr), unsigned char)) + +/* evaluates to true if expr is of type curl_off_t */ +#define _curl_is_off_t(expr) \ + (__builtin_types_compatible_p(__typeof__(expr), curl_off_t)) + +/* evaluates to true if expr is abuffer suitable for CURLOPT_ERRORBUFFER */ +/* XXX: also check size of an char[] array? */ +#define _curl_is_error_buffer(expr) \ + (__builtin_types_compatible_p(__typeof__(expr), char *) || \ + __builtin_types_compatible_p(__typeof__(expr), char[])) + +/* evaluates to true if expr is of type (const) void* or (const) FILE* */ +#if 0 +#define _curl_is_cb_data(expr) \ + (_curl_is_ptr((expr), void) || \ + _curl_is_ptr((expr), FILE)) +#else /* be less strict */ +#define _curl_is_cb_data(expr) \ + _curl_is_any_ptr(expr) +#endif + +/* evaluates to true if expr is of type FILE* */ +#define _curl_is_FILE(expr) \ + (__builtin_types_compatible_p(__typeof__(expr), FILE *)) + +/* evaluates to true if expr can be passed as POST data (void* or char*) */ +#define _curl_is_postfields(expr) \ + (_curl_is_ptr((expr), void) || \ + _curl_is_arr((expr), char)) + +/* FIXME: the whole callback checking is messy... + * The idea is to tolerate char vs. void and const vs. not const + * pointers in arguments at least + */ +/* helper: __builtin_types_compatible_p distinguishes between functions and + * function pointers, hide it */ +#define _curl_callback_compatible(func, type) \ + (__builtin_types_compatible_p(__typeof__(func), type) || \ + __builtin_types_compatible_p(__typeof__(func), type*)) + +/* evaluates to true if expr is of type curl_read_callback or "similar" */ +#define _curl_is_read_cb(expr) \ + (_curl_is_NULL(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), __typeof__(fread)) || \ + __builtin_types_compatible_p(__typeof__(expr), curl_read_callback) || \ + _curl_callback_compatible((expr), _curl_read_callback1) || \ + _curl_callback_compatible((expr), _curl_read_callback2) || \ + _curl_callback_compatible((expr), _curl_read_callback3) || \ + _curl_callback_compatible((expr), _curl_read_callback4) || \ + _curl_callback_compatible((expr), _curl_read_callback5) || \ + _curl_callback_compatible((expr), _curl_read_callback6)) +typedef size_t (_curl_read_callback1)(char *, size_t, size_t, void*); +typedef size_t (_curl_read_callback2)(char *, size_t, size_t, const void*); +typedef size_t (_curl_read_callback3)(char *, size_t, size_t, FILE*); +typedef size_t (_curl_read_callback4)(void *, size_t, size_t, void*); +typedef size_t (_curl_read_callback5)(void *, size_t, size_t, const void*); +typedef size_t (_curl_read_callback6)(void *, size_t, size_t, FILE*); + +/* evaluates to true if expr is of type curl_write_callback or "similar" */ +#define _curl_is_write_cb(expr) \ + (_curl_is_read_cb(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), __typeof__(fwrite)) || \ + __builtin_types_compatible_p(__typeof__(expr), curl_write_callback) || \ + _curl_callback_compatible((expr), _curl_write_callback1) || \ + _curl_callback_compatible((expr), _curl_write_callback2) || \ + _curl_callback_compatible((expr), _curl_write_callback3) || \ + _curl_callback_compatible((expr), _curl_write_callback4) || \ + _curl_callback_compatible((expr), _curl_write_callback5) || \ + _curl_callback_compatible((expr), _curl_write_callback6)) +typedef size_t (_curl_write_callback1)(const char *, size_t, size_t, void*); +typedef size_t (_curl_write_callback2)(const char *, size_t, size_t, + const void*); +typedef size_t (_curl_write_callback3)(const char *, size_t, size_t, FILE*); +typedef size_t (_curl_write_callback4)(const void *, size_t, size_t, void*); +typedef size_t (_curl_write_callback5)(const void *, size_t, size_t, + const void*); +typedef size_t (_curl_write_callback6)(const void *, size_t, size_t, FILE*); + +/* evaluates to true if expr is of type curl_ioctl_callback or "similar" */ +#define _curl_is_ioctl_cb(expr) \ + (_curl_is_NULL(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), curl_ioctl_callback) || \ + _curl_callback_compatible((expr), _curl_ioctl_callback1) || \ + _curl_callback_compatible((expr), _curl_ioctl_callback2) || \ + _curl_callback_compatible((expr), _curl_ioctl_callback3) || \ + _curl_callback_compatible((expr), _curl_ioctl_callback4)) +typedef curlioerr (_curl_ioctl_callback1)(CURL *, int, void*); +typedef curlioerr (_curl_ioctl_callback2)(CURL *, int, const void*); +typedef curlioerr (_curl_ioctl_callback3)(CURL *, curliocmd, void*); +typedef curlioerr (_curl_ioctl_callback4)(CURL *, curliocmd, const void*); + +/* evaluates to true if expr is of type curl_sockopt_callback or "similar" */ +#define _curl_is_sockopt_cb(expr) \ + (_curl_is_NULL(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), curl_sockopt_callback) || \ + _curl_callback_compatible((expr), _curl_sockopt_callback1) || \ + _curl_callback_compatible((expr), _curl_sockopt_callback2)) +typedef int (_curl_sockopt_callback1)(void *, curl_socket_t, curlsocktype); +typedef int (_curl_sockopt_callback2)(const void *, curl_socket_t, + curlsocktype); + +/* evaluates to true if expr is of type curl_opensocket_callback or "similar" */ +#define _curl_is_opensocket_cb(expr) \ + (_curl_is_NULL(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), curl_opensocket_callback) ||\ + _curl_callback_compatible((expr), _curl_opensocket_callback1) || \ + _curl_callback_compatible((expr), _curl_opensocket_callback2) || \ + _curl_callback_compatible((expr), _curl_opensocket_callback3) || \ + _curl_callback_compatible((expr), _curl_opensocket_callback4)) +typedef curl_socket_t (_curl_opensocket_callback1) + (void *, curlsocktype, struct curl_sockaddr *); +typedef curl_socket_t (_curl_opensocket_callback2) + (void *, curlsocktype, const struct curl_sockaddr *); +typedef curl_socket_t (_curl_opensocket_callback3) + (const void *, curlsocktype, struct curl_sockaddr *); +typedef curl_socket_t (_curl_opensocket_callback4) + (const void *, curlsocktype, const struct curl_sockaddr *); + +/* evaluates to true if expr is of type curl_progress_callback or "similar" */ +#define _curl_is_progress_cb(expr) \ + (_curl_is_NULL(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), curl_progress_callback) || \ + _curl_callback_compatible((expr), _curl_progress_callback1) || \ + _curl_callback_compatible((expr), _curl_progress_callback2)) +typedef int (_curl_progress_callback1)(void *, + double, double, double, double); +typedef int (_curl_progress_callback2)(const void *, + double, double, double, double); + +/* evaluates to true if expr is of type curl_debug_callback or "similar" */ +#define _curl_is_debug_cb(expr) \ + (_curl_is_NULL(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), curl_debug_callback) || \ + _curl_callback_compatible((expr), _curl_debug_callback1) || \ + _curl_callback_compatible((expr), _curl_debug_callback2) || \ + _curl_callback_compatible((expr), _curl_debug_callback3) || \ + _curl_callback_compatible((expr), _curl_debug_callback4)) +typedef int (_curl_debug_callback1) (CURL *, + curl_infotype, char *, size_t, void *); +typedef int (_curl_debug_callback2) (CURL *, + curl_infotype, char *, size_t, const void *); +typedef int (_curl_debug_callback3) (CURL *, + curl_infotype, const char *, size_t, void *); +typedef int (_curl_debug_callback4) (CURL *, + curl_infotype, const char *, size_t, const void *); + +/* evaluates to true if expr is of type curl_ssl_ctx_callback or "similar" */ +/* this is getting even messier... */ +#define _curl_is_ssl_ctx_cb(expr) \ + (_curl_is_NULL(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), curl_ssl_ctx_callback) || \ + _curl_callback_compatible((expr), _curl_ssl_ctx_callback1) || \ + _curl_callback_compatible((expr), _curl_ssl_ctx_callback2) || \ + _curl_callback_compatible((expr), _curl_ssl_ctx_callback3) || \ + _curl_callback_compatible((expr), _curl_ssl_ctx_callback4) || \ + _curl_callback_compatible((expr), _curl_ssl_ctx_callback5) || \ + _curl_callback_compatible((expr), _curl_ssl_ctx_callback6) || \ + _curl_callback_compatible((expr), _curl_ssl_ctx_callback7) || \ + _curl_callback_compatible((expr), _curl_ssl_ctx_callback8)) +typedef CURLcode (_curl_ssl_ctx_callback1)(CURL *, void *, void *); +typedef CURLcode (_curl_ssl_ctx_callback2)(CURL *, void *, const void *); +typedef CURLcode (_curl_ssl_ctx_callback3)(CURL *, const void *, void *); +typedef CURLcode (_curl_ssl_ctx_callback4)(CURL *, const void *, const void *); +#ifdef HEADER_SSL_H +/* hack: if we included OpenSSL's ssl.h, we know about SSL_CTX + * this will of course break if we're included before OpenSSL headers... + */ +typedef CURLcode (_curl_ssl_ctx_callback5)(CURL *, SSL_CTX, void *); +typedef CURLcode (_curl_ssl_ctx_callback6)(CURL *, SSL_CTX, const void *); +typedef CURLcode (_curl_ssl_ctx_callback7)(CURL *, const SSL_CTX, void *); +typedef CURLcode (_curl_ssl_ctx_callback8)(CURL *, const SSL_CTX, const void *); +#else +typedef _curl_ssl_ctx_callback1 _curl_ssl_ctx_callback5; +typedef _curl_ssl_ctx_callback1 _curl_ssl_ctx_callback6; +typedef _curl_ssl_ctx_callback1 _curl_ssl_ctx_callback7; +typedef _curl_ssl_ctx_callback1 _curl_ssl_ctx_callback8; +#endif + +/* evaluates to true if expr is of type curl_conv_callback or "similar" */ +#define _curl_is_conv_cb(expr) \ + (_curl_is_NULL(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), curl_conv_callback) || \ + _curl_callback_compatible((expr), _curl_conv_callback1) || \ + _curl_callback_compatible((expr), _curl_conv_callback2) || \ + _curl_callback_compatible((expr), _curl_conv_callback3) || \ + _curl_callback_compatible((expr), _curl_conv_callback4)) +typedef CURLcode (*_curl_conv_callback1)(char *, size_t length); +typedef CURLcode (*_curl_conv_callback2)(const char *, size_t length); +typedef CURLcode (*_curl_conv_callback3)(void *, size_t length); +typedef CURLcode (*_curl_conv_callback4)(const void *, size_t length); + +/* evaluates to true if expr is of type curl_seek_callback or "similar" */ +#define _curl_is_seek_cb(expr) \ + (_curl_is_NULL(expr) || \ + __builtin_types_compatible_p(__typeof__(expr), curl_seek_callback) || \ + _curl_callback_compatible((expr), _curl_seek_callback1) || \ + _curl_callback_compatible((expr), _curl_seek_callback2)) +typedef CURLcode (*_curl_seek_callback1)(void *, curl_off_t, int); +typedef CURLcode (*_curl_seek_callback2)(const void *, curl_off_t, int); + + +#endif /* __CURL_TYPECHECK_GCC_H */ diff --git a/lib/mac32-gcc40/include/curl/types.h b/lib/mac32-gcc40/include/curl/types.h new file mode 100644 index 0000000000000000000000000000000000000000..d37d6ae9e11e48d3f8aaba1957015a03f7f12c63 --- /dev/null +++ b/lib/mac32-gcc40/include/curl/types.h @@ -0,0 +1 @@ +/* not used */ diff --git a/lib/mac32-gcc40/include/expat.h b/lib/mac32-gcc40/include/expat.h new file mode 100644 index 0000000000000000000000000000000000000000..20a8278f78d2ab6990152da4ecd67e16e02ef00e --- /dev/null +++ b/lib/mac32-gcc40/include/expat.h @@ -0,0 +1,1014 @@ +/* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd + See the file COPYING for copying permission. +*/ + +#ifndef Expat_INCLUDED +#define Expat_INCLUDED 1 + +#ifdef __VMS +/* 0 1 2 3 0 1 2 3 + 1234567890123456789012345678901 1234567890123456789012345678901 */ +#define XML_SetProcessingInstructionHandler XML_SetProcessingInstrHandler +#define XML_SetUnparsedEntityDeclHandler XML_SetUnparsedEntDeclHandler +#define XML_SetStartNamespaceDeclHandler XML_SetStartNamespcDeclHandler +#define XML_SetExternalEntityRefHandlerArg XML_SetExternalEntRefHandlerArg +#endif + +#include +#include "expat_external.h" + +#ifdef __cplusplus +extern "C" { +#endif + +struct XML_ParserStruct; +typedef struct XML_ParserStruct *XML_Parser; + +/* Should this be defined using stdbool.h when C99 is available? */ +typedef unsigned char XML_Bool; +#define XML_TRUE ((XML_Bool) 1) +#define XML_FALSE ((XML_Bool) 0) + +/* The XML_Status enum gives the possible return values for several + API functions. The preprocessor #defines are included so this + stanza can be added to code that still needs to support older + versions of Expat 1.95.x: + + #ifndef XML_STATUS_OK + #define XML_STATUS_OK 1 + #define XML_STATUS_ERROR 0 + #endif + + Otherwise, the #define hackery is quite ugly and would have been + dropped. +*/ +enum XML_Status { + XML_STATUS_ERROR = 0, +#define XML_STATUS_ERROR XML_STATUS_ERROR + XML_STATUS_OK = 1, +#define XML_STATUS_OK XML_STATUS_OK + XML_STATUS_SUSPENDED = 2 +#define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED +}; + +enum XML_Error { + XML_ERROR_NONE, + XML_ERROR_NO_MEMORY, + XML_ERROR_SYNTAX, + XML_ERROR_NO_ELEMENTS, + XML_ERROR_INVALID_TOKEN, + XML_ERROR_UNCLOSED_TOKEN, + XML_ERROR_PARTIAL_CHAR, + XML_ERROR_TAG_MISMATCH, + XML_ERROR_DUPLICATE_ATTRIBUTE, + XML_ERROR_JUNK_AFTER_DOC_ELEMENT, + XML_ERROR_PARAM_ENTITY_REF, + XML_ERROR_UNDEFINED_ENTITY, + XML_ERROR_RECURSIVE_ENTITY_REF, + XML_ERROR_ASYNC_ENTITY, + XML_ERROR_BAD_CHAR_REF, + XML_ERROR_BINARY_ENTITY_REF, + XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF, + XML_ERROR_MISPLACED_XML_PI, + XML_ERROR_UNKNOWN_ENCODING, + XML_ERROR_INCORRECT_ENCODING, + XML_ERROR_UNCLOSED_CDATA_SECTION, + XML_ERROR_EXTERNAL_ENTITY_HANDLING, + XML_ERROR_NOT_STANDALONE, + XML_ERROR_UNEXPECTED_STATE, + XML_ERROR_ENTITY_DECLARED_IN_PE, + XML_ERROR_FEATURE_REQUIRES_XML_DTD, + XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING, + /* Added in 1.95.7. */ + XML_ERROR_UNBOUND_PREFIX, + /* Added in 1.95.8. */ + XML_ERROR_UNDECLARING_PREFIX, + XML_ERROR_INCOMPLETE_PE, + XML_ERROR_XML_DECL, + XML_ERROR_TEXT_DECL, + XML_ERROR_PUBLICID, + XML_ERROR_SUSPENDED, + XML_ERROR_NOT_SUSPENDED, + XML_ERROR_ABORTED, + XML_ERROR_FINISHED, + XML_ERROR_SUSPEND_PE, + /* Added in 2.0. */ + XML_ERROR_RESERVED_PREFIX_XML, + XML_ERROR_RESERVED_PREFIX_XMLNS, + XML_ERROR_RESERVED_NAMESPACE_URI +}; + +enum XML_Content_Type { + XML_CTYPE_EMPTY = 1, + XML_CTYPE_ANY, + XML_CTYPE_MIXED, + XML_CTYPE_NAME, + XML_CTYPE_CHOICE, + XML_CTYPE_SEQ +}; + +enum XML_Content_Quant { + XML_CQUANT_NONE, + XML_CQUANT_OPT, + XML_CQUANT_REP, + XML_CQUANT_PLUS +}; + +/* If type == XML_CTYPE_EMPTY or XML_CTYPE_ANY, then quant will be + XML_CQUANT_NONE, and the other fields will be zero or NULL. + If type == XML_CTYPE_MIXED, then quant will be NONE or REP and + numchildren will contain number of elements that may be mixed in + and children point to an array of XML_Content cells that will be + all of XML_CTYPE_NAME type with no quantification. + + If type == XML_CTYPE_NAME, then the name points to the name, and + the numchildren field will be zero and children will be NULL. The + quant fields indicates any quantifiers placed on the name. + + CHOICE and SEQ will have name NULL, the number of children in + numchildren and children will point, recursively, to an array + of XML_Content cells. + + The EMPTY, ANY, and MIXED types will only occur at top level. +*/ + +typedef struct XML_cp XML_Content; + +struct XML_cp { + enum XML_Content_Type type; + enum XML_Content_Quant quant; + XML_Char * name; + unsigned int numchildren; + XML_Content * children; +}; + + +/* This is called for an element declaration. See above for + description of the model argument. It's the caller's responsibility + to free model when finished with it. +*/ +typedef void (XMLCALL *XML_ElementDeclHandler) (void *userData, + const XML_Char *name, + XML_Content *model); + +XMLPARSEAPI(void) +XML_SetElementDeclHandler(XML_Parser parser, + XML_ElementDeclHandler eldecl); + +/* The Attlist declaration handler is called for *each* attribute. So + a single Attlist declaration with multiple attributes declared will + generate multiple calls to this handler. The "default" parameter + may be NULL in the case of the "#IMPLIED" or "#REQUIRED" + keyword. The "isrequired" parameter will be true and the default + value will be NULL in the case of "#REQUIRED". If "isrequired" is + true and default is non-NULL, then this is a "#FIXED" default. +*/ +typedef void (XMLCALL *XML_AttlistDeclHandler) ( + void *userData, + const XML_Char *elname, + const XML_Char *attname, + const XML_Char *att_type, + const XML_Char *dflt, + int isrequired); + +XMLPARSEAPI(void) +XML_SetAttlistDeclHandler(XML_Parser parser, + XML_AttlistDeclHandler attdecl); + +/* The XML declaration handler is called for *both* XML declarations + and text declarations. The way to distinguish is that the version + parameter will be NULL for text declarations. The encoding + parameter may be NULL for XML declarations. The standalone + parameter will be -1, 0, or 1 indicating respectively that there + was no standalone parameter in the declaration, that it was given + as no, or that it was given as yes. +*/ +typedef void (XMLCALL *XML_XmlDeclHandler) (void *userData, + const XML_Char *version, + const XML_Char *encoding, + int standalone); + +XMLPARSEAPI(void) +XML_SetXmlDeclHandler(XML_Parser parser, + XML_XmlDeclHandler xmldecl); + + +typedef struct { + void *(*malloc_fcn)(size_t size); + void *(*realloc_fcn)(void *ptr, size_t size); + void (*free_fcn)(void *ptr); +} XML_Memory_Handling_Suite; + +/* Constructs a new parser; encoding is the encoding specified by the + external protocol or NULL if there is none specified. +*/ +XMLPARSEAPI(XML_Parser) +XML_ParserCreate(const XML_Char *encoding); + +/* Constructs a new parser and namespace processor. Element type + names and attribute names that belong to a namespace will be + expanded; unprefixed attribute names are never expanded; unprefixed + element type names are expanded only if there is a default + namespace. The expanded name is the concatenation of the namespace + URI, the namespace separator character, and the local part of the + name. If the namespace separator is '\0' then the namespace URI + and the local part will be concatenated without any separator. + It is a programming error to use the separator '\0' with namespace + triplets (see XML_SetReturnNSTriplet). +*/ +XMLPARSEAPI(XML_Parser) +XML_ParserCreateNS(const XML_Char *encoding, XML_Char namespaceSeparator); + + +/* Constructs a new parser using the memory management suite referred to + by memsuite. If memsuite is NULL, then use the standard library memory + suite. If namespaceSeparator is non-NULL it creates a parser with + namespace processing as described above. The character pointed at + will serve as the namespace separator. + + All further memory operations used for the created parser will come from + the given suite. +*/ +XMLPARSEAPI(XML_Parser) +XML_ParserCreate_MM(const XML_Char *encoding, + const XML_Memory_Handling_Suite *memsuite, + const XML_Char *namespaceSeparator); + +/* Prepare a parser object to be re-used. This is particularly + valuable when memory allocation overhead is disproportionatly high, + such as when a large number of small documnents need to be parsed. + All handlers are cleared from the parser, except for the + unknownEncodingHandler. The parser's external state is re-initialized + except for the values of ns and ns_triplets. + + Added in Expat 1.95.3. +*/ +XMLPARSEAPI(XML_Bool) +XML_ParserReset(XML_Parser parser, const XML_Char *encoding); + +/* atts is array of name/value pairs, terminated by 0; + names and values are 0 terminated. +*/ +typedef void (XMLCALL *XML_StartElementHandler) (void *userData, + const XML_Char *name, + const XML_Char **atts); + +typedef void (XMLCALL *XML_EndElementHandler) (void *userData, + const XML_Char *name); + + +/* s is not 0 terminated. */ +typedef void (XMLCALL *XML_CharacterDataHandler) (void *userData, + const XML_Char *s, + int len); + +/* target and data are 0 terminated */ +typedef void (XMLCALL *XML_ProcessingInstructionHandler) ( + void *userData, + const XML_Char *target, + const XML_Char *data); + +/* data is 0 terminated */ +typedef void (XMLCALL *XML_CommentHandler) (void *userData, + const XML_Char *data); + +typedef void (XMLCALL *XML_StartCdataSectionHandler) (void *userData); +typedef void (XMLCALL *XML_EndCdataSectionHandler) (void *userData); + +/* This is called for any characters in the XML document for which + there is no applicable handler. This includes both characters that + are part of markup which is of a kind that is not reported + (comments, markup declarations), or characters that are part of a + construct which could be reported but for which no handler has been + supplied. The characters are passed exactly as they were in the XML + document except that they will be encoded in UTF-8 or UTF-16. + Line boundaries are not normalized. Note that a byte order mark + character is not passed to the default handler. There are no + guarantees about how characters are divided between calls to the + default handler: for example, a comment might be split between + multiple calls. +*/ +typedef void (XMLCALL *XML_DefaultHandler) (void *userData, + const XML_Char *s, + int len); + +/* This is called for the start of the DOCTYPE declaration, before + any DTD or internal subset is parsed. +*/ +typedef void (XMLCALL *XML_StartDoctypeDeclHandler) ( + void *userData, + const XML_Char *doctypeName, + const XML_Char *sysid, + const XML_Char *pubid, + int has_internal_subset); + +/* This is called for the start of the DOCTYPE declaration when the + closing > is encountered, but after processing any external + subset. +*/ +typedef void (XMLCALL *XML_EndDoctypeDeclHandler)(void *userData); + +/* This is called for entity declarations. The is_parameter_entity + argument will be non-zero if the entity is a parameter entity, zero + otherwise. + + For internal entities (), value will + be non-NULL and systemId, publicID, and notationName will be NULL. + The value string is NOT nul-terminated; the length is provided in + the value_length argument. Since it is legal to have zero-length + values, do not use this argument to test for internal entities. + + For external entities, value will be NULL and systemId will be + non-NULL. The publicId argument will be NULL unless a public + identifier was provided. The notationName argument will have a + non-NULL value only for unparsed entity declarations. + + Note that is_parameter_entity can't be changed to XML_Bool, since + that would break binary compatibility. +*/ +typedef void (XMLCALL *XML_EntityDeclHandler) ( + void *userData, + const XML_Char *entityName, + int is_parameter_entity, + const XML_Char *value, + int value_length, + const XML_Char *base, + const XML_Char *systemId, + const XML_Char *publicId, + const XML_Char *notationName); + +XMLPARSEAPI(void) +XML_SetEntityDeclHandler(XML_Parser parser, + XML_EntityDeclHandler handler); + +/* OBSOLETE -- OBSOLETE -- OBSOLETE + This handler has been superceded by the EntityDeclHandler above. + It is provided here for backward compatibility. + + This is called for a declaration of an unparsed (NDATA) entity. + The base argument is whatever was set by XML_SetBase. The + entityName, systemId and notationName arguments will never be + NULL. The other arguments may be. +*/ +typedef void (XMLCALL *XML_UnparsedEntityDeclHandler) ( + void *userData, + const XML_Char *entityName, + const XML_Char *base, + const XML_Char *systemId, + const XML_Char *publicId, + const XML_Char *notationName); + +/* This is called for a declaration of notation. The base argument is + whatever was set by XML_SetBase. The notationName will never be + NULL. The other arguments can be. +*/ +typedef void (XMLCALL *XML_NotationDeclHandler) ( + void *userData, + const XML_Char *notationName, + const XML_Char *base, + const XML_Char *systemId, + const XML_Char *publicId); + +/* When namespace processing is enabled, these are called once for + each namespace declaration. The call to the start and end element + handlers occur between the calls to the start and end namespace + declaration handlers. For an xmlns attribute, prefix will be + NULL. For an xmlns="" attribute, uri will be NULL. +*/ +typedef void (XMLCALL *XML_StartNamespaceDeclHandler) ( + void *userData, + const XML_Char *prefix, + const XML_Char *uri); + +typedef void (XMLCALL *XML_EndNamespaceDeclHandler) ( + void *userData, + const XML_Char *prefix); + +/* This is called if the document is not standalone, that is, it has an + external subset or a reference to a parameter entity, but does not + have standalone="yes". If this handler returns XML_STATUS_ERROR, + then processing will not continue, and the parser will return a + XML_ERROR_NOT_STANDALONE error. + If parameter entity parsing is enabled, then in addition to the + conditions above this handler will only be called if the referenced + entity was actually read. +*/ +typedef int (XMLCALL *XML_NotStandaloneHandler) (void *userData); + +/* This is called for a reference to an external parsed general + entity. The referenced entity is not automatically parsed. The + application can parse it immediately or later using + XML_ExternalEntityParserCreate. + + The parser argument is the parser parsing the entity containing the + reference; it can be passed as the parser argument to + XML_ExternalEntityParserCreate. The systemId argument is the + system identifier as specified in the entity declaration; it will + not be NULL. + + The base argument is the system identifier that should be used as + the base for resolving systemId if systemId was relative; this is + set by XML_SetBase; it may be NULL. + + The publicId argument is the public identifier as specified in the + entity declaration, or NULL if none was specified; the whitespace + in the public identifier will have been normalized as required by + the XML spec. + + The context argument specifies the parsing context in the format + expected by the context argument to XML_ExternalEntityParserCreate; + context is valid only until the handler returns, so if the + referenced entity is to be parsed later, it must be copied. + context is NULL only when the entity is a parameter entity. + + The handler should return XML_STATUS_ERROR if processing should not + continue because of a fatal error in the handling of the external + entity. In this case the calling parser will return an + XML_ERROR_EXTERNAL_ENTITY_HANDLING error. + + Note that unlike other handlers the first argument is the parser, + not userData. +*/ +typedef int (XMLCALL *XML_ExternalEntityRefHandler) ( + XML_Parser parser, + const XML_Char *context, + const XML_Char *base, + const XML_Char *systemId, + const XML_Char *publicId); + +/* This is called in two situations: + 1) An entity reference is encountered for which no declaration + has been read *and* this is not an error. + 2) An internal entity reference is read, but not expanded, because + XML_SetDefaultHandler has been called. + Note: skipped parameter entities in declarations and skipped general + entities in attribute values cannot be reported, because + the event would be out of sync with the reporting of the + declarations or attribute values +*/ +typedef void (XMLCALL *XML_SkippedEntityHandler) ( + void *userData, + const XML_Char *entityName, + int is_parameter_entity); + +/* This structure is filled in by the XML_UnknownEncodingHandler to + provide information to the parser about encodings that are unknown + to the parser. + + The map[b] member gives information about byte sequences whose + first byte is b. + + If map[b] is c where c is >= 0, then b by itself encodes the + Unicode scalar value c. + + If map[b] is -1, then the byte sequence is malformed. + + If map[b] is -n, where n >= 2, then b is the first byte of an + n-byte sequence that encodes a single Unicode scalar value. + + The data member will be passed as the first argument to the convert + function. + + The convert function is used to convert multibyte sequences; s will + point to a n-byte sequence where map[(unsigned char)*s] == -n. The + convert function must return the Unicode scalar value represented + by this byte sequence or -1 if the byte sequence is malformed. + + The convert function may be NULL if the encoding is a single-byte + encoding, that is if map[b] >= -1 for all bytes b. + + When the parser is finished with the encoding, then if release is + not NULL, it will call release passing it the data member; once + release has been called, the convert function will not be called + again. + + Expat places certain restrictions on the encodings that are supported + using this mechanism. + + 1. Every ASCII character that can appear in a well-formed XML document, + other than the characters + + $@\^`{}~ + + must be represented by a single byte, and that byte must be the + same byte that represents that character in ASCII. + + 2. No character may require more than 4 bytes to encode. + + 3. All characters encoded must have Unicode scalar values <= + 0xFFFF, (i.e., characters that would be encoded by surrogates in + UTF-16 are not allowed). Note that this restriction doesn't + apply to the built-in support for UTF-8 and UTF-16. + + 4. No Unicode character may be encoded by more than one distinct + sequence of bytes. +*/ +typedef struct { + int map[256]; + void *data; + int (XMLCALL *convert)(void *data, const char *s); + void (XMLCALL *release)(void *data); +} XML_Encoding; + +/* This is called for an encoding that is unknown to the parser. + + The encodingHandlerData argument is that which was passed as the + second argument to XML_SetUnknownEncodingHandler. + + The name argument gives the name of the encoding as specified in + the encoding declaration. + + If the callback can provide information about the encoding, it must + fill in the XML_Encoding structure, and return XML_STATUS_OK. + Otherwise it must return XML_STATUS_ERROR. + + If info does not describe a suitable encoding, then the parser will + return an XML_UNKNOWN_ENCODING error. +*/ +typedef int (XMLCALL *XML_UnknownEncodingHandler) ( + void *encodingHandlerData, + const XML_Char *name, + XML_Encoding *info); + +XMLPARSEAPI(void) +XML_SetElementHandler(XML_Parser parser, + XML_StartElementHandler start, + XML_EndElementHandler end); + +XMLPARSEAPI(void) +XML_SetStartElementHandler(XML_Parser parser, + XML_StartElementHandler handler); + +XMLPARSEAPI(void) +XML_SetEndElementHandler(XML_Parser parser, + XML_EndElementHandler handler); + +XMLPARSEAPI(void) +XML_SetCharacterDataHandler(XML_Parser parser, + XML_CharacterDataHandler handler); + +XMLPARSEAPI(void) +XML_SetProcessingInstructionHandler(XML_Parser parser, + XML_ProcessingInstructionHandler handler); +XMLPARSEAPI(void) +XML_SetCommentHandler(XML_Parser parser, + XML_CommentHandler handler); + +XMLPARSEAPI(void) +XML_SetCdataSectionHandler(XML_Parser parser, + XML_StartCdataSectionHandler start, + XML_EndCdataSectionHandler end); + +XMLPARSEAPI(void) +XML_SetStartCdataSectionHandler(XML_Parser parser, + XML_StartCdataSectionHandler start); + +XMLPARSEAPI(void) +XML_SetEndCdataSectionHandler(XML_Parser parser, + XML_EndCdataSectionHandler end); + +/* This sets the default handler and also inhibits expansion of + internal entities. These entity references will be passed to the + default handler, or to the skipped entity handler, if one is set. +*/ +XMLPARSEAPI(void) +XML_SetDefaultHandler(XML_Parser parser, + XML_DefaultHandler handler); + +/* This sets the default handler but does not inhibit expansion of + internal entities. The entity reference will not be passed to the + default handler. +*/ +XMLPARSEAPI(void) +XML_SetDefaultHandlerExpand(XML_Parser parser, + XML_DefaultHandler handler); + +XMLPARSEAPI(void) +XML_SetDoctypeDeclHandler(XML_Parser parser, + XML_StartDoctypeDeclHandler start, + XML_EndDoctypeDeclHandler end); + +XMLPARSEAPI(void) +XML_SetStartDoctypeDeclHandler(XML_Parser parser, + XML_StartDoctypeDeclHandler start); + +XMLPARSEAPI(void) +XML_SetEndDoctypeDeclHandler(XML_Parser parser, + XML_EndDoctypeDeclHandler end); + +XMLPARSEAPI(void) +XML_SetUnparsedEntityDeclHandler(XML_Parser parser, + XML_UnparsedEntityDeclHandler handler); + +XMLPARSEAPI(void) +XML_SetNotationDeclHandler(XML_Parser parser, + XML_NotationDeclHandler handler); + +XMLPARSEAPI(void) +XML_SetNamespaceDeclHandler(XML_Parser parser, + XML_StartNamespaceDeclHandler start, + XML_EndNamespaceDeclHandler end); + +XMLPARSEAPI(void) +XML_SetStartNamespaceDeclHandler(XML_Parser parser, + XML_StartNamespaceDeclHandler start); + +XMLPARSEAPI(void) +XML_SetEndNamespaceDeclHandler(XML_Parser parser, + XML_EndNamespaceDeclHandler end); + +XMLPARSEAPI(void) +XML_SetNotStandaloneHandler(XML_Parser parser, + XML_NotStandaloneHandler handler); + +XMLPARSEAPI(void) +XML_SetExternalEntityRefHandler(XML_Parser parser, + XML_ExternalEntityRefHandler handler); + +/* If a non-NULL value for arg is specified here, then it will be + passed as the first argument to the external entity ref handler + instead of the parser object. +*/ +XMLPARSEAPI(void) +XML_SetExternalEntityRefHandlerArg(XML_Parser parser, + void *arg); + +XMLPARSEAPI(void) +XML_SetSkippedEntityHandler(XML_Parser parser, + XML_SkippedEntityHandler handler); + +XMLPARSEAPI(void) +XML_SetUnknownEncodingHandler(XML_Parser parser, + XML_UnknownEncodingHandler handler, + void *encodingHandlerData); + +/* This can be called within a handler for a start element, end + element, processing instruction or character data. It causes the + corresponding markup to be passed to the default handler. +*/ +XMLPARSEAPI(void) +XML_DefaultCurrent(XML_Parser parser); + +/* If do_nst is non-zero, and namespace processing is in effect, and + a name has a prefix (i.e. an explicit namespace qualifier) then + that name is returned as a triplet in a single string separated by + the separator character specified when the parser was created: URI + + sep + local_name + sep + prefix. + + If do_nst is zero, then namespace information is returned in the + default manner (URI + sep + local_name) whether or not the name + has a prefix. + + Note: Calling XML_SetReturnNSTriplet after XML_Parse or + XML_ParseBuffer has no effect. +*/ + +XMLPARSEAPI(void) +XML_SetReturnNSTriplet(XML_Parser parser, int do_nst); + +/* This value is passed as the userData argument to callbacks. */ +XMLPARSEAPI(void) +XML_SetUserData(XML_Parser parser, void *userData); + +/* Returns the last value set by XML_SetUserData or NULL. */ +#define XML_GetUserData(parser) (*(void **)(parser)) + +/* This is equivalent to supplying an encoding argument to + XML_ParserCreate. On success XML_SetEncoding returns non-zero, + zero otherwise. + Note: Calling XML_SetEncoding after XML_Parse or XML_ParseBuffer + has no effect and returns XML_STATUS_ERROR. +*/ +XMLPARSEAPI(enum XML_Status) +XML_SetEncoding(XML_Parser parser, const XML_Char *encoding); + +/* If this function is called, then the parser will be passed as the + first argument to callbacks instead of userData. The userData will + still be accessible using XML_GetUserData. +*/ +XMLPARSEAPI(void) +XML_UseParserAsHandlerArg(XML_Parser parser); + +/* If useDTD == XML_TRUE is passed to this function, then the parser + will assume that there is an external subset, even if none is + specified in the document. In such a case the parser will call the + externalEntityRefHandler with a value of NULL for the systemId + argument (the publicId and context arguments will be NULL as well). + Note: For the purpose of checking WFC: Entity Declared, passing + useDTD == XML_TRUE will make the parser behave as if the document + had a DTD with an external subset. + Note: If this function is called, then this must be done before + the first call to XML_Parse or XML_ParseBuffer, since it will + have no effect after that. Returns + XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING. + Note: If the document does not have a DOCTYPE declaration at all, + then startDoctypeDeclHandler and endDoctypeDeclHandler will not + be called, despite an external subset being parsed. + Note: If XML_DTD is not defined when Expat is compiled, returns + XML_ERROR_FEATURE_REQUIRES_XML_DTD. +*/ +XMLPARSEAPI(enum XML_Error) +XML_UseForeignDTD(XML_Parser parser, XML_Bool useDTD); + + +/* Sets the base to be used for resolving relative URIs in system + identifiers in declarations. Resolving relative identifiers is + left to the application: this value will be passed through as the + base argument to the XML_ExternalEntityRefHandler, + XML_NotationDeclHandler and XML_UnparsedEntityDeclHandler. The base + argument will be copied. Returns XML_STATUS_ERROR if out of memory, + XML_STATUS_OK otherwise. +*/ +XMLPARSEAPI(enum XML_Status) +XML_SetBase(XML_Parser parser, const XML_Char *base); + +XMLPARSEAPI(const XML_Char *) +XML_GetBase(XML_Parser parser); + +/* Returns the number of the attribute/value pairs passed in last call + to the XML_StartElementHandler that were specified in the start-tag + rather than defaulted. Each attribute/value pair counts as 2; thus + this correspondds to an index into the atts array passed to the + XML_StartElementHandler. +*/ +XMLPARSEAPI(int) +XML_GetSpecifiedAttributeCount(XML_Parser parser); + +/* Returns the index of the ID attribute passed in the last call to + XML_StartElementHandler, or -1 if there is no ID attribute. Each + attribute/value pair counts as 2; thus this correspondds to an + index into the atts array passed to the XML_StartElementHandler. +*/ +XMLPARSEAPI(int) +XML_GetIdAttributeIndex(XML_Parser parser); + +/* Parses some input. Returns XML_STATUS_ERROR if a fatal error is + detected. The last call to XML_Parse must have isFinal true; len + may be zero for this call (or any other). + + Though the return values for these functions has always been + described as a Boolean value, the implementation, at least for the + 1.95.x series, has always returned exactly one of the XML_Status + values. +*/ +XMLPARSEAPI(enum XML_Status) +XML_Parse(XML_Parser parser, const char *s, int len, int isFinal); + +XMLPARSEAPI(void *) +XML_GetBuffer(XML_Parser parser, int len); + +XMLPARSEAPI(enum XML_Status) +XML_ParseBuffer(XML_Parser parser, int len, int isFinal); + +/* Stops parsing, causing XML_Parse() or XML_ParseBuffer() to return. + Must be called from within a call-back handler, except when aborting + (resumable = 0) an already suspended parser. Some call-backs may + still follow because they would otherwise get lost. Examples: + - endElementHandler() for empty elements when stopped in + startElementHandler(), + - endNameSpaceDeclHandler() when stopped in endElementHandler(), + and possibly others. + + Can be called from most handlers, including DTD related call-backs, + except when parsing an external parameter entity and resumable != 0. + Returns XML_STATUS_OK when successful, XML_STATUS_ERROR otherwise. + Possible error codes: + - XML_ERROR_SUSPENDED: when suspending an already suspended parser. + - XML_ERROR_FINISHED: when the parser has already finished. + - XML_ERROR_SUSPEND_PE: when suspending while parsing an external PE. + + When resumable != 0 (true) then parsing is suspended, that is, + XML_Parse() and XML_ParseBuffer() return XML_STATUS_SUSPENDED. + Otherwise, parsing is aborted, that is, XML_Parse() and XML_ParseBuffer() + return XML_STATUS_ERROR with error code XML_ERROR_ABORTED. + + *Note*: + This will be applied to the current parser instance only, that is, if + there is a parent parser then it will continue parsing when the + externalEntityRefHandler() returns. It is up to the implementation of + the externalEntityRefHandler() to call XML_StopParser() on the parent + parser (recursively), if one wants to stop parsing altogether. + + When suspended, parsing can be resumed by calling XML_ResumeParser(). +*/ +XMLPARSEAPI(enum XML_Status) +XML_StopParser(XML_Parser parser, XML_Bool resumable); + +/* Resumes parsing after it has been suspended with XML_StopParser(). + Must not be called from within a handler call-back. Returns same + status codes as XML_Parse() or XML_ParseBuffer(). + Additional error code XML_ERROR_NOT_SUSPENDED possible. + + *Note*: + This must be called on the most deeply nested child parser instance + first, and on its parent parser only after the child parser has finished, + to be applied recursively until the document entity's parser is restarted. + That is, the parent parser will not resume by itself and it is up to the + application to call XML_ResumeParser() on it at the appropriate moment. +*/ +XMLPARSEAPI(enum XML_Status) +XML_ResumeParser(XML_Parser parser); + +enum XML_Parsing { + XML_INITIALIZED, + XML_PARSING, + XML_FINISHED, + XML_SUSPENDED +}; + +typedef struct { + enum XML_Parsing parsing; + XML_Bool finalBuffer; +} XML_ParsingStatus; + +/* Returns status of parser with respect to being initialized, parsing, + finished, or suspended and processing the final buffer. + XXX XML_Parse() and XML_ParseBuffer() should return XML_ParsingStatus, + XXX with XML_FINISHED_OK or XML_FINISHED_ERROR replacing XML_FINISHED +*/ +XMLPARSEAPI(void) +XML_GetParsingStatus(XML_Parser parser, XML_ParsingStatus *status); + +/* Creates an XML_Parser object that can parse an external general + entity; context is a '\0'-terminated string specifying the parse + context; encoding is a '\0'-terminated string giving the name of + the externally specified encoding, or NULL if there is no + externally specified encoding. The context string consists of a + sequence of tokens separated by formfeeds (\f); a token consisting + of a name specifies that the general entity of the name is open; a + token of the form prefix=uri specifies the namespace for a + particular prefix; a token of the form =uri specifies the default + namespace. This can be called at any point after the first call to + an ExternalEntityRefHandler so longer as the parser has not yet + been freed. The new parser is completely independent and may + safely be used in a separate thread. The handlers and userData are + initialized from the parser argument. Returns NULL if out of memory. + Otherwise returns a new XML_Parser object. +*/ +XMLPARSEAPI(XML_Parser) +XML_ExternalEntityParserCreate(XML_Parser parser, + const XML_Char *context, + const XML_Char *encoding); + +enum XML_ParamEntityParsing { + XML_PARAM_ENTITY_PARSING_NEVER, + XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE, + XML_PARAM_ENTITY_PARSING_ALWAYS +}; + +/* Controls parsing of parameter entities (including the external DTD + subset). If parsing of parameter entities is enabled, then + references to external parameter entities (including the external + DTD subset) will be passed to the handler set with + XML_SetExternalEntityRefHandler. The context passed will be 0. + + Unlike external general entities, external parameter entities can + only be parsed synchronously. If the external parameter entity is + to be parsed, it must be parsed during the call to the external + entity ref handler: the complete sequence of + XML_ExternalEntityParserCreate, XML_Parse/XML_ParseBuffer and + XML_ParserFree calls must be made during this call. After + XML_ExternalEntityParserCreate has been called to create the parser + for the external parameter entity (context must be 0 for this + call), it is illegal to make any calls on the old parser until + XML_ParserFree has been called on the newly created parser. + If the library has been compiled without support for parameter + entity parsing (ie without XML_DTD being defined), then + XML_SetParamEntityParsing will return 0 if parsing of parameter + entities is requested; otherwise it will return non-zero. + Note: If XML_SetParamEntityParsing is called after XML_Parse or + XML_ParseBuffer, then it has no effect and will always return 0. +*/ +XMLPARSEAPI(int) +XML_SetParamEntityParsing(XML_Parser parser, + enum XML_ParamEntityParsing parsing); + +/* If XML_Parse or XML_ParseBuffer have returned XML_STATUS_ERROR, then + XML_GetErrorCode returns information about the error. +*/ +XMLPARSEAPI(enum XML_Error) +XML_GetErrorCode(XML_Parser parser); + +/* These functions return information about the current parse + location. They may be called from any callback called to report + some parse event; in this case the location is the location of the + first of the sequence of characters that generated the event. When + called from callbacks generated by declarations in the document + prologue, the location identified isn't as neatly defined, but will + be within the relevant markup. When called outside of the callback + functions, the position indicated will be just past the last parse + event (regardless of whether there was an associated callback). + + They may also be called after returning from a call to XML_Parse + or XML_ParseBuffer. If the return value is XML_STATUS_ERROR then + the location is the location of the character at which the error + was detected; otherwise the location is the location of the last + parse event, as described above. +*/ +XMLPARSEAPI(XML_Size) XML_GetCurrentLineNumber(XML_Parser parser); +XMLPARSEAPI(XML_Size) XML_GetCurrentColumnNumber(XML_Parser parser); +XMLPARSEAPI(XML_Index) XML_GetCurrentByteIndex(XML_Parser parser); + +/* Return the number of bytes in the current event. + Returns 0 if the event is in an internal entity. +*/ +XMLPARSEAPI(int) +XML_GetCurrentByteCount(XML_Parser parser); + +/* If XML_CONTEXT_BYTES is defined, returns the input buffer, sets + the integer pointed to by offset to the offset within this buffer + of the current parse position, and sets the integer pointed to by size + to the size of this buffer (the number of input bytes). Otherwise + returns a NULL pointer. Also returns a NULL pointer if a parse isn't + active. + + NOTE: The character pointer returned should not be used outside + the handler that makes the call. +*/ +XMLPARSEAPI(const char *) +XML_GetInputContext(XML_Parser parser, + int *offset, + int *size); + +/* For backwards compatibility with previous versions. */ +#define XML_GetErrorLineNumber XML_GetCurrentLineNumber +#define XML_GetErrorColumnNumber XML_GetCurrentColumnNumber +#define XML_GetErrorByteIndex XML_GetCurrentByteIndex + +/* Frees the content model passed to the element declaration handler */ +XMLPARSEAPI(void) +XML_FreeContentModel(XML_Parser parser, XML_Content *model); + +/* Exposing the memory handling functions used in Expat */ +XMLPARSEAPI(void *) +XML_MemMalloc(XML_Parser parser, size_t size); + +XMLPARSEAPI(void *) +XML_MemRealloc(XML_Parser parser, void *ptr, size_t size); + +XMLPARSEAPI(void) +XML_MemFree(XML_Parser parser, void *ptr); + +/* Frees memory used by the parser. */ +XMLPARSEAPI(void) +XML_ParserFree(XML_Parser parser); + +/* Returns a string describing the error. */ +XMLPARSEAPI(const XML_LChar *) +XML_ErrorString(enum XML_Error code); + +/* Return a string containing the version number of this expat */ +XMLPARSEAPI(const XML_LChar *) +XML_ExpatVersion(void); + +typedef struct { + int major; + int minor; + int micro; +} XML_Expat_Version; + +/* Return an XML_Expat_Version structure containing numeric version + number information for this version of expat. +*/ +XMLPARSEAPI(XML_Expat_Version) +XML_ExpatVersionInfo(void); + +/* Added in Expat 1.95.5. */ +enum XML_FeatureEnum { + XML_FEATURE_END = 0, + XML_FEATURE_UNICODE, + XML_FEATURE_UNICODE_WCHAR_T, + XML_FEATURE_DTD, + XML_FEATURE_CONTEXT_BYTES, + XML_FEATURE_MIN_SIZE, + XML_FEATURE_SIZEOF_XML_CHAR, + XML_FEATURE_SIZEOF_XML_LCHAR, + XML_FEATURE_NS, + XML_FEATURE_LARGE_SIZE + /* Additional features must be added to the end of this enum. */ +}; + +typedef struct { + enum XML_FeatureEnum feature; + const XML_LChar *name; + long int value; +} XML_Feature; + +XMLPARSEAPI(const XML_Feature *) +XML_GetFeatureList(void); + + +/* Expat follows the GNU/Linux convention of odd number minor version for + beta/development releases and even number minor version for stable + releases. Micro is bumped with each release, and set to 0 with each + change to major or minor version. +*/ +#define XML_MAJOR_VERSION 2 +#define XML_MINOR_VERSION 0 +#define XML_MICRO_VERSION 1 + +#ifdef __cplusplus +} +#endif + +#endif /* not Expat_INCLUDED */ diff --git a/lib/mac32-gcc40/include/expat_external.h b/lib/mac32-gcc40/include/expat_external.h new file mode 100644 index 0000000000000000000000000000000000000000..2c03284ea265bc62bbae15e29e48f7b0df4cef0d --- /dev/null +++ b/lib/mac32-gcc40/include/expat_external.h @@ -0,0 +1,115 @@ +/* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd + See the file COPYING for copying permission. +*/ + +#ifndef Expat_External_INCLUDED +#define Expat_External_INCLUDED 1 + +/* External API definitions */ + +#if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__) +#define XML_USE_MSC_EXTENSIONS 1 +#endif + +/* Expat tries very hard to make the API boundary very specifically + defined. There are two macros defined to control this boundary; + each of these can be defined before including this header to + achieve some different behavior, but doing so it not recommended or + tested frequently. + + XMLCALL - The calling convention to use for all calls across the + "library boundary." This will default to cdecl, and + try really hard to tell the compiler that's what we + want. + + XMLIMPORT - Whatever magic is needed to note that a function is + to be imported from a dynamically loaded library + (.dll, .so, or .sl, depending on your platform). + + The XMLCALL macro was added in Expat 1.95.7. The only one which is + expected to be directly useful in client code is XMLCALL. + + Note that on at least some Unix versions, the Expat library must be + compiled with the cdecl calling convention as the default since + system headers may assume the cdecl convention. +*/ +#ifndef XMLCALL +#if defined(_MSC_VER) +#define XMLCALL __cdecl +#elif defined(__GNUC__) && defined(__i386) && !defined(__INTEL_COMPILER) +#define XMLCALL __attribute__((cdecl)) +#else +/* For any platform which uses this definition and supports more than + one calling convention, we need to extend this definition to + declare the convention used on that platform, if it's possible to + do so. + + If this is the case for your platform, please file a bug report + with information on how to identify your platform via the C + pre-processor and how to specify the same calling convention as the + platform's malloc() implementation. +*/ +#define XMLCALL +#endif +#endif /* not defined XMLCALL */ + + +#if !defined(XML_STATIC) && !defined(XMLIMPORT) +#ifndef XML_BUILDING_EXPAT +/* using Expat from an application */ + +#ifdef XML_USE_MSC_EXTENSIONS +#define XMLIMPORT __declspec(dllimport) +#endif + +#endif +#endif /* not defined XML_STATIC */ + + +/* If we didn't define it above, define it away: */ +#ifndef XMLIMPORT +#define XMLIMPORT +#endif + + +#define XMLPARSEAPI(type) XMLIMPORT type XMLCALL + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef XML_UNICODE_WCHAR_T +#define XML_UNICODE +#endif + +#ifdef XML_UNICODE /* Information is UTF-16 encoded. */ +#ifdef XML_UNICODE_WCHAR_T +typedef wchar_t XML_Char; +typedef wchar_t XML_LChar; +#else +typedef unsigned short XML_Char; +typedef char XML_LChar; +#endif /* XML_UNICODE_WCHAR_T */ +#else /* Information is UTF-8 encoded. */ +typedef char XML_Char; +typedef char XML_LChar; +#endif /* XML_UNICODE */ + +#ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */ +#if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 +typedef __int64 XML_Index; +typedef unsigned __int64 XML_Size; +#else +typedef long long XML_Index; +typedef unsigned long long XML_Size; +#endif +#else +typedef long XML_Index; +typedef unsigned long XML_Size; +#endif /* XML_LARGE_SIZE */ + +#ifdef __cplusplus +} +#endif + +#endif /* not Expat_External_INCLUDED */ diff --git a/lib/mac32-gcc40/lib/libcurl.4.dylib b/lib/mac32-gcc40/lib/libcurl.4.dylib new file mode 100755 index 0000000000000000000000000000000000000000..62381ddd4922993b0118b6caebc567ffcae6339e Binary files /dev/null and b/lib/mac32-gcc40/lib/libcurl.4.dylib differ diff --git a/lib/mac32-gcc40/lib/libcurl.a b/lib/mac32-gcc40/lib/libcurl.a new file mode 100644 index 0000000000000000000000000000000000000000..d118ed3279b72f351e2a65fa4fbf843974de1338 Binary files /dev/null and b/lib/mac32-gcc40/lib/libcurl.a differ diff --git a/lib/mac32-gcc40/lib/libcurl.dylib b/lib/mac32-gcc40/lib/libcurl.dylib new file mode 120000 index 0000000000000000000000000000000000000000..8d7cf043ebc4a9832d3a970dfd1ef377c3b08b90 --- /dev/null +++ b/lib/mac32-gcc40/lib/libcurl.dylib @@ -0,0 +1 @@ +libcurl.4.dylib \ No newline at end of file diff --git a/lib/mac32-gcc40/lib/libcurl.la b/lib/mac32-gcc40/lib/libcurl.la new file mode 100755 index 0000000000000000000000000000000000000000..d3c791b1823ef5299854990f7d797874b3f44486 --- /dev/null +++ b/lib/mac32-gcc40/lib/libcurl.la @@ -0,0 +1,41 @@ +# libcurl.la - a libtool library file +# Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='libcurl.4.dylib' + +# Names of this library. +library_names='libcurl.4.dylib libcurl.dylib' + +# The name of the static archive. +old_library='libcurl.a' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags=' ' + +# Libraries that this one depends upon. +dependency_libs=' -R/opt/local/lib -L/opt/local/lib /opt/local/lib/libidn.la /opt/local/lib/libintl.la -lc /opt/local/lib/libiconv.la -lldap -lssl -lcrypto -lz' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libcurl. +current=6 +age=2 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/Users/user/Documents/pixhawk/curl-7.21.2/fakeinstall/lib' diff --git a/lib/mac32-gcc40/lib/libexpat.1.5.2.dylib b/lib/mac32-gcc40/lib/libexpat.1.5.2.dylib new file mode 100755 index 0000000000000000000000000000000000000000..cde150b83e43e9fa121fa7973bf819dba767b632 Binary files /dev/null and b/lib/mac32-gcc40/lib/libexpat.1.5.2.dylib differ diff --git a/lib/mac32-gcc40/lib/libexpat.1.dylib b/lib/mac32-gcc40/lib/libexpat.1.dylib new file mode 120000 index 0000000000000000000000000000000000000000..87c4b1cd75bb803e042bbd69b31a6f18dad92419 --- /dev/null +++ b/lib/mac32-gcc40/lib/libexpat.1.dylib @@ -0,0 +1 @@ +libexpat.1.5.2.dylib \ No newline at end of file diff --git a/lib/mac32-gcc40/lib/libexpat.a b/lib/mac32-gcc40/lib/libexpat.a new file mode 100644 index 0000000000000000000000000000000000000000..e00ee072b962ed543d8eca14b6e322d9db48fb5c Binary files /dev/null and b/lib/mac32-gcc40/lib/libexpat.a differ diff --git a/lib/mac32-gcc40/lib/libexpat.dylib b/lib/mac32-gcc40/lib/libexpat.dylib new file mode 120000 index 0000000000000000000000000000000000000000..87c4b1cd75bb803e042bbd69b31a6f18dad92419 --- /dev/null +++ b/lib/mac32-gcc40/lib/libexpat.dylib @@ -0,0 +1 @@ +libexpat.1.5.2.dylib \ No newline at end of file diff --git a/lib/mac32-gcc40/lib/libexpat.la b/lib/mac32-gcc40/lib/libexpat.la new file mode 100755 index 0000000000000000000000000000000000000000..68f357aed0cbbe65fded15ed1288bef7f1317e7f --- /dev/null +++ b/lib/mac32-gcc40/lib/libexpat.la @@ -0,0 +1,35 @@ +# libexpat.la - a libtool library file +# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06) +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='libexpat.1.dylib' + +# Names of this library. +library_names='libexpat.1.5.2.dylib libexpat.1.dylib libexpat.dylib' + +# The name of the static archive. +old_library='libexpat.a' + +# Libraries that this one depends upon. +dependency_libs='' + +# Version information for libexpat. +current=6 +age=5 +revision=2 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/Users/user/Documents/pixhawk/expat-2.0.1/fakeinstall/lib' diff --git a/lib/msinttypes/inttypes.h b/lib/msinttypes/inttypes.h new file mode 100644 index 0000000000000000000000000000000000000000..25542771f591c3b2161df8171f18bf7a2b66a530 --- /dev/null +++ b/lib/msinttypes/inttypes.h @@ -0,0 +1,305 @@ +// ISO C9x compliant inttypes.h for Microsoft Visual Studio +// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124 +// +// Copyright (c) 2006 Alexander Chemeris +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// +// 3. The name of the author may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef _MSC_VER // [ +#error "Use this header only with Microsoft Visual C++ compilers!" +#endif // _MSC_VER ] + +#ifndef _MSC_INTTYPES_H_ // [ +#define _MSC_INTTYPES_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include "stdint.h" + +// 7.8 Format conversion of integer types + +typedef struct { + intmax_t quot; + intmax_t rem; +} imaxdiv_t; + +// 7.8.1 Macros for format specifiers + +#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) // [ See footnote 185 at page 198 + +// The fprintf macros for signed integers are: +#define PRId8 "d" +#define PRIi8 "i" +#define PRIdLEAST8 "d" +#define PRIiLEAST8 "i" +#define PRIdFAST8 "d" +#define PRIiFAST8 "i" + +#define PRId16 "hd" +#define PRIi16 "hi" +#define PRIdLEAST16 "hd" +#define PRIiLEAST16 "hi" +#define PRIdFAST16 "hd" +#define PRIiFAST16 "hi" + +#define PRId32 "I32d" +#define PRIi32 "I32i" +#define PRIdLEAST32 "I32d" +#define PRIiLEAST32 "I32i" +#define PRIdFAST32 "I32d" +#define PRIiFAST32 "I32i" + +#define PRId64 "I64d" +#define PRIi64 "I64i" +#define PRIdLEAST64 "I64d" +#define PRIiLEAST64 "I64i" +#define PRIdFAST64 "I64d" +#define PRIiFAST64 "I64i" + +#define PRIdMAX "I64d" +#define PRIiMAX "I64i" + +#define PRIdPTR "Id" +#define PRIiPTR "Ii" + +// The fprintf macros for unsigned integers are: +#define PRIo8 "o" +#define PRIu8 "u" +#define PRIx8 "x" +#define PRIX8 "X" +#define PRIoLEAST8 "o" +#define PRIuLEAST8 "u" +#define PRIxLEAST8 "x" +#define PRIXLEAST8 "X" +#define PRIoFAST8 "o" +#define PRIuFAST8 "u" +#define PRIxFAST8 "x" +#define PRIXFAST8 "X" + +#define PRIo16 "ho" +#define PRIu16 "hu" +#define PRIx16 "hx" +#define PRIX16 "hX" +#define PRIoLEAST16 "ho" +#define PRIuLEAST16 "hu" +#define PRIxLEAST16 "hx" +#define PRIXLEAST16 "hX" +#define PRIoFAST16 "ho" +#define PRIuFAST16 "hu" +#define PRIxFAST16 "hx" +#define PRIXFAST16 "hX" + +#define PRIo32 "I32o" +#define PRIu32 "I32u" +#define PRIx32 "I32x" +#define PRIX32 "I32X" +#define PRIoLEAST32 "I32o" +#define PRIuLEAST32 "I32u" +#define PRIxLEAST32 "I32x" +#define PRIXLEAST32 "I32X" +#define PRIoFAST32 "I32o" +#define PRIuFAST32 "I32u" +#define PRIxFAST32 "I32x" +#define PRIXFAST32 "I32X" + +#define PRIo64 "I64o" +#define PRIu64 "I64u" +#define PRIx64 "I64x" +#define PRIX64 "I64X" +#define PRIoLEAST64 "I64o" +#define PRIuLEAST64 "I64u" +#define PRIxLEAST64 "I64x" +#define PRIXLEAST64 "I64X" +#define PRIoFAST64 "I64o" +#define PRIuFAST64 "I64u" +#define PRIxFAST64 "I64x" +#define PRIXFAST64 "I64X" + +#define PRIoMAX "I64o" +#define PRIuMAX "I64u" +#define PRIxMAX "I64x" +#define PRIXMAX "I64X" + +#define PRIoPTR "Io" +#define PRIuPTR "Iu" +#define PRIxPTR "Ix" +#define PRIXPTR "IX" + +// The fscanf macros for signed integers are: +#define SCNd8 "d" +#define SCNi8 "i" +#define SCNdLEAST8 "d" +#define SCNiLEAST8 "i" +#define SCNdFAST8 "d" +#define SCNiFAST8 "i" + +#define SCNd16 "hd" +#define SCNi16 "hi" +#define SCNdLEAST16 "hd" +#define SCNiLEAST16 "hi" +#define SCNdFAST16 "hd" +#define SCNiFAST16 "hi" + +#define SCNd32 "ld" +#define SCNi32 "li" +#define SCNdLEAST32 "ld" +#define SCNiLEAST32 "li" +#define SCNdFAST32 "ld" +#define SCNiFAST32 "li" + +#define SCNd64 "I64d" +#define SCNi64 "I64i" +#define SCNdLEAST64 "I64d" +#define SCNiLEAST64 "I64i" +#define SCNdFAST64 "I64d" +#define SCNiFAST64 "I64i" + +#define SCNdMAX "I64d" +#define SCNiMAX "I64i" + +#ifdef _WIN64 // [ +# define SCNdPTR "I64d" +# define SCNiPTR "I64i" +#else // _WIN64 ][ +# define SCNdPTR "ld" +# define SCNiPTR "li" +#endif // _WIN64 ] + +// The fscanf macros for unsigned integers are: +#define SCNo8 "o" +#define SCNu8 "u" +#define SCNx8 "x" +#define SCNX8 "X" +#define SCNoLEAST8 "o" +#define SCNuLEAST8 "u" +#define SCNxLEAST8 "x" +#define SCNXLEAST8 "X" +#define SCNoFAST8 "o" +#define SCNuFAST8 "u" +#define SCNxFAST8 "x" +#define SCNXFAST8 "X" + +#define SCNo16 "ho" +#define SCNu16 "hu" +#define SCNx16 "hx" +#define SCNX16 "hX" +#define SCNoLEAST16 "ho" +#define SCNuLEAST16 "hu" +#define SCNxLEAST16 "hx" +#define SCNXLEAST16 "hX" +#define SCNoFAST16 "ho" +#define SCNuFAST16 "hu" +#define SCNxFAST16 "hx" +#define SCNXFAST16 "hX" + +#define SCNo32 "lo" +#define SCNu32 "lu" +#define SCNx32 "lx" +#define SCNX32 "lX" +#define SCNoLEAST32 "lo" +#define SCNuLEAST32 "lu" +#define SCNxLEAST32 "lx" +#define SCNXLEAST32 "lX" +#define SCNoFAST32 "lo" +#define SCNuFAST32 "lu" +#define SCNxFAST32 "lx" +#define SCNXFAST32 "lX" + +#define SCNo64 "I64o" +#define SCNu64 "I64u" +#define SCNx64 "I64x" +#define SCNX64 "I64X" +#define SCNoLEAST64 "I64o" +#define SCNuLEAST64 "I64u" +#define SCNxLEAST64 "I64x" +#define SCNXLEAST64 "I64X" +#define SCNoFAST64 "I64o" +#define SCNuFAST64 "I64u" +#define SCNxFAST64 "I64x" +#define SCNXFAST64 "I64X" + +#define SCNoMAX "I64o" +#define SCNuMAX "I64u" +#define SCNxMAX "I64x" +#define SCNXMAX "I64X" + +#ifdef _WIN64 // [ +# define SCNoPTR "I64o" +# define SCNuPTR "I64u" +# define SCNxPTR "I64x" +# define SCNXPTR "I64X" +#else // _WIN64 ][ +# define SCNoPTR "lo" +# define SCNuPTR "lu" +# define SCNxPTR "lx" +# define SCNXPTR "lX" +#endif // _WIN64 ] + +#endif // __STDC_FORMAT_MACROS ] + +// 7.8.2 Functions for greatest-width integer types + +// 7.8.2.1 The imaxabs function +#define imaxabs _abs64 + +// 7.8.2.2 The imaxdiv function + +// This is modified version of div() function from Microsoft's div.c found +// in %MSVC.NET%\crt\src\div.c +#ifdef STATIC_IMAXDIV // [ +static +#else // STATIC_IMAXDIV ][ +_inline +#endif // STATIC_IMAXDIV ] +imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) +{ + imaxdiv_t result; + + result.quot = numer / denom; + result.rem = numer % denom; + + if (numer < 0 && result.rem > 0) { + // did division wrong; must fix up + ++result.quot; + result.rem -= denom; + } + + return result; +} + +// 7.8.2.3 The strtoimax and strtoumax functions +#define strtoimax _strtoi64 +#define strtoumax _strtoui64 + +// 7.8.2.4 The wcstoimax and wcstoumax functions +#define wcstoimax _wcstoi64 +#define wcstoumax _wcstoui64 + + +#endif // _MSC_INTTYPES_H_ ] diff --git a/lib/msinttypes/stdint.h b/lib/msinttypes/stdint.h new file mode 100644 index 0000000000000000000000000000000000000000..59d067302fcfe1f5ec82cd7534f89c18167dd895 --- /dev/null +++ b/lib/msinttypes/stdint.h @@ -0,0 +1,247 @@ +// ISO C9x compliant stdint.h for Microsoft Visual Studio +// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124 +// +// Copyright (c) 2006-2008 Alexander Chemeris +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// +// 3. The name of the author may be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef _MSC_VER // [ +#error "Use this header only with Microsoft Visual C++ compilers!" +#endif // _MSC_VER ] + +#ifndef _MSC_STDINT_H_ // [ +#define _MSC_STDINT_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +// For Visual Studio 6 in C++ mode and for many Visual Studio versions when +// compiling for ARM we should wrap include with 'extern "C++" {}' +// or compiler give many errors like this: +// error C2733: second C linkage of overloaded function 'wmemchr' not allowed +#ifdef __cplusplus +extern "C" { +#endif +# include +#ifdef __cplusplus +} +#endif + +// Define _W64 macros to mark types changing their size, like intptr_t. +#ifndef _W64 +# if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300 +# define _W64 __w64 +# else +# define _W64 +# endif +#endif + + +// 7.18.1 Integer types + +// 7.18.1.1 Exact-width integer types + +// Visual Studio 6 and Embedded Visual C++ 4 doesn't +// realize that, e.g. char has the same size as __int8 +// so we give up on __intX for them. +#if (_MSC_VER < 1300) + typedef signed char int8_t; + typedef signed short int16_t; + typedef signed int int32_t; + typedef unsigned char uint8_t; + typedef unsigned short uint16_t; + typedef unsigned int uint32_t; +#else + typedef signed __int8 int8_t; + typedef signed __int16 int16_t; + typedef signed __int32 int32_t; + typedef unsigned __int8 uint8_t; + typedef unsigned __int16 uint16_t; + typedef unsigned __int32 uint32_t; +#endif +typedef signed __int64 int64_t; +typedef unsigned __int64 uint64_t; + + +// 7.18.1.2 Minimum-width integer types +typedef int8_t int_least8_t; +typedef int16_t int_least16_t; +typedef int32_t int_least32_t; +typedef int64_t int_least64_t; +typedef uint8_t uint_least8_t; +typedef uint16_t uint_least16_t; +typedef uint32_t uint_least32_t; +typedef uint64_t uint_least64_t; + +// 7.18.1.3 Fastest minimum-width integer types +typedef int8_t int_fast8_t; +typedef int16_t int_fast16_t; +typedef int32_t int_fast32_t; +typedef int64_t int_fast64_t; +typedef uint8_t uint_fast8_t; +typedef uint16_t uint_fast16_t; +typedef uint32_t uint_fast32_t; +typedef uint64_t uint_fast64_t; + +// 7.18.1.4 Integer types capable of holding object pointers +#ifdef _WIN64 // [ + typedef signed __int64 intptr_t; + typedef unsigned __int64 uintptr_t; +#else // _WIN64 ][ + typedef _W64 signed int intptr_t; + typedef _W64 unsigned int uintptr_t; +#endif // _WIN64 ] + +// 7.18.1.5 Greatest-width integer types +typedef int64_t intmax_t; +typedef uint64_t uintmax_t; + + +// 7.18.2 Limits of specified-width integer types + +#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) // [ See footnote 220 at page 257 and footnote 221 at page 259 + +// 7.18.2.1 Limits of exact-width integer types +#define INT8_MIN ((int8_t)_I8_MIN) +#define INT8_MAX _I8_MAX +#define INT16_MIN ((int16_t)_I16_MIN) +#define INT16_MAX _I16_MAX +#define INT32_MIN ((int32_t)_I32_MIN) +#define INT32_MAX _I32_MAX +#define INT64_MIN ((int64_t)_I64_MIN) +#define INT64_MAX _I64_MAX +#define UINT8_MAX _UI8_MAX +#define UINT16_MAX _UI16_MAX +#define UINT32_MAX _UI32_MAX +#define UINT64_MAX _UI64_MAX + +// 7.18.2.2 Limits of minimum-width integer types +#define INT_LEAST8_MIN INT8_MIN +#define INT_LEAST8_MAX INT8_MAX +#define INT_LEAST16_MIN INT16_MIN +#define INT_LEAST16_MAX INT16_MAX +#define INT_LEAST32_MIN INT32_MIN +#define INT_LEAST32_MAX INT32_MAX +#define INT_LEAST64_MIN INT64_MIN +#define INT_LEAST64_MAX INT64_MAX +#define UINT_LEAST8_MAX UINT8_MAX +#define UINT_LEAST16_MAX UINT16_MAX +#define UINT_LEAST32_MAX UINT32_MAX +#define UINT_LEAST64_MAX UINT64_MAX + +// 7.18.2.3 Limits of fastest minimum-width integer types +#define INT_FAST8_MIN INT8_MIN +#define INT_FAST8_MAX INT8_MAX +#define INT_FAST16_MIN INT16_MIN +#define INT_FAST16_MAX INT16_MAX +#define INT_FAST32_MIN INT32_MIN +#define INT_FAST32_MAX INT32_MAX +#define INT_FAST64_MIN INT64_MIN +#define INT_FAST64_MAX INT64_MAX +#define UINT_FAST8_MAX UINT8_MAX +#define UINT_FAST16_MAX UINT16_MAX +#define UINT_FAST32_MAX UINT32_MAX +#define UINT_FAST64_MAX UINT64_MAX + +// 7.18.2.4 Limits of integer types capable of holding object pointers +#ifdef _WIN64 // [ +# define INTPTR_MIN INT64_MIN +# define INTPTR_MAX INT64_MAX +# define UINTPTR_MAX UINT64_MAX +#else // _WIN64 ][ +# define INTPTR_MIN INT32_MIN +# define INTPTR_MAX INT32_MAX +# define UINTPTR_MAX UINT32_MAX +#endif // _WIN64 ] + +// 7.18.2.5 Limits of greatest-width integer types +#define INTMAX_MIN INT64_MIN +#define INTMAX_MAX INT64_MAX +#define UINTMAX_MAX UINT64_MAX + +// 7.18.3 Limits of other integer types + +#ifdef _WIN64 // [ +# define PTRDIFF_MIN _I64_MIN +# define PTRDIFF_MAX _I64_MAX +#else // _WIN64 ][ +# define PTRDIFF_MIN _I32_MIN +# define PTRDIFF_MAX _I32_MAX +#endif // _WIN64 ] + +#define SIG_ATOMIC_MIN INT_MIN +#define SIG_ATOMIC_MAX INT_MAX + +#ifndef SIZE_MAX // [ +# ifdef _WIN64 // [ +# define SIZE_MAX _UI64_MAX +# else // _WIN64 ][ +# define SIZE_MAX _UI32_MAX +# endif // _WIN64 ] +#endif // SIZE_MAX ] + +// WCHAR_MIN and WCHAR_MAX are also defined in +#ifndef WCHAR_MIN // [ +# define WCHAR_MIN 0 +#endif // WCHAR_MIN ] +#ifndef WCHAR_MAX // [ +# define WCHAR_MAX _UI16_MAX +#endif // WCHAR_MAX ] + +#define WINT_MIN 0 +#define WINT_MAX _UI16_MAX + +#endif // __STDC_LIMIT_MACROS ] + + +// 7.18.4 Limits of other integer types + +#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260 + +// 7.18.4.1 Macros for minimum-width integer constants + +#define INT8_C(val) val##i8 +#define INT16_C(val) val##i16 +#define INT32_C(val) val##i32 +#define INT64_C(val) val##i64 + +#define UINT8_C(val) val##ui8 +#define UINT16_C(val) val##ui16 +#define UINT32_C(val) val##ui32 +#define UINT64_C(val) val##ui64 + +// 7.18.4.2 Macros for greatest-width integer constants +#define INTMAX_C INT64_C +#define UINTMAX_C UINT64_C + +#endif // __STDC_CONSTANT_MACROS ] + + +#endif // _MSC_STDINT_H_ ] diff --git a/lib/sdl/msvc/BUGS b/lib/sdl/msvc/BUGS new file mode 100644 index 0000000000000000000000000000000000000000..d7058f6209652e755278c634d441965bca2b51e8 --- /dev/null +++ b/lib/sdl/msvc/BUGS @@ -0,0 +1,18 @@ + +Bugs are now managed in the SDL bug tracker, here: + + http://bugzilla.libsdl.org/ + +You may report bugs there, and search to see if a given issue has already + been reported, discussed, and maybe even fixed. + + + +You may also find help at the SDL mailing list. Subscription information: + + http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org + +Bug reports are welcome here, but we really appreciate if you use Bugzilla, as + bugs discussed on the mailing list may be forgotten or missed. + + diff --git a/lib/sdl/msvc/COPYING b/lib/sdl/msvc/COPYING new file mode 100644 index 0000000000000000000000000000000000000000..8904ea404ee3011471006a5b6bbf6eb7e5b4ee07 --- /dev/null +++ b/lib/sdl/msvc/COPYING @@ -0,0 +1,458 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS diff --git a/lib/sdl/msvc/README b/lib/sdl/msvc/README new file mode 100644 index 0000000000000000000000000000000000000000..e9e1d1a98338c3e37847eaee0d8a096bc7d40c64 --- /dev/null +++ b/lib/sdl/msvc/README @@ -0,0 +1,49 @@ + + Simple DirectMedia Layer + + (SDL) + + Version 1.2 + +--- +http://www.libsdl.org/ + +This is the Simple DirectMedia Layer, a general API that provides low +level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, +and 2D framebuffer across multiple platforms. + +The current version supports Linux, Windows CE/95/98/ME/XP/Vista, BeOS, +MacOS Classic, Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, +and QNX. The code contains support for Dreamcast, Atari, AIX, OSF/Tru64, +RISC OS, SymbianOS, Nintendo DS, and OS/2, but these are not officially +supported. + +SDL is written in C, but works with C++ natively, and has bindings to +several other languages, including Ada, C#, Eiffel, Erlang, Euphoria, +Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP, +Pike, Pliant, Python, Ruby, and Smalltalk. + +This library is distributed under GNU LGPL version 2, which can be +found in the file "COPYING". This license allows you to use SDL +freely in commercial programs as long as you link with the dynamic +library. + +The best way to learn how to use SDL is to check out the header files in +the "include" subdirectory and the programs in the "test" subdirectory. +The header files and test programs are well commented and always up to date. +More documentation is available in HTML format in "docs/index.html", and +a documentation wiki is available online at: + http://www.libsdl.org/cgi/docwiki.cgi + +The test programs in the "test" subdirectory are in the public domain. + +Frequently asked questions are answered online: + http://www.libsdl.org/faq.php + +If you need help with the library, or just want to discuss SDL related +issues, you can join the developers mailing list: + http://www.libsdl.org/mailing-list.php + +Enjoy! + Sam Lantinga (slouken@libsdl.org) + diff --git a/lib/sdl/msvc/README-SDL.txt b/lib/sdl/msvc/README-SDL.txt new file mode 100644 index 0000000000000000000000000000000000000000..1669736cb52b18cd12ab58171f18886600620b85 --- /dev/null +++ b/lib/sdl/msvc/README-SDL.txt @@ -0,0 +1,13 @@ + +Please distribute this file with the SDL runtime environment: + +The Simple DirectMedia Layer (SDL for short) is a cross-platfrom library +designed to make it easy to write multi-media software, such as games and +emulators. + +The Simple DirectMedia Layer library source code is available from: +http://www.libsdl.org/ + +This library is distributed under the terms of the GNU LGPL license: +http://www.gnu.org/copyleft/lesser.html + diff --git a/lib/sdl/msvc/VisualC.html b/lib/sdl/msvc/VisualC.html new file mode 100644 index 0000000000000000000000000000000000000000..ad2ed97a603d70d21a4a15054ba333269b0111c5 --- /dev/null +++ b/lib/sdl/msvc/VisualC.html @@ -0,0 +1,171 @@ + + + Using SDL with Microsoft Visual C++ + + +

+ Using SDL with Microsoft Visual C++ 5,6 and 7 +

+

+ by Lion Kimbro and additions by + James Turk +

+

+ You can either use the precompiled libraries from + the SDL Download web site , or you can build SDL yourself. +

+

+ Building SDL +

+

+ Unzip the VisualC.zip file into the directory that contains this + file (VisualC.html). +

+

+ Be certain that you unzip the zip file for your compiler into this + directory and not any other directory. If you are using WinZip, be careful to + make sure that it extracts to this folder, because it's + convenient feature of unzipping to a folder with the name of the file currently + being unzipped will get you in trouble if you use it right now. And that's all + I have to say about that. +

+

+ Now that it's unzipped, go into the VisualC + directory that is created, and double-click on the VC++ file "SDL.dsw" + ("SDL.sln"). This should open up the IDE. +

+

+ You may be prompted at this point to upgrade the workspace, should you be using + a more recent version of Visual C++. If so, allow the workspace to be upgraded. +

+

+ Build the .dll and .lib files. +

+

+ This is done by right clicking on each project in turn (Projects are listed in + the Workspace panel in the FileView tab), and selecting "Build". +

+

+ If you get an error about SDL_config.h being missing, you should + copy include/SDL_config.h.default to include/SDL_config.h and try again. +

+

+ You may get a few warnings, but you should not get any errors. You do have to + have at least the DirectX 5 SDK installed, however. The latest + version of DirectX can be downloaded or purchased on a cheap CD (my + recommendation) from Microsoft . +

+

+ Later, we will refer to the following .lib and .dll files that have just been + generated: +

+
    +
  • SDL.dll
  • +
  • SDL.lib
  • +
  • SDLmain.lib
  • +
+

+ Search for these using the Windows Find (Windows-F) utility, if you don't + already know where they should be. For those of you with a clue, look inside + the Debug or Release directories of the subdirectories of the Project folder. + (It might be easier to just use Windows Find if this sounds confusing. And + don't worry about needing a clue; we all need visits from the clue fairy + frequently.) +

+

+ Creating a Project with SDL +

+

+ Create a project as a Win32 Application. +

+

+ Create a C++ file for your project. +

+

+ Set the C runtime to "Multi-threaded DLL" in the menu: Project|Settings|C/C++ + tab|Code Generation|Runtime Library . +

+

+ Add the SDL include directory to your list of includes in the + menu: Project|Settings|C/C++ tab|Preprocessor|Additional include directories + . +
+ VC7 Specific: Instead of doing this I find it easier to + add the include and library directories to the list that VC7 keeps. Do this by + selecting Tools|Options|Projects|VC++ Directories and under the "Show + Directories For:" dropbox select "Include Files", and click the "New Directory + Icon" and add the [SDLROOT]\include directory (ex. If you installed to + c:\SDL-1.2.5\ add c:\SDL-1.2.5\include). Proceed to change the + dropbox selection to "Library Files" and add [SDLROOT]\lib. +

+

+ The "include directory" I am referring to is the include folder + within the main SDL directory (the one that this HTML file located within). +

+

+ Now we're going to use the files that we had created earlier in the Build SDL + step. +

+

+ Copy the following files into your Project directory: +

+
    +
  • SDL.dll
  • +
+

+ Add the following files to your project (It is not necessary to copy them to + your project directory): +

+
    +
  • SDL.lib
  • +
  • SDLmain.lib
  • +
+

+ (To add them to your project, right click on your project, and select "Add + files to project") +

+

Instead of adding the files to your project it is more + desireable to add them to the linker options: Project|Properties|Linker|Command + Line and type the names of the libraries to link with in the "Additional + Options:" box.  Note: This must be done for each build + configuration (eg. Release,Debug).

+

+ SDL 101, First Day of Class +

+

+ Now create the basic body of your project. The body of your program should take + the following form: +

+#include "SDL.h"
+
+int main( int argc, char* argv[] )
+{
+  // Body of the program goes here.
+  return 0;
+}
+
+ +

+

+ That's it! +

+

+ I hope that this document has helped you get through the most difficult part of + using the SDL: installing it. Suggestions for improvements to this document + should be sent to the writers of this document. +

+

+ Thanks to Paulus Esterhazy (pesterhazy@gmx.net), for the work on VC++ port. +

+

+ This document was originally called "VisualC.txt", and was written by + Sam Lantinga. +

+

+ Later, it was converted to HTML and expanded into the document that you see + today by Lion Kimbro. +

+

Minor Fixes and Visual C++ 7 Information (In Green) was added by James Turk +

+ + diff --git a/lib/sdl/msvc/WhatsNew b/lib/sdl/msvc/WhatsNew new file mode 100644 index 0000000000000000000000000000000000000000..7fae760f7ca43a2f86129ec8573daa2ae17877ef --- /dev/null +++ b/lib/sdl/msvc/WhatsNew @@ -0,0 +1,727 @@ + +This is a list of API changes in SDL's version history. + +Version 1.0: + +1.2.14: + Added cast macros for correct usage with C++: + SDL_reinterpret_cast(type, expression) + SDL_static_cast(type, expression) + + Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for + SDL_VIDEO_FULLSCREEN_HEAD on X11. + + Added SDL_DISABLE_LOCK_KEYS environment variable to enable normal + up/down events for Caps-Lock and Num-Lock keys. + +1.2.13: + Added SDL_BUTTON_X1 and SDL_BUTTON_X2 constants. + +1.2.12: + Added SDL_VIDEO_ALLOW_SCREENSAVER to override SDL's disabling + of the screensaver on Mac OS X and X11. + +1.2.10: + If SDL_OpenAudio() is passed zero for the desired format + fields, the following environment variables will be used + to fill them in: + SDL_AUDIO_FREQUENCY + SDL_AUDIO_FORMAT + SDL_AUDIO_CHANNELS + SDL_AUDIO_SAMPLES + If an environment variable is not specified, it will be set + to a reasonable default value. + + Added support for the SDL_VIDEO_FULLSCREEN_HEAD environment + variable, currently supported on X11 Xinerama configurations. + + Added SDL_GL_SWAP_CONTROL to wait for vsync in OpenGL applications. + + Added SDL_GL_ACCELERATED_VISUAL to guarantee hardware acceleration. + + Added current_w and current_h to the SDL_VideoInfo structure, + which is set to the desktop resolution during video intialization, + and then set to the current resolution when a video mode is set. + + SDL_SetVideoMode() now accepts 0 for width or height and will use + the current video mode (or the desktop mode if no mode has been set.) + + Added SDL_GetKeyRepeat() + + Added SDL_config.h, with defaults for various build environments. + +1.2.7: + Added CPU feature detection functions to SDL_cpuinfo.h: + SDL_HasRDTSC(), SDL_HasMMX(), SDL_Has3DNow(), SDL_HasSSE(), + SDL_HasAltiVec() + Added function to create RWops from const memory: SDL_RWFromConstMem() + +1.2.6: + Added SDL_LoadObject(), SDL_LoadFunction(), and SDL_UnloadObject() + + Added SDL_GL_MULTISAMPLEBUFFERS and SDL_GL_MULTISAMPLESAMPLES for FSAA + +1.2.5: + Added SDL_BUTTON_WHEELUP (4) and SDL_BUTTON_WHEELDOWN (5) + + Added SDL_GL_STEREO for stereoscopic OpenGL contexts + +1.2.0: + Added SDL_VIDEOEXPOSE event to signal that the screen needs to + be redrawn. This is currently only delivered to OpenGL windows + on X11, though it may be delivered in the future when the video + memory is lost under DirectX. + +1.1.8: + You can pass SDL_NOFRAME to SDL_VideoMode() to create a window + that has no title bar or frame decoration. Fullscreen video + modes automatically have this flag set. + + Added a function to query the clipping rectangle for a surface: + void SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect) + + Added a function to query the current event filter: + SDL_EventFilter SDL_GetEventFilter(void) + + If you pass -1 to SDL_ShowCursor(), it won't change the current + cursor visibility state, but will still return it. + + SDL_LockSurface() and SDL_UnlockSurface() are recursive, meaning + you can nest them as deep as you want, as long as each lock call + has a matching unlock call. The surface remains locked until the + last matching unlock call. + + Note that you may not blit to or from a locked surface. + +1.1.7: + The SDL_SetGammaRamp() and SDL_GetGammaRamp() functions now take + arrays of Uint16 values instead of Uint8 values. For the most part, + you can just take your old values and shift them up 8 bits to get + new correct values for your gamma ramps. + + You can pass SDL_RLEACCEL in flags passed to SDL_ConvertSurface() + and SDL will try to RLE accelerate colorkey and alpha blits in the + resulting surface. + +1.1.6: + Added a function to return the thread ID of a specific thread: + Uint32 SDL_GetThreadID(SDL_Thread *thread) + If 'thread' is NULL, this function returns the id for this thread. + +1.1.5: + The YUV overlay structure has been changed to use an array of + pitches and pixels representing the planes of a YUV image, to + better enable hardware acceleration. The YV12 and IYUV formats + each have three planes, corresponding to the Y, U, and V portions + of the image, while packed pixel YUV formats just have one plane. + + For palettized mode (8bpp), the screen colormap is now split in + a physical and a logical palette. The physical palette determines + what colours the screen pixels will get when displayed, and the + logical palette controls the mapping from blits to/from the screen. + A new function, SDL_SetPalette() has been added to change + logical and physical palettes separately. SDL_SetColors() works + just as before, and is equivalent to calling SDL_SetPalette() with + a flag argument of (SDL_LOGPAL|SDL_PHYSPAL). + + SDL_BlitSurface() no longer modifies the source rectangle, only the + destination rectangle. The width/height members of the destination + rectangle are ignored, only the position is used. + + The old source clipping function SDL_SetClipping() has been replaced + with a more useful function to set the destination clipping rectangle: + SDL_bool SDL_SetClipRect(SDL_Surface *surface, SDL_Rect *rect) + + Added a function to see what subsystems have been initialized: + Uint32 SDL_WasInit(Uint32 flags) + + The Big Alpha Flip: SDL now treats alpha as opacity like everybody + else, and not as transparency: + + A new cpp symbol: SDL_ALPHA_OPAQUE is defined as 255 + A new cpp symbol: SDL_ALPHA_TRANSPARENT is defined as 0 + Values between 0 and 255 vary from fully transparent to fully opaque. + + New functions: + SDL_DisplayFormatAlpha() + Returns a surface converted to a format with alpha-channel + that can be blit efficiently to the screen. (In other words, + like SDL_DisplayFormat() but the resulting surface has + an alpha channel.) This is useful for surfaces with alpha. + SDL_MapRGBA() + Works as SDL_MapRGB() but takes an additional alpha parameter. + SDL_GetRGBA() + Works as SDL_GetRGB() but also returns the alpha value + (SDL_ALPHA_OPAQUE for formats without an alpha channel) + + Both SDL_GetRGB() and SDL_GetRGBA() now always return values in + the [0..255] interval. Previously, SDL_GetRGB() would return + (0xf8, 0xfc, 0xf8) for a completely white pixel in RGB565 format. + (N.B.: This is broken for bit fields < 3 bits.) + + SDL_MapRGB() returns pixels in which the alpha channel is set opaque. + + SDL_SetAlpha() can now be used for both setting the per-surface + alpha, using the new way of thinking of alpha, and also to enable + and disable per-pixel alpha blending for surfaces with an alpha + channel: + To disable alpha blending: + SDL_SetAlpha(surface, 0, 0); + To re-enable alpha blending: + SDL_SetAlpha(surface, SDL_SRCALPHA, 0); + Surfaces with an alpha channel have blending enabled by default. + + SDL_SetAlpha() now accepts SDL_RLEACCEL as a flag, which requests + RLE acceleration of blits, just as like with SDL_SetColorKey(). + This flag can be set for both surfaces with an alpha channel + and surfaces with an alpha value set by SDL_SetAlpha(). + As always, RLE surfaces must be locked before pixel access is + allowed, and unlocked before any other SDL operations are done + on it. + + The blit semantics for surfaces with and without alpha and colorkey + have now been defined: + + RGBA->RGB: + SDL_SRCALPHA set: + alpha-blend (using alpha-channel). + SDL_SRCCOLORKEY ignored. + SDL_SRCALPHA not set: + copy RGB. + if SDL_SRCCOLORKEY set, only copy the pixels matching the + RGB values of the source colour key, ignoring alpha in the + comparison. + + RGB->RGBA: + SDL_SRCALPHA set: + alpha-blend (using the source per-surface alpha value); + set destination alpha to opaque. + SDL_SRCALPHA not set: + copy RGB, set destination alpha to opaque. + both: + if SDL_SRCCOLORKEY set, only copy the pixels matching the + source colour key. + + RGBA->RGBA: + SDL_SRCALPHA set: + alpha-blend (using the source alpha channel) the RGB values; + leave destination alpha untouched. [Note: is this correct?] + SDL_SRCCOLORKEY ignored. + SDL_SRCALPHA not set: + copy all of RGBA to the destination. + if SDL_SRCCOLORKEY set, only copy the pixels matching the + RGB values of the source colour key, ignoring alpha in the + comparison. + + RGB->RGB: + SDL_SRCALPHA set: + alpha-blend (using the source per-surface alpha value). + SDL_SRCALPHA not set: + copy RGB. + both: + if SDL_SRCCOLORKEY set, only copy the pixels matching the + source colour key. + + As a special case, blits from surfaces with per-surface alpha + value of 128 (50% transparency) are optimised and much faster + than other alpha values. This does not apply to surfaces with + alpha channels (per-pixel alpha). + + New functions for manipulating the gamma of the display have + been added: + int SDL_SetGamma(float red, float green, float blue); + int SDL_SetGammaRamp(Uint8 *red, Uint8 *green, Uint8 *blue); + int SDL_GetGammaRamp(Uint8 *red, Uint8 *green, Uint8 *blue); + Gamma ramps are tables with 256 entries which map the screen color + components into actually displayed colors. For an example of + implementing gamma correction and gamma fades, see test/testgamma.c + Gamma control is not supported on all hardware. + +1.1.4: + The size of the SDL_CDtrack structure changed from 8 to 12 bytes + as the size of the length member was extended to 32 bits. + + You can now use SDL for 2D blitting with a GL mode by passing the + SDL_OPENGLBLIT flag to SDL_SetVideoMode(). You can specify 16 or + 32 bpp, and the data in the framebuffer is put into the GL scene + when you call SDL_UpdateRects(), and the scene will be visible + when you call SDL_GL_SwapBuffers(). + + Run the "testgl" test program with the -logo command line option + to see an example of this blending of 2D and 3D in SDL. + +1.1.3: + Added SDL_FreeRW() to the API, to complement SDL_AllocRW() + + Added resizable window support - just add SDL_RESIZABLE to the + SDL_SetVideoMode() flags, and then wait for SDL_VIDEORESIZE events. + See SDL_events.h for details on the new SDL_ResizeEvent structure. + + Added condition variable support, based on mutexes and semaphores. + SDL_CreateCond() + SDL_DestroyCond() + SDL_CondSignal() + SDL_CondBroadcast() + SDL_CondWait() + SDL_CondTimedWait() + The new function prototypes are in SDL_mutex.h + + Added counting semaphore support, based on the mutex primitive. + SDL_CreateSemaphore() + SDL_DestroySemaphore() + SDL_SemWait() + SDL_SemTryWait() + SDL_SemWaitTimeout() + SDL_SemPost() + SDL_SemValue() + The new function prototypes are in SDL_mutex.h + + Added support for asynchronous blitting. To take advantage of this, + you must set the SDL_ASYNCBLIT flag when setting the video mode and + creating surfaces that you want accelerated in this way. You must + lock surfaces that have this flag set, and the lock will block until + any queued blits have completed. + + Added YUV video overlay support. + The supported YUV formats are: YV12, IYUV, YUY2, UYVY, and YVYU. + This function creates an overlay surface: + SDL_CreateYUVOverlay() + You must lock and unlock the overlay to get access to the data: + SDL_LockYUVOverlay() SDL_UnlockYUVOverlay() + You can then display the overlay: + SDL_DisplayYUVOverlay() + You must free the overlay when you are done using it: + SDL_FreeYUVOverlay() + See SDL_video.h for the full function prototypes. + + The joystick hat position constants have been changed: + Old constant New constant + ------------ ------------ + 0 SDL_HAT_CENTERED + 1 SDL_HAT_UP + 2 SDL_HAT_RIGHTUP + 3 SDL_HAT_RIGHT + 4 SDL_HAT_RIGHTDOWN + 5 SDL_HAT_DOWN + 6 SDL_HAT_LEFTDOWN + 7 SDL_HAT_LEFT + 8 SDL_HAT_LEFTUP + The new constants are bitmasks, so you can check for the + individual axes like this: + if ( hat_position & SDL_HAT_UP ) { + } + and you'll catch left-up, up, and right-up. + +1.1.2: + Added multiple timer support: + SDL_AddTimer() and SDL_RemoveTimer() + + SDL_WM_SetIcon() now respects the icon colorkey if mask is NULL. + +1.1.0: + Added initial OpenGL support. + First set GL attributes (such as RGB depth, alpha depth, etc.) + SDL_GL_SetAttribute() + Then call SDL_SetVideoMode() with the SDL_OPENGL flag. + Perform all of your normal GL drawing. + Finally swap the buffers with the new SDL function: + SDL_GL_SwapBuffers() + See the new 'testgl' test program for an example of using GL with SDL. + + You can load GL extension functions by using the function: + SDL_GL_LoadProcAddress() + + Added functions to initialize and cleanup specific SDL subsystems: + SDL_InitSubSystem() and SDL_QuitSubSystem() + + Added user-defined event type: + typedef struct { + Uint8 type; + int code; + void *data1; + void *data2; + } SDL_UserEvent; + This structure is in the "user" member of an SDL_Event. + + Added a function to push events into the event queue: + SDL_PushEvent() + + Example of using the new SDL user-defined events: + { + SDL_Event event; + + event.type = SDL_USEREVENT; + event.user.code = my_event_code; + event.user.data1 = significant_data; + event.user.data2 = 0; + SDL_PushEvent(&event); + } + + Added a function to get mouse deltas since last query: + SDL_GetRelativeMouseState() + + Added a boolean datatype to SDL_types.h: + SDL_bool = { SDL_TRUE, SDL_FALSE } + + Added a function to get the current audio status: + SDL_GetAudioState(); + It returns one of: + SDL_AUDIO_STOPPED, + SDL_AUDIO_PLAYING, + SDL_AUDIO_PAUSED + + Added an AAlib driver (ASCII Art) - by Stephane Peter. + +1.0.6: + The input grab state is reset after each call to SDL_SetVideoMode(). + The input is grabbed by default in fullscreen mode, and ungrabbed in + windowed mode. If you want to set input grab to a particular value, + you should set it after each call to SDL_SetVideoMode(). + +1.0.5: + Exposed SDL_AudioInit(), SDL_VideoInit() + Added SDL_AudioDriverName() and SDL_VideoDriverName() + + Added new window manager function: + SDL_WM_ToggleFullScreen() + This is currently implemented only on Linux + + The ALT-ENTER code has been removed - it's not appropriate for a + lib to bind keys when they aren't even emergency escape sequences. + + ALT-ENTER functionality can be implemented with the following code: + + int Handle_AltEnter(const SDL_Event *event) + { + if ( event->type == SDL_KEYDOWN ) { + if ( (event->key.keysym.sym == SDLK_RETURN) && + (event->key.keysym.mod & KMOD_ALT) ) { + SDL_WM_ToggleFullScreen(SDL_GetVideoSurface()); + return(0); + } + } + return(1); + } + SDL_SetEventFilter(Handle_AltEnter); + +1.0.3: + Under X11, if you grab the input and hide the mouse cursor, + the mouse will go into a "relative motion" mode where you + will always get relative motion events no matter how far in + each direction you move the mouse - relative motion is not + bounded by the edges of the window (though the absolute values + of the mouse positions are clamped by the size of the window). + The SVGAlib, framebuffer console, and DirectInput drivers all + have this behavior naturally, and the GDI and BWindow drivers + never go into "relative motion" mode. + +1.0.2: + Added a function to enable keyboard repeat: + SDL_EnableKeyRepeat() + + Added a function to grab the mouse and keyboard input + SDL_WM_GrabInput() + + Added a function to iconify the window. + SDL_WM_IconifyWindow() + If this function succeeds, the application will receive an event + signaling SDL_APPACTIVE event + +1.0.1: + Added constants to SDL_audio.h for 16-bit native byte ordering: + AUDIO_U16SYS, AUDIO_S16SYS + +1.0.0: + New public release + +Version 0.11: + +0.11.5: + A new function SDL_GetVideoSurface() has been added, and returns + a pointer to the current display surface. + + SDL_AllocSurface() has been renamed SDL_CreateRGBSurface(), and + a new function SDL_CreateRGBSurfaceFrom() has been added to allow + creating an SDL surface from an existing pixel data buffer. + + Added SDL_GetRGB() to the headers and documentation. + +0.11.4: + SDL_SetLibraryPath() is no longer meaningful, and has been removed. + +0.11.3: + A new flag for SDL_Init(), SDL_INIT_NOPARACHUTE, prevents SDL from + installing fatal signal handlers on operating systems that support + them. + +Version 0.9: + +0.9.15: + SDL_CreateColorCursor() has been removed. Color cursors should + be implemented as sprites, blitted by the application when the + cursor moves. To get smooth color cursor updates when the app + is busy, pass the SDL_INIT_EVENTTHREAD flag to SDL_Init(). This + allows you to handle the mouse motion in another thread from an + event filter function, but is currently only supported by Linux + and BeOS. Note that you'll have to protect the display surface + from multi-threaded access by using mutexes if you do this. + + Thread-safe surface support has been removed from SDL. + This makes blitting somewhat faster, by removing SDL_MiddleBlit(). + Code that used SDL_MiddleBlit() should use SDL_LowerBlit() instead. + You can make your surfaces thread-safe by allocating your own + mutex and making lock/unlock calls around accesses to your surface. + +0.9.14: + SDL_GetMouseState() now takes pointers to int rather than Uint16. + + If you set the SDL_WINDOWID environment variable under UNIX X11, + SDL will use that as the main window instead of creating it's own. + This is an unsupported extension to SDL, and not portable at all. + +0.9.13: + Added a function SDL_SetLibraryPath() which can be used to specify + the directory containing the SDL dynamic libraries. This is useful + for commercial applications which ship with particular versions + of the libraries, and for security on multi-user systems. + If this function is not used, the default system directories are + searched using the native dynamic object loading mechanism. + + In order to support C linkage under Visual C++, you must declare + main() without any return type: + main(int argc, char *argv[]) { + /* Do the program... */ + return(0); + } + C++ programs should also return a value if compiled under VC++. + + The blit_endian member of the SDL_VideoInfo struct has been removed. + + SDL_SymToASCII() has been replaced with SDL_GetKeyName(), so there + is now no longer any function to translate a keysym to a character. + + The SDL_keysym structure has been extended with a 'scancode' and + 'unicode' member. The 'scancode' is a hardware specific scancode + for the key that was pressed, and may be 0. The 'unicode' member + is a 16-bit UNICODE translation of the key that was pressed along + with any modifiers or compose keys that have been pressed. + If no UNICODE translation exists for the key, 'unicode' will be 0. + + Added a function SDL_EnableUNICODE() to enable/disable UNICODE + translation of character keypresses. Translation defaults off. + + To convert existing code to use the new API, change code which + uses SDL_SymToASCII() to get the keyname to use SDL_GetKeyName(), + and change code which uses it to get the ASCII value of a sym to + use the 'unicode' member of the event keysym. + +0.9.12: + There is partial support for 64-bit datatypes. I don't recommend + you use this if you have a choice, because 64-bit datatypes are not + supported on many platforms. On platforms for which it is supported, + the SDL_HAS_64BIT_TYPE C preprocessor define will be enabled, and + you can use the Uint64 and Sint64 datatypes. + + Added functions to SDL_endian.h to support 64-bit datatypes: + SDL_SwapLE64(), SDL_SwapBE64(), + SDL_ReadLE64(), SDL_ReadBE64(), SDL_WriteLE64(), SDL_WriteBE64() + + A new member "len_ratio" has been added to the SDL_AudioCVT structure, + and allows you to determine either the original buffer length or the + converted buffer length, given the other. + + A new function SDL_FreeWAV() has been added to the API to free data + allocated by SDL_LoadWAV_RW(). This is necessary under Win32 since + the gcc compiled DLL uses a different heap than VC++ compiled apps. + + SDL now has initial support for international keyboards using the + Latin character set. + If a particular mapping is desired, you can set the DEFAULT_KEYBOARD + compile-time variable, or you can set the environment variable + "SDL_KEYBOARD" to a string identifying the keyboard mapping you desire. + The valid values for these variables can be found in SDL_keyboard.c + + Full support for German and French keyboards under X11 is implemented. + +0.9.11: + The THREADED_EVENTS compile-time define has been replaced with the + SDL_INIT_EVENTTHREAD flag. If this flag is passed to SDL_Init(), + SDL will create a separate thread to perform input event handling. + If this flag is passed to SDL_Init(), and the OS doesn't support + event handling in a separate thread, SDL_Init() will fail. + Be sure to add calls to SDL_Delay() in your main thread to allow + the OS to schedule your event thread, or it may starve, leading + to slow event delivery and/or dropped events. + Currently MacOS and Win32 do not support this flag, while BeOS + and Linux do support it. I recommend that your application only + use this flag if absolutely necessary. + + The SDL thread function passed to SDL_CreateThread() now returns a + status. This status can be retrieved by passing a non-NULL pointer + as the 'status' argument to SDL_WaitThread(). + + The volume parameter to SDL_MixAudio() has been increased in range + from (0-8) to (0-128) + + SDL now has a data source abstraction which can encompass a file, + an area of memory, or any custom object you can envision. It uses + these abstractions, SDL_RWops, in the endian read/write functions, + and the built-in WAV and BMP file loaders. This means you can load + WAV chunks from memory mapped files, compressed archives, network + pipes, or anything else that has a data read abstraction. + + There are three built-in data source abstractions: + SDL_RWFromFile(), SDL_RWFromFP(), SDL_RWFromMem() + along with a generic data source allocation function: + SDL_AllocRW() + These data sources can be used like stdio file pointers with the + following convenience functions: + SDL_RWseek(), SDL_RWread(), SDL_RWwrite(), SDL_RWclose() + These functions are defined in the new header file "SDL_rwops.h" + + The endian swapping functions have been turned into macros for speed + and SDL_CalculateEndian() has been removed. SDL_endian.h now defines + SDL_BYTEORDER as either SDL_BIG_ENDIAN or SDL_LIL_ENDIAN depending on + the endianness of the host system. + + The endian read/write functions now take an SDL_RWops pointer + instead of a stdio FILE pointer, to support the new data source + abstraction. + + The SDL_*LoadWAV() functions have been replaced with a single + SDL_LoadWAV_RW() function that takes a SDL_RWops pointer as it's + first parameter, and a flag whether or not to automatically + free it as the second parameter. SDL_LoadWAV() is a macro for + backward compatibility and convenience: + SDL_LoadWAV_RW(SDL_RWFromFile("sample.wav", "rb"), 1, ...); + + The SDL_*LoadBMP()/SDL_*SaveBMP() functions have each been replaced + with a single function that takes a SDL_RWops pointer as it's + first parameter, and a flag whether or not to automatically + free it as the second parameter. SDL_LoadBMP() and SDL_SaveBMP() + are macros for backward compatibility and convenience: + SDL_LoadBMP_RW(SDL_RWFromFile("sample.bmp", "rb"), 1, ...); + SDL_SaveBMP_RW(SDL_RWFromFile("sample.bmp", "wb"), 1, ...); + Note that these functions use SDL_RWseek() extensively, and should + not be used on pipes or other non-seekable data sources. + +0.9.10: + The Linux SDL_SysWMInfo and SDL_SysWMMsg structures have been + extended to support multiple types of display drivers, as well as + safe access to the X11 display when THREADED_EVENTS is enabled. + The new structures are documented in the SDL_syswm.h header file. + + Thanks to John Elliott , the UK keyboard + should now work properly, as well as the "Windows" keys on US + keyboards. + + The Linux CD-ROM code now reads the CD-ROM devices from /etc/fstab + instead of trying to open each block device on the system. + The CD must be listed in /etc/fstab as using the iso9660 filesystem. + + On Linux, if you define THREADED_EVENTS at compile time, a separate + thread will be spawned to gather X events asynchronously from the + graphics updates. This hasn't been extensively tested, but it does + provide a means of handling keyboard and mouse input in a separate + thread from the graphics thread. (This is now enabled by default.) + + A special access function SDL_PeepEvents() allows you to manipulate + the event queue in a thread-safe manner, including peeking at events, + removing events of a specified type, and adding new events of arbitrary + type to the queue (use the new 'user' member of the SDL_Event type). + + If you use SDL_PeepEvents() to gather events, then the main graphics + thread needs to call SDL_PumpEvents() periodically to drive the event + loop and generate input events. This is not necessary if SDL has been + compiled with THREADED_EVENTS defined, but doesn't hurt. + + A new function SDL_ThreadID() returns the identifier associated with + the current thread. + +0.9.9: + The AUDIO_STEREO format flag has been replaced with a new 'channels' + member of the SDL_AudioSpec structure. The channels are 1 for mono + audio, and 2 for stereo audio. In the future more channels may be + supported for 3D surround sound. + + The SDL_MixAudio() function now takes an additional volume parameter, + which should be set to SDL_MIX_MAXVOLUME for compatibility with the + original function. + + The CD-ROM functions which take a 'cdrom' parameter can now be + passed NULL, and will act on the last successfully opened CD-ROM. + +0.9.8: + No changes, bugfixes only. + +0.9.7: + No changes, bugfixes only. + +0.9.6: + Added a fast rectangle fill function: SDL_FillRect() + + Addition of a useful function for getting info on the video hardware: + const SDL_VideoInfo *SDL_GetVideoInfo(void) + This function replaces SDL_GetDisplayFormat(). + + Initial support for double-buffering: + Use the SDL_DOUBLEBUF flag in SDL_SetVideoMode() + Update the screen with a new function: SDL_Flip() + + SDL_AllocSurface() takes two new flags: + SDL_SRCCOLORKEY means that the surface will be used for colorkey blits + and if the hardware supports hardware acceleration of colorkey blits + between two surfaces in video memory, to place the surface in video + memory if possible, otherwise it will be placed in system memory. + SDL_SRCALPHA means that the surface will be used for alpha blits and + if the hardware supports hardware acceleration of alpha blits between + two surfaces in video memory, to place the surface in video memory + if possible, otherwise it will be placed in system memory. + SDL_HWSURFACE now means that the surface will be created with the + same format as the display surface, since having surfaces in video + memory is only useful for fast blitting to the screen, and you can't + blit surfaces with different surface formats in video memory. + +0.9.5: + You can now pass a NULL mask to SDL_WM_SetIcon(), and it will assume + that the icon consists of the entire image. + + SDL_LowerBlit() is back -- but don't use it on the display surface. + It is exactly the same as SDL_MiddleBlit(), but doesn't check for + thread safety. + + Added SDL_FPLoadBMP(), SDL_FPSaveBMP(), SDL_FPLoadWAV(), which take + a FILE pointer instead of a file name. + + Added CD-ROM audio control API: + SDL_CDNumDrives() + SDL_CDName() + SDL_CDOpen() + SDL_CDStatus() + SDL_CDPlayTracks() + SDL_CDPlay() + SDL_CDPause() + SDL_CDResume() + SDL_CDStop() + SDL_CDEject() + SDL_CDClose() + +0.9.4: + No changes, bugfixes only. + +0.9.3: + Mouse motion event now includes relative motion information: + Sint16 event->motion.xrel, Sint16 event->motion.yrel + + X11 keyrepeat handling can be disabled by defining IGNORE_X_KEYREPEAT + (Add -DIGNORE_X_KEYREPEAT to CFLAGS line in obj/x11Makefile) + +0.9.2: + No changes, bugfixes only. + +0.9.1: + Removed SDL_MapSurface() and SDL_UnmapSurface() -- surfaces are now + automatically mapped on blit. + +0.8.0: + SDL stable release diff --git a/lib/sdl/msvc/docs.html b/lib/sdl/msvc/docs.html new file mode 100644 index 0000000000000000000000000000000000000000..66ca9235ab9719efb2df64ac424665e8c3deffc3 --- /dev/null +++ b/lib/sdl/msvc/docs.html @@ -0,0 +1,629 @@ + +SDL Stable Release + + +[separator] +

+This source is stable, and is fully tested on all supported platforms.
+Please send bug reports or questions to the SDL mailing list:
+http://www.libsdl.org/mailing-list.php
+The latest stable release may be found on the + SDL website. +

+ +

API Documentation

+ +[separator] + +

SDL 1.2.14 Release Notes

+

+SDL 1.2.14 is a significant bug fix release and a recommended update. +

+ +

General Notes

+ +
+

+ Fixed flicker when resizing the SDL window +

+

+ Fixed crash in SDL_SetGammaRamp() +

+

+ Fixed freeze in SDL_memset() with 0 length when assembly code is disabled. +

+

+ Added SDL_DISABLE_LOCK_KEYS environment variable to enable normal up/down events for Caps-Lock and Num-Lock keys. +

+

+ Fixed audio quality problem when converting between 22050 Hz and 44100 Hz. +

+

+ Fixed a threading crash when a few threads are rapidly created and complete. +

+

+ Increased accuracy of alpha blending routines. +

+

+ Fixed crash loading BMP files saved with the scanlines inverted. +

+

+ Fixed mouse coordinate clamping if SDL_SetVideoMode() isn't called in response to SDL_VIDEORESIZE event. +

+

+ Added doxygen documentation for the SDL API headers. +

+
+ +

Unix Notes

+ +
+

+ Fixed potential memory corruption due to assembly bug with SDL_revcpy() +

+

+ Fixed crashes trying to detect SSE features on x86_64 architecture. +

+

+ Fixed assembly for GCC optimized 50% alpha blending blits. +

+

+ Added configure option --enable-screensaver, to allow enabling the screensaver by default. +

+

+ Use XResetScreenSaver() instead of disabling screensaver entirely. +

+

+ Removed the maximum window size limitation on X11. +

+

+ Fixed SDL_GL_SWAP_CONTROL on X11. +

+

+ Fixed setting the X11 window input hint. +

+

+ Fixed distorted X11 window icon for some visuals. +

+

+ Fixed detecting X11 libraries for dynamic loading on 64-bit Linux. +

+

+ SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL) returns the correct value with GLX_SGI_swap_control. +

+

+ Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for SDL_VIDEO_FULLSCREEN_HEAD on X11. +

+

+ The SDL_VIDEO_FULLSCREEN_DISPLAY environment variable can be set to 0 to place fullscreen SDL windows on the first Xinerama screen. +

+

+ Added the SDL_VIDEO_FBCON_ROTATION environment variable to control output orientation on the framebuffer console. +
+ Valid values are: +

    +
  • not set - Not rotating, no shadow. +
  • "NONE" - Not rotating, but still using shadow. +
  • "CW" - Rotating screen clockwise. +
  • "UD" - Rotating screen upside down. +
  • "CCW" - Rotating screen counter clockwise. +
+

+

+ Fixed DirectFB detection on some Linux distributions. +

+

+ Added code to use the PS3 SPE processors for YUV conversion on Linux. +

+

+ Updated ALSA support to the latest stable API +

+

+ ALSA is now preferred over OSS audio. (SDL_AUDIODRIVER=dsp will restore the previous behavior.) +

+

+ Improved support for PulseAudio +

+

+ The Network Audio System support is now dynamically loaded at runtime. +

+

+ Fixed crash with the MP-8866 Dual USB Joypad on newer Linux kernels. +

+

+ Fixed crash in SDL_Quit() when a joystick has been unplugged. +

+
+ +

Windows Notes

+ +
+

+ Verified 100% compatibility with Windows 7. +

+

+ Prevent loss of OpenGL context when setting the video mode in response to a window resize event. +

+

+ Fixed video initialization with SDL_WINDOWID on Windows XP. +

+

+ Improved mouse input responsiveness for first-person-shooter games. +

+

+ IME messages are now generated for localized input. +

+

+ SDL_RWFromFile() takes a UTF-8 filename when opening a file. +

+

+ The SDL_STDIO_REDIRECT environment variable can be used to override whether SDL redirects stdio to stdout.txt and stderr.txt. +

+

+ Fixed dynamic object loading on Windows CE. +

+
+ +

Mac OS X Notes

+ +
+

+ SDL now builds on Mac OS X 10.6 (Snow Leopard). +
+ Eric Wing posted a good rundown on the numerous changes here: http://playcontrol.net/ewing/jibberjabber/big_behind-the-scenes_chang.html +

+

+ The X11 video driver is built by default. +

+

+ Fixed SDL_VIDEO_WINDOW_POS environment variable for Quartz target. +

+

+ Fixed setting the starting working directory in release builds. +

+
+ +[separator] + +

SDL 1.2.13 Release Notes

+

+SDL 1.2.13 is a minor bug fix release. +

+ +

General Notes

+ +
+

+ Fixed link error when building with Intel Compiler 10. +

+

+ Removed stray C++ comment from public headers. +

+
+ +

Unix Notes

+ +
+

+ Fixed crash in SDL_SoftStretch() on secure operating systems. +

+

+ Fixed undefined symbol on X11 implementations without UTF-8 support. +

+

+ Worked around BadAlloc error when using XVideo on the XFree86 Intel Integrated Graphics driver. +

+

+ Scan for all joysticks on Linux instead of stopping at one that was removed. +

+

+ Fixed use of sdl-config arguments in sdl.m4 +

+
+ +

Windows Notes

+ +
+

+ Fixed crash when a video driver reports higher than 32 bpp video modes. +

+

+ Fixed restoring the desktop after setting a 24-bit OpenGL video mode. +

+

+ Fixed window titles on Windows 95/98/ME. +

+

+ Added SDL_BUTTON_X1 and SDL_BUTTON_X2 constants for extended mouse buttons. +

+

+ Added support for quoted command line arguments. +

+
+ +

Mac OS X Notes

+ +
+

+ SDL now builds on Mac OS X 10.5 (Leopard). +

+

+ Fixed high frequency crash involving text input. +

+

+ Fixed beeping when the escape key is pressed and UNICODE translation is enabled. +

+

+ Improved trackpad scrolling support. +

+

+ Fixed joystick hat reporting for certain joysticks. +

+
+ +[separator] + +

SDL 1.2.12 Release Notes

+

+SDL 1.2.12 is a minor bug fix release. +

+ +

General Notes

+ +
+

+ Added support for the PulseAudio sound server: http://www.pulseaudio.org/ +

+

+ Added SDL_VIDEO_ALLOW_SCREENSAVER to override SDL's disabling of the screensaver on Mac OS X, Windows, and X11. +

+

+ Fixed buffer overrun crash when resampling audio rates. +

+

+ Fixed audio bug where converting to mono was doubling the volume. +

+

+ Fixed off-by-one error in the C implementation of SDL_revcpy() +

+

+ Fixed compiling with Sun Studio. +

+

+ Support for AmigaOS has been removed from the main SDL code. +

+

+ Support for Nokia 9210 "EPOC" driver has been removed from the main SDL code. +

+

+ Unofficial support for the S60/SymbianOS platform has been added. +

+

+ Unofficial support for the Nintendo DS platform has been added. +

+

+ Reenabled MMX assembly for YUV overlay processing (GNU C Compiler only). +

+
+ +

Unix Notes

+ +
+

+ Fixed detection of X11 DGA mouse support. +

+

+ Improved XIM support for asian character sets. +

+

+ The GFX_Display has been added to the X11 window information in SDL_syswm.h. +

+

+ Fixed PAGE_SIZE compile error in the fbcon video driver on newer Linux kernels. +

+

+ Fixed hang or crash at startup if aRts can't access the hardware. +

+

+ Fixed relative mouse mode when the cursor starts outside the X11 window. +

+

+ Fixed accidental free of stack memory in X11 mouse acceleration code. +

+

+ Closed minor memory leak in XME code. +

+

+ Fixed TEXTRELs in the library to resolve some PIC issues. +

+
+ +

Windows Notes

+ +
+

+ The GDI video driver makes better use of the palette in 8-bit modes. +

+

+ The windib driver now supports more mouse buttons with WM_XBUTTON events. +

+

+ On Windows, SDL_SetVideoMode() will re-create the window instead of failing if the multisample settings are changed. +

+

+ Added support for UTF-8 window titles on Windows. +

+

+ Fixed joystick detection on Windows. +

+

+ Improved performance with Win32 file I/O. +

+

+ Fixed HBITMAP leak in GAPI driver. +

+
+ +

Mac OS X Notes

+ +
+

+ Added support for multi-axis controllers like 3Dconnxion's SpaceNavigator on Mac OS X. +

+

+ Fixed YUV overlay crash inside Quicktime on Intel Mac OS X. +

+

+ Fixed blitting alignment in Altivec alpha blit functions. +

+

+ Keys F13, F14, and F15 are now usable on Apple keyboards under Mac OS X. +

+

+ Fixed joystick calibration code on Mac OS X. +

+

+ Fixed mouse jitter when multiple motion events are queued up in Mac OS X. +

+

+ Fixed changing the cursor in fullscreen mode on Mac OS X. +

+
+ +

Mac OS Classic Notes

+ +
+

+ Added support for gamma ramps to both toolbox and DrawSprocket video drivers. +

+
+ +

BeOS Notes

+ +
+

+ Implemented mouse grabbing and mouse relative mode on BeOS. +

+
+ +[separator] + +

SDL 1.2.11 Release Notes

+

+SDL 1.2.11 is a minor bug fix release. +

+ +

Unix Notes

+ +
+

+ Dynamic X11 loading is only enabled with gcc 4 supporting -fvisibility=hidden. This fixes crashes related to symbol collisions, and allows building on Solaris and IRIX. +

+

+ Fixed building SDL with Xinerama disabled. +

+

+ Fixed DRI OpenGL library loading, using RTLD_GLOBAL in dlopen(). +

+

+ Added pkgconfig configuration support. +

+
+ +

Windows Notes

+ +
+

+ Setting SDL_GL_SWAP_CONTROL now works with Windows OpenGL. +

+

+ The Win32 window positioning code works properly for windows with menus. +

+

+ DirectSound audio quality has been improved on certain sound cards. +

+

+ Fixed 5.1 audio channel ordering on Windows and Mac OS X. +

+

+ Plugged a couple of minor memory leaks in the windib video driver. +

+

+ Fixed type collision with stdint.h when building with gcc on Win32. +

+

+ Fixed building with the Digital Mars Compiler on Win32. +

+
+ +

Mac OS X Notes

+ +
+

+ The Quartz video driver supports 32x32 cursors on Mac OS X 10.3 and above. +

+
+ +[separator] + +

SDL 1.2.10 Release Notes

+

+SDL 1.2.10 is a major release, featuring a revamp of the build system and many API improvements and bug fixes. +

+

API enhancements

+
    +
  • + If SDL_OpenAudio() is passed zero for the desired format + fields, the following environment variables will be used + to fill them in: +
    
    +		SDL_AUDIO_FREQUENCY
    +		SDL_AUDIO_FORMAT
    +		SDL_AUDIO_CHANNELS
    +		SDL_AUDIO_SAMPLES
    +
    + If an environment variable is not specified, it will be set + to a reasonable default value. +
  • + SDL_SetVideoMode() now accepts 0 for width or height and will use + the current video mode (or the desktop mode if no mode has been set.) +
  • + Added current_w and current_h to the SDL_VideoInfo structure, + which is set to the desktop resolution during video intialization, + and then set to the current resolution when a video mode is set. +
  • + SDL_GL_LoadLibrary() will load the system default OpenGL library + if it is passed NULL as a parameter. +
  • + Added SDL_GL_SWAP_CONTROL to wait for vsync in OpenGL applications. +
  • + Added SDL_GL_ACCELERATED_VISUAL to guarantee hardware acceleration. +
  • + SDL_WM_SetCaption() now officially takes UTF-8 title and icon strings, and displays international characters on supported platforms. +
  • + Added SDL_GetKeyRepeat() to query the key repeat settings. +
  • + Added the "dummy" audio driver, which can be used to emulate audio + output without a sound card. +
  • + Added SDL_config.h, with defaults for various build environments. +
+ +

General Notes

+ +
+

+ The SDL website now has an RSS feed! +

+ The SDL development source code is now managed with Subversion. +

+ SDL now uses the Bugzilla bug tracking system, hosted by icculus.org. +

+ SDL is licensed under version 2.1 of the GNU Lesser General Public License. +

+ The entire build system has been revamped to make it much more portable, including versions of C library functions to make it possible to run SDL on a minimal embedded environment. See README.Porting in the SDL source distribution for information on how to port SDL to a new platform. +

+ SDL_opengl.h has been updated with the latest glext.h from http://oss.sgi.com/projects/ogl-sample/registry/ +

+ Alex Volkov contributed highly optimized RGB <-> RGBA blitters. +

+ +

Unix Notes

+ +
+

+ The X11 libraries are dynamically loaded at runtime by default. This allows the distributed version of SDL to run on systems without X11 libraries installed. +

+ The XiG XME extension code is now included in the X11 video driver by default. +

+ XRandR support for video mode switching has been added to the X11 driver, but is disabled because of undesired interactions with window managers. You can enable this by setting the environment variable SDL_VIDEO_X11_XRANDR to 1. +

+ Xinerama multi-head displays are properly handled now, and the SDL_VIDEO_FULLSCREEN_HEAD environment variable can be used to select the screen used for fullscreen video modes. Note that changing the video modes only works on screen 0. +

+ XVidMode video modes are now sorted so they maintain the refresh rates specified in the X11 configuration file. +

+ SDL windows are no longer transparent in X11 compositing systems like XGL. +

+ The mouse is properly released by the X11 video driver if the fullscreen window loses focus. +

+ The X11 input driver now uses XIM to handle international input. +

+ The screensaver and DPMS monitor blanking are disabled while SDL games are running under the X11 and DGA video drivers. This behavior will be formalized and selectable in SDL 1.3. +

+ Fixed a bug preventing stereo OpenGL contexts from being selected on the X11 driver. +

+ The DGA video driver now waits for pending blits involving surfaces before they are freed. This prevents display oddities when using SDL_DisplayFormat() to convert many images. +

+ The framebuffer console video driver now has a parser for /etc/fb.modes for improved video mode handling. +

+ The framebuffer console video driver now allows asynchronous VT switching, and restores the full contents of the screen when switched back. +

+ The framebuffer console now uses CTRL-ALT-FN to switch virtual terminals, to avoid collisions with application key bindings. +

+ The framebuffer console input driver correctly sets IMPS/2 mode for wheel mice. It also properly detects when gpm is in IMPS/2 protocol mode, or passing raw protocol from an IMPS/2 mouse. +

+ The SVGAlib video driver now has support for banked (non-linear) video modes. +

+ A video driver for OpenBSD on the Sharp Zaurus has been contributed by Staffan Ulfberg. See the file README.wscons in the SDL source distribution for details. +

+ Many patches have been incorporated from *BSD ports. +

+ +

Windows Notes

+ +
+

+ The "windib" video driver is the default now, to prevent problems with certain laptops, 64-bit Windows, and Windows Vista. The DirectX driver is still available, and can be selected by setting the environment variable SDL_VIDEODRIVER to "directx". +

+ SDL has been ported to 64-bit Windows. +

+ Dmitry Yakimov contributed a GAPI video driver for Windows CE. +

+ The default fullscreen refresh rate has been increased to match the desktop refresh rate, when using equivalent resolutions. A full API for querying and selecting refresh rates is planned for SDL 1.3. +

+ Dialog boxes are now shown when SDL is in windowed OpenGL mode. +

+ The SDL window is recreated when necessary to maintain OpenGL context attributes, when switching between windowed and fullscreen modes. +

+ An SDL_VIDEORESIZE event is properly sent when the SDL window is maximized and restored. +

+ Window positions are retained when switching between fullscreen and windowed modes. +

+ ToUnicode() is used, when available, for improved handling of international keyboard input. +

+ The PrtScrn is now treated normally with both key down and key up events. +

+ Pressing ALT-F4 now delivers an SDL_QUIT event to SDL applications. +

+ Joystick names are now correct for joysticks which have been unplugged and then plugged back in since booting. +

+ An MCI error when playing the last track on a CD-ROM has been fixed. +

+ OpenWatcom projects for building SDL have been provided by Marc Peter. +

+ +

Mac OS X Notes

+ +
+

+ SDL now supports building Universal binaries, both through Xcode projects and when using configure/make. See README.MacOSX in the SDL source archive for details. +

+ The X11 video driver with GLX support can be built on Mac OS X, if the X11 development SDK is installed. +

+ Transitions between fullscreen resolutions and windowed mode now use a much faster asynchronous fade to hide desktop flicker. +

+ Icons set with SDL_WM_SetIcon() now have the proper colors on Intel Macs. +

+ +

OS/2 Notes

+ +
+

+ Projects for building SDL on OS/2 with OpenWatcom have been contributed by Doodle. See the file README.OS2 in the SDL source distribution for details. +

+ +[separator] + + + diff --git a/lib/sdl/msvc/docs/html/audio.html b/lib/sdl/msvc/docs/html/audio.html new file mode 100644 index 0000000000000000000000000000000000000000..94075e2cb8388771d15b604c2d8fb37392ac95c7 --- /dev/null +++ b/lib/sdl/msvc/docs/html/audio.html @@ -0,0 +1,242 @@ +Audio
SDL Library Documentation
PrevNext

Chapter 10. Audio

Table of Contents
SDL_AudioSpec -- Audio Specification Structure
SDL_OpenAudio -- Opens the audio device with the desired parameters.
SDL_PauseAudio -- Pauses and unpauses the audio callback processing
SDL_GetAudioStatus -- Get the current audio state
SDL_LoadWAV -- Load a WAVE file
SDL_FreeWAV -- Frees previously opened WAV data
SDL_AudioCVT -- Audio Conversion Structure
SDL_BuildAudioCVT -- Initializes a SDL_AudioCVT structure for conversion
SDL_ConvertAudio -- Convert audio data to a desired audio format.
SDL_MixAudio -- Mix audio data
SDL_LockAudio -- Lock out the callback function
SDL_UnlockAudio -- Unlock the callback function
SDL_CloseAudio -- Shuts down audio processing and closes the audio device.

Sound on the computer is translated from waves that you hear into a series of +values, or samples, each representing the amplitude of the wave. When these +samples are sent in a stream to a sound card, an approximation of the original +wave can be recreated. The more bits used to represent the amplitude, and the +greater frequency these samples are gathered, the closer the approximated +sound is to the original, and the better the quality of sound.

This library supports both 8 and 16 bit signed and unsigned sound samples, +at frequencies ranging from 11025 Hz to 44100 Hz, depending on the +underlying hardware. If the hardware doesn't support the desired audio +format or frequency, it can be emulated if desired (See +SDL_OpenAudio())

A commonly supported audio format is 16 bits per sample at 22050 Hz.


PrevHomeNext
SDL_JoystickCloseUpSDL_AudioSpec
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/cdrom.html b/lib/sdl/msvc/docs/html/cdrom.html new file mode 100644 index 0000000000000000000000000000000000000000..bdd6bfd827252c479bb6af20b2bb9e5c1d89e96e --- /dev/null +++ b/lib/sdl/msvc/docs/html/cdrom.html @@ -0,0 +1,260 @@ +CD-ROM
SDL Library Documentation
PrevNext

Chapter 11. CD-ROM

Table of Contents
SDL_CDNumDrives -- Returns the number of CD-ROM drives on the system.
SDL_CDName -- Returns a human-readable, system-dependent identifier for the CD-ROM.
SDL_CDOpen -- Opens a CD-ROM drive for access.
SDL_CDStatus -- Returns the current status of the given drive.
SDL_CDPlay -- Play a CD
SDL_CDPlayTracks -- Play the given CD track(s)
SDL_CDPause -- Pauses a CDROM
SDL_CDResume -- Resumes a CDROM
SDL_CDStop -- Stops a CDROM
SDL_CDEject -- Ejects a CDROM
SDL_CDClose -- Closes a SDL_CD handle
SDL_CD -- CDROM Drive Information
SDL_CDtrack -- CD Track Information Structure

SDL supports audio control of up to 32 local CD-ROM drives at once.

You use this API to perform all the basic functions of a CD player, +including listing the tracks, playing, stopping, and ejecting the CD-ROM. +(Currently, multi-changer CD drives are not supported.)

Before you call any of the SDL CD-ROM functions, you must first call +"SDL_Init(SDL_INIT_CDROM)", which scans the system for +CD-ROM drives, and sets the program up for audio control. Check the +return code, which should be 0, to see if there +were any errors in starting up.

After you have initialized the library, you can find out how many drives +are available using the SDL_CDNumDrives() function. +The first drive listed is the system default CD-ROM drive. After you have +chosen a drive, and have opened it with SDL_CDOpen(), +you can check the status and start playing if there's a CD in the drive.

A CD-ROM is organized into one or more tracks, each consisting of a certain +number of "frames". Each frame is ~2K in size, and at normal playing speed, +a CD plays 75 frames per second. SDL works with the number of frames on a +CD, but this can easily be converted to the more familiar minutes/seconds +format by using the FRAMES_TO_MSF() macro.


PrevHomeNext
SDL_CloseAudioUpSDL_CDNumDrives
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/event.html b/lib/sdl/msvc/docs/html/event.html new file mode 100644 index 0000000000000000000000000000000000000000..f2bddb2c0ab67b02b750f51d4cb26ac9e74d8e9f --- /dev/null +++ b/lib/sdl/msvc/docs/html/event.html @@ -0,0 +1,216 @@ +Events
SDL Library Documentation
PrevNext

Chapter 8. Events

Introduction

Event handling allows your application to receive input from the user. Event handling is initalised (along with video) with a call to: +

SDL_Init(SDL_INIT_VIDEO);
+Internally, SDL stores all the events waiting to be handled in an event queue. Using functions like SDL_PollEvent and SDL_PeepEvents you can observe and handle waiting input events.

The key to event handling in SDL is the SDL_Event union. The event queue itself is composed of a series of SDL_Event unions, one for each waiting event. SDL_Event unions are read from the queue with the SDL_PollEvent function and it is then up to the application to process the information stored with them.


PrevHomeNext
SDL_WM_GrabInputUpSDL Event Structures.
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/eventfunctions.html b/lib/sdl/msvc/docs/html/eventfunctions.html new file mode 100644 index 0000000000000000000000000000000000000000..f68a29a3bf174bc37ee7e94a6ad398688f553a8b --- /dev/null +++ b/lib/sdl/msvc/docs/html/eventfunctions.html @@ -0,0 +1,481 @@ +Event Functions.
SDL Library Documentation
PrevChapter 8. EventsNext

Event Functions.

Table of Contents
SDL_PumpEvents -- Pumps the event loop, gathering events from the input devices.
SDL_PeepEvents -- Checks the event queue for messages and optionally returns them.
SDL_PollEvent -- Polls for currently pending events.
SDL_WaitEvent -- Waits indefinitely for the next available event.
SDL_PushEvent -- Pushes an event onto the event queue
SDL_SetEventFilter -- Sets up a filter to process all events before they are posted +to the event queue.
SDL_GetEventFilter -- Retrieves a pointer to he event filter
SDL_EventState -- This function allows you to set the state of processing certain events.
SDL_GetKeyState -- Get a snapshot of the current keyboard state
SDL_GetModState -- Get the state of modifier keys.
SDL_SetModState -- Set the current key modifier state
SDL_GetKeyName -- Get the name of an SDL virtual keysym
SDL_EnableUNICODE -- Enable UNICODE translation
SDL_EnableKeyRepeat -- Set keyboard repeat rate.
SDL_GetMouseState -- Retrieve the current state of the mouse
SDL_GetRelativeMouseState -- Retrieve the current state of the mouse
SDL_GetAppState -- Get the state of the application
SDL_JoystickEventState -- Enable/disable joystick event polling

SDL_PumpEventsPumps the event loop, gathering events from the input devices
SDL_PeepEventsChecks the event queue for messages and optionally returns them
SDL_PollEventPolls for currently pending events
SDL_WaitEventWaits indefinitely for the next available event
SDL_PushEventPushes an event onto the event queue
SDL_SetEventFilterSets up a filter to process all events
SDL_EventStateAllows you to set the state of processing certain events
SDL_GetKeyStateGet a snapshot of the current keyboard state
SDL_GetModStateGet the state of modifier keys
SDL_SetModStateSet the state of modifier keys
SDL_GetKeyNameGet the name of an SDL virtual keysym
SDL_EnableUNICODEEnable UNICODE translation
SDL_EnableKeyRepeatSet keyboard repeat rate
SDL_GetMouseStateRetrieve the current state of the mouse
SDL_GetRelativeMouseStateRetrieve the current state of the mouse
SDL_GetAppStateGet the state of the application
SDL_JoystickEventStateEnable/disable joystick event polling


PrevHomeNext
SDLKeyUpSDL_PumpEvents
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/eventstructures.html b/lib/sdl/msvc/docs/html/eventstructures.html new file mode 100644 index 0000000000000000000000000000000000000000..c95929622039acd86961fe3d766deec5018a2bb2 --- /dev/null +++ b/lib/sdl/msvc/docs/html/eventstructures.html @@ -0,0 +1,233 @@ +SDL Event Structures.
SDL Library Documentation
PrevChapter 8. EventsNext

SDL Event Structures.

Table of Contents
SDL_Event -- General event structure
SDL_ActiveEvent -- Application visibility event structure
SDL_KeyboardEvent -- Keyboard event structure
SDL_MouseMotionEvent -- Mouse motion event structure
SDL_MouseButtonEvent -- Mouse button event structure
SDL_JoyAxisEvent -- Joystick axis motion event structure
SDL_JoyButtonEvent -- Joystick button event structure
SDL_JoyHatEvent -- Joystick hat position change event structure
SDL_JoyBallEvent -- Joystick trackball motion event structure
SDL_ResizeEvent -- Window resize event structure
SDL_ExposeEvent -- Quit requested event
SDL_SysWMEvent -- Platform-dependent window manager event.
SDL_UserEvent -- A user-defined event type
SDL_QuitEvent -- Quit requested event
SDL_keysym -- Keysym structure
SDLKey -- Keysym definitions.

PrevHomeNext
EventsUpSDL_Event
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/general.html b/lib/sdl/msvc/docs/html/general.html new file mode 100644 index 0000000000000000000000000000000000000000..0beb5919f8b3d02aa6eee04b4fccbc93c0564b1d --- /dev/null +++ b/lib/sdl/msvc/docs/html/general.html @@ -0,0 +1,225 @@ +General
SDL Library Documentation
PrevNext

Chapter 5. General

Table of Contents
SDL_Init -- Initializes SDL
SDL_InitSubSystem -- Initialize subsystems
SDL_QuitSubSystem -- Shut down a subsystem
SDL_Quit -- Shut down SDL
SDL_WasInit -- Check which subsystems are initialized
SDL_GetError -- Get SDL error string
SDL_envvars -- SDL environment variables

Before SDL can be used in a program it must be initialized with SDL_Init. SDL_Init initializes all the subsystems that the user requests (video, audio, joystick, timers and/or cdrom). Once SDL is initialized with SDL_Init subsystems can be shut down and initialized as needed using SDL_InitSubSystem and SDL_QuitSubSystem.

SDL must also be shut down before the program exits to make sure it cleans up correctly. Calling SDL_Quit shuts down all subsystems and frees any resources allocated to SDL.


PrevHomeNext
SDL ReferenceUpSDL_Init
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guide.html b/lib/sdl/msvc/docs/html/guide.html new file mode 100644 index 0000000000000000000000000000000000000000..2c1297ee2bd2c35715324e0339a28513a7f9790c --- /dev/null +++ b/lib/sdl/msvc/docs/html/guide.html @@ -0,0 +1,174 @@ +SDL Guide
SDL Library Documentation
PrevNext

I. SDL Guide


PrevHomeNext
SDL Library Documentation Preface
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guideaboutsdldoc.html b/lib/sdl/msvc/docs/html/guideaboutsdldoc.html new file mode 100644 index 0000000000000000000000000000000000000000..cdb0d783c2bc3307040d7764865fb297484af0ae --- /dev/null +++ b/lib/sdl/msvc/docs/html/guideaboutsdldoc.html @@ -0,0 +1,148 @@ +About SDLdoc
SDL Library Documentation
PrevPrefaceNext

About SDLdoc

SDLdoc (The SDL Documentation Project) was formed to completely rewrite the SDL documentation and to keep it continually up to date. The team consists completely of volunteers ranging from people working with SDL in their spare time to people who use SDL in their everyday working lives.

The latest version of this documentation can always be found here: http://sdldoc.csn.ul.ie Downloadable PS, man pages and html tarballs are available at http://sdldoc.csn.ul.ie/pub/


PrevHomeNext
PrefaceUpCredits
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guideaudioexamples.html b/lib/sdl/msvc/docs/html/guideaudioexamples.html new file mode 100644 index 0000000000000000000000000000000000000000..afb7522be7d2367b1b47a5cc90392bab68bc3a3b --- /dev/null +++ b/lib/sdl/msvc/docs/html/guideaudioexamples.html @@ -0,0 +1,228 @@ +Audio Examples
SDL Library Documentation
PrevChapter 4. ExamplesNext

Audio Examples

Opening the audio device

    SDL_AudioSpec wanted;
+    extern void fill_audio(void *udata, Uint8 *stream, int len);
+
+    /* Set the audio format */
+    wanted.freq = 22050;
+    wanted.format = AUDIO_S16;
+    wanted.channels = 2;    /* 1 = mono, 2 = stereo */
+    wanted.samples = 1024;  /* Good low-latency value for callback */
+    wanted.callback = fill_audio;
+    wanted.userdata = NULL;
+
+    /* Open the audio device, forcing the desired format */
+    if ( SDL_OpenAudio(&wanted, NULL) < 0 ) {
+        fprintf(stderr, "Couldn't open audio: %s\n", SDL_GetError());
+        return(-1);
+    }
+    return(0);

Playing audio

    static Uint8 *audio_chunk;
+    static Uint32 audio_len;
+    static Uint8 *audio_pos;
+
+    /* The audio function callback takes the following parameters:
+       stream:  A pointer to the audio buffer to be filled
+       len:     The length (in bytes) of the audio buffer
+    */
+    void fill_audio(void *udata, Uint8 *stream, int len)
+    {
+        /* Only play if we have data left */
+        if ( audio_len == 0 )
+            return;
+
+        /* Mix as much data as possible */
+        len = ( len > audio_len ? audio_len : len );
+        SDL_MixAudio(stream, audio_pos, len, SDL_MIX_MAXVOLUME);
+        audio_pos += len;
+        audio_len -= len;
+    }
+
+    /* Load the audio data ... */
+
+    ;;;;;
+
+    audio_pos = audio_chunk;
+
+    /* Let the callback function play the audio chunk */
+    SDL_PauseAudio(0);
+
+    /* Do some processing */
+
+    ;;;;;
+
+    /* Wait for sound to complete */
+    while ( audio_len > 0 ) {
+        SDL_Delay(100);         /* Sleep 1/10 second */
+    }
+    SDL_CloseAudio();


PrevHomeNext
Event ExamplesUpCDROM Examples
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guidebasicsinit.html b/lib/sdl/msvc/docs/html/guidebasicsinit.html new file mode 100644 index 0000000000000000000000000000000000000000..faafdbd9204ab3a3070f2f2d5daa1af0c9e1a8f3 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guidebasicsinit.html @@ -0,0 +1,240 @@ +Initializing SDL
SDL Library Documentation
PrevChapter 1. The BasicsNext

Initializing SDL

SDL is composed of eight subsystems - Audio, CDROM, Event Handling, File I/O, Joystick Handling, Threading, Timers and Video. Before you can use any of these subsystems they must be initialized by calling SDL_Init (or SDL_InitSubSystem). SDL_Init must be called before any other SDL function. It automatically initializes the Event Handling, File I/O and Threading subsystems and it takes a parameter specifying which other subsystems to initialize. So, to initialize the default subsystems and the Video subsystems you would call: +

    SDL_Init ( SDL_INIT_VIDEO );
+To initialize the default subsystems, the Video subsystem and the Timers subsystem you would call: +
    SDL_Init ( SDL_INIT_VIDEO | SDL_INIT_TIMER );

SDL_Init is complemented by SDL_Quit (and SDL_QuitSubSystem). SDL_Quit shuts down all subsystems, including the default ones. It should always be called before a SDL application exits.

With SDL_Init and SDL_Quit firmly embedded in your programmers toolkit you can write your first and most basic SDL application. However, we must be prepare to handle errors. Many SDL functions return a value and indicates whether the function has succeeded or failed, SDL_Init, for instance, returns -1 if it could not initialize a subsystem. SDL provides a useful facility that allows you to determine exactly what the problem was, every time an error occurs within SDL an error message is stored which can be retrieved using SDL_GetError. Use this often, you can never know too much about an error.

Example 1-1. Initializing SDL

#include "SDL.h"   /* All SDL App's need this */
+#include <stdio.h>
+
+int main(int argc, char *argv[]) {
+    
+    printf("Initializing SDL.\n");
+    
+    /* Initialize defaults, Video and Audio */
+    if((SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1)) { 
+        printf("Could not initialize SDL: %s.\n", SDL_GetError());
+        exit(-1);
+    }
+
+    printf("SDL initialized.\n");
+
+    printf("Quiting SDL.\n");
+    
+    /* Shutdown all subsystems */
+    SDL_Quit();
+    
+    printf("Quiting....\n");
+
+    exit(0);
+}

PrevHomeNext
The BasicsUpGraphics and Video
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guidecdromexamples.html b/lib/sdl/msvc/docs/html/guidecdromexamples.html new file mode 100644 index 0000000000000000000000000000000000000000..2bc5a16cb53f20d54e26436d00f46f5a53f68434 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guidecdromexamples.html @@ -0,0 +1,275 @@ +CDROM Examples
SDL Library Documentation
PrevChapter 4. ExamplesNext

CDROM Examples

Listing CD-ROM drives

    #include "SDL.h"
+
+    /* Initialize SDL first */
+    if ( SDL_Init(SDL_INIT_CDROM) < 0 ) {
+        fprintf(stderr, "Couldn't initialize SDL: %s\n",SDL_GetError());
+        exit(1);
+    }
+    atexit(SDL_Quit);
+
+    /* Find out how many CD-ROM drives are connected to the system */
+    printf("Drives available: %d\n", SDL_CDNumDrives());
+    for ( i=0; i<SDL_CDNumDrives(); ++i ) {
+        printf("Drive %d:  \"%s\"\n", i, SDL_CDName(i));
+    }

Opening the default drive

    SDL_CD *cdrom;
+    CDstatus status;
+    char *status_str;
+
+    cdrom = SDL_CDOpen(0);
+    if ( cdrom == NULL ) {
+        fprintf(stderr, "Couldn't open default CD-ROM drive: %s\n",
+                        SDL_GetError());
+        exit(2);
+    }
+
+    status = SDL_CDStatus(cdrom);
+    switch (status) {
+        case CD_TRAYEMPTY:
+            status_str = "tray empty";
+            break;
+        case CD_STOPPED:
+            status_str = "stopped";
+            break;
+        case CD_PLAYING:
+            status_str = "playing";
+            break;
+        case CD_PAUSED:
+            status_str = "paused";
+            break;
+        case CD_ERROR:
+            status_str = "error state";
+            break;
+    }
+    printf("Drive status: %s\n", status_str);
+    if ( status >= CD_PLAYING ) {
+        int m, s, f;
+        FRAMES_TO_MSF(cdrom->cur_frame, &m, &s, &f);
+        printf("Currently playing track %d, %d:%2.2d\n",
+        cdrom->track[cdrom->cur_track].id, m, s);
+    }

Listing the tracks on a CD

    SDL_CD *cdrom;          /* Assuming this has already been set.. */
+    int i;
+    int m, s, f;
+
+    SDL_CDStatus(cdrom);
+    printf("Drive tracks: %d\n", cdrom->numtracks);
+    for ( i=0; i<cdrom->numtracks; ++i ) {
+        FRAMES_TO_MSF(cdrom->track[i].length, &m, &s, &f);
+        if ( f > 0 )
+            ++s;
+        printf("\tTrack (index %d) %d: %d:%2.2d\n", i,
+        cdrom->track[i].id, m, s);
+    }

Play an entire CD

    SDL_CD *cdrom;          /* Assuming this has already been set.. */
+
+    // Play entire CD:
+    if ( CD_INDRIVE(SDL_CDStatus(cdrom)) )
+        SDL_CDPlayTracks(cdrom, 0, 0, 0, 0);
+
+        // Play last track:
+        if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) {
+            SDL_CDPlayTracks(cdrom, cdrom->numtracks-1, 0, 0, 0);
+        }
+
+        // Play first and second track and 10 seconds of third track:
+        if ( CD_INDRIVE(SDL_CDStatus(cdrom)) )
+            SDL_CDPlayTracks(cdrom, 0, 0, 2, CD_FPS * 10);


PrevHomeNext
Audio ExamplesUpTime Examples
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guidecredits.html b/lib/sdl/msvc/docs/html/guidecredits.html new file mode 100644 index 0000000000000000000000000000000000000000..b66b28f54dbcad18dcaad6d8f783ebc7621789f2 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guidecredits.html @@ -0,0 +1,195 @@ +Credits
SDL Library Documentation
PrevPrefaceNext

Credits

Sam Lantinga, slouken@libsdl.org
Martin Donlon, akawaka@skynet.ie
Mattias Engdegård
Julian Peterson
Ken Jordan
Maxim Sobolev
Wesley Poole
Michael Vance
Andreas Umbach
Andreas Hofmeister


PrevHomeNext
About SDLdocUpThe Basics
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guideeventexamples.html b/lib/sdl/msvc/docs/html/guideeventexamples.html new file mode 100644 index 0000000000000000000000000000000000000000..300136947cb7286820691982296bd70b171f2a16 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guideeventexamples.html @@ -0,0 +1,247 @@ +Event Examples
SDL Library Documentation
PrevChapter 4. ExamplesNext

Event Examples

Filtering and Handling Events

#include <stdio.h>
+#include <stdlib.h>
+
+#include "SDL.h"
+
+/* This function may run in a separate event thread */
+int FilterEvents(const SDL_Event *event) {
+    static int boycott = 1;
+
+    /* This quit event signals the closing of the window */
+    if ( (event->type == SDL_QUIT) && boycott ) {
+        printf("Quit event filtered out -- try again.\n");
+        boycott = 0;
+        return(0);
+    }
+    if ( event->type == SDL_MOUSEMOTION ) {
+        printf("Mouse moved to (%d,%d)\n",
+                event->motion.x, event->motion.y);
+        return(0);    /* Drop it, we've handled it */
+    }
+    return(1);
+}
+
+int main(int argc, char *argv[])
+{
+    SDL_Event event;
+
+    /* Initialize the SDL library (starts the event loop) */
+    if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
+        fprintf(stderr,
+                "Couldn't initialize SDL: %s\n", SDL_GetError());
+        exit(1);
+    }
+
+    /* Clean up on exit, exit on window close and interrupt */
+    atexit(SDL_Quit);
+
+    /* Ignore key events */
+    SDL_EventState(SDL_KEYDOWN, SDL_IGNORE);
+    SDL_EventState(SDL_KEYUP, SDL_IGNORE);
+
+    /* Filter quit and mouse motion events */
+    SDL_SetEventFilter(FilterEvents);
+
+    /* The mouse isn't much use unless we have a display for reference */
+    if ( SDL_SetVideoMode(640, 480, 8, 0) == NULL ) {
+        fprintf(stderr, "Couldn't set 640x480x8 video mode: %s\n",
+                        SDL_GetError());
+        exit(1);
+    }
+
+    /* Loop waiting for ESC+Mouse_Button */
+    while ( SDL_WaitEvent(&event) >= 0 ) {
+        switch (event.type) {
+            case SDL_ACTIVEEVENT: {
+                if ( event.active.state & SDL_APPACTIVE ) {
+                    if ( event.active.gain ) {
+                        printf("App activated\n");
+                    } else {
+                        printf("App iconified\n");
+                    }
+                }
+            }
+            break;
+                    
+            case SDL_MOUSEBUTTONDOWN: {
+                Uint8 *keys;
+
+                keys = SDL_GetKeyState(NULL);
+                if ( keys[SDLK_ESCAPE] == SDL_PRESSED ) {
+                    printf("Bye bye...\n");
+                    exit(0);
+                }
+                printf("Mouse button pressed\n");
+            }
+            break;
+
+            case SDL_QUIT: {
+                printf("Quit requested, quitting.\n");
+                exit(0);
+            }
+            break;
+        }
+    }
+    /* This should never happen */
+    printf("SDL_WaitEvent error: %s\n", SDL_GetError());
+    exit(1);
+}


PrevHomeNext
ExamplesUpAudio Examples
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guideexamples.html b/lib/sdl/msvc/docs/html/guideexamples.html new file mode 100644 index 0000000000000000000000000000000000000000..5b9a8471df853828c8c48f22145cc43ae69b9106 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guideexamples.html @@ -0,0 +1,188 @@ +Examples
SDL Library Documentation
PrevNext

Chapter 4. Examples

Introduction

For the moment these examples are taken directly from the old SDL documentation. By the 1.2 release these examples should hopefully deal with most common SDL programming problems.


PrevHomeNext
Handling the KeyboardUpEvent Examples
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guideinput.html b/lib/sdl/msvc/docs/html/guideinput.html new file mode 100644 index 0000000000000000000000000000000000000000..4a82b6761abdcebce1b4c165337d60967dff1224 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guideinput.html @@ -0,0 +1,739 @@ +Input handling
SDL Library Documentation
PrevNext

Chapter 3. Input handling

Handling Joysticks

Initialization

The first step in using a joystick in a SDL program is to initialize the Joystick subsystems of SDL. This done by passing the SDL_INIT_JOYSTICK flag to SDL_Init. The joystick flag will usually be used in conjunction with other flags (like the video flag) because the joystick is usually used to control something.

Example 3-1. Initializing SDL with Joystick Support

    if (SDL_Init( SDL_INIT_VIDEO | SDL_INIT_JOYSTICK ) < 0)
+    {
+        fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
+        exit(1);
+    }

This will attempt to start SDL with both the video and the joystick subsystems activated.

Querying

If we have reached this point then we can safely assume that the SDL library has been initialized and that the Joystick subsystem is active. We can now call some video and/or sound functions to get things going before we need the joystick. Eventually we have to make sure that there is actually a joystick to work with. It's wise to always check even if you know a joystick will be present on the system because it can also help detect when the joystick is unplugged. The function used to check for joysticks is SDL_NumJoysticks.

This function simply returns the number of joysticks available on the system. If it is at least one then we are in good shape. The next step is to determine which joystick the user wants to use. If the number of joysticks available is only one then it is safe to assume that one joystick is the one the user wants to use. SDL has a function to get the name of the joysticks as assigned by the operations system and that function is SDL_JoystickName. The joystick is specified by an index where 0 is the first joystick and the last joystick is the number returned by SDL_NumJoysticks - 1. In the demonstration a list of all available joysticks is printed to stdout.

Example 3-2. Querying the Number of Available Joysticks

    printf("%i joysticks were found.\n\n", SDL_NumJoysticks() );
+    printf("The names of the joysticks are:\n");
+		
+    for( i=0; i < SDL_NumJoysticks(); i++ ) 
+    {
+        printf("    %s\n", SDL_JoystickName(i));
+    }

Opening a Joystick and Receiving Joystick Events

SDL's event driven architecture makes working with joysticks a snap. Joysticks can trigger 4 different types of events: +

SDL_JoyAxisEventOccurs when an axis changes
SDL_JoyBallEventOccurs when a joystick trackball's position changes
SDL_JoyHatEventOccurs when a hat's position changes
SDL_JoyButtonEventOccurs when a button is pressed or released

Events are received from all joysticks opened. The first thing that needs to be done in order to receive joystick events is to call SDL_JoystickEventState with the SDL_ENABLE flag. Next you must open the joysticks that you want to receive envents from. This is done with the SDL_JoystickOpen function. For the example we are only interested in events from the first joystick on the system, regardless of what it may be. To receive events from it we would do this:

Example 3-3. Opening a Joystick

    SDL_Joystick *joystick;
+
+    SDL_JoystickEventState(SDL_ENABLE);
+    joystick = SDL_JoystickOpen(0);

If we wanted to receive events for other joysticks we would open them with calls to SDL_JoystickOpen just like we opened joystick 0, except we would store the SDL_Joystick structure they return in a different pointer. We only need the joystick pointer when we are querying the joysticks or when we are closing the joystick.

Up to this point all the code we have is used just to initialize the joysticks in order to read values at run time. All we need now is an event loop, which is something that all SDL programs should have anyway to receive the systems quit events. We must now add code to check the event loop for at least some of the above mentioned events. Let's assume our event loop looks like this: +

    SDL_Event event;
+    /* Other initializtion code goes here */   
+
+    /* Start main game loop here */
+
+    while(SDL_PollEvent(&event))
+    {  
+        switch(event.type)
+        {  
+            case SDL_KEYDOWN:
+            /* handle keyboard stuff here */				
+            break;
+
+            case SDL_QUIT:
+            /* Set whatever flags are necessary to */
+            /* end the main game loop here */
+            break;
+        }
+    }
+
+    /* End loop here */
+To handle Joystick events we merely add cases for them, first we'll add axis handling code. Axis checks can get kinda of tricky because alot of the joystick events received are junk. Joystick axis have a tendency to vary just a little between polling due to the way they are designed. To compensate for this you have to set a threshold for changes and ignore the events that have'nt exceeded the threshold. 10% is usually a good threshold value. This sounds a lot more complicated than it is. Here is the Axis event handler:

Example 3-4. Joystick Axis Events

    case SDL_JOYAXISMOTION:  /* Handle Joystick Motion */
+    if ( ( event.jaxis.value < -3200 ) || (event.jaxis.value > 3200 ) ) 
+    {
+      /* code goes here */
+    }
+    break;

Another trick with axis events is that up-down and left-right movement are two different sets of axes. The most important axis is axis 0 (left-right) and axis 1 (up-down). To handle them seperatly in the code we do the following:

Example 3-5. More Joystick Axis Events

    case SDL_JOYAXISMOTION:  /* Handle Joystick Motion */
+    if ( ( event.jaxis.value < -3200 ) || (event.jaxis.value > 3200 ) ) 
+    {
+        if( event.jaxis.axis == 0) 
+        {
+            /* Left-right movement code goes here */
+        }
+
+        if( event.jaxis.axis == 1) 
+        {
+            /* Up-Down movement code goes here */
+        }
+    }
+    break;

Ideally the code here should use event.jaxis.value to scale something. For example lets assume you are using the joystick to control the movement of a spaceship. If the user is using an analog joystick and they push the stick a little bit they expect to move less than if they pushed it a lot. Designing your code for this situation is preferred because it makes the experience for users of analog controls better and remains the same for users of digital controls.

If your joystick has any additional axis then they may be used for other sticks or throttle controls and those axis return values too just with different event.jaxis.axis values.

Button handling is simple compared to the axis checking.

Example 3-6. Joystick Button Events

    case SDL_JOYBUTTONDOWN:  /* Handle Joystick Button Presses */
+    if ( event.jbutton.button == 0 ) 
+    {
+        /* code goes here */
+    }
+    break;

Button checks are simpler than axis checks because a button can only be pressed or not pressed. The SDL_JOYBUTTONDOWN event is triggered when a button is pressed and the SDL_JOYBUTTONUP event is fired when a button is released. We do have to know what button was pressed though, that is done by reading the event.jbutton.button field.

Lastly when we are through using our joysticks we should close them with a call to SDL_JoystickClose. To close our opened joystick 0 we would do this at the end of our program: +

    SDL_JoystickClose(joystick);

Advanced Joystick Functions

That takes care of the controls that you can count on being on every joystick under the sun, but there are a few extra things that SDL can support. Joyballs are next on our list, they are alot like axis with a few minor differences. Joyballs store relative changes unlike the the absolute postion stored in a axis event. Also one trackball event contains both the change in x and they change in y. Our case for it is as follows:

Example 3-7. Joystick Ball Events

    case SDL_JOYBALLMOTION:  /* Handle Joyball Motion */
+    if( event.jball.ball == 0 )
+    {
+      /* ball handling */
+    }
+    break;

The above checks the first joyball on the joystick. The change in position will be stored in event.jball.xrel and event.jball.yrel.

Finally we have the hat event. Hats report only the direction they are pushed in. We check hat's position with the bitmasks: + +

SDL_HAT_CENTERED
SDL_HAT_UP
SDL_HAT_RIGHT
SDL_HAT_DOWN
SDL_HAT_LEFT

+ +Also there are some predefined combinations of the above: +

SDL_HAT_RIGHTUP
SDL_HAT_RIGHTDOWN
SDL_HAT_LEFTUP
SDL_HAT_LEFTDOWN

+ +Our case for the hat may resemble the following:

Example 3-8. Joystick Hat Events

    case SDL_JOYHATMOTION:  /* Handle Hat Motion */
+    if ( event.jhat.value & SDL_HAT_UP )
+    {
+        /* Do up stuff here */
+    }
+
+    if ( event.jhat.value & SDL_HAT_LEFT )
+    {
+        /* Do left stuff here */
+    }
+
+    if ( event.jhat.value & SDL_HAT_RIGHTDOWN )
+    {
+        /* Do right and down together stuff here */
+    }
+    break;

In addition to the queries for number of joysticks on the system and their names there are additional functions to query the capabilities of attached joysticks: +

SDL_JoystickNumAxesReturns the number of joysitck axes
SDL_JoystickNumButtonsReturns the number of joysitck buttons
SDL_JoystickNumBallsReturns the number of joysitck balls
SDL_JoystickNumHatsReturns the number of joysitck hats

+ +To use these functions we just have to pass in the joystick structure we got when we opened the joystick. For Example:

Example 3-9. Querying Joystick Characteristics

    int number_of_buttons;
+    SDL_Joystick *joystick;
+
+    joystick = SDL_JoystickOpen(0);
+    number_of_buttons = SDL_JoystickNumButtons(joystick);

This block of code would get the number of buttons on the first joystick in the system.


PrevHomeNext
Using OpenGL With SDLUpHandling the Keyboard
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guideinputkeyboard.html b/lib/sdl/msvc/docs/html/guideinputkeyboard.html new file mode 100644 index 0000000000000000000000000000000000000000..787036c7f2ad3b8e35dfb6dd578d2b9e5085b4c8 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guideinputkeyboard.html @@ -0,0 +1,746 @@ +Handling the Keyboard
SDL Library Documentation
PrevChapter 3. Input handlingNext

Handling the Keyboard

Keyboard Related Structures

It should make it a lot easier to understand this tutorial is you are familiar with the data types involved in keyboard access, so I'll explain them first.

SDLKey

SDLKey is an enumerated type defined in SDL/include/SDL_keysym.h and detailed here. Each SDLKey symbol represents a key, SDLK_a corresponds to the 'a' key on a keyboard, SDLK_SPACE corresponds to the space bar, and so on.

SDLMod

SDLMod is an enumerated type, similar to SDLKey, however it enumerates keyboard modifiers (Control, Alt, Shift). The full list of modifier symbols is here. SDLMod values can be AND'd together to represent several modifiers.

SDL_keysym

typedef struct{
+  Uint8 scancode;
+  SDLKey sym;
+  SDLMod mod;
+  Uint16 unicode;
+} SDL_keysym;

The SDL_keysym structure describes a key press or a key release. The scancode field is hardware specific and should be ignored unless you know what your doing. The sym field is the SDLKey value of the key being pressed or released. The mod field describes the state of the keyboard modifiers at the time the key press or release occurred. So a value of KMOD_NUM | KMOD_CAPS | KMOD_LSHIFT would mean that Numlock, Capslock and the left shift key were all press (or enabled in the case of the lock keys). Finally, the unicode field stores the 16-bit unicode value of the key.

Note: It should be noted and understood that this field is only valid when the SDL_keysym is describing a key press, not a key release. Unicode values only make sense on a key press because the unicode value describes an international character and only key presses produce characters. More information on Unicode can be found at www.unicode.org

Note: Unicode translation must be enabled using the SDL_EnableUNICODE function.

SDL_KeyboardEvent

typedef struct{
+  Uint8 type;
+  Uint8 state;
+  SDL_keysym keysym;
+} SDL_KeyboardEvent;

The SDL_KeyboardEvent describes a keyboard event (obviously). The key member of the SDL_Event union is a SDL_KeyboardEvent structure. The type field specifies whether the event is a key release (SDL_KEYUP) or a key press (SDL_KEYDOWN) event. The state is largely redundant, it reports the same information as the type field but uses different values (SDL_RELEASED and SDL_PRESSED). The keysym contains information of the key press or release that this event represents (see above).

Reading Keyboard Events

Reading keybaord events from the event queue is quite simple (the event queue and using it is described here). We read events using SDL_PollEvent in a while() loop and check for SDL_KEYUP and SDL_KEYDOWN events using a switch statement, like so:

Example 3-10. Reading Keyboard Events

  SDL_Event event;
+  .
+  .
+  /* Poll for events. SDL_PollEvent() returns 0 when there are no  */
+  /* more events on the event queue, our while loop will exit when */
+  /* that occurs.                                                  */
+  while( SDL_PollEvent( &event ) ){
+    /* We are only worried about SDL_KEYDOWN and SDL_KEYUP events */
+    switch( event.type ){
+      case SDL_KEYDOWN:
+        printf( "Key press detected\n" );
+        break;
+
+      case SDL_KEYUP:
+        printf( "Key release detected\n" );
+        break;
+
+      default:
+        break;
+    }
+  }
+  .
+  .

This is a very basic example. No information about the key press or release is interpreted. We will explore the other extreme out our first full example below - reporting all available information about a keyboard event.

A More Detailed Look

Before we can read events SDL must be initialised with SDL_Init and a video mode must be set using SDL_SetVideoMode. There are, however, two other functions we must use to obtain all the information required. We must enable unicode translation by calling SDL_EnableUNICODE(1) and we must convert SDLKey values into something printable, using SDL_GetKeyName

Note: It is useful to note that unicode values < 0x80 translate directly a characters ASCII value. THis is used in the example below

Example 3-11. Interpreting Key Event Information


    #include "SDL.h"
+
+    /* Function Prototypes */
+    void PrintKeyInfo( SDL_KeyboardEvent *key );
+    void PrintModifiers( SDLMod mod );
+
+    /* main */
+    int main( int argc, char *argv[] ){
+        
+        SDL_Event event;
+        int quit = 0;
+        
+        /* Initialise SDL */
+        if( SDL_Init( SDL_INIT_VIDEO ) < 0){
+            fprintf( stderr, "Could not initialise SDL: %s\n", SDL_GetError() );
+            exit( -1 );
+        }
+
+        /* Set a video mode */
+        if( !SDL_SetVideoMode( 320, 200, 0, 0 ) ){
+            fprintf( stderr, "Could not set video mode: %s\n", SDL_GetError() );
+            SDL_Quit();
+            exit( -1 );
+        }
+
+        /* Enable Unicode translation */
+        SDL_EnableUNICODE( 1 );
+
+        /* Loop until an SDL_QUIT event is found */
+        while( !quit ){
+
+            /* Poll for events */
+            while( SDL_PollEvent( &event ) ){
+                
+                switch( event.type ){
+                    /* Keyboard event */
+                    /* Pass the event data onto PrintKeyInfo() */
+                    case SDL_KEYDOWN:
+                    case SDL_KEYUP:
+                        PrintKeyInfo( &event.key );
+                        break;
+
+                    /* SDL_QUIT event (window close) */
+                    case SDL_QUIT:
+                        quit = 1;
+                        break;
+
+                    default:
+                        break;
+                }
+
+            }
+
+        }
+
+        /* Clean up */
+        SDL_Quit();
+        exit( 0 );
+    }
+
+    /* Print all information about a key event */
+    void PrintKeyInfo( SDL_KeyboardEvent *key ){
+        /* Is it a release or a press? */
+        if( key->type == SDL_KEYUP )
+            printf( "Release:- " );
+        else
+            printf( "Press:- " );
+
+        /* Print the hardware scancode first */
+        printf( "Scancode: 0x%02X", key->keysym.scancode );
+        /* Print the name of the key */
+        printf( ", Name: %s", SDL_GetKeyName( key->keysym.sym ) );
+        /* We want to print the unicode info, but we need to make */
+        /* sure its a press event first (remember, release events */
+        /* don't have unicode info                                */
+        if( key->type == SDL_KEYDOWN ){
+            /* If the Unicode value is less than 0x80 then the    */
+            /* unicode value can be used to get a printable       */
+            /* representation of the key, using (char)unicode.    */
+            printf(", Unicode: " );
+            if( key->keysym.unicode < 0x80 && key->keysym.unicode > 0 ){
+                printf( "%c (0x%04X)", (char)key->keysym.unicode,
+                        key->keysym.unicode );
+            }
+            else{
+                printf( "? (0x%04X)", key->keysym.unicode );
+            }
+        }
+        printf( "\n" );
+        /* Print modifier info */
+        PrintModifiers( key->keysym.mod );
+    }
+
+    /* Print modifier info */
+    void PrintModifiers( SDLMod mod ){
+        printf( "Modifers: " );
+
+        /* If there are none then say so and return */
+        if( mod == KMOD_NONE ){
+            printf( "None\n" );
+            return;
+        }
+
+        /* Check for the presence of each SDLMod value */
+        /* This looks messy, but there really isn't    */
+        /* a clearer way.                              */
+        if( mod & KMOD_NUM ) printf( "NUMLOCK " );
+        if( mod & KMOD_CAPS ) printf( "CAPSLOCK " );
+        if( mod & KMOD_LCTRL ) printf( "LCTRL " );
+        if( mod & KMOD_RCTRL ) printf( "RCTRL " );
+        if( mod & KMOD_RSHIFT ) printf( "RSHIFT " );
+        if( mod & KMOD_LSHIFT ) printf( "LSHIFT " );
+        if( mod & KMOD_RALT ) printf( "RALT " );
+        if( mod & KMOD_LALT ) printf( "LALT " );
+        if( mod & KMOD_CTRL ) printf( "CTRL " );
+        if( mod & KMOD_SHIFT ) printf( "SHIFT " );
+        if( mod & KMOD_ALT ) printf( "ALT " );
+        printf( "\n" );
+    }

Game-type Input

I have found that people using keyboard events for games and other interactive applications don't always understand one fundemental point.

Keyboard events only take place when a keys state changes from being unpressed to pressed, and vice versa.

Imagine you have an image of an alien that you wish to move around using the cursor keys: when you pressed the left arrow key you want him to slide over to the left, and when you press the down key you want him to slide down the screen. Examine the following code; it highlights an error that many people have made. +

    /* Alien screen coordinates */
+    int alien_x=0, alien_y=0;
+    .
+    .
+    /* Initialise SDL and video modes and all that */
+    .
+    /* Main game loop */
+    /* Check for events */
+    while( SDL_PollEvent( &event ) ){
+        switch( event.type ){
+            /* Look for a keypress */
+            case SDL_KEYDOWN:
+                /* Check the SDLKey values and move change the coords */
+                switch( event.key.keysym.sym ){
+                    case SDLK_LEFT:
+                        alien_x -= 1;
+                        break;
+                    case SDLK_RIGHT:
+                        alien_x += 1;
+                        break;
+                    case SDLK_UP:
+                        alien_y -= 1;
+                        break;
+                    case SDLK_DOWN:
+                        alien_y += 1;
+                        break;
+                    default:
+                        break;
+                }
+            }
+        }
+    }
+    .
+    .
+At first glance you may think this is a perfectly reasonable piece of code for the task, but it isn't. Like I said keyboard events only occur when a key changes state, so the user would have to press and release the left cursor key 100 times to move the alien 100 pixels to the left.

To get around this problem we must not use the events to change the position of the alien, we use the events to set flags which are then used in a seperate section of code to move the alien. Something like this:

Example 3-12. Proper Game Movement

    /* Alien screen coordinates */
+    int alien_x=0, alien_y=0;
+    int alien_xvel=0, alien_yvel=0;
+    .
+    .
+    /* Initialise SDL and video modes and all that */
+    .
+    /* Main game loop */
+    /* Check for events */
+    while( SDL_PollEvent( &event ) ){
+        switch( event.type ){
+            /* Look for a keypress */
+            case SDL_KEYDOWN:
+                /* Check the SDLKey values and move change the coords */
+                switch( event.key.keysym.sym ){
+                    case SDLK_LEFT:
+                        alien_xvel = -1;
+                        break;
+                    case SDLK_RIGHT:
+                        alien_xvel =  1;
+                        break;
+                    case SDLK_UP:
+                        alien_yvel = -1;
+                        break;
+                    case SDLK_DOWN:
+                        alien_yvel =  1;
+                        break;
+                    default:
+                        break;
+                }
+                break;
+            /* We must also use the SDL_KEYUP events to zero the x */
+            /* and y velocity variables. But we must also be       */
+            /* careful not to zero the velocities when we shouldn't*/
+            case SDL_KEYUP:
+                switch( event.key.keysym.sym ){
+                    case SDLK_LEFT:
+                        /* We check to make sure the alien is moving */
+                        /* to the left. If it is then we zero the    */
+                        /* velocity. If the alien is moving to the   */
+                        /* right then the right key is still press   */
+                        /* so we don't tocuh the velocity            */
+                        if( alien_xvel < 0 )
+                            alien_xvel = 0;
+                        break;
+                    case SDLK_RIGHT:
+                        if( alien_xvel > 0 )
+                            alien_xvel = 0;
+                        break;
+                    case SDLK_UP:
+                        if( alien_yvel < 0 )
+                            alien_yvel = 0;
+                        break;
+                    case SDLK_DOWN:
+                        if( alien_yvel > 0 )
+                            alien_yvel = 0;
+                        break;
+                    default:
+                        break;
+                }
+                break;
+            
+            default:
+                break;
+        }
+    }
+    .
+    .
+    /* Update the alien position */
+    alien_x += alien_xvel;
+    alien_y += alien_yvel;

As can be seen, we use two extra variables, alien_xvel and alien_yvel, which represent the motion of the ship, it is these variables that we update when we detect keypresses and releases.


PrevHomeNext
Input handlingUpExamples
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guidepreface.html b/lib/sdl/msvc/docs/html/guidepreface.html new file mode 100644 index 0000000000000000000000000000000000000000..9986fc6b75392c35a7975476c1dfa10f75a3ec02 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guidepreface.html @@ -0,0 +1,178 @@ +Preface
SDL Library Documentation
PrevNext

Preface

About SDL

The SDL library is designed to make it easy to write games that run on Linux, *BSD, MacOS, Win32 and BeOS using the various native high-performance media interfaces, (for video, audio, etc) and presenting a single source-code level API to your application. SDL is a fairly low level API, but using it, completely portable applications can be written with a great deal of flexibility.


PrevHomeNext
SDL GuideUpAbout SDLdoc
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guidethebasics.html b/lib/sdl/msvc/docs/html/guidethebasics.html new file mode 100644 index 0000000000000000000000000000000000000000..4f32363f38a08821678f115e7c5e7a6c10ea92b9 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guidethebasics.html @@ -0,0 +1,173 @@ +The Basics
SDL Library Documentation
PrevNext

Chapter 1. The Basics

Introduction

The SDL Guide section is pretty incomplete. If you feel you have anything to add mail akawaka@skynet.ie or visit http://akawaka.csn.ul.ie/tne/.


PrevHomeNext
CreditsUpInitializing SDL
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guidetimeexamples.html b/lib/sdl/msvc/docs/html/guidetimeexamples.html new file mode 100644 index 0000000000000000000000000000000000000000..42b5019ebf0443e3f91e5f4475eb6d2589031b72 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guidetimeexamples.html @@ -0,0 +1,183 @@ +Time Examples
SDL Library Documentation
PrevChapter 4. ExamplesNext

Time Examples

Time based game loop

#define TICK_INTERVAL    30
+
+static Uint32 next_time;
+
+Uint32 time_left(void)
+{
+    Uint32 now;
+
+    now = SDL_GetTicks();
+    if(next_time <= now)
+        return 0;
+    else
+        return next_time - now;
+}
+
+
+/* main game loop */
+
+    next_time = SDL_GetTicks() + TICK_INTERVAL;
+    while ( game_running ) {
+        update_game_state();
+        SDL_Delay(time_left());
+        next_time += TICK_INTERVAL;
+    }


PrevHomeNext
CDROM ExamplesUpSDL Reference
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guidevideo.html b/lib/sdl/msvc/docs/html/guidevideo.html new file mode 100644 index 0000000000000000000000000000000000000000..85da77d1fd162c4f420f1f41b2f98ad0577e0740 --- /dev/null +++ b/lib/sdl/msvc/docs/html/guidevideo.html @@ -0,0 +1,463 @@ +Graphics and Video
SDL Library Documentation
PrevNext

Chapter 2. Graphics and Video

Introduction to SDL Video

Video is probably the most common thing that SDL is used for, and +so it has the most complete subsystem. Here are a few +examples to demonstrate the basics.

Initializing the Video Display

This is what almost all SDL programs have to do in one way or +another.

Example 2-1. Initializing the Video Display

    SDL_Surface *screen;
+
+    /* Initialize the SDL library */
+    if( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
+        fprintf(stderr,
+                "Couldn't initialize SDL: %s\n", SDL_GetError());
+        exit(1);
+    }
+
+    /* Clean up on exit */
+    atexit(SDL_Quit);
+    
+    /*
+     * Initialize the display in a 640x480 8-bit palettized mode,
+     * requesting a software surface
+     */
+    screen = SDL_SetVideoMode(640, 480, 8, SDL_SWSURFACE);
+    if ( screen == NULL ) {
+        fprintf(stderr, "Couldn't set 640x480x8 video mode: %s\n",
+                        SDL_GetError());
+        exit(1);
+    }

Initializing the Best Video Mode

If you have a preference for a certain pixel depth but will accept any +other, use SDL_SetVideoMode with SDL_ANYFORMAT as below. You can also +use SDL_VideoModeOK() to find the native video mode that is closest to +the mode you request.

Example 2-2. Initializing the Best Video Mode

    /* Have a preference for 8-bit, but accept any depth */
+    screen = SDL_SetVideoMode(640, 480, 8, SDL_SWSURFACE|SDL_ANYFORMAT);
+    if ( screen == NULL ) {
+        fprintf(stderr, "Couldn't set 640x480x8 video mode: %s\n",
+                        SDL_GetError());
+        exit(1);
+    }
+    printf("Set 640x480 at %d bits-per-pixel mode\n",
+           screen->format->BitsPerPixel);

Loading and Displaying a BMP File

The following function loads and displays a BMP file given as +argument, once SDL is initialised and a video mode has been set.

Example 2-3. Loading and Displaying a BMP File

void display_bmp(char *file_name)
+{
+    SDL_Surface *image;
+
+    /* Load the BMP file into a surface */
+    image = SDL_LoadBMP(file_name);
+    if (image == NULL) {
+        fprintf(stderr, "Couldn't load %s: %s\n", file_name, SDL_GetError());
+        return;
+    }
+
+    /*
+     * Palettized screen modes will have a default palette (a standard
+     * 8*8*4 colour cube), but if the image is palettized as well we can
+     * use that palette for a nicer colour matching
+     */
+    if (image->format->palette && screen->format->palette) {
+    SDL_SetColors(screen, image->format->palette->colors, 0,
+                  image->format->palette->ncolors);
+    }
+
+    /* Blit onto the screen surface */
+    if(SDL_BlitSurface(image, NULL, screen, NULL) < 0)
+        fprintf(stderr, "BlitSurface error: %s\n", SDL_GetError());
+
+    SDL_UpdateRect(screen, 0, 0, image->w, image->h);
+
+    /* Free the allocated BMP surface */
+    SDL_FreeSurface(image);
+}

Drawing Directly to the Display

The following two functions can be used to get and set single +pixels of a surface. They are carefully written to work with any depth +currently supported by SDL. Remember to lock the surface before +calling them, and to unlock it before calling any other SDL +functions.

To convert between pixel values and their red, green, blue +components, use SDL_GetRGB() and SDL_MapRGB().

Example 2-4. getpixel()

/*
+ * Return the pixel value at (x, y)
+ * NOTE: The surface must be locked before calling this!
+ */
+Uint32 getpixel(SDL_Surface *surface, int x, int y)
+{
+    int bpp = surface->format->BytesPerPixel;
+    /* Here p is the address to the pixel we want to retrieve */
+    Uint8 *p = (Uint8 *)surface->pixels + y * surface->pitch + x * bpp;
+
+    switch(bpp) {
+    case 1:
+        return *p;
+
+    case 2:
+        return *(Uint16 *)p;
+
+    case 3:
+        if(SDL_BYTEORDER == SDL_BIG_ENDIAN)
+            return p[0] << 16 | p[1] << 8 | p[2];
+        else
+            return p[0] | p[1] << 8 | p[2] << 16;
+
+    case 4:
+        return *(Uint32 *)p;
+
+    default:
+        return 0;       /* shouldn't happen, but avoids warnings */
+    }
+}

Example 2-5. putpixel()

/*
+ * Set the pixel at (x, y) to the given value
+ * NOTE: The surface must be locked before calling this!
+ */
+void putpixel(SDL_Surface *surface, int x, int y, Uint32 pixel)
+{
+    int bpp = surface->format->BytesPerPixel;
+    /* Here p is the address to the pixel we want to set */
+    Uint8 *p = (Uint8 *)surface->pixels + y * surface->pitch + x * bpp;
+
+    switch(bpp) {
+    case 1:
+        *p = pixel;
+        break;
+
+    case 2:
+        *(Uint16 *)p = pixel;
+        break;
+
+    case 3:
+        if(SDL_BYTEORDER == SDL_BIG_ENDIAN) {
+            p[0] = (pixel >> 16) & 0xff;
+            p[1] = (pixel >> 8) & 0xff;
+            p[2] = pixel & 0xff;
+        } else {
+            p[0] = pixel & 0xff;
+            p[1] = (pixel >> 8) & 0xff;
+            p[2] = (pixel >> 16) & 0xff;
+        }
+        break;
+
+    case 4:
+        *(Uint32 *)p = pixel;
+        break;
+    }
+}

The following code uses the putpixel() function above to set a +yellow pixel in the middle of the screen.

Example 2-6. Using putpixel()


    /* Code to set a yellow pixel at the center of the screen */
+
+    int x, y;
+    Uint32 yellow;
+
+    /* Map the color yellow to this display (R=0xff, G=0xFF, B=0x00)
+       Note:  If the display is palettized, you must set the palette first.
+    */
+    yellow = SDL_MapRGB(screen->format, 0xff, 0xff, 0x00);
+
+    x = screen->w / 2;
+    y = screen->h / 2;
+
+    /* Lock the screen for direct access to the pixels */
+    if ( SDL_MUSTLOCK(screen) ) {
+        if ( SDL_LockSurface(screen) < 0 ) {
+            fprintf(stderr, "Can't lock screen: %s\n", SDL_GetError());
+            return;
+        }
+    }
+
+    putpixel(screen, x, y, yellow);
+
+    if ( SDL_MUSTLOCK(screen) ) {
+        SDL_UnlockSurface(screen);
+    }
+    /* Update just the part of the display that we've changed */
+    SDL_UpdateRect(screen, x, y, 1, 1);
+
+    return;

PrevHomeNext
Initializing SDLUpUsing OpenGL With SDL
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/guidevideoopengl.html b/lib/sdl/msvc/docs/html/guidevideoopengl.html new file mode 100644 index 0000000000000000000000000000000000000000..0abd5671861a5ac85167e532550c7ae60b43a0fc --- /dev/null +++ b/lib/sdl/msvc/docs/html/guidevideoopengl.html @@ -0,0 +1,730 @@ +Using OpenGL With SDL
SDL Library Documentation
PrevChapter 2. Graphics and VideoNext

Using OpenGL With SDL

SDL has the ability to create and use OpenGL contexts on several platforms(Linux/X11, Win32, BeOS, MacOS Classic/Toolbox, Mac OS X, FreeBSD/X11 and Solaris/X11). This allows you to use SDL's audio, event handling, threads and times in your OpenGL applications (a function often performed by GLUT).

Initialisation

Initialising SDL to use OpenGL is not very different to initialising SDL normally. There are three differences; you must pass SDL_OPENGL to SDL_SetVideoMode, you must specify several GL attributes (depth buffer size, framebuffer sizes) using SDL_GL_SetAttribute and finally, if you wish to use double buffering you must specify it as a GL attribute, not by passing the SDL_DOUBLEBUF flag to SDL_SetVideoMode.

Example 2-7. Initializing SDL with OpenGL

    /* Information about the current video settings. */
+    const SDL_VideoInfo* info = NULL;
+    /* Dimensions of our window. */
+    int width = 0;
+    int height = 0;
+    /* Color depth in bits of our window. */
+    int bpp = 0;
+    /* Flags we will pass into SDL_SetVideoMode. */
+    int flags = 0;
+
+    /* First, initialize SDL's video subsystem. */
+    if( SDL_Init( SDL_INIT_VIDEO ) < 0 ) {
+        /* Failed, exit. */
+        fprintf( stderr, "Video initialization failed: %s\n",
+             SDL_GetError( ) );
+        quit_tutorial( 1 );
+    }
+
+    /* Let's get some video information. */
+    info = SDL_GetVideoInfo( );
+
+    if( !info ) {
+        /* This should probably never happen. */
+        fprintf( stderr, "Video query failed: %s\n",
+             SDL_GetError( ) );
+        quit_tutorial( 1 );
+    }
+
+    /*
+     * Set our width/height to 640/480 (you would
+     * of course let the user decide this in a normal
+     * app). We get the bpp we will request from
+     * the display. On X11, VidMode can't change
+     * resolution, so this is probably being overly
+     * safe. Under Win32, ChangeDisplaySettings
+     * can change the bpp.
+     */
+    width = 640;
+    height = 480;
+    bpp = info->vfmt->BitsPerPixel;
+
+    /*
+     * Now, we want to setup our requested
+     * window attributes for our OpenGL window.
+     * We want *at least* 5 bits of red, green
+     * and blue. We also want at least a 16-bit
+     * depth buffer.
+     *
+     * The last thing we do is request a double
+     * buffered window. '1' turns on double
+     * buffering, '0' turns it off.
+     *
+     * Note that we do not use SDL_DOUBLEBUF in
+     * the flags to SDL_SetVideoMode. That does
+     * not affect the GL attribute state, only
+     * the standard 2D blitting setup.
+     */
+    SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 );
+    SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 );
+    SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 );
+    SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
+    SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
+
+    /*
+     * We want to request that SDL provide us
+     * with an OpenGL window, in a fullscreen
+     * video mode.
+     *
+     * EXERCISE:
+     * Make starting windowed an option, and
+     * handle the resize events properly with
+     * glViewport.
+     */
+    flags = SDL_OPENGL | SDL_FULLSCREEN;
+
+    /*
+     * Set the video mode
+     */
+    if( SDL_SetVideoMode( width, height, bpp, flags ) == 0 ) {
+        /* 
+         * This could happen for a variety of reasons,
+         * including DISPLAY not being set, the specified
+         * resolution not being available, etc.
+         */
+        fprintf( stderr, "Video mode set failed: %s\n",
+             SDL_GetError( ) );
+        quit_tutorial( 1 );
+    }

Drawing

Apart from initialisation, using OpenGL within SDL is the same as using OpenGL +with any other API, e.g. GLUT. You still use all the same function calls and +data types. However if you are using a double-buffered display, then you must +use +SDL_GL_SwapBuffers() +to swap the buffers and update the display. To request double-buffering +with OpenGL, use +SDL_GL_SetAttribute +with SDL_GL_DOUBLEBUFFER, and use +SDL_GL_GetAttribute +to see if you actually got it.

A full example code listing is now presented below.

Example 2-8. SDL and OpenGL

/*
+ * SDL OpenGL Tutorial.
+ * (c) Michael Vance, 2000
+ * briareos@lokigames.com
+ *
+ * Distributed under terms of the LGPL. 
+ */
+
+#include <SDL/SDL.h>
+#include <GL/gl.h>
+#include <GL/glu.h>
+
+#include <stdio.h>
+#include <stdlib.h>
+
+static GLboolean should_rotate = GL_TRUE;
+
+static void quit_tutorial( int code )
+{
+    /*
+     * Quit SDL so we can release the fullscreen
+     * mode and restore the previous video settings,
+     * etc.
+     */
+    SDL_Quit( );
+
+    /* Exit program. */
+    exit( code );
+}
+
+static void handle_key_down( SDL_keysym* keysym )
+{
+
+    /* 
+     * We're only interested if 'Esc' has
+     * been presssed.
+     *
+     * EXERCISE: 
+     * Handle the arrow keys and have that change the
+     * viewing position/angle.
+     */
+    switch( keysym->sym ) {
+    case SDLK_ESCAPE:
+        quit_tutorial( 0 );
+        break;
+    case SDLK_SPACE:
+        should_rotate = !should_rotate;
+        break;
+    default:
+        break;
+    }
+
+}
+
+static void process_events( void )
+{
+    /* Our SDL event placeholder. */
+    SDL_Event event;
+
+    /* Grab all the events off the queue. */
+    while( SDL_PollEvent( &event ) ) {
+
+        switch( event.type ) {
+        case SDL_KEYDOWN:
+            /* Handle key presses. */
+            handle_key_down( &event.key.keysym );
+            break;
+        case SDL_QUIT:
+            /* Handle quit requests (like Ctrl-c). */
+            quit_tutorial( 0 );
+            break;
+        }
+
+    }
+
+}
+
+static void draw_screen( void )
+{
+    /* Our angle of rotation. */
+    static float angle = 0.0f;
+
+    /*
+     * EXERCISE:
+     * Replace this awful mess with vertex
+     * arrays and a call to glDrawElements.
+     *
+     * EXERCISE:
+     * After completing the above, change
+     * it to use compiled vertex arrays.
+     *
+     * EXERCISE:
+     * Verify my windings are correct here ;).
+     */
+    static GLfloat v0[] = { -1.0f, -1.0f,  1.0f };
+    static GLfloat v1[] = {  1.0f, -1.0f,  1.0f };
+    static GLfloat v2[] = {  1.0f,  1.0f,  1.0f };
+    static GLfloat v3[] = { -1.0f,  1.0f,  1.0f };
+    static GLfloat v4[] = { -1.0f, -1.0f, -1.0f };
+    static GLfloat v5[] = {  1.0f, -1.0f, -1.0f };
+    static GLfloat v6[] = {  1.0f,  1.0f, -1.0f };
+    static GLfloat v7[] = { -1.0f,  1.0f, -1.0f };
+    static GLubyte red[]    = { 255,   0,   0, 255 };
+    static GLubyte green[]  = {   0, 255,   0, 255 };
+    static GLubyte blue[]   = {   0,   0, 255, 255 };
+    static GLubyte white[]  = { 255, 255, 255, 255 };
+    static GLubyte yellow[] = {   0, 255, 255, 255 };
+    static GLubyte black[]  = {   0,   0,   0, 255 };
+    static GLubyte orange[] = { 255, 255,   0, 255 };
+    static GLubyte purple[] = { 255,   0, 255,   0 };
+
+    /* Clear the color and depth buffers. */
+    glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+
+    /* We don't want to modify the projection matrix. */
+    glMatrixMode( GL_MODELVIEW );
+    glLoadIdentity( );
+
+    /* Move down the z-axis. */
+    glTranslatef( 0.0, 0.0, -5.0 );
+
+    /* Rotate. */
+    glRotatef( angle, 0.0, 1.0, 0.0 );
+
+    if( should_rotate ) {
+
+        if( ++angle > 360.0f ) {
+            angle = 0.0f;
+        }
+
+    }
+
+    /* Send our triangle data to the pipeline. */
+    glBegin( GL_TRIANGLES );
+
+    glColor4ubv( red );
+    glVertex3fv( v0 );
+    glColor4ubv( green );
+    glVertex3fv( v1 );
+    glColor4ubv( blue );
+    glVertex3fv( v2 );
+
+    glColor4ubv( red );
+    glVertex3fv( v0 );
+    glColor4ubv( blue );
+    glVertex3fv( v2 );
+    glColor4ubv( white );
+    glVertex3fv( v3 );
+
+    glColor4ubv( green );
+    glVertex3fv( v1 );
+    glColor4ubv( black );
+    glVertex3fv( v5 );
+    glColor4ubv( orange );
+    glVertex3fv( v6 );
+
+    glColor4ubv( green );
+    glVertex3fv( v1 );
+    glColor4ubv( orange );
+    glVertex3fv( v6 );
+    glColor4ubv( blue );
+    glVertex3fv( v2 );
+
+    glColor4ubv( black );
+    glVertex3fv( v5 );
+    glColor4ubv( yellow );
+    glVertex3fv( v4 );
+    glColor4ubv( purple );
+    glVertex3fv( v7 );
+
+    glColor4ubv( black );
+    glVertex3fv( v5 );
+    glColor4ubv( purple );
+    glVertex3fv( v7 );
+    glColor4ubv( orange );
+    glVertex3fv( v6 );
+
+    glColor4ubv( yellow );
+    glVertex3fv( v4 );
+    glColor4ubv( red );
+    glVertex3fv( v0 );
+    glColor4ubv( white );
+    glVertex3fv( v3 );
+
+    glColor4ubv( yellow );
+    glVertex3fv( v4 );
+    glColor4ubv( white );
+    glVertex3fv( v3 );
+    glColor4ubv( purple );
+    glVertex3fv( v7 );
+
+    glColor4ubv( white );
+    glVertex3fv( v3 );
+    glColor4ubv( blue );
+    glVertex3fv( v2 );
+    glColor4ubv( orange );
+    glVertex3fv( v6 );
+
+    glColor4ubv( white );
+    glVertex3fv( v3 );
+    glColor4ubv( orange );
+    glVertex3fv( v6 );
+    glColor4ubv( purple );
+    glVertex3fv( v7 );
+
+    glColor4ubv( green );
+    glVertex3fv( v1 );
+    glColor4ubv( red );
+    glVertex3fv( v0 );
+    glColor4ubv( yellow );
+    glVertex3fv( v4 );
+
+    glColor4ubv( green );
+    glVertex3fv( v1 );
+    glColor4ubv( yellow );
+    glVertex3fv( v4 );
+    glColor4ubv( black );
+    glVertex3fv( v5 );
+
+    glEnd( );
+
+    /*
+     * EXERCISE:
+     * Draw text telling the user that 'Spc'
+     * pauses the rotation and 'Esc' quits.
+     * Do it using vetors and textured quads.
+     */
+
+    /*
+     * Swap the buffers. This this tells the driver to
+     * render the next frame from the contents of the
+     * back-buffer, and to set all rendering operations
+     * to occur on what was the front-buffer.
+     *
+     * Double buffering prevents nasty visual tearing
+     * from the application drawing on areas of the
+     * screen that are being updated at the same time.
+     */
+    SDL_GL_SwapBuffers( );
+}
+
+static void setup_opengl( int width, int height )
+{
+    float ratio = (float) width / (float) height;
+
+    /* Our shading model--Gouraud (smooth). */
+    glShadeModel( GL_SMOOTH );
+
+    /* Culling. */
+    glCullFace( GL_BACK );
+    glFrontFace( GL_CCW );
+    glEnable( GL_CULL_FACE );
+
+    /* Set the clear color. */
+    glClearColor( 0, 0, 0, 0 );
+
+    /* Setup our viewport. */
+    glViewport( 0, 0, width, height );
+
+    /*
+     * Change to the projection matrix and set
+     * our viewing volume.
+     */
+    glMatrixMode( GL_PROJECTION );
+    glLoadIdentity( );
+    /*
+     * EXERCISE:
+     * Replace this with a call to glFrustum.
+     */
+    gluPerspective( 60.0, ratio, 1.0, 1024.0 );
+}
+
+int main( int argc, char* argv[] )
+{
+    /* Information about the current video settings. */
+    const SDL_VideoInfo* info = NULL;
+    /* Dimensions of our window. */
+    int width = 0;
+    int height = 0;
+    /* Color depth in bits of our window. */
+    int bpp = 0;
+    /* Flags we will pass into SDL_SetVideoMode. */
+    int flags = 0;
+
+    /* First, initialize SDL's video subsystem. */
+    if( SDL_Init( SDL_INIT_VIDEO ) < 0 ) {
+        /* Failed, exit. */
+        fprintf( stderr, "Video initialization failed: %s\n",
+             SDL_GetError( ) );
+        quit_tutorial( 1 );
+    }
+
+    /* Let's get some video information. */
+    info = SDL_GetVideoInfo( );
+
+    if( !info ) {
+        /* This should probably never happen. */
+        fprintf( stderr, "Video query failed: %s\n",
+             SDL_GetError( ) );
+        quit_tutorial( 1 );
+    }
+
+    /*
+     * Set our width/height to 640/480 (you would
+     * of course let the user decide this in a normal
+     * app). We get the bpp we will request from
+     * the display. On X11, VidMode can't change
+     * resolution, so this is probably being overly
+     * safe. Under Win32, ChangeDisplaySettings
+     * can change the bpp.
+     */
+    width = 640;
+    height = 480;
+    bpp = info->vfmt->BitsPerPixel;
+
+    /*
+     * Now, we want to setup our requested
+     * window attributes for our OpenGL window.
+     * We want *at least* 5 bits of red, green
+     * and blue. We also want at least a 16-bit
+     * depth buffer.
+     *
+     * The last thing we do is request a double
+     * buffered window. '1' turns on double
+     * buffering, '0' turns it off.
+     *
+     * Note that we do not use SDL_DOUBLEBUF in
+     * the flags to SDL_SetVideoMode. That does
+     * not affect the GL attribute state, only
+     * the standard 2D blitting setup.
+     */
+    SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 );
+    SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 );
+    SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 );
+    SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
+    SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
+
+    /*
+     * We want to request that SDL provide us
+     * with an OpenGL window, in a fullscreen
+     * video mode.
+     *
+     * EXERCISE:
+     * Make starting windowed an option, and
+     * handle the resize events properly with
+     * glViewport.
+     */
+    flags = SDL_OPENGL | SDL_FULLSCREEN;
+
+    /*
+     * Set the video mode
+     */
+    if( SDL_SetVideoMode( width, height, bpp, flags ) == 0 ) {
+        /* 
+         * This could happen for a variety of reasons,
+         * including DISPLAY not being set, the specified
+         * resolution not being available, etc.
+         */
+        fprintf( stderr, "Video mode set failed: %s\n",
+             SDL_GetError( ) );
+        quit_tutorial( 1 );
+    }
+
+    /*
+     * At this point, we should have a properly setup
+     * double-buffered window for use with OpenGL.
+     */
+    setup_opengl( width, height );
+
+    /*
+     * Now we want to begin our normal app process--
+     * an event loop with a lot of redrawing.
+     */
+    while( 1 ) {
+        /* Process incoming events. */
+        process_events( );
+        /* Draw the screen. */
+        draw_screen( );
+    }
+
+    /*
+     * EXERCISE:
+     * Record timings using SDL_GetTicks() and
+     * and print out frames per second at program
+     * end.
+     */
+
+    /* Never reached. */
+    return 0;
+}

PrevHomeNext
Graphics and VideoUpInput handling
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/index.html b/lib/sdl/msvc/docs/html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..f86ff191d3208669e4d33384164ccb09d0a73cc9 --- /dev/null +++ b/lib/sdl/msvc/docs/html/index.html @@ -0,0 +1,1156 @@ +
Table of Contents
I. SDL Guide
Preface
About SDL
About SDLdoc
Credits
1. The Basics
Introduction
Initializing SDL
2. Graphics and Video
Introduction to SDL Video
Using OpenGL With SDL
3. Input handling
Handling Joysticks
Handling the Keyboard
4. Examples
Introduction
Event Examples
Audio Examples
CDROM Examples
Time Examples
II. SDL Reference
5. General
SDL_Init -- Initializes SDL
SDL_InitSubSystem -- Initialize subsystems
SDL_QuitSubSystem -- Shut down a subsystem
SDL_Quit -- Shut down SDL
SDL_WasInit -- Check which subsystems are initialized
SDL_GetError -- Get SDL error string
SDL_envvars -- SDL environment variables
6. Video
SDL_GetVideoSurface -- returns a pointer to the current display surface
SDL_GetVideoInfo -- returns a pointer to information about the video hardware
SDL_VideoDriverName -- Obtain the name of the video driver
SDL_ListModes -- Returns a pointer to an array of available screen dimensions for +the given format and video flags
SDL_VideoModeOK -- Check to see if a particular video mode is supported.
SDL_SetVideoMode -- Set up a video mode with the specified width, height and bits-per-pixel.
SDL_UpdateRect -- Makes sure the given area is updated on the given screen.
SDL_UpdateRects -- Makes sure the given list of rectangles is updated on the given screen.
SDL_Flip -- Swaps screen buffers
SDL_SetColors -- Sets a portion of the colormap for the given 8-bit surface.
SDL_SetPalette -- Sets the colors in the palette of an 8-bit surface.
SDL_SetGamma -- Sets the color gamma function for the display
SDL_GetGammaRamp -- Gets the color gamma lookup tables for the display
SDL_SetGammaRamp -- Sets the color gamma lookup tables for the display
SDL_MapRGB -- Map a RGB color value to a pixel format.
SDL_MapRGBA -- Map a RGBA color value to a pixel format.
SDL_GetRGB -- Get RGB values from a pixel in the specified pixel format.
SDL_GetRGBA -- Get RGBA values from a pixel in the specified pixel format.
SDL_CreateRGBSurface -- Create an empty SDL_Surface
SDL_CreateRGBSurfaceFrom -- Create an SDL_Surface from pixel data
SDL_FreeSurface -- Frees (deletes) a SDL_Surface
SDL_LockSurface -- Lock a surface for directly access.
SDL_UnlockSurface -- Unlocks a previously locked surface.
SDL_LoadBMP -- Load a Windows BMP file into an SDL_Surface.
SDL_SaveBMP -- Save an SDL_Surface as a Windows BMP file.
SDL_SetColorKey -- Sets the color key (transparent pixel) in a blittable surface and +RLE acceleration.
SDL_SetAlpha -- Adjust the alpha properties of a surface
SDL_SetClipRect -- Sets the clipping rectangle for a surface.
SDL_GetClipRect -- Gets the clipping rectangle for a surface.
SDL_ConvertSurface -- Converts a surface to the same format as another surface.
SDL_BlitSurface -- This performs a fast blit from the source surface to the destination surface.
SDL_FillRect -- This function performs a fast fill of the given rectangle with some color
SDL_DisplayFormat -- Convert a surface to the display format
SDL_DisplayFormatAlpha -- Convert a surface to the display format
SDL_WarpMouse -- Set the position of the mouse cursor.
SDL_CreateCursor -- Creates a new mouse cursor.
SDL_FreeCursor -- Frees a cursor created with SDL_CreateCursor.
SDL_SetCursor -- Set the currently active mouse cursor.
SDL_GetCursor -- Get the currently active mouse cursor.
SDL_ShowCursor -- Toggle whether or not the cursor is shown on the screen.
SDL_GL_LoadLibrary -- Specify an OpenGL library
SDL_GL_GetProcAddress -- Get the address of a GL function
SDL_GL_GetAttribute -- Get the value of a special SDL/OpenGL attribute
SDL_GL_SetAttribute -- Set a special SDL/OpenGL attribute
SDL_GL_SwapBuffers -- Swap OpenGL framebuffers/Update Display
SDL_CreateYUVOverlay -- Create a YUV video overlay
SDL_LockYUVOverlay -- Lock an overlay
SDL_UnlockYUVOverlay -- Unlock an overlay
SDL_DisplayYUVOverlay -- Blit the overlay to the display
SDL_FreeYUVOverlay -- Free a YUV video overlay
SDL_GLattr -- SDL GL Attributes
SDL_Rect -- Defines a rectangular area
SDL_Color -- Format independent color description
SDL_Palette -- Color palette for 8-bit pixel formats
SDL_PixelFormat -- Stores surface format information
SDL_Surface -- Graphical Surface Structure
SDL_VideoInfo -- Video Target information
SDL_Overlay -- YUV video overlay
7. Window Management
SDL_WM_SetCaption -- Sets the window tile and icon name.
SDL_WM_GetCaption -- Gets the window title and icon name.
SDL_WM_SetIcon -- Sets the icon for the display window.
SDL_WM_IconifyWindow -- Iconify/Minimise the window
SDL_WM_ToggleFullScreen -- Toggles fullscreen mode
SDL_WM_GrabInput -- Grabs mouse and keyboard input.
8. Events
Introduction
SDL Event Structures.
Event Functions.
9. Joystick
SDL_NumJoysticks -- Count available joysticks.
SDL_JoystickName -- Get joystick name.
SDL_JoystickOpen -- Opens a joystick for use.
SDL_JoystickOpened -- Determine if a joystick has been opened
SDL_JoystickIndex -- Get the index of an SDL_Joystick.
SDL_JoystickNumAxes -- Get the number of joystick axes
SDL_JoystickNumBalls -- Get the number of joystick trackballs
SDL_JoystickNumHats -- Get the number of joystick hats
SDL_JoystickNumButtons -- Get the number of joysitck buttons
SDL_JoystickUpdate -- Updates the state of all joysticks
SDL_JoystickGetAxis -- Get the current state of an axis
SDL_JoystickGetHat -- Get the current state of a joystick hat
SDL_JoystickGetButton -- Get the current state of a given button on a given joystick
SDL_JoystickGetBall -- Get relative trackball motion
SDL_JoystickClose -- Closes a previously opened joystick
10. Audio
SDL_AudioSpec -- Audio Specification Structure
SDL_OpenAudio -- Opens the audio device with the desired parameters.
SDL_PauseAudio -- Pauses and unpauses the audio callback processing
SDL_GetAudioStatus -- Get the current audio state
SDL_LoadWAV -- Load a WAVE file
SDL_FreeWAV -- Frees previously opened WAV data
SDL_AudioCVT -- Audio Conversion Structure
SDL_BuildAudioCVT -- Initializes a SDL_AudioCVT structure for conversion
SDL_ConvertAudio -- Convert audio data to a desired audio format.
SDL_MixAudio -- Mix audio data
SDL_LockAudio -- Lock out the callback function
SDL_UnlockAudio -- Unlock the callback function
SDL_CloseAudio -- Shuts down audio processing and closes the audio device.
11. CD-ROM
SDL_CDNumDrives -- Returns the number of CD-ROM drives on the system.
SDL_CDName -- Returns a human-readable, system-dependent identifier for the CD-ROM.
SDL_CDOpen -- Opens a CD-ROM drive for access.
SDL_CDStatus -- Returns the current status of the given drive.
SDL_CDPlay -- Play a CD
SDL_CDPlayTracks -- Play the given CD track(s)
SDL_CDPause -- Pauses a CDROM
SDL_CDResume -- Resumes a CDROM
SDL_CDStop -- Stops a CDROM
SDL_CDEject -- Ejects a CDROM
SDL_CDClose -- Closes a SDL_CD handle
SDL_CD -- CDROM Drive Information
SDL_CDtrack -- CD Track Information Structure
12. Multi-threaded Programming
SDL_CreateThread -- Creates a new thread of execution that shares its parent's properties.
SDL_ThreadID -- Get the 32-bit thread identifier for the current thread.
SDL_GetThreadID -- Get the SDL thread ID of a SDL_Thread
SDL_WaitThread -- Wait for a thread to finish.
SDL_KillThread -- Gracelessly terminates the thread.
SDL_CreateMutex -- Create a mutex
SDL_DestroyMutex -- Destroy a mutex
SDL_mutexP -- Lock a mutex
SDL_mutexV -- Unlock a mutex
SDL_CreateSemaphore -- Creates a new semaphore and assigns an initial value to it.
SDL_DestroySemaphore -- Destroys a semaphore that was created by SDL_CreateSemaphore.
SDL_SemWait -- Lock a semaphore and suspend the thread if the semaphore value is zero.
SDL_SemTryWait -- Attempt to lock a semaphore but don't suspend the thread.
SDL_SemWaitTimeout -- Lock a semaphore, but only wait up to a specified maximum time.
SDL_SemPost -- Unlock a semaphore.
SDL_SemValue -- Return the current value of a semaphore.
SDL_CreateCond -- Create a condition variable
SDL_DestroyCond -- Destroy a condition variable
SDL_CondSignal -- Restart a thread wait on a condition variable
SDL_CondBroadcast -- Restart all threads waiting on a condition variable
SDL_CondWait -- Wait on a condition variable
SDL_CondWaitTimeout -- Wait on a condition variable, with timeout
13. Time
SDL_GetTicks -- Get the number of milliseconds since the SDL library initialization.
SDL_Delay -- Wait a specified number of milliseconds before returning.
SDL_AddTimer -- Add a timer which will call a callback after the specified number of milliseconds has +elapsed.
SDL_RemoveTimer -- Remove a timer which was added with +SDL_AddTimer.
SDL_SetTimer -- Set a callback to run after the specified number of milliseconds has +elapsed.

  Next
  SDL Guide
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/joystick.html b/lib/sdl/msvc/docs/html/joystick.html new file mode 100644 index 0000000000000000000000000000000000000000..abdb28c1979d9166801529ae6ef1cc1f95daac15 --- /dev/null +++ b/lib/sdl/msvc/docs/html/joystick.html @@ -0,0 +1,296 @@ +Joystick
SDL Library Documentation
PrevNext

Chapter 9. Joystick

Table of Contents
SDL_NumJoysticks -- Count available joysticks.
SDL_JoystickName -- Get joystick name.
SDL_JoystickOpen -- Opens a joystick for use.
SDL_JoystickOpened -- Determine if a joystick has been opened
SDL_JoystickIndex -- Get the index of an SDL_Joystick.
SDL_JoystickNumAxes -- Get the number of joystick axes
SDL_JoystickNumBalls -- Get the number of joystick trackballs
SDL_JoystickNumHats -- Get the number of joystick hats
SDL_JoystickNumButtons -- Get the number of joysitck buttons
SDL_JoystickUpdate -- Updates the state of all joysticks
SDL_JoystickGetAxis -- Get the current state of an axis
SDL_JoystickGetHat -- Get the current state of a joystick hat
SDL_JoystickGetButton -- Get the current state of a given button on a given joystick
SDL_JoystickGetBall -- Get relative trackball motion
SDL_JoystickClose -- Closes a previously opened joystick

Joysticks, and other similar input devices, have a very strong role in game playing and SDL provides comprehensive support for them. Axes, Buttons, POV Hats and trackballs are all supported.

Joystick support is initialized by passed the SDL_INIT_JOYSTICK flag to SDL_Init. Once initilized joysticks must be opened using SDL_JoystickOpen.

While using the functions describe in this secton may seem like the best way to access and read from joysticks, in most cases they aren't. Ideally joysticks should be read using the event system. To enable this, you must set the joystick event processing state with SDL_JoystickEventState. Joysticks must be opened before they can be used of course.

Note: If you are not handling the joystick via the event queue then you must explicitly request a joystick update by calling SDL_JoystickUpdate.

Note: Force Feedback is not yet support. Sam (slouken@libsdl.org) is soliciting suggestions from people with force-feedback experience on the best wat to desgin the API.


PrevHomeNext
SDL_JoystickEventStateUpSDL_NumJoysticks
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/reference.html b/lib/sdl/msvc/docs/html/reference.html new file mode 100644 index 0000000000000000000000000000000000000000..e7707a7504f9b348279fa1e492c1bac8421386be --- /dev/null +++ b/lib/sdl/msvc/docs/html/reference.html @@ -0,0 +1,194 @@ +SDL Reference
SDL Library Documentation
PrevNext

II. SDL Reference


PrevHomeNext
Time Examples General
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlactiveevent.html b/lib/sdl/msvc/docs/html/sdlactiveevent.html new file mode 100644 index 0000000000000000000000000000000000000000..d3f2821e728de69d2219c945cdd3ed61687b3360 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlactiveevent.html @@ -0,0 +1,335 @@ +SDL_ActiveEvent
SDL Library Documentation
PrevNext

SDL_ActiveEvent

Name

SDL_ActiveEvent -- Application visibility event structure

Structure Definition

typedef struct{
+  Uint8 type;
+  Uint8 gain;
+  Uint8 state;
+} SDL_ActiveEvent;

Structure Data

typeSDL_ACTIVEEVENT.
gain0 if the event is a loss or 1 if it is a gain.
stateSDL_APPMOUSEFOCUS if mouse focus was gained or lost, SDL_APPINPUTFOCUS if input focus was gained or lost, or SDL_APPACTIVE if the application was iconified (gain=0) or restored(gain=1).

Description

SDL_ActiveEvent is a member of the SDL_Event union and is used when an event of type SDL_ACTIVEEVENT is reported.

When the mouse leaves or enters the window area a SDL_APPMOUSEFOCUS type activation event occurs, if the mouse entered the window then gain will be 1, otherwise gain will be 0. A SDL_APPINPUTFOCUS type activation event occurs when the application loses or gains keyboard focus. This usually occurs when another application is made active. Finally, a SDL_APPACTIVE type event occurs when the application is either minimised/iconified (gain=0) or restored.

Note: This event does not occur when an application window is first created.


PrevHomeNext
SDL_EventUpSDL_KeyboardEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdladdtimer.html b/lib/sdl/msvc/docs/html/sdladdtimer.html new file mode 100644 index 0000000000000000000000000000000000000000..81c49e56d655d3b33bae4a1bda9510656cc25de3 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdladdtimer.html @@ -0,0 +1,296 @@ +SDL_AddTimer
SDL Library Documentation
PrevNext

SDL_AddTimer

Name

SDL_AddTimer -- Add a timer which will call a callback after the specified number of milliseconds has +elapsed.

Synopsis

#include "SDL.h"

SDL_TimerID SDL_AddTimer(Uint32 interval, SDL_NewTimerCallback callback, void *param);

Callback

/* type definition for the "new" timer callback function */
+typedef Uint32 (*SDL_NewTimerCallback)(Uint32 interval, void *param);

Description

Adds a callback function to be run after the specified number of +milliseconds has elapsed. The callback function is passed the current +timer interval and the user supplied parameter from the +SDL_AddTimer call and returns the next timer +interval. If the returned value from the callback is the same as the one +passed in, the periodic alarm continues, otherwise a new alarm is +scheduled.

To cancel a currently running timer call +SDL_RemoveTimer with the +timer ID returned from +SDL_AddTimer.

The timer callback function may run in a different thread than your +main program, and so shouldn't call any functions from within itself. +You may always call SDL_PushEvent, however.

The granularity of the timer is platform-dependent, but you should count +on it being at least 10 ms as this is the most common number. +This means that if +you request a 16 ms timer, your callback will run approximately 20 ms +later on an unloaded system. If you wanted to set a flag signaling +a frame update at 30 frames per second (every 33 ms), you might set a +timer for 30 ms (see example below). + +If you use this function, you need to pass SDL_INIT_TIMER +to SDL_Init.

Return Value

Returns an ID value for the added timer or +NULL if there was an error.

Examples

my_timer_id = SDL_AddTimer((33/10)*10, my_callbackfunc, my_callback_param);


PrevHomeNext
SDL_DelayUpSDL_RemoveTimer
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlaudiocvt.html b/lib/sdl/msvc/docs/html/sdlaudiocvt.html new file mode 100644 index 0000000000000000000000000000000000000000..ff39209080e8a8e4de91fdfaa490189516e26675 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlaudiocvt.html @@ -0,0 +1,556 @@ +SDL_AudioCVT
SDL Library Documentation
PrevNext

SDL_AudioCVT

Name

SDL_AudioCVT -- Audio Conversion Structure

Structure Definition

typedef struct{
+  int needed;
+  Uint16 src_format;
+  Uint16 dest_format;
+  double rate_incr;
+  Uint8 *buf;
+  int len;
+  int len_cvt;
+  int len_mult;
+  double len_ratio;
+  void (*filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
+  int filter_index;
+} SDL_AudioCVT;

Structure Data

neededSet to one if the conversion is possible
src_formatAudio format of the source
dest_formatAudio format of the destination
rate_incrRate conversion increment
bufAudio buffer
lenLength of the original audio buffer in bytes
len_cvtLength of converted audio buffer in bytes (calculated)
len_multbuf must be len*len_mult bytes in size(calculated)
len_ratioFinal audio size is len*len_ratio
filters[10](..)Pointers to functions needed for this conversion
filter_indexCurrent conversion function

Description

The SDL_AudioCVT is used to convert audio data between different formats. A SDL_AudioCVT structure is created with the SDL_BuildAudioCVT function, while the actual conversion is done by the SDL_ConvertAudio function.

Many of the fields in the SDL_AudioCVT structure should be considered private and their function will not be discussed here.

Uint8 *buf

This points to the audio data that will be used in the conversion. It is both the source and the destination, which means the converted audio data overwrites the original data. It also means that the converted data may be larger than the original data (if you were converting from 8-bit to 16-bit, for instance), so you must ensure buf is large enough. See below.

int len

This is the length of the original audio data in bytes.

int len_mult

As explained above, the audio buffer needs to be big enough to store the converted data, which may be bigger than the original audio data. The length of buf should be len*len_mult.

double len_ratio

When you have finished converting your audio data, you need to know how much of your audio buffer is valid. len*len_ratio is the size of the converted audio data in bytes. This is very similar to len_mult, however when the convert audio data is shorter than the original len_mult would be 1. len_ratio, on the other hand, would be a fractional number between 0 and 1.


PrevHomeNext
SDL_FreeWAVUpSDL_BuildAudioCVT
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlaudiospec.html b/lib/sdl/msvc/docs/html/sdlaudiospec.html new file mode 100644 index 0000000000000000000000000000000000000000..fc6fa75035d89162989141d22a06148dbcfc5e97 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlaudiospec.html @@ -0,0 +1,589 @@ +SDL_AudioSpec
SDL Library Documentation
PrevNext

SDL_AudioSpec

Name

SDL_AudioSpec -- Audio Specification Structure

Structure Definition

typedef struct{
+  int freq;
+  Uint16 format;
+  Uint8 channels;
+  Uint8 silence;
+  Uint16 samples;
+  Uint32 size;
+  void (*callback)(void *userdata, Uint8 *stream, int len);
+  void *userdata;
+} SDL_AudioSpec;

Structure Data

freqAudio frequency in samples per second
formatAudio data format
channelsNumber of channels: 1 mono, 2 stereo
silenceAudio buffer silence value (calculated)
samplesAudio buffer size in samples
sizeAudio buffer size in bytes (calculated)
callback(..)Callback function for filling the audio buffer
userdataPointer the user data which is passed to the callback function

Description

The SDL_AudioSpec structure is used to describe the format of some audio data. This structure is used by SDL_OpenAudio and SDL_LoadWAV. While all fields are used by SDL_OpenAudio only freq, format, samples and channels are used by SDL_LoadWAV. We will detail these common members here.

freq

The number of samples sent to the sound device every second. Common values are 11025, 22050 and 44100. The higher the better.

format

Specifies the size and type of each sample element +

AUDIO_U8

Unsigned 8-bit samples

AUDIO_S8

Signed 8-bit samples

AUDIO_U16 or AUDIO_U16LSB

Unsigned 16-bit little-endian samples

AUDIO_S16 or AUDIO_S16LSB

Signed 16-bit little-endian samples

AUDIO_U16MSB

Unsigned 16-bit big-endian samples

AUDIO_S16MSB

Signed 16-bit big-endian samples

AUDIO_U16SYS

Either AUDIO_U16LSB or AUDIO_U16MSB depending on you systems endianness

AUDIO_S16SYS

Either AUDIO_S16LSB or AUDIO_S16MSB depending on you systems endianness

channelsThe number of seperate sound channels. 1 is mono (single channel), 2 is stereo (dual channel).
samplesWhen used with SDL_OpenAudio this refers to the size of the audio buffer in samples. A sample a chunk of audio data of the size specified in format mulitplied by the number of channels. When the SDL_AudioSpec is used with SDL_LoadWAV samples is set to 4096.


PrevHomeNext
AudioUpSDL_OpenAudio
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlblitsurface.html b/lib/sdl/msvc/docs/html/sdlblitsurface.html new file mode 100644 index 0000000000000000000000000000000000000000..3123ff5dde119aa773125906a13c19957b7a19f6 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlblitsurface.html @@ -0,0 +1,339 @@ +SDL_BlitSurface
SDL Library Documentation
PrevNext

SDL_BlitSurface

Name

SDL_BlitSurface -- This performs a fast blit from the source surface to the destination surface.

Synopsis

#include "SDL.h"

int SDL_BlitSurface(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect);

Description

This performs a fast blit from the source surface to the destination surface.

The width and height in srcrect determine the +size of the copied rectangle. Only the position is used in the +dstrect (the width and height are ignored).

If srcrect is NULL, the +entire surface is copied. If dstrect is +NULL, then the destination position (upper left +corner) is (0, 0).

The final blit rectangle is saved in +dstrect after all clipping is performed +(srcrect is not modified).

The blit function should not be called on a locked surface.

The results of blitting operations vary greatly depending on whether SDL_SRCAPLHA is set or not. See SDL_SetAlpha for an explaination of how this affects your results. Colorkeying and alpha attributes also interact with surface blitting, as the following pseudo-code should hopefully explain. +

if (source surface has SDL_SRCALPHA set) {
+    if (source surface has alpha channel (that is, format->Amask != 0))
+        blit using per-pixel alpha, ignoring any colour key
+    else {
+        if (source surface has SDL_SRCCOLORKEY set)
+            blit using the colour key AND the per-surface alpha value
+        else
+            blit using the per-surface alpha value
+    }
+} else {
+    if (source surface has SDL_SRCCOLORKEY set)
+        blit using the colour key
+    else
+        ordinary opaque rectangular blit
+}

Return Value

If the blit is successful, it returns 0, +otherwise it returns -1.

If either of the surfaces were in video memory, and the blit returns +-2, the video memory was lost, so it should be +reloaded with artwork and re-blitted: +

        while ( SDL_BlitSurface(image, imgrect, screen, dstrect) == -2 ) {
+                while ( SDL_LockSurface(image)) < 0 )
+                        SDL_Delay(10);
+                -- Write image pixels to image->pixels --
+                SDL_UnlockSurface(image);
+        }
+This happens under DirectX 5.0 when the system switches away from your +fullscreen application. Locking the surface will also fail until you +have access to the video memory again.


PrevHomeNext
SDL_ConvertSurfaceUpSDL_FillRect
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlbuildaudiocvt.html b/lib/sdl/msvc/docs/html/sdlbuildaudiocvt.html new file mode 100644 index 0000000000000000000000000000000000000000..2e8420e8a9ce962189600e17bed60d4479964ee3 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlbuildaudiocvt.html @@ -0,0 +1,291 @@ +SDL_BuildAudioCVT
SDL Library Documentation
PrevNext

SDL_BuildAudioCVT

Name

SDL_BuildAudioCVT -- Initializes a SDL_AudioCVT structure for conversion

Synopsis

#include "SDL.h"

int SDL_BuildAudioCVT(SDL_AudioCVT *cvt, Uint16 src_format, Uint8 src_channels, int src_rate, Uint16 dst_format, Uint8 dst_channels, int dst_rate);

Description

Before an SDL_AudioCVT structure can be used to convert audio data it must be initialized with source and destination information.

src_format and dst_format are the source and destination format of the conversion. (For information on audio formats see SDL_AudioSpec). src_channels and dst_channels are the number of channels in the source and destination formats. Finally, src_rate and dst_rate are the frequency or samples-per-second of the source and destination formats. Once again, see SDL_AudioSpec.

Return Values

Returns -1 if the filter could not be built or 1 if it could.

Examples

See SDL_ConvertAudio.


PrevHomeNext
SDL_AudioCVTUpSDL_ConvertAudio
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcd.html b/lib/sdl/msvc/docs/html/sdlcd.html new file mode 100644 index 0000000000000000000000000000000000000000..6f8a7cdf60d7b329b8d36d831ab6e0f075886664 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcd.html @@ -0,0 +1,359 @@ +SDL_CD
SDL Library Documentation
PrevNext

SDL_CD

Name

SDL_CD -- CDROM Drive Information

Structure Definition

typedef struct{
+  int id;
+  CDstatus status;
+  int numtracks;
+  int cur_track;
+  int cur_frame;
+  SDL_CDtrack track[SDL_MAX_TRACKS+1];
+} SDL_CD;

Structure Data

idPrivate drive identifier
statusDrive status
numtracksNumber of tracks on the CD
cur_trackCurrent track
cur_frameCurrent frame offset within the track
track[SDL_MAX_TRACKS+1]Array of track descriptions. (see SDL_CDtrack)

Description

An SDL_CD structure is returned by SDL_CDOpen. It represents an opened CDROM device and stores information on the layout of the tracks on the disc.

A frame is the base data unit of a CD. CD_FPS frames is equal to 1 second of music. SDL provides two macros for converting between time and frames: FRAMES_TO_MSF(f, M,S,F) and MSF_TO_FRAMES.

Examples

int min, sec, frame;
+int frame_offset;
+
+FRAMES_TO_MSF(cdrom->cur_frame, &min, &sec, &frame);
+printf("Current Position: %d minutes, %d seconds, %d frames\n", min, sec, frame);
+
+frame_offset=MSF_TO_FRAMES(min, sec, frame);

PrevHomeNext
SDL_CDCloseUpSDL_CDtrack
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdclose.html b/lib/sdl/msvc/docs/html/sdlcdclose.html new file mode 100644 index 0000000000000000000000000000000000000000..2a984a8b47495587de7ea2169ba4ef37ab353d65 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdclose.html @@ -0,0 +1,217 @@ +SDL_CDClose
SDL Library Documentation
PrevNext

SDL_CDClose

Name

SDL_CDClose -- Closes a SDL_CD handle

Synopsis

#include "SDL.h"

void SDL_CDClose(SDL_CD *cdrom);

Description

Closes the given cdrom handle.

See Also

SDL_CDOpen, +SDL_CD


PrevHomeNext
SDL_CDEjectUpSDL_CD
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdeject.html b/lib/sdl/msvc/docs/html/sdlcdeject.html new file mode 100644 index 0000000000000000000000000000000000000000..03a3b780b5bae2da1dcb4d23731cfdcc5c7499c1 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdeject.html @@ -0,0 +1,226 @@ +SDL_CDEject
SDL Library Documentation
PrevNext

SDL_CDEject

Name

SDL_CDEject -- Ejects a CDROM

Synopsis

#include "SDL.h"

int SDL_CDEject(SDL_CD *cdrom);

Description

Ejects the given cdrom.

Return Value

Returns 0 on success, or -1 on an error.

See Also

SDL_CD


PrevHomeNext
SDL_CDStopUpSDL_CDClose
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdname.html b/lib/sdl/msvc/docs/html/sdlcdname.html new file mode 100644 index 0000000000000000000000000000000000000000..55a18e26e3aef1d981721c53e3eb537119e029e6 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdname.html @@ -0,0 +1,239 @@ +SDL_CDName
SDL Library Documentation
PrevNext

SDL_CDName

Name

SDL_CDName -- Returns a human-readable, system-dependent identifier for the CD-ROM.

Synopsis

#include "SDL.h"

const char *SDL_CDName(int drive);

Description

Returns a human-readable, system-dependent identifier for the CD-ROM. drive is the index of the drive. Drive indices start to 0 and end at SDL_CDNumDrives()-1.

Examples

  • "/dev/cdrom"

  • "E:"

  • "/dev/disk/ide/1/master"


PrevHomeNext
SDL_CDNumDrivesUpSDL_CDOpen
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdnumdrives.html b/lib/sdl/msvc/docs/html/sdlcdnumdrives.html new file mode 100644 index 0000000000000000000000000000000000000000..9816a739bbcd598b0bac166092426119e1b15b93 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdnumdrives.html @@ -0,0 +1,205 @@ +SDL_CDNumDrives
SDL Library Documentation
PrevNext

SDL_CDNumDrives

Name

SDL_CDNumDrives -- Returns the number of CD-ROM drives on the system.

Synopsis

#include "SDL.h"

int SDL_CDNumDrives(void);

Description

Returns the number of CD-ROM drives on the system.

See Also

SDL_CDOpen


PrevHomeNext
CD-ROMUpSDL_CDName
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdopen.html b/lib/sdl/msvc/docs/html/sdlcdopen.html new file mode 100644 index 0000000000000000000000000000000000000000..09a6bd9f7840b095c78c769354ed2eae34ee56ca --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdopen.html @@ -0,0 +1,275 @@ +SDL_CDOpen
SDL Library Documentation
PrevNext

SDL_CDOpen

Name

SDL_CDOpen -- Opens a CD-ROM drive for access.

Synopsis

#include "SDL.h"

SDL_CD *SDL_CDOpen(int drive);

Description

Opens a CD-ROM drive for access. It returns a SDL_CD structure on success, or NULL if the drive was invalid or busy. This newly opened CD-ROM becomes the default CD used when other CD functions are passed a NULL CD-ROM handle.

Drives are numbered starting with 0. +Drive 0 is the system default CD-ROM.

Examples

SDL_CD *cdrom;
+int cur_track;
+int min, sec, frame;
+SDL_Init(SDL_INIT_CDROM);
+atexit(SDL_Quit);
+
+/* Check for CD drives */
+if(!SDL_CDNumDrives()){
+  /* None found */
+  fprintf(stderr, "No CDROM devices available\n");
+  exit(-1);
+}
+
+/* Open the default drive */
+cdrom=SDL_CDOpen(0);
+
+/* Did if open? Check if cdrom is NULL */
+if(!cdrom){
+  fprintf(stderr, "Couldn't open drive: %s\n", SDL_GetError());
+  exit(-1);
+}
+
+/* Print Volume info */
+printf("Name: %s\n", SDL_CDName(0));
+printf("Tracks: %d\n", cdrom->numtracks);
+for(cur_track=0;cur_track < cdrom->numtracks; cur_track++){
+  FRAMES_TO_MSF(cdrom->track[cur_track].length, &min, &sec, &frame);
+  printf("\tTrack %d: Length %d:%d\n", cur_track, min, sec);
+}
+
+SDL_CDClose(cdrom);

PrevHomeNext
SDL_CDNameUpSDL_CDStatus
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdpause.html b/lib/sdl/msvc/docs/html/sdlcdpause.html new file mode 100644 index 0000000000000000000000000000000000000000..4def8e362e8b8a347c862c88c600bfe44a5217cf --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdpause.html @@ -0,0 +1,233 @@ +SDL_CDPause
SDL Library Documentation
PrevNext

SDL_CDPause

Name

SDL_CDPause -- Pauses a CDROM

Synopsis

#include "SDL.h"

int SDL_CDPause(SDL_CD *cdrom);

Description

Pauses play on the given cdrom.

Return Value

Returns 0 on success, or -1 on an error.


PrevHomeNext
SDL_CDPlayTracksUpSDL_CDResume
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdplay.html b/lib/sdl/msvc/docs/html/sdlcdplay.html new file mode 100644 index 0000000000000000000000000000000000000000..dc6489cc8dc6f1d1249b31e6b0052b9c35104adc --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdplay.html @@ -0,0 +1,243 @@ +SDL_CDPlay
SDL Library Documentation
PrevNext

SDL_CDPlay

Name

SDL_CDPlay -- Play a CD

Synopsis

#include "SDL.h"

int SDL_CDPlay(SDL_CD *cdrom, int start, int length);

Description

Plays the given cdrom, starting a frame start for length frames.

Return Values

Returns 0 on success, or -1 on an error.


PrevHomeNext
SDL_CDStatusUpSDL_CDPlayTracks
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdplaytracks.html b/lib/sdl/msvc/docs/html/sdlcdplaytracks.html new file mode 100644 index 0000000000000000000000000000000000000000..75461819045b61394d9bb9992da82d9391aed512 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdplaytracks.html @@ -0,0 +1,325 @@ +SDL_CDPlayTracks
SDL Library Documentation
PrevNext

SDL_CDPlayTracks

Name

SDL_CDPlayTracks -- Play the given CD track(s)

Synopsis

#include "SDL.h"

int SDL_CDPlayTracks(SDL_CD *cdrom, int start_track, int start_frame, int ntracks, int nframes));

Description

SDL_CDPlayTracks plays the given CD starting at track +start_track, for ntracks tracks.

start_frame is the frame offset, from the beginning of the start_track, at which to start. nframes is the frame offset, from the beginning of the last track (start_track+ntracks), at which to end playing.

SDL_CDPlayTracks should only be called after calling +SDL_CDStatus +to get track information about the CD.

Note: Data tracks are ignored.

Return Value

Returns 0, or -1 +if there was an error.

Examples

/* assuming cdrom is a previously opened device */
+/* Play the entire CD */
+if(CD_INDRIVE(SDL_CDStatus(cdrom)))
+  SDL_CDPlayTracks(cdrom, 0, 0, 0, 0);
+
+/* Play the first track */
+if(CD_INDRIVE(SDL_CDStatus(cdrom)))
+  SDL_CDPlayTracks(cdrom, 0, 0, 1, 0);
+
+/* Play first 15 seconds of the 2nd track */
+if(CD_INDRIVE(SDL_CDStatus(cdrom)))
+  SDL_CDPlayTracks(cdrom, 1, 0, 0, CD_FPS*15);
+


PrevHomeNext
SDL_CDPlayUpSDL_CDPause
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdresume.html b/lib/sdl/msvc/docs/html/sdlcdresume.html new file mode 100644 index 0000000000000000000000000000000000000000..4a25ab69b6e3b957302de1df5388934a0f395236 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdresume.html @@ -0,0 +1,233 @@ +SDL_CDResume
SDL Library Documentation
PrevNext

SDL_CDResume

Name

SDL_CDResume -- Resumes a CDROM

Synopsis

#include "SDL.h"

int SDL_CDResume(SDL_CD *cdrom);

Description

Resumes play on the given cdrom.

Return Value

Returns 0 on success, or -1 on an error.


PrevHomeNext
SDL_CDPauseUpSDL_CDStop
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdstatus.html b/lib/sdl/msvc/docs/html/sdlcdstatus.html new file mode 100644 index 0000000000000000000000000000000000000000..3ebf9657e654c48be1a2d05647fa5ae979d65f78 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdstatus.html @@ -0,0 +1,273 @@ +SDL_CDStatus
SDL Library Documentation
PrevNext

SDL_CDStatus

Name

SDL_CDStatus -- Returns the current status of the given drive.

Synopsis

#include "SDL.h"

CDstatus SDL_CDStatus(SDL_CD *cdrom);

/* Given a status, returns true if there's a disk in the drive */
+#define CD_INDRIVE(status)      ((int)status > 0)

Description

This function returns the current status of the given drive. Status is described like so: +

typedef enum {
+  CD_TRAYEMPTY,
+  CD_STOPPED,
+  CD_PLAYING,
+  CD_PAUSED,
+  CD_ERROR = -1
+} CDstatus;

If the drive has a CD in it, the table of contents of the CD and current +play position of the CD will be stored in the SDL_CD structure.

The macro CD_INDRIVE is provided for convenience, +and given a status returns true if there's a disk in the drive.

Note: SDL_CDStatus also updates the SDL_CD structure passed to it.

Example

int playTrack(int track)
+{
+  int playing = 0;
+
+  if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) {
+  /* clamp to the actual number of tracks on the CD */
+    if (track >= cdrom->numtracks) {
+      track = cdrom->numtracks-1;
+    }
+
+    if ( SDL_CDPlayTracks(cdrom, track, 0, 1, 0) == 0 ) {
+      playing = 1;
+    }
+  }
+  return playing;
+}

See Also

SDL_CD


PrevHomeNext
SDL_CDOpenUpSDL_CDPlay
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdstop.html b/lib/sdl/msvc/docs/html/sdlcdstop.html new file mode 100644 index 0000000000000000000000000000000000000000..68f8d81bed55af4f45a0b3553be0b11c149d2524 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdstop.html @@ -0,0 +1,226 @@ +SDL_CDStop
SDL Library Documentation
PrevNext

SDL_CDStop

Name

SDL_CDStop -- Stops a CDROM

Synopsis

#include "SDL.h"

int SDL_CDStop(SDL_CD *cdrom);

Description

Stops play on the given cdrom.

Return Value

Returns 0 on success, or -1 on an error.

See Also

SDL_CDPlay,


PrevHomeNext
SDL_CDResumeUpSDL_CDEject
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcdtrack.html b/lib/sdl/msvc/docs/html/sdlcdtrack.html new file mode 100644 index 0000000000000000000000000000000000000000..bbb04bbd252383d72c2bf17db12072f30bb3eb13 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcdtrack.html @@ -0,0 +1,313 @@ +SDL_CDtrack
SDL Library Documentation
PrevNext

SDL_CDtrack

Name

SDL_CDtrack -- CD Track Information Structure

Structure Definition

typedef struct{
+  Uint8 id;
+  Uint8 type;
+  Uint32 length;
+  Uint32 offset;
+} SDL_CDtrack;

Structure Data

idTrack number (0-99)
typeSDL_AUDIO_TRACK or SDL_DATA_TRACK
lengthLength, in frames, of this track
offsetFrame offset to the beginning of this track

Description

SDL_CDtrack stores data on each track on a CD, its fields should be pretty self explainatory. It is a member a the SDL_CD structure.

Note: Frames can be converted to standard timings. There are CD_FPS frames per second, so SDL_CDtrack.length/CD_FPS=length_in_seconds.

See Also

SDL_CD


PrevHomeNext
SDL_CDUpMulti-threaded Programming
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcloseaudio.html b/lib/sdl/msvc/docs/html/sdlcloseaudio.html new file mode 100644 index 0000000000000000000000000000000000000000..599f058e4438c78f78649bed7a87f26f75433be5 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcloseaudio.html @@ -0,0 +1,205 @@ +SDL_CloseAudio
SDL Library Documentation
PrevNext

SDL_CloseAudio

Name

SDL_CloseAudio -- Shuts down audio processing and closes the audio device.

Synopsis

#include "SDL.h"

void SDL_CloseAudio(void);

Description

This function shuts down audio processing and closes the audio device.

See Also

SDL_OpenAudio


PrevHomeNext
SDL_UnlockAudioUpCD-ROM
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcolor.html b/lib/sdl/msvc/docs/html/sdlcolor.html new file mode 100644 index 0000000000000000000000000000000000000000..c8b7d44fc99b169641bc8ae072968ee85de54184 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcolor.html @@ -0,0 +1,300 @@ +SDL_Color
SDL Library Documentation
PrevNext

SDL_Color

Name

SDL_Color -- Format independent color description

Structure Definition

typedef struct{
+  Uint8 r;
+  Uint8 g;
+  Uint8 b;
+  Uint8 unused;
+} SDL_Color;

Structure Data

rRed intensity
gGreen intensity
bBlue intensity
unusedUnused

Description

SDL_Color describes a color in a format independent way. You can convert a SDL_Color to a pixel value for a certain pixel format using SDL_MapRGB.


PrevHomeNext
SDL_RectUpSDL_Palette
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcondbroadcast.html b/lib/sdl/msvc/docs/html/sdlcondbroadcast.html new file mode 100644 index 0000000000000000000000000000000000000000..9b0fc83e0f1e42df2962a67e2afee56393eb25df --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcondbroadcast.html @@ -0,0 +1,224 @@ +SDL_CondBroadcast
SDL Library Documentation
PrevNext

SDL_CondBroadcast

Name

SDL_CondBroadcast -- Restart all threads waiting on a condition variable

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

int SDL_CondBroadcast(SDL_cond *cond);

Description

Restarts all threads that are waiting on the condition variable, cond. Returns 0 on success, or -1 on an error.


PrevHomeNext
SDL_CondSignalUpSDL_CondWait
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcondsignal.html b/lib/sdl/msvc/docs/html/sdlcondsignal.html new file mode 100644 index 0000000000000000000000000000000000000000..24e9175994ec461a93f7856c52371e00161608b5 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcondsignal.html @@ -0,0 +1,224 @@ +SDL_CondSignal
SDL Library Documentation
PrevNext

SDL_CondSignal

Name

SDL_CondSignal -- Restart a thread wait on a condition variable

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

int SDL_CondSignal(SDL_cond *cond);

Description

Restart one of the threads that are waiting on the condition variable, cond. Returns 0 on success of -1 on an error.


PrevHomeNext
SDL_DestroyCondUpSDL_CondBroadcast
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcondwait.html b/lib/sdl/msvc/docs/html/sdlcondwait.html new file mode 100644 index 0000000000000000000000000000000000000000..8f15452589e62e3910b8ab131e7ab88586ab3214 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcondwait.html @@ -0,0 +1,231 @@ +SDL_CondWait
SDL Library Documentation
PrevNext

SDL_CondWait

Name

SDL_CondWait -- Wait on a condition variable

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

int SDL_CondWait(SDL_cond *cond, SDL_mutex *mut);

Description

Wait on the condition variable cond and unlock the provided mutex. The mutex must the locked before entering this function. Returns 0 when it is signalled, or -1 on an error.


PrevHomeNext
SDL_CondBroadcastUpSDL_CondWaitTimeout
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcondwaittimeout.html b/lib/sdl/msvc/docs/html/sdlcondwaittimeout.html new file mode 100644 index 0000000000000000000000000000000000000000..deed50bfe21293c06b67f2d8e98f4309e5f622f2 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcondwaittimeout.html @@ -0,0 +1,230 @@ +SDL_CondWaitTimeout
SDL Library Documentation
PrevNext

SDL_CondWaitTimeout

Name

SDL_CondWaitTimeout -- Wait on a condition variable, with timeout

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms);

Description

Wait on the condition variable cond for, at most, ms milliseconds. mut is unlocked so it must be locked when the function is called. Returns SDL_MUTEX_TIMEDOUT if the condition is not signalled in the allotted time, 0 if it was signalled or -1 on an error.

See Also

SDL_CondWait


PrevHomeNext
SDL_CondWaitUpTime
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlconvertaudio.html b/lib/sdl/msvc/docs/html/sdlconvertaudio.html new file mode 100644 index 0000000000000000000000000000000000000000..52f122968a07cb93ecbfad0a8552649648dcf146 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlconvertaudio.html @@ -0,0 +1,407 @@ +SDL_ConvertAudio
SDL Library Documentation
PrevNext

SDL_ConvertAudio

Name

SDL_ConvertAudio -- Convert audio data to a desired audio format.

Synopsis

#include "SDL.h"

int SDL_ConvertAudio(SDL_AudioCVT *cvt);

Description

SDL_ConvertAudio takes one parameter, cvt, which was previously initilized. Initilizing a SDL_AudioCVT is a two step process. First of all, the structure must be passed to SDL_BuildAudioCVT along with source and destination format parameters. Secondly, the cvt->buf and cvt->len fields must be setup. cvt->buf should point to the audio data and cvt->len should be set to the length of the audio data in bytes. Remember, the length of the buffer pointed to by buf show be len*len_mult bytes in length.

Once the SDL_AudioCVTstructure is initilized then we can pass it to SDL_ConvertAudio, which will convert the audio data pointer to by cvt->buf. If SDL_ConvertAudio returned 0 then the conversion was completed successfully, otherwise -1 is returned.

If the conversion completed successfully then the converted audio data can be read from cvt->buf. The amount of valid, converted, audio data in the buffer is equal to cvt->len*cvt->len_ratio.

Examples

/* Converting some WAV data to hardware format */
+void my_audio_callback(void *userdata, Uint8 *stream, int len);
+
+SDL_AudioSpec *desired, *obtained;
+SDL_AudioSpec wav_spec;
+SDL_AudioCVT  wav_cvt;
+Uint32 wav_len;
+Uint8 *wav_buf;
+int ret;
+
+/* Allocated audio specs */
+desired = malloc(sizeof(SDL_AudioSpec));
+obtained = malloc(sizeof(SDL_AudioSpec));
+
+/* Set desired format */
+desired->freq=22050;
+desired->format=AUDIO_S16LSB;
+desired->samples=8192;
+desired->callback=my_audio_callback;
+desired->userdata=NULL;
+
+/* Open the audio device */
+if ( SDL_OpenAudio(desired, obtained) < 0 ){
+  fprintf(stderr, "Couldn't open audio: %s\n", SDL_GetError());
+  exit(-1);
+}
+        
+free(desired);
+
+/* Load the test.wav */
+if( SDL_LoadWAV("test.wav", &wav_spec, &wav_buf, &wav_len) == NULL ){
+  fprintf(stderr, "Could not open test.wav: %s\n", SDL_GetError());
+  SDL_CloseAudio();
+  free(obtained);
+  exit(-1);
+}
+                                            
+/* Build AudioCVT */
+ret = SDL_BuildAudioCVT(&wav_cvt,
+                        wav_spec.format, wav_spec.channels, wav_spec.freq,
+                        obtained->format, obtained->channels, obtained->freq);
+
+/* Check that the convert was built */
+if(ret==-1){
+  fprintf(stderr, "Couldn't build converter!\n");
+  SDL_CloseAudio();
+  free(obtained);
+  SDL_FreeWAV(wav_buf);
+}
+
+/* Setup for conversion */
+wav_cvt.buf = malloc(wav_len * wav_cvt.len_mult);
+wav_cvt.len = wav_len;
+memcpy(wav_cvt.buf, wav_buf, wav_len);
+
+/* We can delete to original WAV data now */
+SDL_FreeWAV(wav_buf);
+
+/* And now we're ready to convert */
+SDL_ConvertAudio(&wav_cvt);
+
+/* do whatever */
+.
+.
+.
+.
+

PrevHomeNext
SDL_BuildAudioCVTUpSDL_MixAudio
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlconvertsurface.html b/lib/sdl/msvc/docs/html/sdlconvertsurface.html new file mode 100644 index 0000000000000000000000000000000000000000..cc21f7833ebd7373ae61766e1e47213ce1d9ebc7 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlconvertsurface.html @@ -0,0 +1,271 @@ +SDL_ConvertSurface
SDL Library Documentation
PrevNext

SDL_ConvertSurface

Name

SDL_ConvertSurface -- Converts a surface to the same format as another surface.

Synopsis

#include "SDL/SDL.h"

SDL_Surface *SDL_ConvertSurface(SDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags);

Description

Creates a new surface of the specified format, and then copies and maps +the given surface to it. If this function fails, it returns +NULL.

The flags parameter is passed to +SDL_CreateRGBSurface +and has those semantics.

This function is used internally by +SDL_DisplayFormat.

This function can only be called after SDL_Init.

Return Value

Returns either a pointer to the new surface, or +NULL on error.


PrevHomeNext
SDL_GetClipRectUpSDL_BlitSurface
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcreatecond.html b/lib/sdl/msvc/docs/html/sdlcreatecond.html new file mode 100644 index 0000000000000000000000000000000000000000..02fcdb2b3e57f43526a7c746682d85219c3f4574 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcreatecond.html @@ -0,0 +1,240 @@ +SDL_CreateCond
SDL Library Documentation
PrevNext

SDL_CreateCond

Name

SDL_CreateCond -- Create a condition variable

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

SDL_cond *SDL_CreateCond(void);

Description

Creates a condition variable.

Examples

SDL_cond *cond;
+
+cond=SDL_CreateCond();
+.
+.
+/* Do stuff */
+
+.
+.
+SDL_DestroyCond(cond);

PrevHomeNext
SDL_SemValueUpSDL_DestroyCond
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcreatecursor.html b/lib/sdl/msvc/docs/html/sdlcreatecursor.html new file mode 100644 index 0000000000000000000000000000000000000000..a444165ff096d1ceb44e08318e233cc05d343775 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcreatecursor.html @@ -0,0 +1,398 @@ +SDL_CreateCursor
SDL Library Documentation
PrevNext

SDL_CreateCursor

Name

SDL_CreateCursor -- Creates a new mouse cursor.

Synopsis

#include "SDL.h"

SDL_Cursor *SDL_CreateCursor(Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);

Description

Create a cursor using the specified data and mask (in MSB format). +The cursor width must be a multiple of 8 bits.

The cursor is created in black and white according to the following: +

Data / MaskResulting pixel on screen
0 / 1White
1 / 1Black
0 / 0Transparent
1 / 0Inverted color if possible, black if not.

Cursors created with this function must be freed with +SDL_FreeCursor.

Example

/* Stolen from the mailing list */
+/* Creates a new mouse cursor from an XPM */
+
+
+/* XPM */
+static const char *arrow[] = {
+  /* width height num_colors chars_per_pixel */
+  "    32    32        3            1",
+  /* colors */
+  "X c #000000",
+  ". c #ffffff",
+  "  c None",
+  /* pixels */
+  "X                               ",
+  "XX                              ",
+  "X.X                             ",
+  "X..X                            ",
+  "X...X                           ",
+  "X....X                          ",
+  "X.....X                         ",
+  "X......X                        ",
+  "X.......X                       ",
+  "X........X                      ",
+  "X.....XXXXX                     ",
+  "X..X..X                         ",
+  "X.X X..X                        ",
+  "XX  X..X                        ",
+  "X    X..X                       ",
+  "     X..X                       ",
+  "      X..X                      ",
+  "      X..X                      ",
+  "       XX                       ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "                                ",
+  "0,0"
+};
+
+static SDL_Cursor *init_system_cursor(const char *image[])
+{
+  int i, row, col;
+  Uint8 data[4*32];
+  Uint8 mask[4*32];
+  int hot_x, hot_y;
+
+  i = -1;
+  for ( row=0; row<32; ++row ) {
+    for ( col=0; col<32; ++col ) {
+      if ( col % 8 ) {
+        data[i] <<= 1;
+        mask[i] <<= 1;
+      } else {
+        ++i;
+        data[i] = mask[i] = 0;
+      }
+      switch (image[4+row][col]) {
+        case 'X':
+          data[i] |= 0x01;
+          mask[i] |= 0x01;
+          break;
+        case '.':
+          mask[i] |= 0x01;
+          break;
+        case ' ':
+          break;
+      }
+    }
+  }
+  sscanf(image[4+row], "%d,%d", &hot_x, &hot_y);
+  return SDL_CreateCursor(data, mask, 32, 32, hot_x, hot_y);
+}

PrevHomeNext
SDL_WarpMouseUpSDL_FreeCursor
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcreatemutex.html b/lib/sdl/msvc/docs/html/sdlcreatemutex.html new file mode 100644 index 0000000000000000000000000000000000000000..53ed48bb20ee6f1db76ec5b0d94f782e837638b5 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcreatemutex.html @@ -0,0 +1,249 @@ +SDL_CreateMutex
SDL Library Documentation
PrevNext

SDL_CreateMutex

Name

SDL_CreateMutex -- Create a mutex

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

SDL_mutex *SDL_CreateMutex(void);

Description

Create a new, unlocked mutex.

Examples

SDL_mutex *mut;
+
+mut=SDL_CreateMutex();
+.
+.
+if(SDL_mutexP(mut)==-1){
+  fprintf(stderr, "Couldn't lock mutex\n");
+  exit(-1);
+}
+.
+/* Do stuff while mutex is locked */
+.
+.
+if(SDL_mutexV(mut)==-1){
+  fprintf(stderr, "Couldn't unlock mutex\n");
+  exit(-1);
+}
+
+SDL_DestroyMutex(mut);

PrevHomeNext
SDL_KillThreadUpSDL_DestroyMutex
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcreatergbsurface.html b/lib/sdl/msvc/docs/html/sdlcreatergbsurface.html new file mode 100644 index 0000000000000000000000000000000000000000..736ec8f96fff639e2bf0e8e9523c4133f2a0a389 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcreatergbsurface.html @@ -0,0 +1,458 @@ +SDL_CreateRGBSurface
SDL Library Documentation
PrevNext

SDL_CreateRGBSurface

Name

SDL_CreateRGBSurface -- Create an empty SDL_Surface

Synopsis

#include "SDL.h"

SDL_Surface *SDL_CreateRGBSurface(Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);

Description

Allocate an empty surface (must be called after SDL_SetVideoMode)

If depth is 8 bits an empty palette is allocated for the surface, otherwise a 'packed-pixel' SDL_PixelFormat is created using the [RGBA]mask's provided (see SDL_PixelFormat). The flags specifies the type of surface that should be created, it is an OR'd combination of the following possible values.

SDL_SWSURFACESDL will create the surface in system memory. This improves the performance of pixel level access, however you may not be able to take advantage of some types of hardware blitting.
SDL_HWSURFACESDL will attempt to create the surface in video memory. This will allow SDL to take advantage of Video->Video blits (which are often accelerated).
SDL_SRCCOLORKEYThis flag turns on colourkeying for blits from this surface. If +SDL_HWSURFACE is also specified and colourkeyed blits +are hardware-accelerated, then SDL will attempt to place the surface in +video memory. +Use SDL_SetColorKey +to set or clear this flag after surface creation.
SDL_SRCALPHAThis flag turns on alpha-blending for blits from this surface. If +SDL_HWSURFACE is also specified and alpha-blending blits +are hardware-accelerated, then the surface will be placed in video memory if +possible. +Use SDL_SetAlpha to +set or clear this flag after surface creation.

Note: If an alpha-channel is specified (that is, if Amask is +nonzero), then the SDL_SRCALPHA flag is automatically +set. You may remove this flag by calling +SDL_SetAlpha +after surface creation.

Return Value

Returns the created surface, or NULL upon error.

Example

    /* Create a 32-bit surface with the bytes of each pixel in R,G,B,A order,
+       as expected by OpenGL for textures */
+    SDL_Surface *surface;
+    Uint32 rmask, gmask, bmask, amask;
+
+    /* SDL interprets each pixel as a 32-bit number, so our masks must depend
+       on the endianness (byte order) of the machine */
+#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+    rmask = 0xff000000;
+    gmask = 0x00ff0000;
+    bmask = 0x0000ff00;
+    amask = 0x000000ff;
+#else
+    rmask = 0x000000ff;
+    gmask = 0x0000ff00;
+    bmask = 0x00ff0000;
+    amask = 0xff000000;
+#endif
+
+    surface = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height, 32,
+                                   rmask, gmask, bmask, amask);
+    if(surface == NULL) {
+        fprintf(stderr, "CreateRGBSurface failed: %s\n", SDL_GetError());
+        exit(1);
+    }

PrevHomeNext
SDL_GetRGBAUpSDL_CreateRGBSurfaceFrom
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcreatergbsurfacefrom.html b/lib/sdl/msvc/docs/html/sdlcreatergbsurfacefrom.html new file mode 100644 index 0000000000000000000000000000000000000000..6acfdccae8b4e16f5fa05aecd1dd6af70cb7bcb9 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcreatergbsurfacefrom.html @@ -0,0 +1,256 @@ +SDL_CreateRGBSurfaceFrom
SDL Library Documentation
PrevNext

SDL_CreateRGBSurfaceFrom

Name

SDL_CreateRGBSurfaceFrom -- Create an SDL_Surface from pixel data

Synopsis

#include "SDL.h"

SDL_Surface *SDL_CreateRGBSurfaceFrom(void *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);

Description

Creates an SDL_Surface from the provided pixel data.

The data stored in pixels is assumed to be of the depth specified in the parameter list. The pixel data is not copied into the SDL_Surface structure so it should not be freed until the surface has been freed with a called to SDL_FreeSurface. pitch is the length of each scanline in bytes.

See SDL_CreateRGBSurface for a more detailed description of the other parameters.

Return Value

Returns the created surface, or NULL upon error.


PrevHomeNext
SDL_CreateRGBSurfaceUpSDL_FreeSurface
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcreatesemaphore.html b/lib/sdl/msvc/docs/html/sdlcreatesemaphore.html new file mode 100644 index 0000000000000000000000000000000000000000..43dcbf5bff23dc8000afdcabb19fb0fa6bb2674e --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcreatesemaphore.html @@ -0,0 +1,303 @@ +SDL_CreateSemaphore
SDL Library Documentation
PrevNext

SDL_CreateSemaphore

Name

SDL_CreateSemaphore -- Creates a new semaphore and assigns an initial value to it.

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

SDL_sem *SDL_CreateSemaphore(Uint32 initial_value);

Description

SDL_CreateSemaphore() creates a new semaphore and +initializes it with the value initial_value. +Each locking operation on the semaphore by +SDL_SemWait, +SDL_SemTryWait or +SDL_SemWaitTimeout +will atomically decrement the semaphore value. The locking operation will be blocked +if the semaphore value is not positive (greater than zero). Each unlock operation by +SDL_SemPost +will atomically increment the semaphore value.

Return Value

Returns a pointer to an initialized semaphore or +NULL if there was an error.

Examples

SDL_sem *my_sem;
+
+my_sem = SDL_CreateSemaphore(INITIAL_SEM_VALUE);
+
+if (my_sem == NULL) {
+        return CREATE_SEM_FAILED;
+}


PrevHomeNext
SDL_mutexVUpSDL_DestroySemaphore
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcreatethread.html b/lib/sdl/msvc/docs/html/sdlcreatethread.html new file mode 100644 index 0000000000000000000000000000000000000000..ca3c2d9201caafb525c6bb3c27e06312c57cf199 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcreatethread.html @@ -0,0 +1,223 @@ +SDL_CreateThread
SDL Library Documentation
PrevNext

SDL_CreateThread

Name

SDL_CreateThread -- Creates a new thread of execution that shares its parent's properties.

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

SDL_Thread *SDL_CreateThread(int (*fn)(void *), void *data);

Description

SDL_CreateThread creates a new thread of execution +that shares all of its parent's global memory, signal handlers, +file descriptors, etc, and runs the function fn +passed the void pointer data +The thread quits when this function returns.


PrevHomeNext
Multi-threaded ProgrammingUpSDL_ThreadID
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlcreateyuvoverlay.html b/lib/sdl/msvc/docs/html/sdlcreateyuvoverlay.html new file mode 100644 index 0000000000000000000000000000000000000000..c24ef6ee2e0a0b4f57744454030602b6aac73bdb --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlcreateyuvoverlay.html @@ -0,0 +1,256 @@ +SDL_CreateYUVOverlay
SDL Library Documentation
PrevNext

SDL_CreateYUVOverlay

Name

SDL_CreateYUVOverlay -- Create a YUV video overlay

Synopsis

#include "SDL.h"

SDL_Overlay *SDL_CreateYUVOverlay(int width, int height, Uint32 format, SDL_Surface *display);

Description

SDL_CreateYUVOverlay creates a YUV overlay of the specified width, height and format (see SDL_Overlay for a list of available formats), for the provided display. A SDL_Overlay structure is returned.

The term 'overlay' is a misnomer since, unless the overlay is created in hardware, the contents for the display surface underneath the area where the overlay is shown will be overwritten when the overlay is displayed.


PrevHomeNext
SDL_GL_SwapBuffersUpSDL_LockYUVOverlay
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdldelay.html b/lib/sdl/msvc/docs/html/sdldelay.html new file mode 100644 index 0000000000000000000000000000000000000000..a5417fa66f369db4d37a59f9b6c0ac3533dd2d07 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdldelay.html @@ -0,0 +1,231 @@ +SDL_Delay
SDL Library Documentation
PrevNext

SDL_Delay

Name

SDL_Delay -- Wait a specified number of milliseconds before returning.

Synopsis

#include "SDL.h"

void SDL_Delay(Uint32 ms);

Description

Wait a specified number of milliseconds before returning. SDL_Delay will wait at least the specified time, but possible longer due to OS scheduling.

Note: Count on a delay granularity of at least 10 ms. +Some platforms have shorter clock ticks but this is the most common.

See Also

SDL_AddTimer


PrevHomeNext
SDL_GetTicksUpSDL_AddTimer
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdldestroycond.html b/lib/sdl/msvc/docs/html/sdldestroycond.html new file mode 100644 index 0000000000000000000000000000000000000000..ac0804286a91955601c628facea50a0cda21784f --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdldestroycond.html @@ -0,0 +1,206 @@ +SDL_DestroyCond
SDL Library Documentation
PrevNext

SDL_DestroyCond

Name

SDL_DestroyCond -- Destroy a condition variable

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

void SDL_DestroyCond(SDL_cond *cond);

Description

Destroys a condition variable.


PrevHomeNext
SDL_CreateCondUpSDL_CondSignal
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdldestroymutex.html b/lib/sdl/msvc/docs/html/sdldestroymutex.html new file mode 100644 index 0000000000000000000000000000000000000000..949bfc5d5407e3e45e9ea296a8087ad05bee22e1 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdldestroymutex.html @@ -0,0 +1,209 @@ +SDL_DestroyMutex
SDL Library Documentation
PrevNext

SDL_DestroyMutex

Name

SDL_DestroyMutex -- Destroy a mutex

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

void SDL_DestroyMutex(SDL_mutex *mutex);

Description

Destroy a previously created mutex.


PrevHomeNext
SDL_CreateMutexUpSDL_mutexP
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdldestroysemaphore.html b/lib/sdl/msvc/docs/html/sdldestroysemaphore.html new file mode 100644 index 0000000000000000000000000000000000000000..d32bdfaf578007f6e6e91ab512a812a60a8a6df8 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdldestroysemaphore.html @@ -0,0 +1,278 @@ +SDL_DestroySemaphore
SDL Library Documentation
PrevNext

SDL_DestroySemaphore

Name

SDL_DestroySemaphore -- Destroys a semaphore that was created by SDL_CreateSemaphore.

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

void SDL_DestroySemaphore(SDL_sem *sem);

Description

SDL_DestroySemaphore destroys the semaphore pointed to +by sem that was created by +SDL_CreateSemaphore. +It is not safe to destroy a semaphore if there are threads currently blocked +waiting on it.

Examples

if (my_sem != NULL) {
+        SDL_DestroySemaphore(my_sem);
+        my_sem = NULL;
+}


PrevHomeNext
SDL_CreateSemaphoreUpSDL_SemWait
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdldisplayformat.html b/lib/sdl/msvc/docs/html/sdldisplayformat.html new file mode 100644 index 0000000000000000000000000000000000000000..c91adfe50aa890608eeb3fc62781c4a72ede7d81 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdldisplayformat.html @@ -0,0 +1,262 @@ +SDL_DisplayFormat
SDL Library Documentation
PrevNext

SDL_DisplayFormat

Name

SDL_DisplayFormat -- Convert a surface to the display format

Synopsis

#include "SDL.h"

SDL_Surface *SDL_DisplayFormat(SDL_Surface *surface);

Description

This function takes a surface and copies it to a new surface of the +pixel format and colors of the video framebuffer, suitable for fast +blitting onto the display surface. It calls +SDL_ConvertSurface

If you want to take advantage of hardware colorkey or alpha blit +acceleration, you should set the colorkey and alpha value before +calling this function.

If you want an alpha channel, see SDL_DisplayFormatAlpha.

Return Value

If the conversion fails or runs out of memory, it returns +NULL


PrevHomeNext
SDL_FillRectUpSDL_DisplayFormatAlpha
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdldisplayformatalpha.html b/lib/sdl/msvc/docs/html/sdldisplayformatalpha.html new file mode 100644 index 0000000000000000000000000000000000000000..6e88604d0210f87f5241ae1a1798883fb0267db4 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdldisplayformatalpha.html @@ -0,0 +1,250 @@ +SDL_DisplayFormatAlpha
SDL Library Documentation
PrevNext

SDL_DisplayFormatAlpha

Name

SDL_DisplayFormatAlpha -- Convert a surface to the display format

Synopsis

#include "SDL.h"

SDL_Surface *SDL_DisplayFormatAlpha(SDL_Surface *surface);

Description

This function takes a surface and copies it to a new surface of the +pixel format and colors of the video framebuffer plus an alpha channel, +suitable for fast blitting onto the display surface. It calls +SDL_ConvertSurface

If you want to take advantage of hardware colorkey or alpha blit +acceleration, you should set the colorkey and alpha value before +calling this function.

This function can be used to convert a colourkey to an alpha channel, +if the SDL_SRCCOLORKEY flag is set on the surface. +The generated surface will then be transparent (alpha=0) where the +pixels match the colourkey, and opaque (alpha=255) elsewhere.

Return Value

If the conversion fails or runs out of memory, it returns +NULL


PrevHomeNext
SDL_DisplayFormatUpSDL_WarpMouse
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdldisplayyuvoverlay.html b/lib/sdl/msvc/docs/html/sdldisplayyuvoverlay.html new file mode 100644 index 0000000000000000000000000000000000000000..456c9985dfb471f888fe8ca8c4439f1a8946e144 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdldisplayyuvoverlay.html @@ -0,0 +1,246 @@ +SDL_DisplayYUVOverlay
SDL Library Documentation
PrevNext

SDL_DisplayYUVOverlay

Name

SDL_DisplayYUVOverlay -- Blit the overlay to the display

Synopsis

#include "SDL.h"

int SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect);

Description

Blit the overlay to the surface specified when it was created. The SDL_Rect structure, dstrect, specifies the position and size of the destination. If the dstrect is a larger or smaller than the overlay then the overlay will be scaled, this is optimized for 2x scaling.

Return Values

Returns 0 on success


PrevHomeNext
SDL_UnlockYUVOverlayUpSDL_FreeYUVOverlay
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlenablekeyrepeat.html b/lib/sdl/msvc/docs/html/sdlenablekeyrepeat.html new file mode 100644 index 0000000000000000000000000000000000000000..878feb14f33155202131c6eb1cc13354be8b3f77 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlenablekeyrepeat.html @@ -0,0 +1,238 @@ +SDL_EnableKeyRepeat
SDL Library Documentation
PrevNext

SDL_EnableKeyRepeat

Name

SDL_EnableKeyRepeat -- Set keyboard repeat rate.

Synopsis

#include "SDL.h"

int SDL_EnableKeyRepeat(int delay, int interval);

Description

Enables or disables the keyboard repeat rate. delay specifies how long the key must be pressed before it begins repeating, it then repeats at the speed specified by interval. Both delay and interval are expressed in milliseconds.

Setting delay to 0 disables key repeating completely. Good default values are SDL_DEFAULT_REPEAT_DELAY and SDL_DEFAULT_REPEAT_INTERVAL.

Return Value

Returns 0 on success and -1 on failure.


PrevHomeNext
SDL_EnableUNICODEUpSDL_GetMouseState
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlenableunicode.html b/lib/sdl/msvc/docs/html/sdlenableunicode.html new file mode 100644 index 0000000000000000000000000000000000000000..855debbc996035b562e1583c7c68c6b155b086f1 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlenableunicode.html @@ -0,0 +1,252 @@ +SDL_EnableUNICODE
SDL Library Documentation
PrevNext

SDL_EnableUNICODE

Name

SDL_EnableUNICODE -- Enable UNICODE translation

Synopsis

#include "SDL.h"

int SDL_EnableUNICODE(int enable);

Description

Enables/Disables Unicode keyboard translation.

To obtain the character codes corresponding to received keyboard events, +Unicode translation must first be turned on using this function. The +translation incurs a slight overhead for each keyboard event and is therefore +disabled by default. For each subsequently received key down event, the +unicode member of the +SDL_keysym structure +will then contain the corresponding character code, or zero for keysyms that do +not correspond to any character code.

A value of 1 for enable enables Unicode translation; +0 disables it, and -1 leaves it unchanged (useful for querying the current +translation mode).

Note that only key press events will be translated, not release events.

Return Value

Returns the previous translation mode (0 or 1).

See Also

SDL_keysym


PrevHomeNext
SDL_GetKeyNameUpSDL_EnableKeyRepeat
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlenvvars.html b/lib/sdl/msvc/docs/html/sdlenvvars.html new file mode 100644 index 0000000000000000000000000000000000000000..8999ed1f1f999569b57ae6cc52cdf08d54803e37 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlenvvars.html @@ -0,0 +1,1227 @@ +SDL_envvars
SDL Library Documentation
PrevNext

SDL_envvars

Name

SDL_envvars -- SDL environment variables

Description

Not a function, set using setenv()

Several environment variables are available to modify the +behaviour of SDL. Using these variables isn't recommened and the names +and presence of these variables aren't guaranteed from one release to +the next. However, they can be very useful for debugging +purposes.

Video

SDL_FBACCEL

If set to 0, disable hardware acceleration in the linux fbcon driver.

SDL_FBDEV

Frame buffer device to use in the linux fbcon driver, instead of /dev/fb0

SDL_FULLSCREEN_UPDATE

In the ps2gs driver, sets the SDL_ASYNCBLIT flag on the +display surface.

SDL_VIDEODRIVER

Selectes the video driver for SDL to use. Possible values, in the +order they are tried if this variable is not set:

x11

dga

(the XFree86 DGA2)

nanox

(Linux)

fbcon

(Linux)

directfb

(Linux)

ps2gs

(Playstation 2)

ggi

vgl

(BSD)

svgalib

(Linux)

aalib

directx

(Win32)

windib

(Win32)

bwindow

(BeOS)

toolbox

(MacOS Classic)

DSp

(MacOS Classic)

Quartz

(Mac OS X)

CGX

(Amiga)

photon

(QNX)

dummy

SDL_VIDEO_CENTERED

If set, tries to center the SDL window when running in X11 windowed +mode, or using the CyberGrafix driver.

SDL_VIDEO_GL_DRIVER

The openGL driver (shared library) to use for X11. Default is libGL.so.1

SDL_VIDEO_X11_DGAMOUSE

With XFree86, enables use of DGA mouse if set.

SDL_VIDEO_X11_MOUSEACCEL

For X11, sets the mouse acceleration. The value should be a string +on the form:

"n/d/t"

where n and d are the +acceleration numerator/denumerators (so mouse movement is accelerated by +n/d), and +t is the threshold above which acceleration applies +(counted as number of pixels the mouse moves at once).

SDL_VIDEO_X11_NODIRECTCOLOR

If set, don't attempt to use DirectColor visuals even if they are +present. (SDL will use them otherwise for gamma correction). +This is needed with older X servers when using the XVideo extension.

SDL_VIDEO_X11_VISUALID

ID of an X11 visual to use, overriding SDL's default visual selection +algorithm. It can be in decimal or in hex (prefixed by 0x).

SDL_VIDEO_YUV_DIRECT

If set, display YUV overlay directly on the video surface if possible, +instead of on the surface passed to +SDL_CreateYUVOverlay.

SDL_VIDEO_YUV_HWACCEL

If not set or set to a nonzero value, SDL will attempt to use +hardware YUV acceleration for video playback.

SDL_WINDOWID

For X11 or Win32, contains the ID number of the window to be used by +SDL instead of creating its own window. Either in decimal or +in hex (prefixed by 0x).

Events/Input

SDL_MOUSE_RELATIVE

If set to 0, do not use mouse relative mode in X11. The default is +to use it if the mouse is hidden and input is grabbed.

SDL_MOUSEDEV

The mouse device to use for the linux fbcon driver. If not set, +SDL first tries to use GPM in repeater mode, then various other +devices (/dev/pcaux, /dev/adbmouse, /dev/mouse etc).

SDL_MOUSEDEV_IMPS2

If set, SDL will not try to auto-detect the IMPS/2 protocol of +a PS/2 mouse but use it right away. For the fbcon and ps2gs drivers.

SDL_MOUSEDRV

For the linux fbcon driver: if set to ELO, use the ELO touchscreen +controller as a pointer device

SDL_NO_RAWKBD

For the libvga driver: If set, do not attempt to put the keyboard in raw mode.

SDL_NOMOUSE

If set, the linux fbcon driver will not use a mouse at all.

SDL_NO_LOCK_KEYS

Disable CAPS-LOCK and NUM-LOCK suppression of down+up key events, +suitable for games where the player needs these keys to do more than just toggle. +A value of 1 will effect both CAPS-LOCK and NUM-LOCK. +A value of 2 will effect only CAPS-LOCK. +A value of 3 will effect only NUM-LOCK. +All other values have no effect. +

Audio

AUDIODEV

The audio device to use, if SDL_PATH_DSP isn't set.

SDL_AUDIODRIVER

Selects the audio driver for SDL to use. Possible values, in the +order they are tried if this variable is not set:

openbsd

(OpenBSD)

dsp

(OSS /dev/dsp: Linux, Solaris, BSD etc)

alsa

(Linux)

pulse

(PulseAudio daemon)

audio

(Unix style /dev/audio: SunOS, Solaris etc)

AL

(Irix)

artsc

(ARTS audio daemon)

esd

(esound audio daemon)

nas

(NAS audio daemon)

dma

(OSS /dev/dsp, using DMA)

dsound

(Win32 DirectX)

waveout

(Win32 WaveOut)

baudio

(BeOS)

sndmgr

(MacOS SoundManager)

paud

(AIX)

AHI

(Amiga)

disk

(all; output to file)

SDL_DISKAUDIOFILE

The name of the output file for the "disk" audio driver. If not +set, the name sdlaudio.raw is used.

SDL_DISKAUDIODELAY

For the "disk" audio driver, how long to wait (in ms) before writing +a full sound buffer. The default is 150 ms.

SDL_DSP_NOSELECT

For some audio drivers (alsa, paud, dma and dsp), don't use select() +but a timed method instead. May cure some audio problems, or cause +others.

SDL_PATH_DSP

The audio device to use. If not set, SDL tries AUDIODEV and then +a platform-dependent default value (/dev/audio on Solaris, +/dev/dsp on Linux etc).

CD-ROM

SDL_CDROM

A colon-separated list of CD-ROM devices to use, in addition to +the standard devices (typically /dev/cdrom, platform-dependent).

Debugging

SDL_DEBUG

If set, causes every call to SDL_SetError (that +is, every time SDL signals an error) to also print an error message on +stderr.

Joystick

SDL_JOYSTICK_DEVICE

Joystick device to use in the linux joystick driver, in addition +to the usual: /dev/js*, /dev/input/event*, /dev/input/js*

SDL_LINUX_JOYSTICK

Special joystick configuration string for linux. The format is

"name numaxes numhats numballs"

where name is the name string of the joystick +(possibly in single quotes), and the rest are the number of axes, hats +and balls respectively.


PrevHomeNext
SDL_GetErrorUpVideo
diff --git a/lib/sdl/msvc/docs/html/sdlevent.html b/lib/sdl/msvc/docs/html/sdlevent.html new file mode 100644 index 0000000000000000000000000000000000000000..dfd21b7fe660821e74c1c26c4e6fb543d594bf3c --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlevent.html @@ -0,0 +1,994 @@ +SDL_Event
SDL Library Documentation
PrevNext

SDL_Event

Name

SDL_Event -- General event structure

Structure Definition

typedef union{
+  Uint8 type;
+  SDL_ActiveEvent active;
+  SDL_KeyboardEvent key;
+  SDL_MouseMotionEvent motion;
+  SDL_MouseButtonEvent button;
+  SDL_JoyAxisEvent jaxis;
+  SDL_JoyBallEvent jball;
+  SDL_JoyHatEvent jhat;
+  SDL_JoyButtonEvent jbutton;
+  SDL_ResizeEvent resize;
+  SDL_ExposeEvent expose;
+  SDL_QuitEvent quit;
+  SDL_UserEvent user;
+  SDL_SysWMEvent syswm;
+} SDL_Event;

Description

The SDL_Event union is the core to all event handling is SDL, its probably the most important structure after SDL_Surface. SDL_Event is a union of all event structures used in SDL, using it is a simple matter of knowing which union member relates to which event type.

Event typeEvent Structure
SDL_ACTIVEEVENTSDL_ActiveEvent
SDL_KEYDOWN/UPSDL_KeyboardEvent
SDL_MOUSEMOTIONSDL_MouseMotionEvent
SDL_MOUSEBUTTONDOWN/UPSDL_MouseButtonEvent
SDL_JOYAXISMOTIONSDL_JoyAxisEvent
SDL_JOYBALLMOTIONSDL_JoyBallEvent
SDL_JOYHATMOTIONSDL_JoyHatEvent
SDL_JOYBUTTONDOWN/UPSDL_JoyButtonEvent
SDL_QUITSDL_QuitEvent
SDL_SYSWMEVENTSDL_SysWMEvent
SDL_VIDEORESIZESDL_ResizeEvent
SDL_VIDEOEXPOSESDL_ExposeEvent
SDL_USEREVENTSDL_UserEvent

Use

The SDL_Event structure has two uses

  • Reading events on the event queue

  • Placing events on the event queue

Reading events from the event queue is done with either SDL_PollEvent or SDL_PeepEvents. We'll use SDL_PollEvent and step through an example.

First off, we create an empty SDL_Event structure. +

SDL_Event test_event;
+SDL_PollEvent removes the next event from the event queue, if there are no events on the queue it returns 0 otherwise it returns 1. We use a while loop to process each event in turn. +
while(SDL_PollEvent(&test_event)) {
+The SDL_PollEvent function take a pointer to an SDL_Event structure that is to be filled with event information. We know that if SDL_PollEvent removes an event from the queue then the event information will be placed in our test_event structure, but we also know that the type of event will be placed in the type member of test_event. So to handle each event type seperately we use a switch statement. +
  switch(test_event.type) {
+We need to know what kind of events we're looking for and the event type's of those events. So lets assume we want to detect where the user is moving the mouse pointer within our application. We look through our event types and notice that SDL_MOUSEMOTION is, more than likely, the event we're looking for. A little more research tells use that SDL_MOUSEMOTION events are handled within the SDL_MouseMotionEvent structure which is the motion member of SDL_Event. We can check for the SDL_MOUSEMOTION event type within our switch statement like so: +
    case SDL_MOUSEMOTION:
+All we need do now is read the information out of the motion member of test_event. +
      printf("We got a motion event.\n");
+      printf("Current mouse position is: (%d, %d)\n", test_event.motion.x, test_event.motion.y);
+      break;
+    default:
+      printf("Unhandled Event!\n");
+      break;
+  }
+}
+printf("Event queue empty.\n");

It is also possible to push events onto the event queue and so use it as a two-way communication path. Both SDL_PushEvent and SDL_PeepEvents allow you to place events onto the event queue. This is usually used to place a SDL_USEREVENT on the event queue, however you could use it to post fake input events if you wished. Creating your own events is a simple matter of choosing the event type you want, setting the type member and filling the appropriate member structure with information. +

SDL_Event user_event;
+
+user_event.type=SDL_USEREVENT;
+user_event.user.code=2;
+user_event.user.data1=NULL;
+user_event.user.data2=NULL;
+SDL_PushEvent(&user_event);


PrevHomeNext
SDL Event Structures.UpSDL_ActiveEvent
diff --git a/lib/sdl/msvc/docs/html/sdleventstate.html b/lib/sdl/msvc/docs/html/sdleventstate.html new file mode 100644 index 0000000000000000000000000000000000000000..b9a24486cbb36f60827816564a377a6b716d828b --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdleventstate.html @@ -0,0 +1,276 @@ +SDL_EventState
SDL Library Documentation
PrevNext

SDL_EventState

Name

SDL_EventState -- This function allows you to set the state of processing certain events.

Synopsis

#include "SDL.h"

Uint8 SDL_EventState(Uint8 type, int state);

Description

This function allows you to set the state of processing certain event type's.

If state is set to SDL_IGNORE, +that event type will be automatically dropped from the event queue and will +not be filtered.

If state is set to SDL_ENABLE, +that event type will be processed normally.

If state is set to SDL_QUERY, +SDL_EventState will return the current processing +state of the specified event type.

A list of event type's can be found in the SDL_Event section.

See Also

SDL_Event


PrevHomeNext
SDL_GetEventFilterUpSDL_GetKeyState
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlexposeevent.html b/lib/sdl/msvc/docs/html/sdlexposeevent.html new file mode 100644 index 0000000000000000000000000000000000000000..82c2a3e7e29ad8ca87a910550bcced5936e9f3c1 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlexposeevent.html @@ -0,0 +1,252 @@ +SDL_ExposeEvent
SDL Library Documentation
PrevNext

SDL_ExposeEvent

Name

SDL_ExposeEvent -- Quit requested event

Structure Definition

typedef struct{
+  Uint8 type
+} SDL_ExposeEvent;

Structure Data

typeSDL_VIDEOEXPOSE

Description

SDL_ExposeEvent is a member of the SDL_Event union and is used whan an event of type SDL_VIDEOEXPOSE is reported.

A VIDEOEXPOSE event is triggered when the screen has been modified +outside of the application, usually by the window manager and needs to +be redrawn.


PrevHomeNext
SDL_ResizeEventUpSDL_SysWMEvent
diff --git a/lib/sdl/msvc/docs/html/sdlfillrect.html b/lib/sdl/msvc/docs/html/sdlfillrect.html new file mode 100644 index 0000000000000000000000000000000000000000..4ace062e2dfac730af033b6eb547b68e4828dbe3 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlfillrect.html @@ -0,0 +1,291 @@ +SDL_FillRect
SDL Library Documentation
PrevNext

SDL_FillRect

Name

SDL_FillRect -- This function performs a fast fill of the given rectangle with some color

Synopsis

#include "SDL.h"

int SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);

Description

This function performs a fast fill of the given rectangle with +color. If dstrect +is NULL, the whole surface will be filled with +color.

The color should be a pixel of the format used by the surface, and +can be generated by the +SDL_MapRGB or SDL_MapRGBA +functions. If the color value contains an alpha value then the +destination is simply "filled" with that alpha information, no blending +takes place.

If there is a clip rectangle set on the destination (set via +SDL_SetClipRect) then this +function will clip based on the intersection of the clip rectangle and +the dstrect rectangle and the dstrect rectangle +will be modified to represent the area actually filled.

Return Value

This function returns 0 on success, or +-1 on error.


PrevHomeNext
SDL_BlitSurfaceUpSDL_DisplayFormat
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlflip.html b/lib/sdl/msvc/docs/html/sdlflip.html new file mode 100644 index 0000000000000000000000000000000000000000..b480f99aa8c9b7f87018d0bfc8cbd81ef2e5c9c3 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlflip.html @@ -0,0 +1,259 @@ +SDL_Flip
SDL Library Documentation
PrevNext

SDL_Flip

Name

SDL_Flip -- Swaps screen buffers

Synopsis

#include "SDL.h"

int SDL_Flip(SDL_Surface *screen);

Description

On hardware that supports double-buffering, this function sets up a flip +and returns. The hardware will wait for vertical retrace, and then swap +video buffers before the next video surface blit or lock will return. +On hardware that doesn't support double-buffering, this is equivalent +to calling SDL_UpdateRect(screen, 0, 0, 0, 0)

The SDL_DOUBLEBUF flag must have been passed to +SDL_SetVideoMode, + when +setting the video mode for this function to perform hardware flipping.

Return Value

This function returns 0 if successful, or +-1 if there was an error.


PrevHomeNext
SDL_UpdateRectsUpSDL_SetColors
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlfreecursor.html b/lib/sdl/msvc/docs/html/sdlfreecursor.html new file mode 100644 index 0000000000000000000000000000000000000000..01a4f7c257219c8beef56bbbed0a427e358da033 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlfreecursor.html @@ -0,0 +1,209 @@ +SDL_FreeCursor
SDL Library Documentation
PrevNext

SDL_FreeCursor

Name

SDL_FreeCursor -- Frees a cursor created with SDL_CreateCursor.

Synopsis

#include "SDL.h"

void SDL_FreeCursor(SDL_Cursor *cursor);

Description

Frees a SDL_Cursor that was created using +SDL_CreateCursor.


PrevHomeNext
SDL_CreateCursorUpSDL_SetCursor
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlfreesurface.html b/lib/sdl/msvc/docs/html/sdlfreesurface.html new file mode 100644 index 0000000000000000000000000000000000000000..84b60481095ec700edb8eca64ed7da44768fea46 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlfreesurface.html @@ -0,0 +1,219 @@ +SDL_FreeSurface
SDL Library Documentation
PrevNext

SDL_FreeSurface

Name

SDL_FreeSurface -- Frees (deletes) a SDL_Surface

Synopsis

#include "SDL.h"

void SDL_FreeSurface(SDL_Surface *surface);

Description

Frees the resources used by a previously created SDL_Surface. If the surface was created using +SDL_CreateRGBSurfaceFrom then the pixel data is not freed.


PrevHomeNext
SDL_CreateRGBSurfaceFromUpSDL_LockSurface
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlfreewav.html b/lib/sdl/msvc/docs/html/sdlfreewav.html new file mode 100644 index 0000000000000000000000000000000000000000..24242c4b0fe486d837c63b0e5615d724f6f9085e --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlfreewav.html @@ -0,0 +1,222 @@ +SDL_FreeWAV
SDL Library Documentation
PrevNext

SDL_FreeWAV

Name

SDL_FreeWAV -- Frees previously opened WAV data

Synopsis

#include "SDL.h"

void SDL_FreeWAV(Uint8 *audio_buf);

Description

After a WAVE file has been opened with SDL_LoadWAV its data can eventually be freed with SDL_FreeWAV. audio_buf is a pointer to the buffer created by SDL_LoadWAV.

See Also

SDL_LoadWAV


PrevHomeNext
SDL_LoadWAVUpSDL_AudioCVT
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlfreeyuvoverlay.html b/lib/sdl/msvc/docs/html/sdlfreeyuvoverlay.html new file mode 100644 index 0000000000000000000000000000000000000000..e82340d9e2e0f5fb34a60f26a35f2df063bb6cb7 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlfreeyuvoverlay.html @@ -0,0 +1,233 @@ +SDL_FreeYUVOverlay
SDL Library Documentation
PrevNext

SDL_FreeYUVOverlay

Name

SDL_FreeYUVOverlay -- Free a YUV video overlay

Synopsis

#include "SDL.h"

void SDL_FreeYUVOverlay(SDL_Overlay *overlay);

Description

Frees and overlay created by SDL_CreateYUVOverlay.


PrevHomeNext
SDL_DisplayYUVOverlayUpSDL_GLattr
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetappstate.html b/lib/sdl/msvc/docs/html/sdlgetappstate.html new file mode 100644 index 0000000000000000000000000000000000000000..d09e2e0f08b406eefea2f56c41eab616d147ce87 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetappstate.html @@ -0,0 +1,263 @@ +SDL_GetAppState
SDL Library Documentation
PrevNext

SDL_GetAppState

Name

SDL_GetAppState -- Get the state of the application

Synopsis

#include "SDL.h"

Uint8 SDL_GetAppState(void);

Description

This function returns the current state of the application. The value returned is a bitwise combination of:

SDL_APPMOUSEFOCUSThe application has mouse focus.
SDL_APPINPUTFOCUSThe application has keyboard focus
SDL_APPACTIVEThe application is visible


PrevHomeNext
SDL_GetRelativeMouseStateUpSDL_JoystickEventState
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetaudiostatus.html b/lib/sdl/msvc/docs/html/sdlgetaudiostatus.html new file mode 100644 index 0000000000000000000000000000000000000000..3fc3a09119cd3e6813975f82b76356f8f023b0cf --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetaudiostatus.html @@ -0,0 +1,221 @@ +SDL_GetAudioStatus
SDL Library Documentation
PrevNext

SDL_GetAudioStatus

Name

SDL_GetAudioStatus -- Get the current audio state

Synopsis

#include "SDL.h"

SDL_audiostatusSDL_GetAudioStatus(void);

Description

typedef enum{
+  SDL_AUDIO_STOPPED,
+  SDL_AUDIO_PAUSED,
+  SDL_AUDIO_PLAYING
+} SDL_audiostatus;

Returns either SDL_AUDIO_STOPPED, SDL_AUDIO_PAUSED or SDL_AUDIO_PLAYING depending on the current audio state.


PrevHomeNext
SDL_PauseAudioUpSDL_LoadWAV
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetcliprect.html b/lib/sdl/msvc/docs/html/sdlgetcliprect.html new file mode 100644 index 0000000000000000000000000000000000000000..f00ac77f8f6a2d4fe15f5957d933f37a9eab6901 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetcliprect.html @@ -0,0 +1,229 @@ +SDL_GetClipRect
SDL Library Documentation
PrevNext

SDL_GetClipRect

Name

SDL_GetClipRect -- Gets the clipping rectangle for a surface.

Synopsis

#include "SDL.h"

void SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect);

Description

Gets the clipping rectangle for a surface. When this surface is the +destination of a blit, only the area within the clip rectangle is +drawn into.

The rectangle pointed to by rect will be +filled with the clipping rectangle of the surface.


PrevHomeNext
SDL_SetClipRectUpSDL_ConvertSurface
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetcursor.html b/lib/sdl/msvc/docs/html/sdlgetcursor.html new file mode 100644 index 0000000000000000000000000000000000000000..72ecbc7c0975aa4fa7eb9c2bee43fe3d91db5855 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetcursor.html @@ -0,0 +1,219 @@ +SDL_GetCursor
SDL Library Documentation
PrevNext

SDL_GetCursor

Name

SDL_GetCursor -- Get the currently active mouse cursor.

Synopsis

#include "SDL.h"

SDL_Cursor *SDL_GetCursor(void);

Description

Returns the currently active mouse cursor.


PrevHomeNext
SDL_SetCursorUpSDL_ShowCursor
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgeterror.html b/lib/sdl/msvc/docs/html/sdlgeterror.html new file mode 100644 index 0000000000000000000000000000000000000000..cdf57924a9f2f08e98b368f2a178d82e13639f39 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgeterror.html @@ -0,0 +1,205 @@ +SDL_GetError
SDL Library Documentation
PrevNext

SDL_GetError

Name

SDL_GetError -- Get SDL error string

Synopsis

#include "SDL/SDL.h"

char *SDL_GetError(void);

Description

SDL_GetError returns a NULL terminated string containing information about the last internal SDL error.

Return Value

SDL_GetError returns a string containing the last error.


PrevHomeNext
SDL_WasInitUpSDL_envvars
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgeteventfilter.html b/lib/sdl/msvc/docs/html/sdlgeteventfilter.html new file mode 100644 index 0000000000000000000000000000000000000000..d254d34a52d8405504c182b340abbc21098eded4 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgeteventfilter.html @@ -0,0 +1,235 @@ +SDL_GetEventFilter
SDL Library Documentation
PrevNext

SDL_GetEventFilter

Name

SDL_GetEventFilter -- Retrieves a pointer to he event filter

Synopsis

#include "SDL.h"

SDL_EventFilter SDL_GetEventFilter(void);

Description

This function retrieces a pointer to the event filter that was previously set using SDL_SetEventFilter. An SDL_EventFilter function is defined as: +

typedef int (*SDL_EventFilter)(const SDL_Event *event);

Return Value

Returns a pointer to the event filter or NULL if no filter has been set.


PrevHomeNext
SDL_SetEventFilterUpSDL_EventState
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetgammaramp.html b/lib/sdl/msvc/docs/html/sdlgetgammaramp.html new file mode 100644 index 0000000000000000000000000000000000000000..bfcc03c4d3334cc3ca370205fa36946f54c3f395 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetgammaramp.html @@ -0,0 +1,219 @@ +SDL_GetGammaRamp
SDL Library Documentation
PrevNext

SDL_GetGammaRamp

Name

SDL_GetGammaRamp -- Gets the color gamma lookup tables for the display

Synopsis

#include "SDL.h"

int SDL_GetGammaRamp(Uint16 *redtable, Uint16 *greentable, Uint16 *bluetable);

Description

Gets the gamma translation lookup tables currently used by the display. +Each table is an array of 256 Uint16 values.

Not all display hardware is able to change gamma.

Return Value

Returns -1 on error.


PrevHomeNext
SDL_SetGammaUpSDL_SetGammaRamp
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetkeyname.html b/lib/sdl/msvc/docs/html/sdlgetkeyname.html new file mode 100644 index 0000000000000000000000000000000000000000..6c51c9497a0ad272a5ff634e8e4911729cc7c17f --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetkeyname.html @@ -0,0 +1,216 @@ +SDL_GetKeyName
SDL Library Documentation
PrevNext

SDL_GetKeyName

Name

SDL_GetKeyName -- Get the name of an SDL virtual keysym

Synopsis

#include "SDL.h"

char *SDL_GetKeyName(SDLKey key);

Description

Returns the SDL-defined name of the SDLKey key.

See Also

SDLKey


PrevHomeNext
SDL_SetModStateUpSDL_EnableUNICODE
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetkeystate.html b/lib/sdl/msvc/docs/html/sdlgetkeystate.html new file mode 100644 index 0000000000000000000000000000000000000000..1c16f2e50c295fa498b70669e44d92148b4ec067 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetkeystate.html @@ -0,0 +1,253 @@ +SDL_GetKeyState
SDL Library Documentation
PrevNext

SDL_GetKeyState

Name

SDL_GetKeyState -- Get a snapshot of the current keyboard state

Synopsis

#include "SDL.h"

Uint8 *SDL_GetKeyState(int *numkeys);

Description

Gets a snapshot of the current keyboard state. The current state is return as a pointer to an array, the size of this array is stored in numkeys. The array is indexed by the SDLK_* symbols. A value of 1 means the key is pressed and a value of 0 means its not. The pointer returned is a pointer to an internal SDL array and should not be freed by the caller.

Note: Use SDL_PumpEvents to update the state array.

Example

Uint8 *keystate = SDL_GetKeyState(NULL);
+if ( keystate[SDLK_RETURN] ) printf("Return Key Pressed.\n");


PrevHomeNext
SDL_EventStateUpSDL_GetModState
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetmodstate.html b/lib/sdl/msvc/docs/html/sdlgetmodstate.html new file mode 100644 index 0000000000000000000000000000000000000000..64d2f35621f9870a93b2d7edc12b3a1d63e65c33 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetmodstate.html @@ -0,0 +1,257 @@ +SDL_GetModState
SDL Library Documentation
PrevNext

SDL_GetModState

Name

SDL_GetModState -- Get the state of modifier keys.

Synopsis

#include "SDL.h"

SDLMod SDL_GetModState(void);

Description

Returns the current state of the modifier keys (CTRL, ALT, etc.).

Return Value

The return value can be an OR'd combination of the SDLMod enum.

SDLMod

typedef enum {
+  KMOD_NONE  = 0x0000,
+  KMOD_LSHIFT= 0x0001,
+  KMOD_RSHIFT= 0x0002,
+  KMOD_LCTRL = 0x0040,
+  KMOD_RCTRL = 0x0080,
+  KMOD_LALT  = 0x0100,
+  KMOD_RALT  = 0x0200,
+  KMOD_LMETA = 0x0400,
+  KMOD_RMETA = 0x0800,
+  KMOD_NUM   = 0x1000,
+  KMOD_CAPS  = 0x2000,
+  KMOD_MODE  = 0x4000,
+} SDLMod;
+SDL also defines the following symbols for convenience: +
#define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
+#define KMOD_SHIFT  (KMOD_LSHIFT|KMOD_RSHIFT)
+#define KMOD_ALT  (KMOD_LALT|KMOD_RALT)
+#define KMOD_META (KMOD_LMETA|KMOD_RMETA)


PrevHomeNext
SDL_GetKeyStateUpSDL_SetModState
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetmousestate.html b/lib/sdl/msvc/docs/html/sdlgetmousestate.html new file mode 100644 index 0000000000000000000000000000000000000000..d96a55b8d1b74fd56a03484f8ec9223bb532352a --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetmousestate.html @@ -0,0 +1,253 @@ +SDL_GetMouseState
SDL Library Documentation
PrevNext

SDL_GetMouseState

Name

SDL_GetMouseState -- Retrieve the current state of the mouse

Synopsis

#include "SDL.h"

Uint8 SDL_GetMouseState(int *x, int *y);

Description

The current button state is returned as a button bitmask, which can +be tested using the SDL_BUTTON(X) macros, and x and y are set to the +current mouse cursor position. You can pass NULL for either x or y.

Example

SDL_PumpEvents();
+if(SDL_GetMouseState(NULL, NULL)&SDL_BUTTON(1))
+  printf("Mouse Button 1(left) is pressed.\n");

PrevHomeNext
SDL_EnableKeyRepeatUpSDL_GetRelativeMouseState
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetrelativemousestate.html b/lib/sdl/msvc/docs/html/sdlgetrelativemousestate.html new file mode 100644 index 0000000000000000000000000000000000000000..52a51066b588a10846fdadc0b2f15e83140a336d --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetrelativemousestate.html @@ -0,0 +1,235 @@ +SDL_GetRelativeMouseState
SDL Library Documentation
PrevNext

SDL_GetRelativeMouseState

Name

SDL_GetRelativeMouseState -- Retrieve the current state of the mouse

Synopsis

#include "SDL.h"

Uint8 SDL_GetRelativeMouseState(int *x, int *y);

Description

The current button state is returned as a button bitmask, which can +be tested using the SDL_BUTTON(X) macros, and x and y are set to the change in the mouse position since the last call to SDL_GetRelativeMouseState or since event initialization. You can pass NULL for either x or y.


PrevHomeNext
SDL_GetMouseStateUpSDL_GetAppState
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetrgb.html b/lib/sdl/msvc/docs/html/sdlgetrgb.html new file mode 100644 index 0000000000000000000000000000000000000000..47774dc2ed88c805402940bb11ae5ccdf7753b74 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetrgb.html @@ -0,0 +1,231 @@ +SDL_GetRGB
SDL Library Documentation
PrevNext

SDL_GetRGB

Name

SDL_GetRGB -- Get RGB values from a pixel in the specified pixel format.

Synopsis

#include "SDL.h"

void SDL_GetRGB(Uint32 pixel, SDL_PixelFormat *fmt, Uint8 *r, Uint8 *g, Uint8 *b);

Description

Get RGB component values from a pixel stored in the specified pixel format.

This function uses the entire 8-bit [0..255] range when converting color +components from pixel formats with less than 8-bits per RGB component +(e.g., a completely white pixel in 16-bit RGB565 format would return +[0xff, 0xff, 0xff] not [0xf8, 0xfc, 0xf8]).


PrevHomeNext
SDL_MapRGBAUpSDL_GetRGBA
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetrgba.html b/lib/sdl/msvc/docs/html/sdlgetrgba.html new file mode 100644 index 0000000000000000000000000000000000000000..a9e1093ad5a37d7e64d756b085b0270f518d0e56 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetrgba.html @@ -0,0 +1,222 @@ +SDL_GetRGBA
SDL Library Documentation
PrevNext

SDL_GetRGBA

Name

SDL_GetRGBA -- Get RGBA values from a pixel in the specified pixel format.

Synopsis

#include "SDL.h"

void SDL_GetRGBA(Uint32 pixel, SDL_PixelFormat *fmt, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a);

Description

Get RGBA component values from a pixel stored in the specified pixel format.

This function uses the entire 8-bit [0..255] range when converting color +components from pixel formats with less than 8-bits per RGB component +(e.g., a completely white pixel in 16-bit RGB565 format would return +[0xff, 0xff, 0xff] not [0xf8, 0xfc, 0xf8]).

If the surface has no alpha component, the alpha will be returned as 0xff +(100% opaque).


PrevHomeNext
SDL_GetRGBUpSDL_CreateRGBSurface
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetthreadid.html b/lib/sdl/msvc/docs/html/sdlgetthreadid.html new file mode 100644 index 0000000000000000000000000000000000000000..4bc59cb69c16baf753c480af054f69449c1c5a37 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetthreadid.html @@ -0,0 +1,209 @@ +SDL_GetThreadID
SDL Library Documentation
PrevNext

SDL_GetThreadID

Name

SDL_GetThreadID -- Get the SDL thread ID of a SDL_Thread

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

Uint32 SDL_GetThreadID(SDL_Thread *thread);

Description

Returns the ID of a SDL_Thread created by SDL_CreateThread.


PrevHomeNext
SDL_ThreadIDUpSDL_WaitThread
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetticks.html b/lib/sdl/msvc/docs/html/sdlgetticks.html new file mode 100644 index 0000000000000000000000000000000000000000..0911aae1a5557d35b1d019c6652c5683dc928e03 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetticks.html @@ -0,0 +1,206 @@ +SDL_GetTicks
SDL Library Documentation
PrevNext

SDL_GetTicks

Name

SDL_GetTicks -- Get the number of milliseconds since the SDL library initialization.

Synopsis

#include "SDL.h"

Uint32 SDL_GetTicks(void);

Description

Get the number of milliseconds since the SDL library initialization. +Note that this value wraps if the program runs for more than ~49 days.

See Also

SDL_Delay


PrevHomeNext
TimeUpSDL_Delay
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetvideoinfo.html b/lib/sdl/msvc/docs/html/sdlgetvideoinfo.html new file mode 100644 index 0000000000000000000000000000000000000000..25c4b458aa0101158bc950edcfbb60ea0bd81131 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetvideoinfo.html @@ -0,0 +1,226 @@ +SDL_GetVideoInfo
SDL Library Documentation
PrevNext

SDL_GetVideoInfo

Name

SDL_GetVideoInfo -- returns a pointer to information about the video hardware

Synopsis

#include "SDL.h"

SDL_VideoInfo *SDL_GetVideoInfo(void);

Description

This function returns a read-only pointer to information about the video +hardware. If this is called before SDL_SetVideoMode, the +vfmt member of the returned structure will contain the +pixel format of the "best" video mode.


PrevHomeNext
SDL_GetVideoSurfaceUpSDL_VideoDriverName
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlgetvideosurface.html b/lib/sdl/msvc/docs/html/sdlgetvideosurface.html new file mode 100644 index 0000000000000000000000000000000000000000..905b1f6ac4b9eff8bb0e9a77a7aa3aceaeec7213 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlgetvideosurface.html @@ -0,0 +1,208 @@ +SDL_GetVideoSurface
SDL Library Documentation
PrevNext

SDL_GetVideoSurface

Name

SDL_GetVideoSurface -- returns a pointer to the current display surface

Synopsis

#include "SDL.h"

SDL_Surface *SDL_GetVideoSurface(void);

Description

This function returns a pointer to the current display surface. +If SDL is doing format conversion on the display surface, this +function returns the publicly visible surface, not the real video +surface.

See Also

SDL_Surface


PrevHomeNext
VideoUpSDL_GetVideoInfo
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlglattr.html b/lib/sdl/msvc/docs/html/sdlglattr.html new file mode 100644 index 0000000000000000000000000000000000000000..0ae01272a4570c2170782e64ca74c2f68f4ce6ea --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlglattr.html @@ -0,0 +1,379 @@ +SDL_GLattr
SDL Library Documentation
PrevNext

SDL_GLattr

Name

SDL_GLattr -- SDL GL Attributes

Attributes

SDL_GL_RED_SIZESize of the framebuffer red component, in bits
SDL_GL_GREEN_SIZESize of the framebuffer green component, in bits
SDL_GL_BLUE_SIZESize of the framebuffer blue component, in bits
SDL_GL_ALPHA_SIZESize of the framebuffer alpha component, in bits
SDL_GL_DOUBLEBUFFER0 or 1, enable or disable double buffering
SDL_GL_BUFFER_SIZESize of the framebuffer, in bits
SDL_GL_DEPTH_SIZESize of the depth buffer, in bits
SDL_GL_STENCIL_SIZESize of the stencil buffer, in bits
SDL_GL_ACCUM_RED_SIZESize of the accumulation buffer red component, in bits
SDL_GL_ACCUM_GREEN_SIZESize of the accumulation buffer green component, in bits
SDL_GL_ACCUM_BLUE_SIZESize of the accumulation buffer blue component, in bits
SDL_GL_ACCUM_ALPHA_SIZESize of the accumulation buffer alpha component, in bits

Description

While you can set most OpenGL attributes normally, the attributes list above must be known before SDL sets the video mode. These attributes a set and read with SDL_GL_SetAttribute and SDL_GL_GetAttribute.


PrevHomeNext
SDL_FreeYUVOverlayUpSDL_Rect
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlglgetattribute.html b/lib/sdl/msvc/docs/html/sdlglgetattribute.html new file mode 100644 index 0000000000000000000000000000000000000000..26c8913bd24e69678470a11891fb35728e417b10 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlglgetattribute.html @@ -0,0 +1,247 @@ +SDL_GL_GetAttribute
SDL Library Documentation
PrevNext

SDL_GL_GetAttribute

Name

SDL_GL_GetAttribute -- Get the value of a special SDL/OpenGL attribute

Synopsis

#include "SDL.h"

int SDL_GL_GetAttribute(SDLGLattr attr, int *value);

Description

Places the value of the SDL/OpenGL attribute attr into value. This is useful after a call to SDL_SetVideoMode to check whether your attributes have been set as you expected.

Return Value

Returns 0 on success, or -1 on an error.


PrevHomeNext
SDL_GL_GetProcAddressUpSDL_GL_SetAttribute
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlglgetprocaddress.html b/lib/sdl/msvc/docs/html/sdlglgetprocaddress.html new file mode 100644 index 0000000000000000000000000000000000000000..a6cf6e4c1198c3e54391b337c6eb092d5d879780 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlglgetprocaddress.html @@ -0,0 +1,262 @@ +SDL_GL_GetProcAddress
SDL Library Documentation
PrevNext

SDL_GL_GetProcAddress

Name

SDL_GL_GetProcAddress -- Get the address of a GL function

Synopsis

#include "SDL.h"

void *SDL_GL_GetProcAddress(const char* proc);

Description

Returns the address of the GL function proc, or NULL if the function is not found. If the GL library is loaded at runtime, with SDL_GL_LoadLibrary, then all GL functions must be retrieved this way. Usually this is used to retrieve function pointers to OpenGL extensions.

Example

typedef void (*GL_ActiveTextureARB_Func)(unsigned int);
+GL_ActiveTextureARB_Func glActiveTextureARB_ptr = 0;
+int has_multitexture=1;
+.
+.
+.
+/* Get function pointer */
+glActiveTextureARB_ptr=(GL_ActiveTextureARB_Func) SDL_GL_GetProcAddress("glActiveTextureARB");
+
+/* Check for a valid function ptr */
+if(!glActiveTextureARB_ptr){
+  fprintf(stderr, "Multitexture Extensions not present.\n");
+  has_multitexture=0;
+}
+.
+.
+.
+.
+if(has_multitexture){
+  glActiveTextureARB_ptr(GL_TEXTURE0_ARB);
+  .
+  .
+}
+else{
+  .
+  .
+}

PrevHomeNext
SDL_GL_LoadLibraryUpSDL_GL_GetAttribute
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlglloadlibrary.html b/lib/sdl/msvc/docs/html/sdlglloadlibrary.html new file mode 100644 index 0000000000000000000000000000000000000000..d3c4c6d79dd3099b70d8c4ec2a8c63fa1b705fb2 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlglloadlibrary.html @@ -0,0 +1,231 @@ +SDL_GL_LoadLibrary
SDL Library Documentation
PrevNext

SDL_GL_LoadLibrary

Name

SDL_GL_LoadLibrary -- Specify an OpenGL library

Synopsis

#include "SDL.h"

int SDL_GL_LoadLibrary(const char *path);

Description

If you wish, you may load the OpenGL library at runtime, this must be done before SDL_SetVideoMode is called. The path of the GL library is passed to SDL_GL_LoadLibrary and it returns 0 on success, or -1 on an error. You must then use SDL_GL_GetProcAddress to retrieve function pointers to GL functions.


PrevHomeNext
SDL_ShowCursorUpSDL_GL_GetProcAddress
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlglsetattribute.html b/lib/sdl/msvc/docs/html/sdlglsetattribute.html new file mode 100644 index 0000000000000000000000000000000000000000..ffb1204b0e005fe6cd59cd872449c62fda5c379d --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlglsetattribute.html @@ -0,0 +1,286 @@ +SDL_GL_SetAttribute
SDL Library Documentation
PrevNext

SDL_GL_SetAttribute

Name

SDL_GL_SetAttribute -- Set a special SDL/OpenGL attribute

Synopsis

#include "SDL.h"

int SDL_GL_SetAttribute(SDL_GLattr attr, int value);

Description

Sets the OpenGL attribute attr to value. The attributes you set don't take effect until after a call to SDL_SetVideoMode. You should use SDL_GL_GetAttribute to check the values after a SDL_SetVideoMode call.

Return Value

Returns 0 on success, or -1 on error.

Example

SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 );
+SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 );
+SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 );
+SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
+SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
+if ( (screen=SDL_SetVideoMode( 640, 480, 16, SDL_OPENGL )) == NULL ) {
+  fprintf(stderr, "Couldn't set GL mode: %s\n", SDL_GetError());
+  SDL_Quit();
+  return;
+}

Note: The SDL_DOUBLEBUF flag is not required to enable double buffering when setting an OpenGL video mode. Double buffering is enabled or disabled using the SDL_GL_DOUBLEBUFFER attribute.


PrevHomeNext
SDL_GL_GetAttributeUpSDL_GL_SwapBuffers
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlglswapbuffers.html b/lib/sdl/msvc/docs/html/sdlglswapbuffers.html new file mode 100644 index 0000000000000000000000000000000000000000..fa383414d4d07705fc7d2f1726d2e51a58d93c9b --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlglswapbuffers.html @@ -0,0 +1,212 @@ +SDL_GL_SwapBuffers
SDL Library Documentation
PrevNext

SDL_GL_SwapBuffers

Name

SDL_GL_SwapBuffers -- Swap OpenGL framebuffers/Update Display

Synopsis

#include "SDL.h"

void SDL_GL_SwapBuffers(void );

Description

Swap the OpenGL buffers, if double-buffering is supported.


PrevHomeNext
SDL_GL_SetAttributeUpSDL_CreateYUVOverlay
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlinit.html b/lib/sdl/msvc/docs/html/sdlinit.html new file mode 100644 index 0000000000000000000000000000000000000000..11f27b81d1652fd907d3e07d3a44c9c94fb4c887 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlinit.html @@ -0,0 +1,368 @@ +SDL_Init
SDL Library Documentation
PrevNext

SDL_Init

Name

SDL_Init -- Initializes SDL

Synopsis

#include "SDL.h"

int SDL_Init(Uint32 flags);

Description

Initializes SDL. This should be called before all other SDL functions. The flags parameter specifies what part(s) of SDL to initialize.

SDL_INIT_TIMERInitializes the timer subsystem.
SDL_INIT_AUDIOInitializes the audio subsystem.
SDL_INIT_VIDEOInitializes the video subsystem.
SDL_INIT_CDROMInitializes the cdrom subsystem.
SDL_INIT_JOYSTICKInitializes the joystick subsystem.
SDL_INIT_EVERYTHINGInitialize all of the above.
SDL_INIT_NOPARACHUTEPrevents SDL from catching fatal signals.
SDL_INIT_EVENTTHREAD 

Return Value

Returns -1 on an error or 0 on success.


PrevHomeNext
GeneralUpSDL_InitSubSystem
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlinitsubsystem.html b/lib/sdl/msvc/docs/html/sdlinitsubsystem.html new file mode 100644 index 0000000000000000000000000000000000000000..917fd1068e0f59bab51264b9113c45f3b106c7ab --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlinitsubsystem.html @@ -0,0 +1,283 @@ +SDL_InitSubSystem
SDL Library Documentation
PrevNext

SDL_InitSubSystem

Name

SDL_InitSubSystem -- Initialize subsystems

Synopsis

#include "SDL.h"

int SDL_InitSubSystem(Uint32 flags);

Description

After SDL has been initialized with SDL_Init you may initialize uninitialized subsystems with SDL_InitSubSystem. The flags parameter is the same as that used in SDL_Init.

Examples

/* Seperating Joystick and Video initialization. */
+SDL_Init(SDL_INIT_VIDEO);
+.
+.
+SDL_SetVideoMode(640, 480, 16, SDL_DOUBLEBUF|SDL_FULLSCREEN);
+.
+/* Do Some Video stuff */
+.
+.
+/* Initialize the joystick subsystem */
+SDL_InitSubSystem(SDL_INIT_JOYSTICK);
+
+/* Do some stuff with video and joystick */
+.
+.
+.
+/* Shut them both down */
+SDL_Quit();

Return Value

Returns -1 on an error or 0 on success.


PrevHomeNext
SDL_InitUpSDL_QuitSubSystem
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoyaxisevent.html b/lib/sdl/msvc/docs/html/sdljoyaxisevent.html new file mode 100644 index 0000000000000000000000000000000000000000..9f0166959f0ed40852089614e1dd58e3a0abf9d3 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoyaxisevent.html @@ -0,0 +1,330 @@ +SDL_JoyAxisEvent
SDL Library Documentation
PrevNext

SDL_JoyAxisEvent

Name

SDL_JoyAxisEvent -- Joystick axis motion event structure

Structure Definition

typedef struct{
+  Uint8 type;
+  Uint8 which;
+  Uint8 axis;
+  Sint16 value;
+} SDL_JoyAxisEvent;

Structure Data

typeSDL_JOYAXISMOTION
whichJoystick device index
axisJoystick axis index
valueAxis value (range: -32768 to 32767)

Description

SDL_JoyAxisEvent is a member of the SDL_Event union and is used when an event of type SDL_JOYAXISMOTION is reported.

A SDL_JOYAXISMOTION event occurs when ever a user moves an axis on the joystick. The field which is the index of the joystick that reported the event and axis is the index of the axis (for a more detailed explaination see the Joystick section). value is the current position of the axis.


PrevHomeNext
SDL_MouseButtonEventUpSDL_JoyButtonEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoyballevent.html b/lib/sdl/msvc/docs/html/sdljoyballevent.html new file mode 100644 index 0000000000000000000000000000000000000000..4ab96fe0e83393f66c5469959366c13ef4140d8d --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoyballevent.html @@ -0,0 +1,340 @@ +SDL_JoyBallEvent
SDL Library Documentation
PrevNext

SDL_JoyBallEvent

Name

SDL_JoyBallEvent -- Joystick trackball motion event structure

Structure Definition

typedef struct{
+  Uint8 type;
+  Uint8 which;
+  Uint8 ball;
+  Sint16 xrel, yrel;
+} SDL_JoyBallEvent;

Structure Data

typeSDL_JOYBALLMOTION
whichJoystick device index
ballJoystick trackball index
xrel, yrelThe relative motion in the X/Y direction

Description

SDL_JoyBallEvent is a member of the SDL_Event union and is used when an event of type SDL_JOYBALLMOTION is reported.

A SDL_JOYBALLMOTION event occurs when a user moves a trackball on the joystick. The field which is the index of the joystick that reported the event and ball is the index of the trackball (for a more detailed explaination see the Joystick section). Trackballs only return relative motion, this is the change in position on the ball since it was last polled (last cycle of the event loop) and it is stored in xrel and yrel.


PrevHomeNext
SDL_JoyHatEventUpSDL_ResizeEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoybuttonevent.html b/lib/sdl/msvc/docs/html/sdljoybuttonevent.html new file mode 100644 index 0000000000000000000000000000000000000000..d1d9c1ef638d0dc9fbcd2a3c16cbecccba7ddbc2 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoybuttonevent.html @@ -0,0 +1,351 @@ +SDL_JoyButtonEvent
SDL Library Documentation
PrevNext

SDL_JoyButtonEvent

Name

SDL_JoyButtonEvent -- Joystick button event structure

Structure Definition

typedef struct{
+  Uint8 type;
+  Uint8 which;
+  Uint8 button;
+  Uint8 state;
+} SDL_JoyButtonEvent;

Structure Data

typeSDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP
whichJoystick device index
buttonJoystick button index
stateSDL_PRESSED or SDL_RELEASED

Description

SDL_JoyButtonEvent is a member of the SDL_Event union and is used when an event of type SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP is reported.

A SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP event occurs when ever a user presses or releases a button on a joystick. The field which is the index of the joystick that reported the event and button is the index of the button (for a more detailed explaination see the Joystick section). state is the current state or the button which is either SDL_PRESSED or SDL_RELEASED.


PrevHomeNext
SDL_JoyAxisEventUpSDL_JoyHatEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoyhatevent.html b/lib/sdl/msvc/docs/html/sdljoyhatevent.html new file mode 100644 index 0000000000000000000000000000000000000000..5e115be2316b524d7bae33ccbff8336a8065ac93 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoyhatevent.html @@ -0,0 +1,413 @@ +SDL_JoyHatEvent
SDL Library Documentation
PrevNext

SDL_JoyHatEvent

Name

SDL_JoyHatEvent -- Joystick hat position change event structure

Structure Definition

typedef struct{
+  Uint8 type;
+  Uint8 which;
+  Uint8 hat;
+  Uint8 value;
+} SDL_JoyHatEvent;

Structure Data

typeSDL_JOY
whichJoystick device index
hatJoystick hat index
valueHat position

Description

SDL_JoyHatEvent is a member of the SDL_Event union and is used when an event of type SDL_JOYHATMOTION is reported.

A SDL_JOYHATMOTION event occurs when ever a user moves a hat on the joystick. The field which is the index of the joystick that reported the event and hat is the index of the hat (for a more detailed exlaination see the Joystick section). value is the current position of the hat. It is a logically OR'd combination of the following values (whose meanings should be pretty obvious:) :

SDL_HAT_CENTERED
SDL_HAT_UP
SDL_HAT_RIGHT
SDL_HAT_DOWN
SDL_HAT_LEFT

The following defines are also provided:

SDL_HAT_RIGHTUP
SDL_HAT_RIGHTDOWN
SDL_HAT_LEFTUP
SDL_HAT_LEFTDOWN


PrevHomeNext
SDL_JoyButtonEventUpSDL_JoyBallEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickclose.html b/lib/sdl/msvc/docs/html/sdljoystickclose.html new file mode 100644 index 0000000000000000000000000000000000000000..efb44e0fe6ca9a09df7ef324f3e851317438d46d --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickclose.html @@ -0,0 +1,223 @@ +SDL_JoystickClose
SDL Library Documentation
PrevNext

SDL_JoystickClose

Name

SDL_JoystickClose -- Closes a previously opened joystick

Synopsis

#include "SDL.h"

void SDL_JoystickClose(SDL_Joystick *joystick);

Description

Close a joystick that was previously opened with SDL_JoystickOpen.


PrevHomeNext
SDL_JoystickGetBallUpAudio
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickeventstate.html b/lib/sdl/msvc/docs/html/sdljoystickeventstate.html new file mode 100644 index 0000000000000000000000000000000000000000..11b148a126047f2a2a263b4d5c0690d8bbd80e6f --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickeventstate.html @@ -0,0 +1,290 @@ +SDL_JoystickEventState
SDL Library Documentation
PrevNext

SDL_JoystickEventState

Name

SDL_JoystickEventState -- Enable/disable joystick event polling

Synopsis

#include "SDL.h"

int SDL_JoystickEventState(int state);

Description

This function is used to enable or disable joystick event processing. With joystick event processing disabled you will have to update joystick states with SDL_JoystickUpdate and read the joystick information manually. state is either SDL_QUERY, SDL_ENABLE or SDL_IGNORE.

Note: Joystick event handling is prefered

Return Value

If state is SDL_QUERY then the current state is returned, otherwise the new processing state is returned.


PrevHomeNext
SDL_GetAppStateUpJoystick
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickgetaxis.html b/lib/sdl/msvc/docs/html/sdljoystickgetaxis.html new file mode 100644 index 0000000000000000000000000000000000000000..40a17b4cc2d4e46bd66cd549440a8df0b678cd7f --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickgetaxis.html @@ -0,0 +1,271 @@ +SDL_JoystickGetAxis
SDL Library Documentation
PrevNext

SDL_JoystickGetAxis

Name

SDL_JoystickGetAxis -- Get the current state of an axis

Synopsis

#include "SDL.h"

Sint16 SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis);

Description

SDL_JoystickGetAxis returns the current state of the given axis on the given joystick.

On most modern joysticks the X axis is usually represented by axis 0 and the Y axis by axis 1. The value returned by SDL_JoystickGetAxis is a signed integer (-32768 to 32768) representing the current position of the axis, it maybe necessary to impose certain tolerances on these values to account for jitter. It is worth noting that some joysticks use axes 2 and 3 for extra buttons.

Return Value

Returns a 16-bit signed integer representing the current position of the axis.

Examples

Sint16 x_move, y_move;
+SDL_Joystick *joy1;
+.
+.
+x_move=SDL_JoystickGetAxis(joy1, 0);
+y_move=SDL_JoystickGetAxis(joy1, 1);


PrevHomeNext
SDL_JoystickUpdateUpSDL_JoystickGetHat
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickgetball.html b/lib/sdl/msvc/docs/html/sdljoystickgetball.html new file mode 100644 index 0000000000000000000000000000000000000000..0da252ab1a5cd52e7e89236e46f6869980a986e8 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickgetball.html @@ -0,0 +1,262 @@ +SDL_JoystickGetBall
SDL Library Documentation
PrevNext

SDL_JoystickGetBall

Name

SDL_JoystickGetBall -- Get relative trackball motion

Synopsis

#include "SDL.h"

int SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy);

Description

Get the ball axis change.

Trackballs can only return relative motion since the last call to SDL_JoystickGetBall, these motion deltas a placed into dx and dy.

Return Value

Returns 0 on success or -1 on failure

Examples

int delta_x, delta_y;
+SDL_Joystick *joy;
+.
+.
+.
+SDL_JoystickUpdate();
+if(SDL_JoystickGetBall(joy, 0, &delta_x, &delta_y)==-1)
+  printf("TrackBall Read Error!\n");
+printf("Trackball Delta- X:%d, Y:%d\n", delta_x, delta_y);


PrevHomeNext
SDL_JoystickGetButtonUpSDL_JoystickClose
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickgetbutton.html b/lib/sdl/msvc/docs/html/sdljoystickgetbutton.html new file mode 100644 index 0000000000000000000000000000000000000000..680e3569d05a3081c89d68c7aa6da7e6b29f81a0 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickgetbutton.html @@ -0,0 +1,231 @@ +SDL_JoystickGetButton
SDL Library Documentation
PrevNext

SDL_JoystickGetButton

Name

SDL_JoystickGetButton -- Get the current state of a given button on a given joystick

Synopsis

#include "SDL.h"

Uint8 SDL_JoystickGetButton(SDL_Joystick *joystick, int button);

Description

SDL_JoystickGetButton returns the current state of the given button on the given joystick.

Return Value

1 if the button is pressed. Otherwise, 0.


PrevHomeNext
SDL_JoystickGetHatUpSDL_JoystickGetBall
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickgethat.html b/lib/sdl/msvc/docs/html/sdljoystickgethat.html new file mode 100644 index 0000000000000000000000000000000000000000..c638abb7c235c7436561d40633ddb9171af36992 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickgethat.html @@ -0,0 +1,297 @@ +SDL_JoystickGetHat
SDL Library Documentation
PrevNext

SDL_JoystickGetHat

Name

SDL_JoystickGetHat -- Get the current state of a joystick hat

Synopsis

#include "SDL.h"

Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);

Description

SDL_JoystickGetHat returns the current state of the given hat on the given joystick.

Return Value

The current state is returned as a Uint8 which is defined as an OR'd combination of one or more of the following

SDL_HAT_CENTERED
SDL_HAT_UP
SDL_HAT_RIGHT
SDL_HAT_DOWN
SDL_HAT_LEFT
SDL_HAT_RIGHTUP
SDL_HAT_RIGHTDOWN
SDL_HAT_LEFTUP
SDL_HAT_LEFTDOWN


PrevHomeNext
SDL_JoystickGetAxisUpSDL_JoystickGetButton
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickindex.html b/lib/sdl/msvc/docs/html/sdljoystickindex.html new file mode 100644 index 0000000000000000000000000000000000000000..868a75addb6b033ead51735caca43cba7097b8cf --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickindex.html @@ -0,0 +1,218 @@ +SDL_JoystickIndex
SDL Library Documentation
PrevNext

SDL_JoystickIndex

Name

SDL_JoystickIndex -- Get the index of an SDL_Joystick.

Synopsis

#include "SDL.h"

int SDL_JoystickIndex(SDL_Joystick *joystick);

Description

Returns the index of a given SDL_Joystick structure.

Return Value

Index number of the joystick.


PrevHomeNext
SDL_JoystickOpenedUpSDL_JoystickNumAxes
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickname.html b/lib/sdl/msvc/docs/html/sdljoystickname.html new file mode 100644 index 0000000000000000000000000000000000000000..0add817dc5e9d8a791f5e2bb53b4146a3d57af9d --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickname.html @@ -0,0 +1,238 @@ +SDL_JoystickName
SDL Library Documentation
PrevNext

SDL_JoystickName

Name

SDL_JoystickName -- Get joystick name.

Synopsis

#include "SDL.h"

const char *SDL_JoystickName(int index);

Description

Get the implementation dependent name of joystick. The index parameter refers to the N'th joystick on the system.

Return Value

Returns a char pointer to the joystick name.

Examples

/* Print the names of all attached joysticks */
+int num_joy, i;
+num_joy=SDL_NumJoysticks();
+printf("%d joysticks found\n", num_joy);
+for(i=0;i<num_joy;i++)
+  printf("%s\n", SDL_JoystickName(i));


PrevHomeNext
SDL_NumJoysticksUpSDL_JoystickOpen
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoysticknumaxes.html b/lib/sdl/msvc/docs/html/sdljoysticknumaxes.html new file mode 100644 index 0000000000000000000000000000000000000000..53b67f52394d0496fdefd561e332580d029d796c --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoysticknumaxes.html @@ -0,0 +1,225 @@ +SDL_JoystickNumAxes
SDL Library Documentation
PrevNext

SDL_JoystickNumAxes

Name

SDL_JoystickNumAxes -- Get the number of joystick axes

Synopsis

#include "SDL.h"

int SDL_JoystickNumAxes(SDL_Joystick *joystick);

Description

Return the number of axes available from a previously opened SDL_Joystick.

Return Value

Number of axes.


PrevHomeNext
SDL_JoystickIndexUpSDL_JoystickNumBalls
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoysticknumballs.html b/lib/sdl/msvc/docs/html/sdljoysticknumballs.html new file mode 100644 index 0000000000000000000000000000000000000000..0a8405dc930423c23013371b6a5c51cb07a776b5 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoysticknumballs.html @@ -0,0 +1,225 @@ +SDL_JoystickNumBalls
SDL Library Documentation
PrevNext

SDL_JoystickNumBalls

Name

SDL_JoystickNumBalls -- Get the number of joystick trackballs

Synopsis

#include "SDL.h"

int SDL_JoystickNumBalls(SDL_Joystick *joystick);

Description

Return the number of trackballs available from a previously opened SDL_Joystick.

Return Value

Number of trackballs.


PrevHomeNext
SDL_JoystickNumAxesUpSDL_JoystickNumHats
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoysticknumbuttons.html b/lib/sdl/msvc/docs/html/sdljoysticknumbuttons.html new file mode 100644 index 0000000000000000000000000000000000000000..625b893a6a2301d184ae888bde281544c5f96396 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoysticknumbuttons.html @@ -0,0 +1,225 @@ +SDL_JoystickNumButtons
SDL Library Documentation
PrevNext

SDL_JoystickNumButtons

Name

SDL_JoystickNumButtons -- Get the number of joysitck buttons

Synopsis

#include "SDL.h"

int SDL_JoystickNumButtons(SDL_Joystick *joystick);

Description

Return the number of buttons available from a previously opened SDL_Joystick.

Return Value

Number of buttons.


PrevHomeNext
SDL_JoystickNumHatsUpSDL_JoystickUpdate
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoysticknumhats.html b/lib/sdl/msvc/docs/html/sdljoysticknumhats.html new file mode 100644 index 0000000000000000000000000000000000000000..ed53235854766bdbddfb0264ece1ae0756bcaa85 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoysticknumhats.html @@ -0,0 +1,225 @@ +SDL_JoystickNumHats
SDL Library Documentation
PrevNext

SDL_JoystickNumHats

Name

SDL_JoystickNumHats -- Get the number of joystick hats

Synopsis

#include "SDL.h"

int SDL_JoystickNumHats(SDL_Joystick *joystick);

Description

Return the number of hats available from a previously opened SDL_Joystick.

Return Value

Number of hats.


PrevHomeNext
SDL_JoystickNumBallsUpSDL_JoystickNumButtons
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickopen.html b/lib/sdl/msvc/docs/html/sdljoystickopen.html new file mode 100644 index 0000000000000000000000000000000000000000..e608c4370f7a2db71891cd34bd3edf159a696c03 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickopen.html @@ -0,0 +1,259 @@ +SDL_JoystickOpen
SDL Library Documentation
PrevNext

SDL_JoystickOpen

Name

SDL_JoystickOpen -- Opens a joystick for use.

Synopsis

#include "SDL.h"

SDL_Joystick *SDL_JoystickOpen(int index);

Description

Opens a joystick for use within SDL. The index refers to the N'th joystick in the system. A joystick must be opened before it game be used.

Return Value

Returns a SDL_Joystick structure on success. NULL on failure.

Examples

SDL_Joystick *joy;
+// Check for joystick
+if(SDL_NumJoysticks()>0){
+  // Open joystick
+  joy=SDL_JoystickOpen(0);
+  
+  if(joy)
+  {
+    printf("Opened Joystick 0\n");
+    printf("Name: %s\n", SDL_JoystickName(0));
+    printf("Number of Axes: %d\n", SDL_JoystickNumAxes(joy));
+    printf("Number of Buttons: %d\n", SDL_JoystickNumButtons(joy));
+    printf("Number of Balls: %d\n", SDL_JoystickNumBalls(joy));
+  }
+  else
+    printf("Couldn't open Joystick 0\n");
+  
+  // Close if opened
+  if(SDL_JoystickOpened(0))
+    SDL_JoystickClose(joy);
+}


PrevHomeNext
SDL_JoystickNameUpSDL_JoystickOpened
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickopened.html b/lib/sdl/msvc/docs/html/sdljoystickopened.html new file mode 100644 index 0000000000000000000000000000000000000000..5275a099de81d5fcc06be314f717d38b87f935b3 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickopened.html @@ -0,0 +1,233 @@ +SDL_JoystickOpened
SDL Library Documentation
PrevNext

SDL_JoystickOpened

Name

SDL_JoystickOpened -- Determine if a joystick has been opened

Synopsis

#include "SDL.h"

int SDL_JoystickOpened(int index);

Description

Determines whether a joystick has already been opened within the application. index refers to the N'th joystick on the system.

Return Value

Returns 1 if the joystick has been opened, or 0 if it has not.


PrevHomeNext
SDL_JoystickOpenUpSDL_JoystickIndex
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdljoystickupdate.html b/lib/sdl/msvc/docs/html/sdljoystickupdate.html new file mode 100644 index 0000000000000000000000000000000000000000..0cb37dc2261dc99e93489491c7f951a021334e6e --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdljoystickupdate.html @@ -0,0 +1,211 @@ +SDL_JoystickUpdate
SDL Library Documentation
PrevNext

SDL_JoystickUpdate

Name

SDL_JoystickUpdate -- Updates the state of all joysticks

Synopsis

#include "SDL.h"

void SDL_JoystickUpdate(void);

Description

Updates the state(position, buttons, etc.) of all open joysticks. If joystick events have been enabled with SDL_JoystickEventState then this is called automatically in the event loop.


PrevHomeNext
SDL_JoystickNumButtonsUpSDL_JoystickGetAxis
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlkey.html b/lib/sdl/msvc/docs/html/sdlkey.html new file mode 100644 index 0000000000000000000000000000000000000000..6591884d1e34b038474222b4e06087e8f72d9d0b --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlkey.html @@ -0,0 +1,2630 @@ +SDLKey
SDL Library Documentation
PrevNext

SDLKey

Name

SDLKey -- Keysym definitions.

Description

Table 8-1. SDL Keysym definitions

SDLKeyASCII valueCommon name
SDLK_BACKSPACE'\b'backspace
SDLK_TAB'\t'tab
SDLK_CLEAR clear
SDLK_RETURN'\r'return
SDLK_PAUSE pause
SDLK_ESCAPE'^['escape
SDLK_SPACE' 'space
SDLK_EXCLAIM'!'exclaim
SDLK_QUOTEDBL'"'quotedbl
SDLK_HASH'#'hash
SDLK_DOLLAR'$'dollar
SDLK_AMPERSAND'&'ampersand
SDLK_QUOTE'''quote
SDLK_LEFTPAREN'('left parenthesis
SDLK_RIGHTPAREN')'right parenthesis
SDLK_ASTERISK'*'asterisk
SDLK_PLUS'+'plus sign
SDLK_COMMA','comma
SDLK_MINUS'-'minus sign
SDLK_PERIOD'.'period
SDLK_SLASH'/'forward slash
SDLK_0'0'0
SDLK_1'1'1
SDLK_2'2'2
SDLK_3'3'3
SDLK_4'4'4
SDLK_5'5'5
SDLK_6'6'6
SDLK_7'7'7
SDLK_8'8'8
SDLK_9'9'9
SDLK_COLON':'colon
SDLK_SEMICOLON';'semicolon
SDLK_LESS'<'less-than sign
SDLK_EQUALS'='equals sign
SDLK_GREATER'>'greater-than sign
SDLK_QUESTION'?'question mark
SDLK_AT'@'at
SDLK_LEFTBRACKET'['left bracket
SDLK_BACKSLASH'\'backslash
SDLK_RIGHTBRACKET']'right bracket
SDLK_CARET'^'caret
SDLK_UNDERSCORE'_'underscore
SDLK_BACKQUOTE'`'grave
SDLK_a'a'a
SDLK_b'b'b
SDLK_c'c'c
SDLK_d'd'd
SDLK_e'e'e
SDLK_f'f'f
SDLK_g'g'g
SDLK_h'h'h
SDLK_i'i'i
SDLK_j'j'j
SDLK_k'k'k
SDLK_l'l'l
SDLK_m'm'm
SDLK_n'n'n
SDLK_o'o'o
SDLK_p'p'p
SDLK_q'q'q
SDLK_r'r'r
SDLK_s's's
SDLK_t't't
SDLK_u'u'u
SDLK_v'v'v
SDLK_w'w'w
SDLK_x'x'x
SDLK_y'y'y
SDLK_z'z'z
SDLK_DELETE'^?'delete
SDLK_KP0 keypad 0
SDLK_KP1 keypad 1
SDLK_KP2 keypad 2
SDLK_KP3 keypad 3
SDLK_KP4 keypad 4
SDLK_KP5 keypad 5
SDLK_KP6 keypad 6
SDLK_KP7 keypad 7
SDLK_KP8 keypad 8
SDLK_KP9 keypad 9
SDLK_KP_PERIOD'.'keypad period
SDLK_KP_DIVIDE'/'keypad divide
SDLK_KP_MULTIPLY'*'keypad multiply
SDLK_KP_MINUS'-'keypad minus
SDLK_KP_PLUS'+'keypad plus
SDLK_KP_ENTER'\r'keypad enter
SDLK_KP_EQUALS'='keypad equals
SDLK_UP up arrow
SDLK_DOWN down arrow
SDLK_RIGHT right arrow
SDLK_LEFT left arrow
SDLK_INSERT insert
SDLK_HOME home
SDLK_END end
SDLK_PAGEUP page up
SDLK_PAGEDOWN page down
SDLK_F1 F1
SDLK_F2 F2
SDLK_F3 F3
SDLK_F4 F4
SDLK_F5 F5
SDLK_F6 F6
SDLK_F7 F7
SDLK_F8 F8
SDLK_F9 F9
SDLK_F10 F10
SDLK_F11 F11
SDLK_F12 F12
SDLK_F13 F13
SDLK_F14 F14
SDLK_F15 F15
SDLK_NUMLOCK numlock
SDLK_CAPSLOCK capslock
SDLK_SCROLLOCK scrollock
SDLK_RSHIFT right shift
SDLK_LSHIFT left shift
SDLK_RCTRL right ctrl
SDLK_LCTRL left ctrl
SDLK_RALT right alt
SDLK_LALT left alt
SDLK_RMETA right meta
SDLK_LMETA left meta
SDLK_LSUPER left windows key
SDLK_RSUPER right windows key
SDLK_MODE mode shift
SDLK_HELP help
SDLK_PRINT print-screen
SDLK_SYSREQ SysRq
SDLK_BREAK break
SDLK_MENU menu
SDLK_POWER power
SDLK_EURO euro
+ +

Table 8-2. SDL modifier definitions

SDL ModifierMeaning
KMOD_NONENo modifiers applicable
KMOD_NUMNumlock is down
KMOD_CAPSCapslock is down
KMOD_LCTRLLeft Control is down
KMOD_RCTRLRight Control is down
KMOD_RSHIFTRight Shift is down
KMOD_LSHIFTLeft Shift is down
KMOD_RALTRight Alt is down
KMOD_LALTLeft Alt is down
KMOD_CTRLA Control key is down
KMOD_SHIFTA Shift key is down
KMOD_ALTAn Alt key is down


PrevHomeNext
SDL_keysymUpEvent Functions.
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlkeyboardevent.html b/lib/sdl/msvc/docs/html/sdlkeyboardevent.html new file mode 100644 index 0000000000000000000000000000000000000000..1a6962c74a5a95152f8dc4761f2dcafca620641c --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlkeyboardevent.html @@ -0,0 +1,375 @@ +SDL_KeyboardEvent
SDL Library Documentation
PrevNext

SDL_KeyboardEvent

Name

SDL_KeyboardEvent -- Keyboard event structure

Structure Definition

typedef struct{
+  Uint8 type;
+  Uint8 state;
+  SDL_keysym keysym;
+} SDL_KeyboardEvent;

Structure Data

typeSDL_KEYDOWN or SDL_KEYUP
stateSDL_PRESSED or SDL_RELEASED
keysymContains key press information

Description

SDL_KeyboardEvent is a member of the SDL_Event union and is used when an event of type SDL_KEYDOWN or SDL_KEYUP is reported.

The type and state actually report the same information, they just use different values to do it! A keyboard event occurs when a key is released (type=SDK_KEYUP or state=SDL_RELEASED) and when a key is pressed (type=SDL_KEYDOWN or state=SDL_PRESSED). The information on what key was pressed or released is in the keysym structure.

Note: Repeating SDL_KEYDOWN events will occur if key repeat is enabled (see SDL_EnableKeyRepeat).


PrevHomeNext
SDL_ActiveEventUpSDL_MouseMotionEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlkeysym.html b/lib/sdl/msvc/docs/html/sdlkeysym.html new file mode 100644 index 0000000000000000000000000000000000000000..7a22f795136dc8a3f1dbbe309d5a57d86544fa2e --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlkeysym.html @@ -0,0 +1,355 @@ +SDL_keysym
SDL Library Documentation
PrevNext

SDL_keysym

Name

SDL_keysym -- Keysym structure

Structure Definition

typedef struct{
+  Uint8 scancode;
+  SDLKey sym;
+  SDLMod mod;
+  Uint16 unicode;
+} SDL_keysym;

Structure Data

scancodeHardware specific scancode
symSDL virtual keysym
modCurrent key modifiers
unicodeTranslated character

Description

The SDL_keysym structure is used by reporting key presses and releases since it is a part of the SDL_KeyboardEvent.

The scancode field should generally be left alone, it is the hardware dependent scancode returned by the keyboard. The sym field is extremely useful. It is the SDL-defined value of the key (see SDL Key Syms. This field is very useful when you are checking for certain key presses, like so: +

.
+.
+while(SDL_PollEvent(&event)){
+  switch(event.type){
+    case SDL_KEYDOWN:
+      if(event.key.keysym.sym==SDLK_LEFT)
+        move_left();
+      break;
+    .
+    .
+    .
+  }
+}
+.
+.
+mod stores the current state of the keyboard modifiers as explained in SDL_GetModState. The unicode is only used when UNICODE translation is enabled with SDL_EnableUNICODE. If unicode is non-zero then this a the UNICODE character corresponding to the keypress. If the high 9 bits of the character are 0, then this maps to the equivalent ASCII character: +
char ch;
+if ( (keysym.unicode & 0xFF80) == 0 ) {
+  ch = keysym.unicode & 0x7F;
+}
+else {
+  printf("An International Character.\n");
+}
+UNICODE translation does have a slight overhead so don't enable it unless its needed.

See Also

SDLKey


PrevHomeNext
SDL_QuitEventUpSDLKey
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlkillthread.html b/lib/sdl/msvc/docs/html/sdlkillthread.html new file mode 100644 index 0000000000000000000000000000000000000000..2ce7b9b58f84ae3b0fe9d64f1c1825ead1290d7b --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlkillthread.html @@ -0,0 +1,223 @@ +SDL_KillThread
SDL Library Documentation
PrevNext

SDL_KillThread

Name

SDL_KillThread -- Gracelessly terminates the thread.

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

void SDL_KillThread(SDL_Thread *thread);

Description

SDL_KillThread gracelessly terminates the thread +associated with thread. If possible, you should +use some other form of IPC to signal the thread to quit.


PrevHomeNext
SDL_WaitThreadUpSDL_CreateMutex
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdllistmodes.html b/lib/sdl/msvc/docs/html/sdllistmodes.html new file mode 100644 index 0000000000000000000000000000000000000000..ee7bc0eeecf0ad9d37f5f35b3328fa9cb61898a2 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdllistmodes.html @@ -0,0 +1,310 @@ +SDL_ListModes
SDL Library Documentation
PrevNext

SDL_ListModes

Name

SDL_ListModes -- Returns a pointer to an array of available screen dimensions for +the given format and video flags

Synopsis

#include "SDL.h"

SDL_Rect **SDL_ListModes(SDL_PixelFormat *format, Uint32 flags);

Description

Return a pointer to an array of available screen dimensions for the given +format and video flags, sorted largest to smallest. Returns +NULL if there are no dimensions available for a particular +format, or -1 if any dimension is okay for +the given format.

If format is NULL, the mode list +will be for the format returned by SDL_GetVideoInfo()->vfmt. The flag parameter is an OR'd combination of surface flags. The flags are the same as those used SDL_SetVideoMode and they play a strong role in deciding what modes are valid. For instance, if you pass SDL_HWSURFACE as a flag only modes that support hardware video surfaces will be returned.

Example

SDL_Rect **modes;
+int i;
+.
+.
+.
+
+/* Get available fullscreen/hardware modes */
+modes=SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE);
+
+/* Check is there are any modes available */
+if(modes == (SDL_Rect **)0){
+  printf("No modes available!\n");
+  exit(-1);
+}
+
+/* Check if our resolution is restricted */
+if(modes == (SDL_Rect **)-1){
+  printf("All resolutions available.\n");
+}
+else{
+  /* Print valid modes */
+  printf("Available Modes\n");
+  for(i=0;modes[i];++i)
+    printf("  %d x %d\n", modes[i]->w, modes[i]->h);
+}
+.
+.

PrevHomeNext
SDL_VideoDriverNameUpSDL_VideoModeOK
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlloadbmp.html b/lib/sdl/msvc/docs/html/sdlloadbmp.html new file mode 100644 index 0000000000000000000000000000000000000000..41556e34ae87fabf050fe72860d592b381deb275 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlloadbmp.html @@ -0,0 +1,219 @@ +SDL_LoadBMP
SDL Library Documentation
PrevNext

SDL_LoadBMP

Name

SDL_LoadBMP -- Load a Windows BMP file into an SDL_Surface.

Synopsis

#include "SDL.h"

SDL_Surface *SDL_LoadBMP(const char *file);

Description

Loads a surface from a named Windows BMP file.

Return Value

Returns the new surface, or NULL +if there was an error.

See Also

SDL_SaveBMP


PrevHomeNext
SDL_UnlockSurfaceUpSDL_SaveBMP
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlloadwav.html b/lib/sdl/msvc/docs/html/sdlloadwav.html new file mode 100644 index 0000000000000000000000000000000000000000..8abb73ec366f3038b4d61264a971bff327d74104 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlloadwav.html @@ -0,0 +1,296 @@ +SDL_LoadWAV
SDL Library Documentation
PrevNext

SDL_LoadWAV

Name

SDL_LoadWAV -- Load a WAVE file

Synopsis

#include "SDL.h"

SDL_AudioSpec *SDL_LoadWAV(const char *file, SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len);

Description

SDL_LoadWAV +This function loads a WAVE file into memory.

If this function succeeds, it returns the given +SDL_AudioSpec, +filled with the audio data format of the wave data, and sets +audio_buf to a malloc'd +buffer containing the audio data, and sets audio_len +to the length of that audio buffer, in bytes. You need to free the audio +buffer with SDL_FreeWAV when you are +done with it.

This function returns NULL and sets the SDL +error message if the wave file cannot be opened, uses an unknown data format, +or is corrupt. Currently raw, MS-ADPCM and IMA-ADPCM WAVE files are supported.

Example

SDL_AudioSpec wav_spec;
+Uint32 wav_length;
+Uint8 *wav_buffer;
+
+/* Load the WAV */
+if( SDL_LoadWAV("test.wav", &wav_spec, &wav_buffer, &wav_length) == NULL ){
+  fprintf(stderr, "Could not open test.wav: %s\n", SDL_GetError());
+  exit(-1);
+}
+.
+.
+.
+/* Do stuff with the WAV */
+.
+.
+/* Free It */
+SDL_FreeWAV(wav_buffer);

PrevHomeNext
SDL_GetAudioStatusUpSDL_FreeWAV
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdllockaudio.html b/lib/sdl/msvc/docs/html/sdllockaudio.html new file mode 100644 index 0000000000000000000000000000000000000000..0e6fc292b4db8c10c143a834c1e722f48eca4f89 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdllockaudio.html @@ -0,0 +1,208 @@ +SDL_LockAudio
SDL Library Documentation
PrevNext

SDL_LockAudio

Name

SDL_LockAudio -- Lock out the callback function

Synopsis

#include "SDL.h"

void SDL_LockAudio(void);

Description

The lock manipulated by these functions protects the callback function. +During a LockAudio period, you can be guaranteed that the +callback function is not running. Do not call these from the callback +function or you will cause deadlock.


PrevHomeNext
SDL_MixAudioUpSDL_UnlockAudio
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdllocksurface.html b/lib/sdl/msvc/docs/html/sdllocksurface.html new file mode 100644 index 0000000000000000000000000000000000000000..40c8959ea025ce28b2898e3a10e818d4bd548e9f --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdllocksurface.html @@ -0,0 +1,306 @@ +SDL_LockSurface
SDL Library Documentation
PrevNext

SDL_LockSurface

Name

SDL_LockSurface -- Lock a surface for directly access.

Synopsis

#include "SDL.h"

int SDL_LockSurface(SDL_Surface *surface);

Description

SDL_LockSurface sets up a surface for directly +accessing the pixels. Between calls to SDL_LockSurface +and SDL_UnlockSurface, you can write to and read from +surface->pixels, using the pixel format stored in +surface->format. Once you are done accessing the +surface, you should use SDL_UnlockSurface to release it.

Not all surfaces require locking. +If SDL_MUSTLOCK(surface) +evaluates to 0, then you can read and write to the +surface at any time, and the pixel format of the surface will not change.

No operating system or library calls should be made between lock/unlock +pairs, as critical system locks may be held during this time.

It should be noted, that since SDL 1.1.8 surface locks are recursive. This means that you can lock a surface multiple times, but each lock must have a match unlock. +

    .
+    .
+    SDL_LockSurface( surface );
+    .
+    /* Surface is locked */
+    /* Direct pixel access on surface here */
+    .
+    SDL_LockSurface( surface );
+    .
+    /* More direct pixel access on surface */
+    .
+    SDL_UnlockSurface( surface );
+    /* Surface is still locked */
+    /* Note: Is versions < 1.1.8, the surface would have been */
+    /* no longer locked at this stage                         */
+    .
+    SDL_UnlockSurface( surface );
+    /* Surface is now unlocked */
+    .
+    .

Return Value

SDL_LockSurface returns 0, +or -1 if the surface couldn't be locked.


PrevHomeNext
SDL_FreeSurfaceUpSDL_UnlockSurface
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdllockyuvoverlay.html b/lib/sdl/msvc/docs/html/sdllockyuvoverlay.html new file mode 100644 index 0000000000000000000000000000000000000000..74e6ce673dba1e186746e1613f77878e98a1caa0 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdllockyuvoverlay.html @@ -0,0 +1,252 @@ +SDL_LockYUVOverlay
SDL Library Documentation
PrevNext

SDL_LockYUVOverlay

Name

SDL_LockYUVOverlay -- Lock an overlay

Synopsis

#include "SDL.h"

int SDL_LockYUVOverlay(SDL_Overlay *overlay);

Description

Much the same as SDL_LockSurface, SDL_LockYUVOverlay locks the overlay for direct access to pixel data.

Return Value

Returns 0 on success, or -1 on an error.


PrevHomeNext
SDL_CreateYUVOverlayUpSDL_UnlockYUVOverlay
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlmaprgb.html b/lib/sdl/msvc/docs/html/sdlmaprgb.html new file mode 100644 index 0000000000000000000000000000000000000000..5086d0c7dca8b7b700cde9c60ef06c11870e2af1 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlmaprgb.html @@ -0,0 +1,254 @@ +SDL_MapRGB
SDL Library Documentation
PrevNext

SDL_MapRGB

Name

SDL_MapRGB -- Map a RGB color value to a pixel format.

Synopsis

#include "SDL.h"

Uint32 SDL_MapRGB(SDL_PixelFormat *fmt, Uint8 r, Uint8 g, Uint8 b);

Description

Maps the RGB color value to the specified pixel format and returns the +pixel value as a 32-bit int.

If the format has a palette (8-bit) the index of the closest matching +color in the palette will be returned.

If the specified pixel format has an alpha component it will be returned +as all 1 bits (fully opaque).

Return Value

A pixel value best approximating the given RGB color value for a given +pixel format. If the pixel format bpp (color depth) is less than 32-bpp +then the unused upper bits of the return value can safely be ignored +(e.g., with a 16-bpp format the return value can be assigned to a +Uint16, and similarly a Uint8 for an 8-bpp +format).


PrevHomeNext
SDL_SetGammaRampUpSDL_MapRGBA
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlmaprgba.html b/lib/sdl/msvc/docs/html/sdlmaprgba.html new file mode 100644 index 0000000000000000000000000000000000000000..e6bff276f770f121e1009482c4339f039aa96036 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlmaprgba.html @@ -0,0 +1,242 @@ +SDL_MapRGBA
SDL Library Documentation
PrevNext

SDL_MapRGBA

Name

SDL_MapRGBA -- Map a RGBA color value to a pixel format.

Synopsis

#include "SDL.h"

Uint32 SDL_MapRGBA(SDL_PixelFormat *fmt, Uint8 r, Uint8 g, Uint8 b, Uint8 a);

Description

Maps the RGBA color value to the specified pixel format and returns the +pixel value as a 32-bit int.

If the format has a palette (8-bit) the index of the closest matching +color in the palette will be returned.

If the specified pixel format has no alpha component the alpha value +will be ignored (as it will be in formats with a palette).

Return Value

A pixel value best approximating the given RGBA color value for a given +pixel format. If the pixel format bpp (color depth) is less than 32-bpp +then the unused upper bits of the return value can safely be ignored +(e.g., with a 16-bpp format the return value can be assigned to a +Uint16, and similarly a Uint8 for an 8-bpp +format).


PrevHomeNext
SDL_MapRGBUpSDL_GetRGB
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlmixaudio.html b/lib/sdl/msvc/docs/html/sdlmixaudio.html new file mode 100644 index 0000000000000000000000000000000000000000..6cbf0f0dbd4baa642bf9aadfd6dd21938965402d --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlmixaudio.html @@ -0,0 +1,237 @@ +SDL_MixAudio
SDL Library Documentation
PrevNext

SDL_MixAudio

Name

SDL_MixAudio -- Mix audio data

Synopsis

#include "SDL.h"

void SDL_MixAudio(Uint8 *dst, Uint8 *src, Uint32 len, int volume);

Description

This function takes two audio buffers of len bytes each +of the playing audio format and mixes them, performing addition, volume +adjustment, and overflow clipping. The volume ranges +from 0 to SDL_MIX_MAXVOLUME and should be set to the maximum +value for full audio volume. Note this does not change hardware volume. This is +provided for convenience -- you can mix your own audio data.

Note: Do not use this function for mixing together more than two streams of sample +data. The output from repeated application of this function may be distorted +by clipping, because there is no accumulator with greater range than the +input (not to mention this being an inefficient way of doing it). +Use mixing functions from SDL_mixer, OpenAL, or write your own mixer instead.


PrevHomeNext
SDL_ConvertAudioUpSDL_LockAudio
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlmousebuttonevent.html b/lib/sdl/msvc/docs/html/sdlmousebuttonevent.html new file mode 100644 index 0000000000000000000000000000000000000000..b0b40df97a7ef890a0400bb466809be717757c0c --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlmousebuttonevent.html @@ -0,0 +1,346 @@ +SDL_MouseButtonEvent
SDL Library Documentation
PrevNext

SDL_MouseButtonEvent

Name

SDL_MouseButtonEvent -- Mouse button event structure

Structure Definition

typedef struct{
+  Uint8 type;
+  Uint8 button;
+  Uint8 state;
+  Uint16 x, y;
+} SDL_MouseButtonEvent;

Structure Data

typeSDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP
buttonThe mouse button index (SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT)
stateSDL_PRESSED or SDL_RELEASED
x, yThe X/Y coordinates of the mouse at press/release time

Description

SDL_MouseButtonEvent is a member of the SDL_Event union and is used when an event of type SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP is reported.

When a mouse button press or release is detected then number of the button pressed (from 1 to 255, with 1 usually being the left button and 2 the right) is placed into button, the position of the mouse when this event occured is stored in the x and the y fields. Like SDL_KeyboardEvent, information on whether the event was a press or a release event is stored in both the type and state fields, but this should be obvious.


PrevHomeNext
SDL_MouseMotionEventUpSDL_JoyAxisEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlmousemotionevent.html b/lib/sdl/msvc/docs/html/sdlmousemotionevent.html new file mode 100644 index 0000000000000000000000000000000000000000..3cc7cb5c6adf74472fbd7ec31af6c1462b3a0b58 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlmousemotionevent.html @@ -0,0 +1,365 @@ +SDL_MouseMotionEvent
SDL Library Documentation
PrevNext

SDL_MouseMotionEvent

Name

SDL_MouseMotionEvent -- Mouse motion event structure

Structure Definition

typedef struct{
+  Uint8 type;
+  Uint8 state;
+  Uint16 x, y;
+  Sint16 xrel, yrel;
+} SDL_MouseMotionEvent;

Structure Data

typeSDL_MOUSEMOTION
stateThe current button state
x, yThe X/Y coordinates of the mouse
xrel, yrelRelative motion in the X/Y direction

Description

SDL_MouseMotionEvent is a member of the SDL_Event union and is used when an event of type SDL_MOUSEMOTION is reported.

Simply put, a SDL_MOUSEMOTION type event occurs when a user moves the mouse within the application window or when SDL_WarpMouse is called. Both the absolute (x and y) and relative (xrel and yrel) coordinates are reported along with the current button states (state). The button state can be interpreted using the SDL_BUTTON macro (see SDL_GetMouseState).

If the cursor is hidden (SDL_ShowCursor(0)) and the input is grabbed (SDL_WM_GrabInput(SDL_GRAB_ON)), then the mouse will give relative motion events even when the cursor reaches the edge fo the screen. This is currently only implemented on Windows and Linux/Unix-a-likes.


PrevHomeNext
SDL_KeyboardEventUpSDL_MouseButtonEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlmutexp.html b/lib/sdl/msvc/docs/html/sdlmutexp.html new file mode 100644 index 0000000000000000000000000000000000000000..fc32ca59961d2492620ea615420296c67665b8fe --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlmutexp.html @@ -0,0 +1,241 @@ +SDL_mutexP
SDL Library Documentation
PrevNext

SDL_mutexP

Name

SDL_mutexP -- Lock a mutex

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

int SDL_mutexP(SDL_mutex *mutex);

Description

Locks the mutex, which was previously created with SDL_CreateMutex. If the mutex is already locked then SDL_mutexP will not return until it is unlocked. Returns 0 on success, or -1 on an error.

SDL also defines a macro #define SDL_LockMutex(m) SDL_mutexP(m).


PrevHomeNext
SDL_DestroyMutexUpSDL_mutexV
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlmutexv.html b/lib/sdl/msvc/docs/html/sdlmutexv.html new file mode 100644 index 0000000000000000000000000000000000000000..06a68bdc5ebe5135213fd933dc999c9789abce7c --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlmutexv.html @@ -0,0 +1,235 @@ +SDL_mutexV
SDL Library Documentation
PrevNext

SDL_mutexV

Name

SDL_mutexV -- Unlock a mutex

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

int SDL_mutexV(SDL_mutex *mutex);

Description

Unlocks the mutex, which was previously created with SDL_CreateMutex. Returns 0 on success, or -1 on an error.

SDL also defines a macro #define SDL_UnlockMutex(m) SDL_mutexV(m).


PrevHomeNext
SDL_mutexPUpSDL_CreateSemaphore
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlnumjoysticks.html b/lib/sdl/msvc/docs/html/sdlnumjoysticks.html new file mode 100644 index 0000000000000000000000000000000000000000..68e3e3a72ee587bed9f098f50f192f02d63c255f --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlnumjoysticks.html @@ -0,0 +1,222 @@ +SDL_NumJoysticks
SDL Library Documentation
PrevNext

SDL_NumJoysticks

Name

SDL_NumJoysticks -- Count available joysticks.

Synopsis

#include "SDL.h"

int SDL_NumJoysticks(void);

Description

Counts the number of joysticks attached to the system.

Return Value

Returns the number of attached joysticks


PrevHomeNext
JoystickUpSDL_JoystickName
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlopenaudio.html b/lib/sdl/msvc/docs/html/sdlopenaudio.html new file mode 100644 index 0000000000000000000000000000000000000000..bcfed54a7f4ba0906aa9d9953d3c22a2e8dea9e7 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlopenaudio.html @@ -0,0 +1,578 @@ +SDL_OpenAudio
SDL Library Documentation
PrevNext

SDL_OpenAudio

Name

SDL_OpenAudio -- Opens the audio device with the desired parameters.

Synopsis

#include "SDL.h"

int SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained);

Description

This function opens the audio device with the desired parameters, and +returns 0 if successful, placing the actual hardware parameters in the +structure pointed to by obtained. If obtained is NULL, the audio +data passed to the callback function will be guaranteed to be in the +requested format, and will be automatically converted to the hardware +audio format if necessary. This function returns -1 if it failed +to open the audio device, or couldn't set up the audio thread.

To open the audio device a desired SDL_AudioSpec must be created. +

SDL_AudioSpec *desired;
+.
+.
+desired = malloc(sizeof(SDL_AudioSpec));
+You must then fill this structure with your desired audio specifications.

desired->freq

The desired audio frequency in samples-per-second.

desired->format

The desired audio format (see SDL_AudioSpec)

desired->samples

The desired size of the audio buffer in samples. This number should be a power of two, and may be adjusted by the audio driver to a value more suitable for the hardware. Good values seem to range between 512 and 8192 inclusive, depending on the application and CPU speed. Smaller values yield faster response time, but can lead to underflow if the application is doing heavy processing and cannot fill the audio buffer in time. A stereo sample consists of both right and left channels in LR ordering. Note that the number of samples is directly related to time by the following formula: ms = (samples*1000)/freq

desired->callback

This should be set to a function that will be called when the audio device is ready for more data. It is passed a pointer to the audio buffer, and the length in bytes of the audio buffer. This function usually runs in a separate thread, and so you should protect data structures that it accesses by calling SDL_LockAudio and SDL_UnlockAudio in your code. The callback prototype is: +

void callback(void *userdata, Uint8 *stream, int len);
+userdata is the pointer stored in userdata field of the SDL_AudioSpec. stream is a pointer to the audio buffer you want to fill with information and len is the length of the audio buffer in bytes.

desired->userdata

This pointer is passed as the first parameter to the callback function.

SDL_OpenAudio reads these fields from the desired SDL_AudioSpec structure pass to the function and attempts to find an audio configuration matching your desired. As mentioned above, if the obtained parameter is NULL then SDL with convert from your desired audio settings to the hardware settings as it plays.

If obtained is NULL then the desired SDL_AudioSpec is your working specification, otherwise the obtained SDL_AudioSpec becomes the working specification and the desirec specification can be deleted. The data in the working specification is used when building SDL_AudioCVT's for converting loaded data to the hardware format.

SDL_OpenAudio calculates the size and silence fields for both the desired and obtained specifications. The size field stores the total size of the audio buffer in bytes, while the silence stores the value used to represent silence in the audio buffer

The audio device starts out playing silence when it's opened, and should be enabled for playing by calling SDL_PauseAudio(0) when you are ready for your audio callback function to be called. Since the audio driver may modify the requested size of the audio buffer, you should allocate any local mixing buffers after you open the audio device.

Examples

/* Prototype of our callback function */
+void my_audio_callback(void *userdata, Uint8 *stream, int len);
+
+/* Open the audio device */
+SDL_AudioSpec *desired, *obtained;
+SDL_AudioSpec *hardware_spec;
+
+/* Allocate a desired SDL_AudioSpec */
+desired = malloc(sizeof(SDL_AudioSpec));
+
+/* Allocate space for the obtained SDL_AudioSpec */
+obtained = malloc(sizeof(SDL_AudioSpec));
+
+/* 22050Hz - FM Radio quality */
+desired->freq=22050;
+
+/* 16-bit signed audio */
+desired->format=AUDIO_S16LSB;
+
+/* Mono */
+desired->channels=0;
+
+/* Large audio buffer reduces risk of dropouts but increases response time */
+desired->samples=8192;
+
+/* Our callback function */
+desired->callback=my_audio_callback;
+
+desired->userdata=NULL;
+
+/* Open the audio device */
+if ( SDL_OpenAudio(desired, obtained) < 0 ){
+  fprintf(stderr, "Couldn't open audio: %s\n", SDL_GetError());
+  exit(-1);
+}
+/* desired spec is no longer needed */
+free(desired);
+hardware_spec=obtained;
+.
+.
+/* Prepare callback for playing */
+.
+.
+.
+/* Start playing */
+SDL_PauseAudio(0);

PrevHomeNext
SDL_AudioSpecUpSDL_PauseAudio
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdloverlay.html b/lib/sdl/msvc/docs/html/sdloverlay.html new file mode 100644 index 0000000000000000000000000000000000000000..422919edc90d03be4408c9bc63861093ad06b047 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdloverlay.html @@ -0,0 +1,362 @@ +SDL_Overlay
SDL Library Documentation
PrevNext

SDL_Overlay

Name

SDL_Overlay -- YUV video overlay

Structure Definition

typedef struct{
+  Uint32 format;
+  int w, h;
+  int planes;
+  Uint16 *pitches;
+  Uint8 **pixels;
+  Uint32 hw_overlay:1;
+} SDL_Overlay;

Structure Data

formatOverlay format (see below)
w, hWidth and height of overlay
planesNumber of planes in the overlay. Usually either 1 or 3
pitchesAn array of pitches, one for each plane. Pitch is the length of a row in bytes.
pixelsAn array of pointers to teh data of each plane. The overlay should be locked before these pointers are used.
hw_overlayThis will be set to 1 if the overlay is hardware accelerated.

Description

A SDL_Overlay is similar to a SDL_Surface except it stores a YUV overlay. All the fields are read only, except for pixels which should be locked before use. The format field stores the format of the overlay which is one of the following: +

#define SDL_YV12_OVERLAY  0x32315659  /* Planar mode: Y + V + U */
+#define SDL_IYUV_OVERLAY  0x56555949  /* Planar mode: Y + U + V */
+#define SDL_YUY2_OVERLAY  0x32595559  /* Packed mode: Y0+U0+Y1+V0 */
+#define SDL_UYVY_OVERLAY  0x59565955  /* Packed mode: U0+Y0+V0+Y1 */
+#define SDL_YVYU_OVERLAY  0x55595659  /* Packed mode: Y0+V0+Y1+U0 */
+More information on YUV formats can be found at http://www.webartz.com/fourcc/indexyuv.htm.


PrevHomeNext
SDL_VideoInfoUpWindow Management
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlpalette.html b/lib/sdl/msvc/docs/html/sdlpalette.html new file mode 100644 index 0000000000000000000000000000000000000000..6498ac40ba206e4baf37547b12787d94cba1536c --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlpalette.html @@ -0,0 +1,301 @@ +SDL_Palette
SDL Library Documentation
PrevNext

SDL_Palette

Name

SDL_Palette -- Color palette for 8-bit pixel formats

Structure Definition

typedef struct{
+  int ncolors;
+  SDL_Color *colors;
+} SDL_Palette;

Structure Data

ncolorsNumber of colors used in this palette
colorsPointer to SDL_Color structures that make up the palette.

Description

Each pixel in an 8-bit surface is an index into the colors field of the SDL_Palette structure store in SDL_PixelFormat. A SDL_Palette should never need to be created manually. It is automatically created when SDL allocates a SDL_PixelFormat for a surface. The colors values of a SDL_Surfaces palette can be set with the SDL_SetColors.


PrevHomeNext
SDL_ColorUpSDL_PixelFormat
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlpauseaudio.html b/lib/sdl/msvc/docs/html/sdlpauseaudio.html new file mode 100644 index 0000000000000000000000000000000000000000..39d5a0f0f91e01f5343f3c8887c3355987ae8a03 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlpauseaudio.html @@ -0,0 +1,221 @@ +SDL_PauseAudio
SDL Library Documentation
PrevNext

SDL_PauseAudio

Name

SDL_PauseAudio -- Pauses and unpauses the audio callback processing

Synopsis

#include "SDL.h"

void SDL_PauseAudio(int pause_on);

Description

This function pauses and unpauses the audio callback processing. +It should be called with pause_on=0 after opening the audio +device to start playing sound. This is so you can safely initialize +data for your callback function after opening the audio device. +Silence will be written to the audio device during the pause.


PrevHomeNext
SDL_OpenAudioUpSDL_GetAudioStatus
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlpeepevents.html b/lib/sdl/msvc/docs/html/sdlpeepevents.html new file mode 100644 index 0000000000000000000000000000000000000000..d5a0ff6f9fe11184af66f51b485cab9b312227c7 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlpeepevents.html @@ -0,0 +1,321 @@ +SDL_PeepEvents
SDL Library Documentation
PrevNext

SDL_PeepEvents

Name

SDL_PeepEvents -- Checks the event queue for messages and optionally returns them.

Synopsis

#include "SDL.h"

int SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action, Uint32 mask);

Description

Checks the event queue for messages and optionally returns them.

If action is SDL_ADDEVENT, up to +numevents events will be added to the back of the event + queue.

If action is SDL_PEEKEVENT, up to +numevents events at the front of the event queue, +matching mask, +will be returned and will not be removed from the queue.

If action is SDL_GETEVENT, up to +numevents events at the front of the event queue, +matching mask, +will be returned and will be removed from the queue.

The mask parameter is an bitwise OR of +SDL_EVENTMASK(event_type), for all +event types you are interested in.

This function is thread-safe.

Return Value

This function returns the number of events actually stored, or +-1 if there was an error.


PrevHomeNext
SDL_PumpEventsUpSDL_PollEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlpixelformat.html b/lib/sdl/msvc/docs/html/sdlpixelformat.html new file mode 100644 index 0000000000000000000000000000000000000000..000ddc08b163564736cb4c9c6462f6ffc8414c8a --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlpixelformat.html @@ -0,0 +1,528 @@ +SDL_PixelFormat
SDL Library Documentation
PrevNext

SDL_PixelFormat

Name

SDL_PixelFormat -- Stores surface format information

Structure Definition

typedef struct SDL_PixelFormat {
+  SDL_Palette *palette;
+  Uint8  BitsPerPixel;
+  Uint8  BytesPerPixel;
+  Uint8  Rloss, Gloss, Bloss, Aloss;
+  Uint8  Rshift, Gshift, Bshift, Ashift;
+  Uint32 Rmask, Gmask, Bmask, Amask;
+  Uint32 colorkey;
+  Uint8  alpha;
+} SDL_PixelFormat;

Structure Data

palettePointer to the palette, or NULL if the BitsPerPixel>8
BitsPerPixelThe number of bits used to represent each pixel in a surface. Usually 8, 16, 24 or 32.
BytesPerPixelThe number of bytes used to represent each pixel in a surface. Usually one to four.
[RGBA]maskBinary mask used to retrieve individual color values
[RGBA]lossPrecision loss of each color component (2[RGBA]loss)
[RGBA]shiftBinary left shift of each color component in the pixel value
colorkeyPixel value of transparent pixels
alphaOverall surface alpha value

Description

A SDL_PixelFormat describes the format of the pixel data stored at the pixels field of a SDL_Surface. Every surface stores a SDL_PixelFormat in the format field.

If you wish to do pixel level modifications on a surface, then understanding how SDL stores its color information is essential.

8-bit pixel formats are the easiest to understand. Since its an 8-bit format, we have 8 BitsPerPixel and 1 BytesPerPixel. Since BytesPerPixel is 1, all pixels are represented by a Uint8 which contains an index into palette->colors. So, to determine the color of a pixel in a 8-bit surface: we read the color index from surface->pixels and we use that index to read the SDL_Color structure from surface->format->palette->colors. Like so: +

SDL_Surface *surface;
+SDL_PixelFormat *fmt;
+SDL_Color *color;
+Uint8 index;
+
+.
+.
+
+/* Create surface */
+.
+.
+fmt=surface->format;
+
+/* Check the bitdepth of the surface */
+if(fmt->BitsPerPixel!=8){
+  fprintf(stderr, "Not an 8-bit surface.\n");
+  return(-1);
+}
+
+/* Lock the surface */
+SDL_LockSurface(surface);
+
+/* Get the topleft pixel */
+index=*(Uint8 *)surface->pixels;
+color=fmt->palette->colors[index];
+
+/* Unlock the surface */
+SDL_UnlockSurface(surface);
+printf("Pixel Color-> Red: %d, Green: %d, Blue: %d. Index: %d\n",
+          color->r, color->g, color->b, index);
+.
+.

Pixel formats above 8-bit are an entirely different experience. They are +considered to be "TrueColor" formats and the color information is stored in the +pixels themselves, not in a palette. The mask, shift and loss fields tell us +how the color information is encoded. The mask fields allow us to isolate each +color component, the shift fields tell us the number of bits to the right of +each component in the pixel value and the loss fields tell us the number of +bits lost from each component when packing 8-bit color component in a pixel. +

/* Extracting color components from a 32-bit color value */
+SDL_PixelFormat *fmt;
+SDL_Surface *surface;
+Uint32 temp, pixel;
+Uint8 red, green, blue, alpha;
+.
+.
+.
+fmt=surface->format;
+SDL_LockSurface(surface);
+pixel=*((Uint32*)surface->pixels);
+SDL_UnlockSurface(surface);
+
+/* Get Red component */
+temp=pixel&fmt->Rmask; /* Isolate red component */
+temp=temp>>fmt->Rshift;/* Shift it down to 8-bit */
+temp=temp<<fmt->Rloss; /* Expand to a full 8-bit number */
+red=(Uint8)temp;
+
+/* Get Green component */
+temp=pixel&fmt->Gmask; /* Isolate green component */
+temp=temp>>fmt->Gshift;/* Shift it down to 8-bit */
+temp=temp<<fmt->Gloss; /* Expand to a full 8-bit number */
+green=(Uint8)temp;
+
+/* Get Blue component */
+temp=pixel&fmt->Bmask; /* Isolate blue component */
+temp=temp>>fmt->Bshift;/* Shift it down to 8-bit */
+temp=temp<<fmt->Bloss; /* Expand to a full 8-bit number */
+blue=(Uint8)temp;
+
+/* Get Alpha component */
+temp=pixel&fmt->Amask; /* Isolate alpha component */
+temp=temp>>fmt->Ashift;/* Shift it down to 8-bit */
+temp=temp<<fmt->Aloss; /* Expand to a full 8-bit number */
+alpha=(Uint8)temp;
+
+printf("Pixel Color -> R: %d,  G: %d,  B: %d,  A: %d\n", red, green, blue, alpha);
+.
+.
+.


PrevHomeNext
SDL_PaletteUpSDL_Surface
diff --git a/lib/sdl/msvc/docs/html/sdlpollevent.html b/lib/sdl/msvc/docs/html/sdlpollevent.html new file mode 100644 index 0000000000000000000000000000000000000000..f97c22d963403018892016f05f042a65c4115d0a --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlpollevent.html @@ -0,0 +1,269 @@ +SDL_PollEvent
SDL Library Documentation
PrevNext

SDL_PollEvent

Name

SDL_PollEvent -- Polls for currently pending events.

Synopsis

#include "SDL.h"

int SDL_PollEvent(SDL_Event *event);

Description

Polls for currently pending events, and returns 1 +if there are any pending events, or 0 if there +are none available.

If event is not NULL, the next +event is removed from the queue and stored in that area.

Examples

SDL_Event event; /* Event structure */
+
+.
+.
+.
+/* Check for events */
+while(SDL_PollEvent(&event)){  /* Loop until there are no events left on the queue */
+  switch(event.type){  /* Process the appropiate event type */
+    case SDL_KEYDOWN:  /* Handle a KEYDOWN event */         
+      printf("Oh! Key press\n");
+      break;
+    case SDL_MOUSEMOTION:
+      .
+      .
+      .
+    default: /* Report an unhandled event */
+      printf("I don't know what this event is!\n");
+  }
+}


PrevHomeNext
SDL_PeepEventsUpSDL_WaitEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlpumpevents.html b/lib/sdl/msvc/docs/html/sdlpumpevents.html new file mode 100644 index 0000000000000000000000000000000000000000..a7e528f19ac4b428212d41996ff631044f6e2762 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlpumpevents.html @@ -0,0 +1,244 @@ +SDL_PumpEvents
SDL Library Documentation
PrevNext

SDL_PumpEvents

Name

SDL_PumpEvents -- Pumps the event loop, gathering events from the input devices.

Synopsis

#include "SDL.h"

void SDL_PumpEvents(void);

Description

Pumps the event loop, gathering events from the input devices.

SDL_PumpEvents gathers all the pending input information from devices and places it on the event queue. Without calls to SDL_PumpEvents no events would ever be placed on the queue. Often calls the need for SDL_PumpEvents is hidden from the user since SDL_PollEvent and SDL_WaitEvent implicitly call SDL_PumpEvents. However, if you are not polling or waiting for events (e.g. you are filtering them), then you must call SDL_PumpEvents to force an event queue update.

Note: You can only call this function in the thread that set the video mode.


PrevHomeNext
Event Functions.UpSDL_PeepEvents
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlpushevent.html b/lib/sdl/msvc/docs/html/sdlpushevent.html new file mode 100644 index 0000000000000000000000000000000000000000..6905385c32d40bb7a32aa22ebe13abe1ce1cb47c --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlpushevent.html @@ -0,0 +1,266 @@ +SDL_PushEvent
SDL Library Documentation
PrevNext

SDL_PushEvent

Name

SDL_PushEvent -- Pushes an event onto the event queue

Synopsis

#include "SDL.h"

int SDL_PushEvent(SDL_Event *event);

Description

The event queue can actually be used as a two way communication channel. Not only can events be read from the queue, but the user can also push their own events onto it. event is a pointer to the event structure you wish to push onto the queue.

Note: Pushing device input events onto the queue doesn't modify the state of the device within SDL.

Return Value

Returns 0 on success or -1 if the event couldn't be pushed.

Examples

See SDL_Event.


PrevHomeNext
SDL_WaitEventUpSDL_SetEventFilter
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlquit.html b/lib/sdl/msvc/docs/html/sdlquit.html new file mode 100644 index 0000000000000000000000000000000000000000..1f31c82558ae9fb430d16b8d65148471e7cc90da --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlquit.html @@ -0,0 +1,244 @@ +SDL_Quit
SDL Library Documentation
PrevNext

SDL_Quit

Name

SDL_Quit -- Shut down SDL

Synopsis

#include "SDL.h"

void SDL_Quit(void);

Description

SDL_Quit shuts down all SDL subsystems and frees the resources allocated to them. This should always be called before you exit. For the sake of simplicity you can set SDL_Quit as your atexit call, like: +

SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
+atexit(SDL_Quit);
+.
+.

Note: While using atexit maybe be fine for small programs, more advanced users should shut down SDL in their own cleanup code. Plus, using atexit in a library is a sure way to crash dynamically loaded code


PrevHomeNext
SDL_QuitSubSystemUpSDL_WasInit
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlquitevent.html b/lib/sdl/msvc/docs/html/sdlquitevent.html new file mode 100644 index 0000000000000000000000000000000000000000..d575f38b7b703a6c9a588a443d39184ec8347be4 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlquitevent.html @@ -0,0 +1,263 @@ +SDL_QuitEvent
SDL Library Documentation
PrevNext

SDL_QuitEvent

Name

SDL_QuitEvent -- Quit requested event

Structure Definition

typedef struct{
+  Uint8 type
+} SDL_QuitEvent;

Structure Data

typeSDL_QUIT

Description

SDL_QuitEvent is a member of the SDL_Event union and is used whan an event of type SDL_QUIT is reported.

As can be seen, the SDL_QuitEvent structure serves no useful purpose. The event itself, on the other hand, is very important. If you filter out or ignore a quit event then it is impossible for the user to close the window. On the other hand, if you do accept a quit event then the application window will be closed, and screen updates will still report success event though the application will no longer be visible.

Note: The macro SDL_QuitRequested will return non-zero if a quit event is pending


PrevHomeNext
SDL_UserEventUpSDL_keysym
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlquitsubsystem.html b/lib/sdl/msvc/docs/html/sdlquitsubsystem.html new file mode 100644 index 0000000000000000000000000000000000000000..877e3ce1181fe10145a0c7fa537813217aab19de --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlquitsubsystem.html @@ -0,0 +1,248 @@ +SDL_QuitSubSystem
SDL Library Documentation
PrevNext

SDL_QuitSubSystem

Name

SDL_QuitSubSystem -- Shut down a subsystem

Synopsis

#include "SDL.h"

void SDL_QuitSubSystem(Uint32 flags);

Description

SDL_QuitSubSystem allows you to shut down a subsystem that has been previously initialized by SDL_Init or SDL_InitSubSystem. The flags tells SDL_QuitSubSystem which subsystems to shut down, it uses the same values that are passed to SDL_Init.


PrevHomeNext
SDL_InitSubSystemUpSDL_Quit
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlrect.html b/lib/sdl/msvc/docs/html/sdlrect.html new file mode 100644 index 0000000000000000000000000000000000000000..ba4a80be69ceb897c407a1411e9fac7ea1d7514a --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlrect.html @@ -0,0 +1,258 @@ +SDL_Rect
SDL Library Documentation
PrevNext

SDL_Rect

Name

SDL_Rect -- Defines a rectangular area

Structure Definition

typedef struct{
+  Sint16 x, y;
+  Uint16 w, h;
+} SDL_Rect;

Structure Data

x, yPosition of the upper-left corner of the rectangle
w, hThe width and height of the rectangle

Description

A SDL_Rect defines a rectangular area of pixels. It is used by SDL_BlitSurface to define blitting regions and by several other video functions.


PrevHomeNext
SDL_GLattrUpSDL_Color
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlremovetimer.html b/lib/sdl/msvc/docs/html/sdlremovetimer.html new file mode 100644 index 0000000000000000000000000000000000000000..26a3d11f7b8cf7b1965f58345a4e1a9c62070863 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlremovetimer.html @@ -0,0 +1,236 @@ +SDL_RemoveTimer
SDL Library Documentation
PrevNext

SDL_RemoveTimer

Name

SDL_RemoveTimer -- Remove a timer which was added with +SDL_AddTimer.

Synopsis

#include "SDL.h"

SDL_bool SDL_RemoveTimer(SDL_TimerID id);

Description

Removes a timer callback previously added with +SDL_AddTimer.

Return Value

Returns a boolean value indicating success.

Examples

SDL_RemoveTimer(my_timer_id);

See Also

SDL_AddTimer


PrevHomeNext
SDL_AddTimerUpSDL_SetTimer
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlresizeevent.html b/lib/sdl/msvc/docs/html/sdlresizeevent.html new file mode 100644 index 0000000000000000000000000000000000000000..1d446a54cd140f502bad788e7457aec15638c93e --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlresizeevent.html @@ -0,0 +1,307 @@ +SDL_ResizeEvent
SDL Library Documentation
PrevNext

SDL_ResizeEvent

Name

SDL_ResizeEvent -- Window resize event structure

Structure Definition

typedef struct{
+  Uint8 type;
+  int w, h;
+} SDL_ResizeEvent;

Structure Data

typeSDL_VIDEORESIZE
w, hNew width and height of the window

Description

SDL_ResizeEvent is a member of the SDL_Event union and is used when an event of type SDL_VIDEORESIZE is reported.

When SDL_RESIZABLE is passed as a flag to SDL_SetVideoMode the user is allowed to resize the applications window. When the window is resized an SDL_VIDEORESIZE is report, with the new window width and height values stored in w and h, respectively. When an SDL_VIDEORESIZE is recieved the window should be resized to the new dimensions using SDL_SetVideoMode.


PrevHomeNext
SDL_JoyBallEventUpSDL_ExposeEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsavebmp.html b/lib/sdl/msvc/docs/html/sdlsavebmp.html new file mode 100644 index 0000000000000000000000000000000000000000..4c318ed756e4fa74a135b1302568db8b8c8bf713 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsavebmp.html @@ -0,0 +1,236 @@ +SDL_SaveBMP
SDL Library Documentation
PrevNext

SDL_SaveBMP

Name

SDL_SaveBMP -- Save an SDL_Surface as a Windows BMP file.

Synopsis

#include "SDL.h"

int SDL_SaveBMP(SDL_Surface *surface, const char *file);

Description

Saves the SDL_Surface surface as a Windows BMP file named file.

Return Value

Returns 0 if successful or +-1 +if there was an error.

See Also

SDL_LoadBMP


PrevHomeNext
SDL_LoadBMPUpSDL_SetColorKey
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsempost.html b/lib/sdl/msvc/docs/html/sdlsempost.html new file mode 100644 index 0000000000000000000000000000000000000000..18fb01ab2f7717868d7736f1a838fbebd0dc1953 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsempost.html @@ -0,0 +1,299 @@ +SDL_SemPost
SDL Library Documentation
PrevNext

SDL_SemPost

Name

SDL_SemPost -- Unlock a semaphore.

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

int SDL_SemPost(SDL_sem *sem);

Description

SDL_SemPost unlocks the semaphore pointed to by +sem and atomically increments the semaphores value. +Threads that were blocking on the semaphore may be scheduled after this call +succeeds.

SDL_SemPost should be called after a semaphore is locked by a successful call to +SDL_SemWait, +SDL_SemTryWait or +SDL_SemWaitTimeout.

Return Value

Returns 0 if successful or +-1 if there was an error (leaving the semaphore unchanged).

Examples

SDL_SemPost(my_sem);


PrevHomeNext
SDL_SemWaitTimeoutUpSDL_SemValue
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsemtrywait.html b/lib/sdl/msvc/docs/html/sdlsemtrywait.html new file mode 100644 index 0000000000000000000000000000000000000000..86f47a1c83afce734bc83cdd1c966268c467ed99 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsemtrywait.html @@ -0,0 +1,319 @@ +SDL_SemTryWait
SDL Library Documentation
PrevNext

SDL_SemTryWait

Name

SDL_SemTryWait -- Attempt to lock a semaphore but don't suspend the thread.

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

int SDL_SemTryWait(SDL_sem *sem);

Description

SDL_SemTryWait is a non-blocking varient of +SDL_SemWait. If the value of the semaphore +pointed to by sem is positive it will atomically +decrement the semaphore value and return 0, otherwise it will return +SDL_MUTEX_TIMEDOUT instead of suspending the thread.

After SDL_SemTryWait is successful, the semaphore +can be released and its count atomically incremented by a successful call to +SDL_SemPost.

Return Value

Returns 0 if the semaphore was successfully locked or +either SDL_MUTEX_TIMEDOUT or -1 +if the thread would have suspended or there was an error, respectivly.

If the semaphore was not successfully locked, the semaphore will be unchanged.

Examples

res = SDL_SemTryWait(my_sem);
+
+if (res == SDL_MUTEX_TIMEDOUT) {
+        return TRY_AGAIN;
+}
+if (res == -1) {
+        return WAIT_ERROR;
+}
+
+...
+
+SDL_SemPost(my_sem);


PrevHomeNext
SDL_SemWaitUpSDL_SemWaitTimeout
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsemvalue.html b/lib/sdl/msvc/docs/html/sdlsemvalue.html new file mode 100644 index 0000000000000000000000000000000000000000..7867369b1b496e0de3c26969fa7e29b413a57ac8 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsemvalue.html @@ -0,0 +1,273 @@ +SDL_SemValue
SDL Library Documentation
PrevNext

SDL_SemValue

Name

SDL_SemValue -- Return the current value of a semaphore.

Synopsis

#include "SDL.h"
+#include "SDL/SDL_thread.h"

Uint32 SDL_SemValue(SDL_sem *sem);

Description

SDL_SemValue() returns the current semaphore value from +the semaphore pointed to by sem.

Return Value

Returns current value of the semaphore.

Examples

  sem_value = SDL_SemValue(my_sem);


PrevHomeNext
SDL_SemPostUpSDL_CreateCond
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsemwait.html b/lib/sdl/msvc/docs/html/sdlsemwait.html new file mode 100644 index 0000000000000000000000000000000000000000..5e98d552ee60e0155213a7b064b1519f671b7329 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsemwait.html @@ -0,0 +1,298 @@ +SDL_SemWait
SDL Library Documentation
PrevNext

SDL_SemWait

Name

SDL_SemWait -- Lock a semaphore and suspend the thread if the semaphore value is zero.

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

int SDL_SemWait(SDL_sem *sem);

Description

SDL_SemWait() suspends the calling thread until either +the semaphore pointed to by sem has a positive value, +the call is interrupted by a signal or error. If the call is successful it +will atomically decrement the semaphore value.

After SDL_SemWait() is successful, the semaphore +can be released and its count atomically incremented by a successful call to +SDL_SemPost.

Return Value

Returns 0 if successful or +-1 if there was an error (leaving the semaphore unchanged).

Examples

if (SDL_SemWait(my_sem) == -1) {
+        return WAIT_FAILED;
+}
+
+...
+
+SDL_SemPost(my_sem);


PrevHomeNext
SDL_DestroySemaphoreUpSDL_SemTryWait
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsemwaittimeout.html b/lib/sdl/msvc/docs/html/sdlsemwaittimeout.html new file mode 100644 index 0000000000000000000000000000000000000000..788f5b7250645a14e763af26d61a228b4cc29520 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsemwaittimeout.html @@ -0,0 +1,322 @@ +SDL_SemWaitTimeout
SDL Library Documentation
PrevNext

SDL_SemWaitTimeout

Name

SDL_SemWaitTimeout -- Lock a semaphore, but only wait up to a specified maximum time.

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout);

Description

SDL_SemWaitTimeout() is a varient of +SDL_SemWait +with a maximum timeout value. +If the value of the semaphore pointed to by sem is +positive (greater than zero) it will atomically decrement the semaphore value +and return 0, otherwise it will wait up to timeout +milliseconds trying to lock the semaphore. This function is to be avoided if +possible since on some platforms it is implemented by polling the semaphore +every millisecond in a busy loop.

After SDL_SemWaitTimeout() is successful, the semaphore +can be released and its count atomically incremented by a successful call to +SDL_SemPost.

Return Value

Returns 0 if the semaphore was successfully locked or +either SDL_MUTEX_TIMEDOUT or -1 +if the timeout period was exceeded or there was an error, respectivly.

If the semaphore was not successfully locked, the semaphore will be unchanged.

Examples

res = SDL_SemWaitTimeout(my_sem, WAIT_TIMEOUT_MILLISEC);
+
+if (res == SDL_MUTEX_TIMEDOUT) {
+        return TRY_AGAIN;
+}
+if (res == -1) {
+        return WAIT_ERROR;
+}
+
+...
+
+SDL_SemPost(my_sem);


PrevHomeNext
SDL_SemTryWaitUpSDL_SemPost
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsetalpha.html b/lib/sdl/msvc/docs/html/sdlsetalpha.html new file mode 100644 index 0000000000000000000000000000000000000000..fc844981f14fd8bb3cd4ed62dc648847faf494a3 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsetalpha.html @@ -0,0 +1,500 @@ +SDL_SetAlpha
SDL Library Documentation
PrevNext

SDL_SetAlpha

Name

SDL_SetAlpha -- Adjust the alpha properties of a surface

Synopsis

#include "SDL.h"

int SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha);

Description

Note: This function and the semantics of SDL alpha blending have changed since version 1.1.4. Up until version 1.1.5, an alpha value of 0 was considered opaque and a value of 255 was considered transparent. This has now been inverted: 0 (SDL_ALPHA_TRANSPARENT) is now considered transparent and 255 (SDL_ALPHA_OPAQUE) is now considered opaque.

SDL_SetAlpha is used for setting the per-surface alpha +value and/or enabling and disabling alpha blending.

Thesurface parameter specifies which surface whose alpha +attributes you wish to adjust. flags is used to specify +whether alpha blending should be used (SDL_SRCALPHA) and +whether the surface should use RLE acceleration for blitting +(SDL_RLEACCEL). flags can be an OR'd +combination of these two options, one of these options or 0. If +SDL_SRCALPHA is not passed as a flag then all alpha +information is ignored when blitting the surface. The +alpha parameter is the per-surface alpha value; a +surface need not have an alpha channel to use per-surface alpha and blitting +can still be accelerated with SDL_RLEACCEL.

Note: The per-surface alpha value of 128 is considered a special case and +is optimised, so it's much faster than other per-surface values.

Alpha effects surface blitting in the following ways:

RGBA->RGB with SDL_SRCALPHA

The source is alpha-blended with the destination, using the alpha channel. SDL_SRCCOLORKEY and the per-surface alpha are ignored.

RGBA->RGB without SDL_SRCALPHA

The RGB data is copied from the source. The source alpha channel and the per-surface alpha value are ignored.

RGB->RGBA with SDL_SRCALPHA

The source is alpha-blended with the destination using the per-surface alpha +value. If SDL_SRCCOLORKEY is set, only the pixels not +matching the colorkey value are copied. The alpha channel of the copied pixels +is set to opaque.

RGB->RGBA without SDL_SRCALPHA

The RGB data is copied from the source and the alpha value of the copied pixels +is set to opaque. If SDL_SRCCOLORKEY is set, only the pixels +not matching the colorkey value are copied.

RGBA->RGBA with SDL_SRCALPHA

The source is alpha-blended with the destination using the source alpha +channel. The alpha channel in the destination surface is left untouched. +SDL_SRCCOLORKEY is ignored.

RGBA->RGBA without SDL_SRCALPHA

The RGBA data is copied to the destination surface. If SDL_SRCCOLORKEY is set, only the pixels not matching the colorkey value are copied.

RGB->RGB with SDL_SRCALPHA

The source is alpha-blended with the destination using the per-surface alpha value. If SDL_SRCCOLORKEY is set, only the pixels not matching the colorkey value are copied.

RGB->RGB without SDL_SRCALPHA

The RGB data is copied from the source. If SDL_SRCCOLORKEY is set, only the pixels not matching the colorkey value are copied.

Note: Note that RGBA->RGBA blits (with SDL_SRCALPHA set) keep the alpha +of the destination surface. This means that you cannot compose two arbitrary +RGBA surfaces this way and get the result you would expect from "overlaying" +them; the destination alpha will work as a mask.

Also note that per-pixel and per-surface alpha cannot be combined; +the per-pixel alpha is always used if available

Return Value

This function returns 0, or +-1 if there was an error.


PrevHomeNext
SDL_SetColorKeyUpSDL_SetClipRect
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsetcliprect.html b/lib/sdl/msvc/docs/html/sdlsetcliprect.html new file mode 100644 index 0000000000000000000000000000000000000000..03898d55ace6cde337e4481443001b1c5ee67513 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsetcliprect.html @@ -0,0 +1,241 @@ +SDL_SetClipRect
SDL Library Documentation
PrevNext

SDL_SetClipRect

Name

SDL_SetClipRect -- Sets the clipping rectangle for a surface.

Synopsis

#include "SDL.h"

void SDL_SetClipRect(SDL_Surface *surface, SDL_Rect *rect);

Description

Sets the clipping rectangle for a surface. When this surface is the +destination of a blit, only the area within the clip rectangle will be +drawn into.

The rectangle pointed to by rect will be +clipped to the edges of the surface so that the clip rectangle for a +surface can never fall outside the edges of the surface.

If rect is NULL the clipping +rectangle will be set to the full size of the surface.


PrevHomeNext
SDL_SetAlphaUpSDL_GetClipRect
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsetcolorkey.html b/lib/sdl/msvc/docs/html/sdlsetcolorkey.html new file mode 100644 index 0000000000000000000000000000000000000000..0cb6695791539b6004b87c972323cb65175ea3dd --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsetcolorkey.html @@ -0,0 +1,321 @@ +SDL_SetColorKey
SDL Library Documentation
PrevNext

SDL_SetColorKey

Name

SDL_SetColorKey -- Sets the color key (transparent pixel) in a blittable surface and +RLE acceleration.

Synopsis

#include "SDL.h"

int SDL_SetColorKey(SDL_Surface *surface, Uint32 flag, Uint32 key);

Description

Sets the color key (transparent pixel) in a blittable surface and enables or + disables RLE blit acceleration.

RLE acceleration can substantially speed up blitting of images with large +horizontal runs of transparent pixels (i.e., pixels that match the +key value). The key must be of the same pixel format as the surface, SDL_MapRGB is often useful for obtaining an acceptable value.

If flag is SDL_SRCCOLORKEY then +key is the transparent pixel value in the source image of a +blit.

If flag is OR'd with +SDL_RLEACCEL then the surface will be draw using RLE +acceleration when drawn with +SDL_BlitSurface. The surface will +actually be encoded for RLE acceleration the first time +SDL_BlitSurface or +SDL_DisplayFormat is called on the +surface.

If flag is 0, this function clears +any current color key.

Return Value

This function returns 0, or +-1 if there was an error.


PrevHomeNext
SDL_SaveBMPUpSDL_SetAlpha
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsetcolors.html b/lib/sdl/msvc/docs/html/sdlsetcolors.html new file mode 100644 index 0000000000000000000000000000000000000000..569564598ba819d7de1415d9e2278ef4c5deec6f --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsetcolors.html @@ -0,0 +1,358 @@ +SDL_SetColors
SDL Library Documentation
PrevNext

SDL_SetColors

Name

SDL_SetColors -- Sets a portion of the colormap for the given 8-bit surface.

Synopsis

#include "SDL.h"

int SDL_SetColors(SDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolors);

Description

Sets a portion of the colormap for the given 8-bit surface.

When surface is the surface associated with the current +display, the display colormap will be updated with the requested colors. If +SDL_HWPALETTE was set in SDL_SetVideoMode flags, +SDL_SetColors will always return 1, +and the palette is guaranteed to be set the way you desire, even if the window +colormap has to be warped or run under emulation.

The color components of a +SDL_Color +structure are 8-bits in size, giving you a total of 2563 +=16777216 colors.

Palettized (8-bit) screen surfaces with the SDL_HWPALETTE +flag have two palettes, a logical palette that is used for mapping blits +to/from the surface and a physical palette (that determines how the +hardware will map the colors to the display). SDL_SetColors +modifies both palettes (if present), and is equivalent to calling +SDL_SetPalette with the +flags set to +(SDL_LOGPAL | SDL_PHYSPAL).

Return Value

If surface is not a palettized surface, this function +does nothing, returning 0. If all of the colors were set +as passed to SDL_SetColors, it will return +1. If not all the color entries were set exactly as +given, it will return 0, and you should look at the +surface palette to determine the actual color palette.

Example

/* Create a display surface with a grayscale palette */
+SDL_Surface *screen;
+SDL_Color colors[256];
+int i;
+.
+.
+.
+/* Fill colors with color information */
+for(i=0;i<256;i++){
+  colors[i].r=i;
+  colors[i].g=i;
+  colors[i].b=i;
+}
+
+/* Create display */
+screen=SDL_SetVideoMode(640, 480, 8, SDL_HWPALETTE);
+if(!screen){
+  printf("Couldn't set video mode: %s\n", SDL_GetError());
+  exit(-1);
+}
+
+/* Set palette */
+SDL_SetColors(screen, colors, 0, 256);
+.
+.
+.
+.

PrevHomeNext
SDL_FlipUpSDL_SetPalette
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsetcursor.html b/lib/sdl/msvc/docs/html/sdlsetcursor.html new file mode 100644 index 0000000000000000000000000000000000000000..9c5443e53e7f16a94039166cbb15b62cedb45d7b --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsetcursor.html @@ -0,0 +1,222 @@ +SDL_SetCursor
SDL Library Documentation
PrevNext

SDL_SetCursor

Name

SDL_SetCursor -- Set the currently active mouse cursor.

Synopsis

#include "SDL.h"

void SDL_SetCursor(SDL_Cursor *cursor);

Description

Sets the currently active cursor to +the specified one. +If the cursor is currently visible, the change will be immediately +represented on the display.


PrevHomeNext
SDL_FreeCursorUpSDL_GetCursor
diff --git a/lib/sdl/msvc/docs/html/sdlseteventfilter.html b/lib/sdl/msvc/docs/html/sdlseteventfilter.html new file mode 100644 index 0000000000000000000000000000000000000000..0808bab3c6610859f25c1d5bf50355c8de37bda9 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlseteventfilter.html @@ -0,0 +1,284 @@ +SDL_SetEventFilter
SDL Library Documentation
PrevNext

SDL_SetEventFilter

Name

SDL_SetEventFilter -- Sets up a filter to process all events before they are posted +to the event queue.

Synopsis

#include "SDL.h"

void SDL_SetEventFilter(SDL_EventFilter filter);

Description

This function sets up a filter to process all events before they are posted +to the event queue. This is a very powerful and flexible feature. The filter +is prototyped as: +

typedef int (*SDL_EventFilter)(const SDL_Event *event);
+If the filter returns 1, then the event will be +added to the internal queue. If it returns 0, +then the event will be dropped from the queue. This allows selective +filtering of dynamically.

There is one caveat when dealing with the SDL_QUITEVENT event type. The +event filter is only called when the window manager desires to close the +application window. If the event filter returns 1, then the window will +be closed, otherwise the window will remain open if possible. +If the quit event is generated by an interrupt signal, it will bypass the +internal queue and be delivered to the application at the next event poll.

Note: Events pushed onto the queue with SDL_PushEvent or SDL_PeepEvents do not get passed through the event filter.

Note: Be Careful! The event filter function may run in a different thread so be careful what you do within it.


PrevHomeNext
SDL_PushEventUpSDL_GetEventFilter
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsetgamma.html b/lib/sdl/msvc/docs/html/sdlsetgamma.html new file mode 100644 index 0000000000000000000000000000000000000000..6443a966a2bad65dc5e5606b57c7687a083663ea --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsetgamma.html @@ -0,0 +1,231 @@ +SDL_SetGamma
SDL Library Documentation
PrevNext

SDL_SetGamma

Name

SDL_SetGamma -- Sets the color gamma function for the display

Synopsis

#include "SDL.h"

int SDL_SetGamma(float redgamma, float greengamma, float bluegamma);

Description

Sets the "gamma function" for the display of each color component. Gamma +controls the brightness/contrast of colors displayed on the screen. +A gamma value of 1.0 is identity (i.e., no adjustment +is made).

This function adjusts the gamma based on the "gamma function" parameter, +you can directly specify lookup tables for gamma adjustment with +SDL_SetGammaRamp.

Not all display hardware is able to change gamma.

Return Value

Returns -1 on error (or if gamma adjustment is not supported).


PrevHomeNext
SDL_SetPaletteUpSDL_GetGammaRamp
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsetgammaramp.html b/lib/sdl/msvc/docs/html/sdlsetgammaramp.html new file mode 100644 index 0000000000000000000000000000000000000000..79599c8d5163d23aca459656b38a17bda2252dce --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsetgammaramp.html @@ -0,0 +1,230 @@ +SDL_SetGammaRamp
SDL Library Documentation
PrevNext

SDL_SetGammaRamp

Name

SDL_SetGammaRamp -- Sets the color gamma lookup tables for the display

Synopsis

#include "SDL.h"

int SDL_SetGammaRamp(Uint16 *redtable, Uint16 *greentable, Uint16 *bluetable);

Description

Sets the gamma lookup tables for the display for each color component. +Each table is an array of 256 Uint16 values, representing a mapping +between the input and output for that channel. The input is the index +into the array, and the output is the 16-bit gamma value at that index, +scaled to the output color precision. You may pass NULL to any of the +channels to leave them unchanged.

This function adjusts the gamma based on lookup tables, you can also +have the gamma calculated based on a "gamma function" parameter with +SDL_SetGamma.

Not all display hardware is able to change gamma.

Return Value

Returns -1 on error (or if gamma adjustment is not supported).


PrevHomeNext
SDL_GetGammaRampUpSDL_MapRGB
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsetmodstate.html b/lib/sdl/msvc/docs/html/sdlsetmodstate.html new file mode 100644 index 0000000000000000000000000000000000000000..ee69a3f5dfeb5a82e4ec382de8f36e1ba0bd661b --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsetmodstate.html @@ -0,0 +1,237 @@ +SDL_SetModState
SDL Library Documentation
PrevNext

SDL_SetModState

Name

SDL_SetModState -- Set the current key modifier state

Synopsis

#include "SDL.h"

void SDL_SetModState(SDLMod modstate);

Description

The inverse of SDL_GetModState, SDL_SetModState allows you to impose modifier key states on your application.

Simply pass your desired modifier states into modstate. This value my be a logical OR'd combination of the following:

typedef enum {
+  KMOD_NONE  = 0x0000,
+  KMOD_LSHIFT= 0x0001,
+  KMOD_RSHIFT= 0x0002,
+  KMOD_LCTRL = 0x0040,
+  KMOD_RCTRL = 0x0080,
+  KMOD_LALT  = 0x0100,
+  KMOD_RALT  = 0x0200,
+  KMOD_LMETA = 0x0400,
+  KMOD_RMETA = 0x0800,
+  KMOD_NUM   = 0x1000,
+  KMOD_CAPS  = 0x2000,
+  KMOD_MODE  = 0x4000,
+} SDLMod;

PrevHomeNext
SDL_GetModStateUpSDL_GetKeyName
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsetpalette.html b/lib/sdl/msvc/docs/html/sdlsetpalette.html new file mode 100644 index 0000000000000000000000000000000000000000..1622f1590fb71c118ad5082ba37e0f571316672d --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsetpalette.html @@ -0,0 +1,352 @@ +SDL_SetPalette
SDL Library Documentation
PrevNext

SDL_SetPalette

Name

SDL_SetPalette -- Sets the colors in the palette of an 8-bit surface.

Synopsis

#include "SDL.h"

int SDL_SetPalette(SDL_Surface *surface, int flags, SDL_Color *colors, int firstcolor, int ncolors);

Description

Sets a portion of the palette for the given 8-bit surface.

Palettized (8-bit) screen surfaces with the +SDL_HWPALETTE flag have two palettes, a logical +palette that is used for mapping blits to/from the surface and a +physical palette (that determines how the hardware will map the colors +to the display). SDL_BlitSurface +always uses the logical palette when blitting surfaces (if it has to +convert between surface pixel formats). Because of this, it is often +useful to modify only one or the other palette to achieve various +special color effects (e.g., screen fading, color flashes, screen dimming).

This function can modify either the logical or physical palette by +specifing SDL_LOGPAL or +SDL_PHYSPALthe in the flags +parameter.

When surface is the surface associated with the current +display, the display colormap will be updated with the requested colors. If +SDL_HWPALETTE was set in SDL_SetVideoMode flags, +SDL_SetPalette will always return 1, +and the palette is guaranteed to be set the way you desire, even if the window +colormap has to be warped or run under emulation.

The color components of a +SDL_Color structure +are 8-bits in size, giving you a total of +2563=16777216 colors.

Return Value

If surface is not a palettized surface, this function +does nothing, returning 0. If all of the colors were set +as passed to SDL_SetPalette, it will return +1. If not all the color entries were set exactly as +given, it will return 0, and you should look at the +surface palette to determine the actual color palette.

Example

        /* Create a display surface with a grayscale palette */
+        SDL_Surface *screen;
+        SDL_Color colors[256];
+        int i;
+        .
+        .
+        .
+        /* Fill colors with color information */
+        for(i=0;i<256;i++){
+          colors[i].r=i;
+          colors[i].g=i;
+          colors[i].b=i;
+        }
+
+        /* Create display */
+        screen=SDL_SetVideoMode(640, 480, 8, SDL_HWPALETTE);
+        if(!screen){
+          printf("Couldn't set video mode: %s\n", SDL_GetError());
+          exit(-1);
+        }
+
+        /* Set palette */
+        SDL_SetPalette(screen, SDL_LOGPAL|SDL_PHYSPAL, colors, 0, 256);
+        .
+        .
+        .
+        .

PrevHomeNext
SDL_SetColorsUpSDL_SetGamma
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsettimer.html b/lib/sdl/msvc/docs/html/sdlsettimer.html new file mode 100644 index 0000000000000000000000000000000000000000..40b737ce85345f466591d5c0978d162b274d9601 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsettimer.html @@ -0,0 +1,267 @@ +SDL_SetTimer
SDL Library Documentation
Prev 

SDL_SetTimer

Name

SDL_SetTimer -- Set a callback to run after the specified number of milliseconds has +elapsed.

Synopsis

#include "SDL.h"

int SDL_SetTimer(Uint32 interval, SDL_TimerCallback callback);

Callback

/* Function prototype for the timer callback function */ +typedef Uint32 (*SDL_TimerCallback)(Uint32 interval);

Description

Set a callback to run after the specified number of milliseconds has +elapsed. The callback function is passed the current timer interval +and returns the next timer interval. If the returned value is the +same as the one passed in, the periodic alarm continues, otherwise a +new alarm is scheduled.

To cancel a currently running timer, call +SDL_SetTimer(0, NULL);

The timer callback function may run in a different thread than your +main constant, and so shouldn't call any functions from within itself.

The maximum resolution of this timer is 10 ms, which means that if +you request a 16 ms timer, your callback will run approximately 20 ms +later on an unloaded system. If you wanted to set a flag signaling +a frame update at 30 frames per second (every 33 ms), you might set a +timer for 30 ms (see example below).

If you use this function, you need to pass SDL_INIT_TIMER +to SDL_Init().

Note: This function is kept for compatibility but has been superseded +by the new timer functions +SDL_AddTimer and +SDL_RemoveTimer which support +multiple timers.

Examples

SDL_SetTimer((33/10)*10, my_callback);

See Also

SDL_AddTimer


PrevHome 
SDL_RemoveTimerUp 
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsetvideomode.html b/lib/sdl/msvc/docs/html/sdlsetvideomode.html new file mode 100644 index 0000000000000000000000000000000000000000..8b309b048f70c7c66bce0ddb4f817e8c1c93cbd6 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsetvideomode.html @@ -0,0 +1,558 @@ +SDL_SetVideoMode
SDL Library Documentation
PrevNext

SDL_SetVideoMode

Name

SDL_SetVideoMode -- Set up a video mode with the specified width, height and bits-per-pixel.

Synopsis

#include "SDL.h"

SDL_Surface *SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags);

Description

Set up a video mode with the specified width, height and bits-per-pixel.

If bpp is 0, it is treated as the +current display bits per pixel.

The flags parameter is the same as the flags field of the SDL_Surface structure. OR'd combinations of the following values are valid.

SDL_SWSURFACECreate the video surface in system memory
SDL_HWSURFACECreate the video surface in video memory
SDL_ASYNCBLITEnables the use of asynchronous updates of the display surface. This will +usually slow down blitting on single CPU machines, but may provide a speed +increase on SMP systems.
SDL_ANYFORMATNormally, if a video surface of the requested bits-per-pixel (bpp) is not available, SDL will emulate one with a shadow surface. Passing SDL_ANYFORMAT prevents this and causes SDL to use the video surface, regardless of its pixel depth.
SDL_HWPALETTEGive SDL exclusive palette access. Without this flag you may not always get the the colors you request with SDL_SetColors or SDL_SetPalette.
SDL_DOUBLEBUFEnable hardware double buffering; only valid with SDL_HWSURFACE. Calling +SDL_Flip will flip the +buffers and update the screen. All drawing will take place on the surface +that is not displayed at the moment. If double buffering could not be enabled +then SDL_Flip will just perform a +SDL_UpdateRect +on the entire screen.
SDL_FULLSCREENSDL will attempt to use a fullscreen mode. If a hardware resolution change is +not possible (for whatever reason), the next higher resolution will be used and +the display window centered on a black background.
SDL_OPENGLCreate an OpenGL rendering context. You should have previously set OpenGL video attributes with SDL_GL_SetAttribute.
SDL_OPENGLBLITCreate an OpenGL rendering context, like above, but allow normal blitting +operations. The screen (2D) surface may have an alpha channel, and +SDL_UpdateRects +must be used for updating changes to the screen surface. NOTE: This option +is kept for compatibility only, and is not recommended for +new code.
SDL_RESIZABLECreate a resizable window. When the window is resized by the user a SDL_VIDEORESIZE event is generated and SDL_SetVideoMode can be called again with the new size.
SDL_NOFRAMEIf possible, SDL_NOFRAME causes SDL to create a window with no title bar or frame decoration. Fullscreen modes automatically have this flag set.

Note: Whatever flags SDL_SetVideoMode could satisfy are set in the flags member of the returned surface.

Note: The bpp parameter is the number of bits per pixel, +so a bpp of 24 uses the packed representation of +3 bytes/pixel. For the more common 4 bytes/pixel mode, use a +bpp of 32. Somewhat oddly, both 15 and 16 will +request a 2 bytes/pixel mode, but different pixel formats.

Return Value

The framebuffer surface, or NULL if it fails. +The surface returned is freed by SDL_Quit() and should nt be freed by +the caller.


PrevHomeNext
SDL_VideoModeOKUpSDL_UpdateRect
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlshowcursor.html b/lib/sdl/msvc/docs/html/sdlshowcursor.html new file mode 100644 index 0000000000000000000000000000000000000000..5a8f19da228eec679077943cb2e65bfc3c9ae13c --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlshowcursor.html @@ -0,0 +1,239 @@ +SDL_ShowCursor
SDL Library Documentation
PrevNext

SDL_ShowCursor

Name

SDL_ShowCursor -- Toggle whether or not the cursor is shown on the screen.

Synopsis

#include "SDL.h"

int SDL_ShowCursor(int toggle);

Description

Toggle whether or not the cursor is shown on the screen. Passing SDL_ENABLE displays the cursor and passing SDL_DISABLE hides it. The current state of the mouse cursor can be queried by passing SDL_QUERY, either SDL_DISABLE or SDL_ENABLE will be returned.

The cursor starts off displayed, but can be turned off.

Return Value

Returns the current state of the cursor.


PrevHomeNext
SDL_GetCursorUpSDL_GL_LoadLibrary
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsurface.html b/lib/sdl/msvc/docs/html/sdlsurface.html new file mode 100644 index 0000000000000000000000000000000000000000..fda55f173fd01a0bcc6338d8f1b9252a7a758ef6 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsurface.html @@ -0,0 +1,597 @@ +SDL_Surface
SDL Library Documentation
PrevNext

SDL_Surface

Name

SDL_Surface -- Graphical Surface Structure

Structure Definition

typedef struct SDL_Surface {
+        Uint32 flags;                           /* Read-only */
+        SDL_PixelFormat *format;                /* Read-only */
+        int w, h;                               /* Read-only */
+        Uint16 pitch;                           /* Read-only */
+        void *pixels;                           /* Read-write */
+
+        /* clipping information */
+        SDL_Rect clip_rect;                     /* Read-only */
+
+        /* Reference count -- used when freeing surface */
+        int refcount;                           /* Read-mostly */
+
+	/* This structure also contains private fields not shown here */
+} SDL_Surface;

Structure Data

flagsSurface flags
formatPixel format
w, hWidth and height of the surface
pitchLength of a surface scanline in bytes
pixelsPointer to the actual pixel data
clip_rectsurface clip rectangle

Description

SDL_Surface's represent areas of "graphical" +memory, memory that can be drawn to. The video framebuffer is returned +as a SDL_Surface by +SDL_SetVideoMode +and SDL_GetVideoSurface. +Most of the fields should be pretty obvious. +w and h are the +width and height of the surface in pixels. +pixels is a pointer to the actual pixel data, +the surface should be locked +before accessing this field. The clip_rect field +is the clipping rectangle as set by +SDL_SetClipRect.

The following are supported in the +flags field.

SDL_SWSURFACESurface is stored in system memory
SDL_HWSURFACESurface is stored in video memory
SDL_ASYNCBLITSurface uses asynchronous blits if possible
SDL_ANYFORMATAllows any pixel-format (Display surface)
SDL_HWPALETTESurface has exclusive palette
SDL_DOUBLEBUFSurface is double buffered (Display surface)
SDL_FULLSCREENSurface is full screen (Display Surface)
SDL_OPENGLSurface has an OpenGL context (Display Surface)
SDL_OPENGLBLITSurface supports OpenGL blitting (Display Surface)
SDL_RESIZABLESurface is resizable (Display Surface)
SDL_HWACCELSurface blit uses hardware acceleration
SDL_SRCCOLORKEYSurface use colorkey blitting
SDL_RLEACCELColorkey blitting is accelerated with RLE
SDL_SRCALPHASurface blit uses alpha blending
SDL_PREALLOCSurface uses preallocated memory


PrevHomeNext
SDL_PixelFormatUpSDL_VideoInfo
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlsyswmevent.html b/lib/sdl/msvc/docs/html/sdlsyswmevent.html new file mode 100644 index 0000000000000000000000000000000000000000..fd7180ee218dd425cbd3a9384b69cfddbf708d70 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlsyswmevent.html @@ -0,0 +1,233 @@ +SDL_SysWMEvent
SDL Library Documentation
PrevNext

SDL_SysWMEvent

Name

SDL_SysWMEvent -- Platform-dependent window manager event.

Description

The system window manager event contains a pointer to system-specific +information about unknown window manager events. If you enable this event +using +SDL_EventState(), +it will be generated whenever unhandled events are received from the window +manager. This can be used, for example, to implement cut-and-paste in your +application. + +

typedef struct {
+         Uint8 type;   /* Always SDL_SYSWMEVENT */
+         SDL_SysWMmsg *msg;
+ } SDL_SysWMEvent;
+ +If you want to obtain system-specific information about the window manager, +you can fill the version member of a SDL_SysWMinfo +structure (details can be found in SDL_syswm.h, which must be included) using the SDL_VERSION() macro found in +SDL_version.h, and pass it to the +function: +

int SDL_GetWMInfo(SDL_SysWMinfo *info);


PrevHomeNext
SDL_ExposeEventUpSDL_UserEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlthreadid.html b/lib/sdl/msvc/docs/html/sdlthreadid.html new file mode 100644 index 0000000000000000000000000000000000000000..e0bde2e2a3598786acf965f78d728bbc64a9c95c --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlthreadid.html @@ -0,0 +1,190 @@ +SDL_ThreadID
SDL Library Documentation
PrevNext

SDL_ThreadID

Name

SDL_ThreadID -- Get the 32-bit thread identifier for the current thread.

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

Uint32 SDL_ThreadID(void);

Description

Get the 32-bit thread identifier for the current thread.


PrevHomeNext
SDL_CreateThreadUpSDL_GetThreadID
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlunlockaudio.html b/lib/sdl/msvc/docs/html/sdlunlockaudio.html new file mode 100644 index 0000000000000000000000000000000000000000..0019bd692a0c956b558fb3ab7743e4485cad20d7 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlunlockaudio.html @@ -0,0 +1,211 @@ +SDL_UnlockAudio
SDL Library Documentation
PrevNext

SDL_UnlockAudio

Name

SDL_UnlockAudio -- Unlock the callback function

Synopsis

#include "SDL.h"

void SDL_UnlockAudio(void);

Description

Unlocks a previous SDL_LockAudio call.


PrevHomeNext
SDL_LockAudioUpSDL_CloseAudio
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlunlocksurface.html b/lib/sdl/msvc/docs/html/sdlunlocksurface.html new file mode 100644 index 0000000000000000000000000000000000000000..13ba5fc8e2b0e63c316761e6ad038bfbab3e4e7e --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlunlocksurface.html @@ -0,0 +1,219 @@ +SDL_UnlockSurface
SDL Library Documentation
PrevNext

SDL_UnlockSurface

Name

SDL_UnlockSurface -- Unlocks a previously locked surface.

Synopsis

#include "SDL.h"

void SDL_UnlockSurface(SDL_Surface *surface);

Description

Surfaces that were previously locked using SDL_LockSurface must be unlocked with SDL_UnlockSurface. Surfaces should be unlocked as soon as possible.

It should be noted that since 1.1.8, surface locks are recursive. See SDL_LockSurface.


PrevHomeNext
SDL_LockSurfaceUpSDL_LoadBMP
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlunlockyuvoverlay.html b/lib/sdl/msvc/docs/html/sdlunlockyuvoverlay.html new file mode 100644 index 0000000000000000000000000000000000000000..936ed9eaf7e100ca60d97ffb888e76183718428a --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlunlockyuvoverlay.html @@ -0,0 +1,225 @@ +SDL_UnlockYUVOverlay
SDL Library Documentation
PrevNext

SDL_UnlockYUVOverlay

Name

SDL_UnlockYUVOverlay -- Unlock an overlay

Synopsis

#include "SDL.h"

void SDL_UnlockYUVOverlay(SDL_Overlay *overlay);

Description

The opposite to SDL_LockYUVOverlay. Unlocks a previously locked overlay. An overlay must be unlocked before it can be displayed.


PrevHomeNext
SDL_LockYUVOverlayUpSDL_DisplayYUVOverlay
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlupdaterect.html b/lib/sdl/msvc/docs/html/sdlupdaterect.html new file mode 100644 index 0000000000000000000000000000000000000000..f54d9f5e24366ba24e4ebdf4626a2b2edc95c763 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlupdaterect.html @@ -0,0 +1,266 @@ +SDL_UpdateRect
SDL Library Documentation
PrevNext

SDL_UpdateRect

Name

SDL_UpdateRect -- Makes sure the given area is updated on the given screen.

Synopsis

#include "SDL.h"

void SDL_UpdateRect(SDL_Surface *screen, Sint32 x, Sint32 y, Sint32 w, Sint32 h);

Description

Makes sure the given area is updated on the given screen. The rectangle must +be confined within the screen boundaries (no clipping is done).

If 'x', 'y', 'w' +and 'h' are all 0, +SDL_UpdateRect will update the +entire screen.

This function should not be called while 'screen' is +locked.


PrevHomeNext
SDL_SetVideoModeUpSDL_UpdateRects
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlupdaterects.html b/lib/sdl/msvc/docs/html/sdlupdaterects.html new file mode 100644 index 0000000000000000000000000000000000000000..0553a7a9d06f35e745e63bb5de3d5e46b6175d19 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlupdaterects.html @@ -0,0 +1,255 @@ +SDL_UpdateRects
SDL Library Documentation
PrevNext

SDL_UpdateRects

Name

SDL_UpdateRects -- Makes sure the given list of rectangles is updated on the given screen.

Synopsis

#include "SDL.h"

void SDL_UpdateRects(SDL_Surface *screen, int numrects, SDL_Rect *rects);

Description

Makes sure the given list of rectangles is updated on the given screen. +The rectangles must all be confined within the screen boundaries (no +clipping is done).

This function should not be called while screen is +locked.

Note: It is adviced to call this function only once per frame, since each +call has some processing overhead. This is no restriction since you +can pass any number of rectangles each time.

The rectangles are not automatically merged or checked for overlap. In +general, the programmer can use his knowledge about his particular +rectangles to merge them in an efficient way, to avoid overdraw.


PrevHomeNext
SDL_UpdateRectUpSDL_Flip
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdluserevent.html b/lib/sdl/msvc/docs/html/sdluserevent.html new file mode 100644 index 0000000000000000000000000000000000000000..178769c51db324e05967f7c5d9987dcb4895ed5c --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdluserevent.html @@ -0,0 +1,337 @@ +SDL_UserEvent
SDL Library Documentation
PrevNext

SDL_UserEvent

Name

SDL_UserEvent -- A user-defined event type

Structure Definition

typedef struct{
+  Uint8 type;
+  int code;
+  void *data1;
+  void *data2;
+} SDL_UserEvent;

Structure Data

typeSDL_USEREVENT through to SDL_NUMEVENTS-1
codeUser defined event code
data1User defined data pointer
data2User defined data pointer

Description

SDL_UserEvent is in the user member of the structure SDL_Event. This event is unique, it is never created by SDL but only by the user. The event can be pushed onto the event queue using SDL_PushEvent. The contents of the structure members or completely up to the programmer, the only requirement is that type is a value from SDL_USEREVENT to SDL_NUMEVENTS-1 (inclusive).

Examples

SDL_Event event;
+
+event.type = SDL_USEREVENT;
+event.user.code = my_event_code;
+event.user.data1 = significant_data;
+event.user.data2 = 0;
+SDL_PushEvent(&event);


PrevHomeNext
SDL_SysWMEventUpSDL_QuitEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlvideodrivername.html b/lib/sdl/msvc/docs/html/sdlvideodrivername.html new file mode 100644 index 0000000000000000000000000000000000000000..141965623f19c9741cd73c9016d076aec76542cc --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlvideodrivername.html @@ -0,0 +1,243 @@ +SDL_VideoDriverName
SDL Library Documentation
PrevNext

SDL_VideoDriverName

Name

SDL_VideoDriverName -- Obtain the name of the video driver

Synopsis

#include "SDL.h"

char *SDL_VideoDriverName(char *namebuf, int maxlen);

Description

The buffer pointed to by namebuf is filled up to a maximum of maxlen characters (include the NULL terminator) with the name of the initialised video driver. The driver name is a simple one word identifier like "x11" or "windib".

Return Value

Returns NULL if video has not been initialised with SDL_Init or a pointer to namebuf otherwise.


PrevHomeNext
SDL_GetVideoInfoUpSDL_ListModes
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlvideoinfo.html b/lib/sdl/msvc/docs/html/sdlvideoinfo.html new file mode 100644 index 0000000000000000000000000000000000000000..3a0da31dadb79a487229e24d6996d4cbc1045c89 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlvideoinfo.html @@ -0,0 +1,408 @@ +SDL_VideoInfo
SDL Library Documentation
PrevNext

SDL_VideoInfo

Name

SDL_VideoInfo -- Video Target information

Structure Definition

typedef struct{
+  Uint32 hw_available:1;
+  Uint32 wm_available:1;
+  Uint32 blit_hw:1;
+  Uint32 blit_hw_CC:1;
+  Uint32 blit_hw_A:1;
+  Uint32 blit_sw:1;
+  Uint32 blit_sw_CC:1;
+  Uint32 blit_sw_A:1;
+  Uint32 blit_fill;
+  Uint32 video_mem;
+  SDL_PixelFormat *vfmt;
+} SDL_VideoInfo;

Structure Data

hw_availableIs it possible to create hardware surfaces?
wm_availableIs there a window manager available
blit_hwAre hardware to hardware blits accelerated?
blit_hw_CCAre hardware to hardware colorkey blits accelerated?
blit_hw_AAre hardware to hardware alpha blits accelerated?
blit_swAre software to hardware blits accelerated?
blit_sw_CCAre software to hardware colorkey blits accelerated?
blit_sw_AAre software to hardware alpha blits accelerated?
blit_fillAre color fills accelerated?
video_memTotal amount of video memory in Kilobytes
vfmtPixel format of the video device

Description

This (read-only) structure is returned by SDL_GetVideoInfo. It contains information on either the 'best' available mode (if called before SDL_SetVideoMode) or the current video mode.


PrevHomeNext
SDL_SurfaceUpSDL_Overlay
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlvideomodeok.html b/lib/sdl/msvc/docs/html/sdlvideomodeok.html new file mode 100644 index 0000000000000000000000000000000000000000..5d2d6c4eb956e9fa3374a1ebfcab5978b6a76a06 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlvideomodeok.html @@ -0,0 +1,270 @@ +SDL_VideoModeOK
SDL Library Documentation
PrevNext

SDL_VideoModeOK

Name

SDL_VideoModeOK -- Check to see if a particular video mode is supported.

Synopsis

#include "SDL.h"

int SDL_VideoModeOK(int width, int height, int bpp, Uint32 flags);

Description

SDL_VideoModeOK returns 0 +if the requested mode is not supported under any bit depth, or returns the +bits-per-pixel of the closest available mode with the given width, height and requested surface flags (see SDL_SetVideoMode).

The bits-per-pixel value returned is only a suggested mode. You can usually request and bpp you want when setting the video mode and SDL will emulate that color depth with a shadow video surface.

The arguments to SDL_VideoModeOK are the same ones you +would pass to SDL_SetVideoMode

Example

SDL_Surface *screen;
+Uint32 bpp;
+.
+.
+.
+printf("Checking mode 640x480@16bpp.\n");
+bpp=SDL_VideoModeOK(640, 480, 16, SDL_HWSURFACE);
+
+if(!bpp){
+  printf("Mode not available.\n");
+  exit(-1);
+}
+
+printf("SDL Recommends 640x480@%dbpp.\n", bpp);
+screen=SDL_SetVideoMode(640, 480, bpp, SDL_HWSURFACE);
+.
+.

PrevHomeNext
SDL_ListModesUpSDL_SetVideoMode
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlwaitevent.html b/lib/sdl/msvc/docs/html/sdlwaitevent.html new file mode 100644 index 0000000000000000000000000000000000000000..b473d3b06e35cb29b2990a8312822ec97ab75c29 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlwaitevent.html @@ -0,0 +1,231 @@ +SDL_WaitEvent
SDL Library Documentation
PrevNext

SDL_WaitEvent

Name

SDL_WaitEvent -- Waits indefinitely for the next available event.

Synopsis

#include "SDL.h"

int SDL_WaitEvent(SDL_Event *event);

Description

Waits indefinitely for the next available event, returning +1, or 0 if there was +an error while waiting for events.

If event is not NULL, the next +event is removed from the queue and stored in that area.


PrevHomeNext
SDL_PollEventUpSDL_PushEvent
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlwaitthread.html b/lib/sdl/msvc/docs/html/sdlwaitthread.html new file mode 100644 index 0000000000000000000000000000000000000000..2becfbc47f1ee64b8e8710b403bc29b517253768 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlwaitthread.html @@ -0,0 +1,231 @@ +SDL_WaitThread
SDL Library Documentation
PrevNext

SDL_WaitThread

Name

SDL_WaitThread -- Wait for a thread to finish.

Synopsis

#include "SDL.h"
+#include "SDL_thread.h"

void SDL_WaitThread(SDL_Thread *thread, int *status);

Description

Wait for a thread to finish (timeouts are not supported).

Return Value

The return code for the thread function is placed in the area pointed to by +status, if status is not +NULL.


PrevHomeNext
SDL_GetThreadIDUpSDL_KillThread
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlwarpmouse.html b/lib/sdl/msvc/docs/html/sdlwarpmouse.html new file mode 100644 index 0000000000000000000000000000000000000000..e7b2d8d79f6f5be220afdfaf9dd0dbfe7976ddca --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlwarpmouse.html @@ -0,0 +1,205 @@ +SDL_WarpMouse
SDL Library Documentation
PrevNext

SDL_WarpMouse

Name

SDL_WarpMouse -- Set the position of the mouse cursor.

Synopsis

#include "SDL.h"

void SDL_WarpMouse(Uint16 x, Uint16 y);

Description

Set the position of the mouse cursor (generates a mouse motion event).


PrevHomeNext
SDL_DisplayFormatAlphaUpSDL_CreateCursor
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlwasinit.html b/lib/sdl/msvc/docs/html/sdlwasinit.html new file mode 100644 index 0000000000000000000000000000000000000000..b4effeb6800c2a461478863d4dd7ec143e0e92ff --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlwasinit.html @@ -0,0 +1,284 @@ +SDL_WasInit
SDL Library Documentation
PrevNext

SDL_WasInit

Name

SDL_WasInit -- Check which subsystems are initialized

Synopsis

#include "SDL.h"

Uint32 SDL_WasInit(Uint32 flags);

Description

SDL_WasInit allows you to see which SDL subsytems have been initialized. flags is a bitwise OR'd combination of the subsystems you wish to check (see SDL_Init for a list of subsystem flags).

Return Value

SDL_WasInit returns a bitwised OR'd combination of the initialized subsystems.

Examples


/* Here are several ways you can use SDL_WasInit() */
+
+/* Get init data on all the subsystems */
+Uint32 subsystem_init;
+
+subsystem_init=SDL_WasInit(SDL_INIT_EVERYTHING);
+
+if(subsystem_init&SDL_INIT_VIDEO)
+  printf("Video is initialized.\n");
+else
+  printf("Video is not initialized.\n");
+
+
+
+/* Just check for one specfic subsystem */
+
+if(SDL_WasInit(SDL_INIT_VIDEO)!=0)
+  printf("Video is initialized.\n");
+else
+  printf("Video is not initialized.\n");
+
+
+
+
+/* Check for two subsystems */
+
+Uint32 subsystem_mask=SDL_INIT_VIDEO|SDL_INIT_AUDIO;
+
+if(SDL_WasInit(subsystem_mask)==subsystem_mask)
+  printf("Video and Audio initialized.\n");
+else
+  printf("Video and Audio not initialized.\n");

PrevHomeNext
SDL_QuitUpSDL_GetError
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlwmgetcaption.html b/lib/sdl/msvc/docs/html/sdlwmgetcaption.html new file mode 100644 index 0000000000000000000000000000000000000000..829c68aaa1632b0dad9cf753f10ee63d6a6ca2bf --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlwmgetcaption.html @@ -0,0 +1,222 @@ +SDL_WM_GetCaption
SDL Library Documentation
PrevNext

SDL_WM_GetCaption

Name

SDL_WM_GetCaption -- Gets the window title and icon name.

Synopsis

#include "SDL.h"

void SDL_WM_GetCaption(char **title, char **icon);

Description

Set pointers to the window title and icon name.


PrevHomeNext
SDL_WM_SetCaptionUpSDL_WM_SetIcon
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlwmgrabinput.html b/lib/sdl/msvc/docs/html/sdlwmgrabinput.html new file mode 100644 index 0000000000000000000000000000000000000000..740dcd6b29a103573f97f05d6d00a9bdd52f8140 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlwmgrabinput.html @@ -0,0 +1,224 @@ +SDL_WM_GrabInput
SDL Library Documentation
PrevNext

SDL_WM_GrabInput

Name

SDL_WM_GrabInput -- Grabs mouse and keyboard input.

Synopsis

#include "SDL.h"

SDL_GrabMode SDL_WM_GrabInput(SDL_GrabMode mode);

Description

Grabbing means that the mouse is confined to the application window, +and nearly all keyboard input is passed directly to the application, +and not interpreted by a window manager, if any.

When mode is SDL_GRAB_QUERY the grab mode is not changed, but the current grab mode is returned.

typedef enum {
+  SDL_GRAB_QUERY,
+  SDL_GRAB_OFF,
+  SDL_GRAB_ON
+} SDL_GrabMode;
+

Return Value

The current/new SDL_GrabMode.


PrevHomeNext
SDL_WM_ToggleFullScreenUpEvents
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlwmiconifywindow.html b/lib/sdl/msvc/docs/html/sdlwmiconifywindow.html new file mode 100644 index 0000000000000000000000000000000000000000..11136568628006e9aa0c5a64b25b1d57b1825f71 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlwmiconifywindow.html @@ -0,0 +1,211 @@ +SDL_WM_IconifyWindow
SDL Library Documentation
PrevNext

SDL_WM_IconifyWindow

Name

SDL_WM_IconifyWindow -- Iconify/Minimise the window

Synopsis

#include "SDL.h"

int SDL_WM_IconifyWindow(void);

Description

If the application is running in a window managed environment SDL attempts to iconify/minimise it. If SDL_WM_IconifyWindow is successful, the application will receive a SDL_APPACTIVE loss event.

Return Value

Returns non-zero on success or 0 if iconification is not support or was refused by the window manager.


PrevHomeNext
SDL_WM_SetIconUpSDL_WM_ToggleFullScreen
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlwmsetcaption.html b/lib/sdl/msvc/docs/html/sdlwmsetcaption.html new file mode 100644 index 0000000000000000000000000000000000000000..bc47c278bdbd8a5c151a3f3a8037e5b90bc82186 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlwmsetcaption.html @@ -0,0 +1,212 @@ +SDL_WM_SetCaption
SDL Library Documentation
PrevNext

SDL_WM_SetCaption

Name

SDL_WM_SetCaption -- Sets the window tile and icon name.

Synopsis

#include "SDL.h"

void SDL_WM_SetCaption(const char *title, const char *icon);

Description

Sets the title-bar and icon name of the display window.


PrevHomeNext
Window ManagementUpSDL_WM_GetCaption
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlwmseticon.html b/lib/sdl/msvc/docs/html/sdlwmseticon.html new file mode 100644 index 0000000000000000000000000000000000000000..12eb207c69bd71540a296f1d6dbddedbf2898e57 --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlwmseticon.html @@ -0,0 +1,260 @@ +SDL_WM_SetIcon
SDL Library Documentation
PrevNext

SDL_WM_SetIcon

Name

SDL_WM_SetIcon -- Sets the icon for the display window.

Synopsis

#include "SDL.h"

void SDL_WM_SetIcon(SDL_Surface *icon, Uint8 *mask);

Description

Sets the icon for the display window. Win32 icons must be 32x32.

This function must be called before the first call to +SDL_SetVideoMode.

The mask is a bitmask that describes the shape of the +icon. If mask is NULL, then the shape is determined by +the colorkey of icon, if any, or makes the icon +rectangular (no transparency) otherwise.

If mask is non-NULL, it points to a bitmap with bits set +where the corresponding pixel should be visible. The format of the bitmap is as +follows: Scanlines come in the usual top-down order. Each scanline consists of +(width / 8) bytes, rounded up. The most significant bit of each byte represents +the leftmost pixel.

Example

SDL_WM_SetIcon(SDL_LoadBMP("icon.bmp"), NULL);

PrevHomeNext
SDL_WM_GetCaptionUpSDL_WM_IconifyWindow
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/sdlwmtogglefullscreen.html b/lib/sdl/msvc/docs/html/sdlwmtogglefullscreen.html new file mode 100644 index 0000000000000000000000000000000000000000..b7973de551d585884f2ad57d38802b4919991bbc --- /dev/null +++ b/lib/sdl/msvc/docs/html/sdlwmtogglefullscreen.html @@ -0,0 +1,205 @@ +SDL_WM_ToggleFullScreen
SDL Library Documentation
PrevNext

SDL_WM_ToggleFullScreen

Name

SDL_WM_ToggleFullScreen -- Toggles fullscreen mode

Synopsis

#include "SDL.h"

int SDL_WM_ToggleFullScreen(SDL_Surface *surface);

Description

Toggles the application between windowed and fullscreen mode, if supported. (X11 is the only target currently supported, BeOS support is experimental).

Return Value

Returns 0 on failure or 1 on success.


PrevHomeNext
SDL_WM_IconifyWindowUpSDL_WM_GrabInput
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/thread.html b/lib/sdl/msvc/docs/html/thread.html new file mode 100644 index 0000000000000000000000000000000000000000..c66018eff237ff05b063bf28a4b4403d527277a6 --- /dev/null +++ b/lib/sdl/msvc/docs/html/thread.html @@ -0,0 +1,313 @@ +Multi-threaded Programming
SDL Library Documentation
PrevNext

Chapter 12. Multi-threaded Programming

Table of Contents
SDL_CreateThread -- Creates a new thread of execution that shares its parent's properties.
SDL_ThreadID -- Get the 32-bit thread identifier for the current thread.
SDL_GetThreadID -- Get the SDL thread ID of a SDL_Thread
SDL_WaitThread -- Wait for a thread to finish.
SDL_KillThread -- Gracelessly terminates the thread.
SDL_CreateMutex -- Create a mutex
SDL_DestroyMutex -- Destroy a mutex
SDL_mutexP -- Lock a mutex
SDL_mutexV -- Unlock a mutex
SDL_CreateSemaphore -- Creates a new semaphore and assigns an initial value to it.
SDL_DestroySemaphore -- Destroys a semaphore that was created by SDL_CreateSemaphore.
SDL_SemWait -- Lock a semaphore and suspend the thread if the semaphore value is zero.
SDL_SemTryWait -- Attempt to lock a semaphore but don't suspend the thread.
SDL_SemWaitTimeout -- Lock a semaphore, but only wait up to a specified maximum time.
SDL_SemPost -- Unlock a semaphore.
SDL_SemValue -- Return the current value of a semaphore.
SDL_CreateCond -- Create a condition variable
SDL_DestroyCond -- Destroy a condition variable
SDL_CondSignal -- Restart a thread wait on a condition variable
SDL_CondBroadcast -- Restart all threads waiting on a condition variable
SDL_CondWait -- Wait on a condition variable
SDL_CondWaitTimeout -- Wait on a condition variable, with timeout

SDL provides functions for creating threads, mutexes, semphores and condition variables.

In general, you must be very aware of concurrency and data integrity issues +when writing multi-threaded programs. Some good guidelines include: +

  • Don't call SDL video/event functions from separate threads

  • Don't use any library functions in separate threads

  • Don't perform any memory management in separate threads

  • Lock global variables which may be accessed by multiple threads

  • Never terminate threads, always set a flag and wait for them to quit

  • Think very carefully about all possible ways your code may interact

Note: SDL's threading is not implemented on MacOS, due to that lack of preemptive thread support (Mac OS X dos nt suffer from this problem)


PrevHomeNext
SDL_CDtrackUpSDL_CreateThread
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/time.html b/lib/sdl/msvc/docs/html/time.html new file mode 100644 index 0000000000000000000000000000000000000000..854b7cb57e9d1764d41166777ceea8e28e1bc121 --- /dev/null +++ b/lib/sdl/msvc/docs/html/time.html @@ -0,0 +1,206 @@ +Time
SDL Library Documentation
PrevNext

Chapter 13. Time

Table of Contents
SDL_GetTicks -- Get the number of milliseconds since the SDL library initialization.
SDL_Delay -- Wait a specified number of milliseconds before returning.
SDL_AddTimer -- Add a timer which will call a callback after the specified number of milliseconds has +elapsed.
SDL_RemoveTimer -- Remove a timer which was added with +SDL_AddTimer.
SDL_SetTimer -- Set a callback to run after the specified number of milliseconds has +elapsed.

SDL provides several cross-platform functions for dealing with time. +It provides a way to get the current time, a way to wait a little while, +and a simple timer mechanism. These functions give you two ways of moving an +object every x milliseconds: + +

  • Use a timer callback function. This may have the bad effect that it runs in a seperate thread or uses alarm signals, but it's easier to implement.

  • Or you can get the number of milliseconds passed, and move the object if, for example, 30 ms passed.


PrevHomeNext
SDL_CondWaitTimeoutUpSDL_GetTicks
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/video.html b/lib/sdl/msvc/docs/html/video.html new file mode 100644 index 0000000000000000000000000000000000000000..9b1434e62da948dda0dc5ba808e969ba316ff09d --- /dev/null +++ b/lib/sdl/msvc/docs/html/video.html @@ -0,0 +1,507 @@ +Video
SDL Library Documentation
PrevNext

Chapter 6. Video

Table of Contents
SDL_GetVideoSurface -- returns a pointer to the current display surface
SDL_GetVideoInfo -- returns a pointer to information about the video hardware
SDL_VideoDriverName -- Obtain the name of the video driver
SDL_ListModes -- Returns a pointer to an array of available screen dimensions for +the given format and video flags
SDL_VideoModeOK -- Check to see if a particular video mode is supported.
SDL_SetVideoMode -- Set up a video mode with the specified width, height and bits-per-pixel.
SDL_UpdateRect -- Makes sure the given area is updated on the given screen.
SDL_UpdateRects -- Makes sure the given list of rectangles is updated on the given screen.
SDL_Flip -- Swaps screen buffers
SDL_SetColors -- Sets a portion of the colormap for the given 8-bit surface.
SDL_SetPalette -- Sets the colors in the palette of an 8-bit surface.
SDL_SetGamma -- Sets the color gamma function for the display
SDL_GetGammaRamp -- Gets the color gamma lookup tables for the display
SDL_SetGammaRamp -- Sets the color gamma lookup tables for the display
SDL_MapRGB -- Map a RGB color value to a pixel format.
SDL_MapRGBA -- Map a RGBA color value to a pixel format.
SDL_GetRGB -- Get RGB values from a pixel in the specified pixel format.
SDL_GetRGBA -- Get RGBA values from a pixel in the specified pixel format.
SDL_CreateRGBSurface -- Create an empty SDL_Surface
SDL_CreateRGBSurfaceFrom -- Create an SDL_Surface from pixel data
SDL_FreeSurface -- Frees (deletes) a SDL_Surface
SDL_LockSurface -- Lock a surface for directly access.
SDL_UnlockSurface -- Unlocks a previously locked surface.
SDL_LoadBMP -- Load a Windows BMP file into an SDL_Surface.
SDL_SaveBMP -- Save an SDL_Surface as a Windows BMP file.
SDL_SetColorKey -- Sets the color key (transparent pixel) in a blittable surface and +RLE acceleration.
SDL_SetAlpha -- Adjust the alpha properties of a surface
SDL_SetClipRect -- Sets the clipping rectangle for a surface.
SDL_GetClipRect -- Gets the clipping rectangle for a surface.
SDL_ConvertSurface -- Converts a surface to the same format as another surface.
SDL_BlitSurface -- This performs a fast blit from the source surface to the destination surface.
SDL_FillRect -- This function performs a fast fill of the given rectangle with some color
SDL_DisplayFormat -- Convert a surface to the display format
SDL_DisplayFormatAlpha -- Convert a surface to the display format
SDL_WarpMouse -- Set the position of the mouse cursor.
SDL_CreateCursor -- Creates a new mouse cursor.
SDL_FreeCursor -- Frees a cursor created with SDL_CreateCursor.
SDL_SetCursor -- Set the currently active mouse cursor.
SDL_GetCursor -- Get the currently active mouse cursor.
SDL_ShowCursor -- Toggle whether or not the cursor is shown on the screen.
SDL_GL_LoadLibrary -- Specify an OpenGL library
SDL_GL_GetProcAddress -- Get the address of a GL function
SDL_GL_GetAttribute -- Get the value of a special SDL/OpenGL attribute
SDL_GL_SetAttribute -- Set a special SDL/OpenGL attribute
SDL_GL_SwapBuffers -- Swap OpenGL framebuffers/Update Display
SDL_CreateYUVOverlay -- Create a YUV video overlay
SDL_LockYUVOverlay -- Lock an overlay
SDL_UnlockYUVOverlay -- Unlock an overlay
SDL_DisplayYUVOverlay -- Blit the overlay to the display
SDL_FreeYUVOverlay -- Free a YUV video overlay
SDL_GLattr -- SDL GL Attributes
SDL_Rect -- Defines a rectangular area
SDL_Color -- Format independent color description
SDL_Palette -- Color palette for 8-bit pixel formats
SDL_PixelFormat -- Stores surface format information
SDL_Surface -- Graphical Surface Structure
SDL_VideoInfo -- Video Target information
SDL_Overlay -- YUV video overlay

SDL presents a very simple interface to the display framebuffer. The +framebuffer is represented as an offscreen surface to which you can write +directly. If you want the screen to show what you have written, call the update function which will +guarantee that the desired portion of the screen is updated.

Before you call any of the SDL video functions, you must first call +SDL_Init(SDL_INIT_VIDEO), which initializes the video +and events in the SDL library. Check the return code, which should be +0, to see if there were any errors in starting up.

If you use both sound and video in your application, you need to call +SDL_Init(SDL_INIT_AUDIO | SDL_INIT_VIDEO) before opening the +sound device, otherwise under Win32 DirectX, you won't be able to set +full-screen display modes.

After you have initialized the library, you can start up the video display in a +number of ways. The easiest way is to pick a common screen resolution and +depth and just initialize the video, checking for errors. You will probably +get what you want, but SDL may be emulating your requested mode and converting +the display on update. The best way is to +query, for the best +video mode closest to the desired one, and then +convert +your images to that pixel format.

SDL currently supports any bit depth >= 8 bits per pixel. 8 bpp formats are +considered 8-bit palettized modes, while 12, 15, 16, 24, and 32 bits per pixel +are considered "packed pixel" modes, meaning each pixel contains the RGB color +components packed in the bits of the pixel.

After you have initialized your video mode, you can take the surface that was +returned, and write to it like any other framebuffer, calling the update +routine as you go.

When you have finished your video access and are ready to quit your +application, you should call "SDL_Quit()" to shutdown the +video and events.


PrevHomeNext
SDL_envvarsUpSDL_GetVideoSurface
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/html/wm.html b/lib/sdl/msvc/docs/html/wm.html new file mode 100644 index 0000000000000000000000000000000000000000..f53a349c1658adb84fa13245387303caf4459b32 --- /dev/null +++ b/lib/sdl/msvc/docs/html/wm.html @@ -0,0 +1,188 @@ +Window Management
SDL Library Documentation
PrevNext

Chapter 7. Window Management

Table of Contents
SDL_WM_SetCaption -- Sets the window tile and icon name.
SDL_WM_GetCaption -- Gets the window title and icon name.
SDL_WM_SetIcon -- Sets the icon for the display window.
SDL_WM_IconifyWindow -- Iconify/Minimise the window
SDL_WM_ToggleFullScreen -- Toggles fullscreen mode
SDL_WM_GrabInput -- Grabs mouse and keyboard input.

SDL provides a small set of window management functions which allow applications to change their title and toggle from windowed mode to fullscreen (if available)


PrevHomeNext
SDL_OverlayUpSDL_WM_SetCaption
\ No newline at end of file diff --git a/lib/sdl/msvc/docs/images/rainbow.gif b/lib/sdl/msvc/docs/images/rainbow.gif new file mode 100644 index 0000000000000000000000000000000000000000..07eb184f7e0496747543f459ae6981e5d70c0292 Binary files /dev/null and b/lib/sdl/msvc/docs/images/rainbow.gif differ diff --git a/lib/sdl/msvc/docs/index.html b/lib/sdl/msvc/docs/index.html new file mode 100644 index 0000000000000000000000000000000000000000..7d572533e215513893b48b628be88e0a375a424c --- /dev/null +++ b/lib/sdl/msvc/docs/index.html @@ -0,0 +1,55 @@ + + +Simple DirectMedia Layer Introduction + + +
+

Simple DirectMedia Layer Introduction

+

+This library is designed to make it easy to write games that run on many +different platforms using the various native high-performance media interfaces, +(for video, audio, etc) and presenting a single source-code level API to +your application. This is a fairly low level API, but using this, completely +portable applications can be written with a great deal of flexibility. +

+An introduction to SDL can be found online at: + + http://www.libsdl.org/intro.php +

+Tutorials on a variety of topics can be found online at: + + http://www.libsdl.org/tutorials.php +

+Documentation in Wiki form can be found online at: + + http://www.libsdl.org/cgi/docwiki.cgi/ +

+Enjoy! +

+    Sam Lantinga + +

+


+

Table of Contents

+ +
diff --git a/lib/sdl/msvc/include/SDL/SDL.h b/lib/sdl/msvc/include/SDL/SDL.h new file mode 100644 index 0000000000000000000000000000000000000000..119ed7ff1461c517e7108a6db221cc0ffb7bc173 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL.h @@ -0,0 +1,101 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL.h + * Main include header for the SDL library + */ + +#ifndef _SDL_H +#define _SDL_H + +#include "SDL_main.h" +#include "SDL_stdinc.h" +#include "SDL_audio.h" +#include "SDL_cdrom.h" +#include "SDL_cpuinfo.h" +#include "SDL_endian.h" +#include "SDL_error.h" +#include "SDL_events.h" +#include "SDL_loadso.h" +#include "SDL_mutex.h" +#include "SDL_rwops.h" +#include "SDL_thread.h" +#include "SDL_timer.h" +#include "SDL_video.h" +#include "SDL_version.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** @file SDL.h + * @note As of version 0.5, SDL is loaded dynamically into the application + */ + +/** @name SDL_INIT Flags + * These are the flags which may be passed to SDL_Init() -- you should + * specify the subsystems which you will be using in your application. + */ +/*@{*/ +#define SDL_INIT_TIMER 0x00000001 +#define SDL_INIT_AUDIO 0x00000010 +#define SDL_INIT_VIDEO 0x00000020 +#define SDL_INIT_CDROM 0x00000100 +#define SDL_INIT_JOYSTICK 0x00000200 +#define SDL_INIT_NOPARACHUTE 0x00100000 /**< Don't catch fatal signals */ +#define SDL_INIT_EVENTTHREAD 0x01000000 /**< Not supported on all OS's */ +#define SDL_INIT_EVERYTHING 0x0000FFFF +/*@}*/ + +/** This function loads the SDL dynamically linked library and initializes + * the subsystems specified by 'flags' (and those satisfying dependencies) + * Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup + * signal handlers for some commonly ignored fatal signals (like SIGSEGV) + */ +extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags); + +/** This function initializes specific SDL subsystems */ +extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags); + +/** This function cleans up specific SDL subsystems */ +extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags); + +/** This function returns mask of the specified subsystems which have + * been initialized. + * If 'flags' is 0, it returns a mask of all initialized subsystems. + */ +extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags); + +/** This function cleans up all initialized subsystems and unloads the + * dynamically linked library. You should call it upon all exit conditions. + */ +extern DECLSPEC void SDLCALL SDL_Quit(void); + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_H */ diff --git a/lib/sdl/msvc/include/SDL/SDL_active.h b/lib/sdl/msvc/include/SDL/SDL_active.h new file mode 100644 index 0000000000000000000000000000000000000000..0ae92f2d568f50b01280b42608e5453a7001f269 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_active.h @@ -0,0 +1,63 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** + * @file SDL_active.h + * Include file for SDL application focus event handling + */ + +#ifndef _SDL_active_h +#define _SDL_active_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** @name The available application states */ +/*@{*/ +#define SDL_APPMOUSEFOCUS 0x01 /**< The app has mouse coverage */ +#define SDL_APPINPUTFOCUS 0x02 /**< The app has input focus */ +#define SDL_APPACTIVE 0x04 /**< The application is active */ +/*@}*/ + +/* Function prototypes */ +/** + * This function returns the current state of the application, which is a + * bitwise combination of SDL_APPMOUSEFOCUS, SDL_APPINPUTFOCUS, and + * SDL_APPACTIVE. If SDL_APPACTIVE is set, then the user is able to + * see your application, otherwise it has been iconified or disabled. + */ +extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void); + + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_active_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_audio.h b/lib/sdl/msvc/include/SDL/SDL_audio.h new file mode 100644 index 0000000000000000000000000000000000000000..3a8e7fa8b857b63dbe69f3b1dfe34d6b25d408ec --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_audio.h @@ -0,0 +1,284 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** + * @file SDL_audio.h + * Access to the raw audio mixing buffer for the SDL library + */ + +#ifndef _SDL_audio_h +#define _SDL_audio_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" +#include "SDL_endian.h" +#include "SDL_mutex.h" +#include "SDL_thread.h" +#include "SDL_rwops.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** + * When filling in the desired audio spec structure, + * - 'desired->freq' should be the desired audio frequency in samples-per-second. + * - 'desired->format' should be the desired audio format. + * - 'desired->samples' is the desired size of the audio buffer, in samples. + * This number should be a power of two, and may be adjusted by the audio + * driver to a value more suitable for the hardware. Good values seem to + * range between 512 and 8096 inclusive, depending on the application and + * CPU speed. Smaller values yield faster response time, but can lead + * to underflow if the application is doing heavy processing and cannot + * fill the audio buffer in time. A stereo sample consists of both right + * and left channels in LR ordering. + * Note that the number of samples is directly related to time by the + * following formula: ms = (samples*1000)/freq + * - 'desired->size' is the size in bytes of the audio buffer, and is + * calculated by SDL_OpenAudio(). + * - 'desired->silence' is the value used to set the buffer to silence, + * and is calculated by SDL_OpenAudio(). + * - 'desired->callback' should be set to a function that will be called + * when the audio device is ready for more data. It is passed a pointer + * to the audio buffer, and the length in bytes of the audio buffer. + * This function usually runs in a separate thread, and so you should + * protect data structures that it accesses by calling SDL_LockAudio() + * and SDL_UnlockAudio() in your code. + * - 'desired->userdata' is passed as the first parameter to your callback + * function. + * + * @note The calculated values in this structure are calculated by SDL_OpenAudio() + * + */ +typedef struct SDL_AudioSpec { + int freq; /**< DSP frequency -- samples per second */ + Uint16 format; /**< Audio data format */ + Uint8 channels; /**< Number of channels: 1 mono, 2 stereo */ + Uint8 silence; /**< Audio buffer silence value (calculated) */ + Uint16 samples; /**< Audio buffer size in samples (power of 2) */ + Uint16 padding; /**< Necessary for some compile environments */ + Uint32 size; /**< Audio buffer size in bytes (calculated) */ + /** + * This function is called when the audio device needs more data. + * + * @param[out] stream A pointer to the audio data buffer + * @param[in] len The length of the audio buffer in bytes. + * + * Once the callback returns, the buffer will no longer be valid. + * Stereo samples are stored in a LRLRLR ordering. + */ + void (SDLCALL *callback)(void *userdata, Uint8 *stream, int len); + void *userdata; +} SDL_AudioSpec; + +/** + * @name Audio format flags + * defaults to LSB byte order + */ +/*@{*/ +#define AUDIO_U8 0x0008 /**< Unsigned 8-bit samples */ +#define AUDIO_S8 0x8008 /**< Signed 8-bit samples */ +#define AUDIO_U16LSB 0x0010 /**< Unsigned 16-bit samples */ +#define AUDIO_S16LSB 0x8010 /**< Signed 16-bit samples */ +#define AUDIO_U16MSB 0x1010 /**< As above, but big-endian byte order */ +#define AUDIO_S16MSB 0x9010 /**< As above, but big-endian byte order */ +#define AUDIO_U16 AUDIO_U16LSB +#define AUDIO_S16 AUDIO_S16LSB + +/** + * @name Native audio byte ordering + */ +/*@{*/ +#if SDL_BYTEORDER == SDL_LIL_ENDIAN +#define AUDIO_U16SYS AUDIO_U16LSB +#define AUDIO_S16SYS AUDIO_S16LSB +#else +#define AUDIO_U16SYS AUDIO_U16MSB +#define AUDIO_S16SYS AUDIO_S16MSB +#endif +/*@}*/ + +/*@}*/ + + +/** A structure to hold a set of audio conversion filters and buffers */ +typedef struct SDL_AudioCVT { + int needed; /**< Set to 1 if conversion possible */ + Uint16 src_format; /**< Source audio format */ + Uint16 dst_format; /**< Target audio format */ + double rate_incr; /**< Rate conversion increment */ + Uint8 *buf; /**< Buffer to hold entire audio data */ + int len; /**< Length of original audio buffer */ + int len_cvt; /**< Length of converted audio buffer */ + int len_mult; /**< buffer must be len*len_mult big */ + double len_ratio; /**< Given len, final size is len*len_ratio */ + void (SDLCALL *filters[10])(struct SDL_AudioCVT *cvt, Uint16 format); + int filter_index; /**< Current audio conversion function */ +} SDL_AudioCVT; + + +/* Function prototypes */ + +/** + * @name Audio Init and Quit + * These functions are used internally, and should not be used unless you + * have a specific need to specify the audio driver you want to use. + * You should normally use SDL_Init() or SDL_InitSubSystem(). + */ +/*@{*/ +extern DECLSPEC int SDLCALL SDL_AudioInit(const char *driver_name); +extern DECLSPEC void SDLCALL SDL_AudioQuit(void); +/*@}*/ + +/** + * This function fills the given character buffer with the name of the + * current audio driver, and returns a pointer to it if the audio driver has + * been initialized. It returns NULL if no driver has been initialized. + */ +extern DECLSPEC char * SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen); + +/** + * This function opens the audio device with the desired parameters, and + * returns 0 if successful, placing the actual hardware parameters in the + * structure pointed to by 'obtained'. If 'obtained' is NULL, the audio + * data passed to the callback function will be guaranteed to be in the + * requested format, and will be automatically converted to the hardware + * audio format if necessary. This function returns -1 if it failed + * to open the audio device, or couldn't set up the audio thread. + * + * The audio device starts out playing silence when it's opened, and should + * be enabled for playing by calling SDL_PauseAudio(0) when you are ready + * for your audio callback function to be called. Since the audio driver + * may modify the requested size of the audio buffer, you should allocate + * any local mixing buffers after you open the audio device. + * + * @sa SDL_AudioSpec + */ +extern DECLSPEC int SDLCALL SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained); + +typedef enum { + SDL_AUDIO_STOPPED = 0, + SDL_AUDIO_PLAYING, + SDL_AUDIO_PAUSED +} SDL_audiostatus; + +/** Get the current audio state */ +extern DECLSPEC SDL_audiostatus SDLCALL SDL_GetAudioStatus(void); + +/** + * This function pauses and unpauses the audio callback processing. + * It should be called with a parameter of 0 after opening the audio + * device to start playing sound. This is so you can safely initialize + * data for your callback function after opening the audio device. + * Silence will be written to the audio device during the pause. + */ +extern DECLSPEC void SDLCALL SDL_PauseAudio(int pause_on); + +/** + * This function loads a WAVE from the data source, automatically freeing + * that source if 'freesrc' is non-zero. For example, to load a WAVE file, + * you could do: + * @code SDL_LoadWAV_RW(SDL_RWFromFile("sample.wav", "rb"), 1, ...); @endcode + * + * If this function succeeds, it returns the given SDL_AudioSpec, + * filled with the audio data format of the wave data, and sets + * 'audio_buf' to a malloc()'d buffer containing the audio data, + * and sets 'audio_len' to the length of that audio buffer, in bytes. + * You need to free the audio buffer with SDL_FreeWAV() when you are + * done with it. + * + * This function returns NULL and sets the SDL error message if the + * wave file cannot be opened, uses an unknown data format, or is + * corrupt. Currently raw and MS-ADPCM WAVE files are supported. + */ +extern DECLSPEC SDL_AudioSpec * SDLCALL SDL_LoadWAV_RW(SDL_RWops *src, int freesrc, SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len); + +/** Compatibility convenience function -- loads a WAV from a file */ +#define SDL_LoadWAV(file, spec, audio_buf, audio_len) \ + SDL_LoadWAV_RW(SDL_RWFromFile(file, "rb"),1, spec,audio_buf,audio_len) + +/** + * This function frees data previously allocated with SDL_LoadWAV_RW() + */ +extern DECLSPEC void SDLCALL SDL_FreeWAV(Uint8 *audio_buf); + +/** + * This function takes a source format and rate and a destination format + * and rate, and initializes the 'cvt' structure with information needed + * by SDL_ConvertAudio() to convert a buffer of audio data from one format + * to the other. + * + * @return This function returns 0, or -1 if there was an error. + */ +extern DECLSPEC int SDLCALL SDL_BuildAudioCVT(SDL_AudioCVT *cvt, + Uint16 src_format, Uint8 src_channels, int src_rate, + Uint16 dst_format, Uint8 dst_channels, int dst_rate); + +/** + * Once you have initialized the 'cvt' structure using SDL_BuildAudioCVT(), + * created an audio buffer cvt->buf, and filled it with cvt->len bytes of + * audio data in the source format, this function will convert it in-place + * to the desired format. + * The data conversion may expand the size of the audio data, so the buffer + * cvt->buf should be allocated after the cvt structure is initialized by + * SDL_BuildAudioCVT(), and should be cvt->len*cvt->len_mult bytes long. + */ +extern DECLSPEC int SDLCALL SDL_ConvertAudio(SDL_AudioCVT *cvt); + + +#define SDL_MIX_MAXVOLUME 128 +/** + * This takes two audio buffers of the playing audio format and mixes + * them, performing addition, volume adjustment, and overflow clipping. + * The volume ranges from 0 - 128, and should be set to SDL_MIX_MAXVOLUME + * for full audio volume. Note this does not change hardware volume. + * This is provided for convenience -- you can mix your own audio data. + */ +extern DECLSPEC void SDLCALL SDL_MixAudio(Uint8 *dst, const Uint8 *src, Uint32 len, int volume); + +/** + * @name Audio Locks + * The lock manipulated by these functions protects the callback function. + * During a LockAudio/UnlockAudio pair, you can be guaranteed that the + * callback function is not running. Do not call these from the callback + * function or you will cause deadlock. + */ +/*@{*/ +extern DECLSPEC void SDLCALL SDL_LockAudio(void); +extern DECLSPEC void SDLCALL SDL_UnlockAudio(void); +/*@}*/ + +/** + * This function shuts down audio processing and closes the audio device. + */ +extern DECLSPEC void SDLCALL SDL_CloseAudio(void); + + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_audio_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_byteorder.h b/lib/sdl/msvc/include/SDL/SDL_byteorder.h new file mode 100644 index 0000000000000000000000000000000000000000..9b93cd69a308e27088c293c0e608f3e7d7810ff1 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_byteorder.h @@ -0,0 +1,29 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** + * @file SDL_byteorder.h + * @deprecated Use SDL_endian.h instead + */ + +/* DEPRECATED */ +#include "SDL_endian.h" diff --git a/lib/sdl/msvc/include/SDL/SDL_cdrom.h b/lib/sdl/msvc/include/SDL/SDL_cdrom.h new file mode 100644 index 0000000000000000000000000000000000000000..fff5cfa1584200625c4dc61ee7e55f0c3b7633a2 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_cdrom.h @@ -0,0 +1,202 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** + * @file SDL_cdrom.h + * This is the CD-audio control API for Simple DirectMedia Layer + */ + +#ifndef _SDL_cdrom_h +#define _SDL_cdrom_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @file SDL_cdrom.h + * In order to use these functions, SDL_Init() must have been called + * with the SDL_INIT_CDROM flag. This causes SDL to scan the system + * for CD-ROM drives, and load appropriate drivers. + */ + +/** The maximum number of CD-ROM tracks on a disk */ +#define SDL_MAX_TRACKS 99 + +/** @name Track Types + * The types of CD-ROM track possible + */ +/*@{*/ +#define SDL_AUDIO_TRACK 0x00 +#define SDL_DATA_TRACK 0x04 +/*@}*/ + +/** The possible states which a CD-ROM drive can be in. */ +typedef enum { + CD_TRAYEMPTY, + CD_STOPPED, + CD_PLAYING, + CD_PAUSED, + CD_ERROR = -1 +} CDstatus; + +/** Given a status, returns true if there's a disk in the drive */ +#define CD_INDRIVE(status) ((int)(status) > 0) + +typedef struct SDL_CDtrack { + Uint8 id; /**< Track number */ + Uint8 type; /**< Data or audio track */ + Uint16 unused; + Uint32 length; /**< Length, in frames, of this track */ + Uint32 offset; /**< Offset, in frames, from start of disk */ +} SDL_CDtrack; + +/** This structure is only current as of the last call to SDL_CDStatus() */ +typedef struct SDL_CD { + int id; /**< Private drive identifier */ + CDstatus status; /**< Current drive status */ + + /** The rest of this structure is only valid if there's a CD in drive */ + /*@{*/ + int numtracks; /**< Number of tracks on disk */ + int cur_track; /**< Current track position */ + int cur_frame; /**< Current frame offset within current track */ + SDL_CDtrack track[SDL_MAX_TRACKS+1]; + /*@}*/ +} SDL_CD; + +/** @name Frames / MSF Conversion Functions + * Conversion functions from frames to Minute/Second/Frames and vice versa + */ +/*@{*/ +#define CD_FPS 75 +#define FRAMES_TO_MSF(f, M,S,F) { \ + int value = f; \ + *(F) = value%CD_FPS; \ + value /= CD_FPS; \ + *(S) = value%60; \ + value /= 60; \ + *(M) = value; \ +} +#define MSF_TO_FRAMES(M, S, F) ((M)*60*CD_FPS+(S)*CD_FPS+(F)) +/*@}*/ + +/* CD-audio API functions: */ + +/** + * Returns the number of CD-ROM drives on the system, or -1 if + * SDL_Init() has not been called with the SDL_INIT_CDROM flag. + */ +extern DECLSPEC int SDLCALL SDL_CDNumDrives(void); + +/** + * Returns a human-readable, system-dependent identifier for the CD-ROM. + * Example: + * - "/dev/cdrom" + * - "E:" + * - "/dev/disk/ide/1/master" + */ +extern DECLSPEC const char * SDLCALL SDL_CDName(int drive); + +/** + * Opens a CD-ROM drive for access. It returns a drive handle on success, + * or NULL if the drive was invalid or busy. This newly opened CD-ROM + * becomes the default CD used when other CD functions are passed a NULL + * CD-ROM handle. + * Drives are numbered starting with 0. Drive 0 is the system default CD-ROM. + */ +extern DECLSPEC SDL_CD * SDLCALL SDL_CDOpen(int drive); + +/** + * This function returns the current status of the given drive. + * If the drive has a CD in it, the table of contents of the CD and current + * play position of the CD will be stored in the SDL_CD structure. + */ +extern DECLSPEC CDstatus SDLCALL SDL_CDStatus(SDL_CD *cdrom); + +/** + * Play the given CD starting at 'start_track' and 'start_frame' for 'ntracks' + * tracks and 'nframes' frames. If both 'ntrack' and 'nframe' are 0, play + * until the end of the CD. This function will skip data tracks. + * This function should only be called after calling SDL_CDStatus() to + * get track information about the CD. + * For example: + * @code + * // Play entire CD: + * if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) + * SDL_CDPlayTracks(cdrom, 0, 0, 0, 0); + * // Play last track: + * if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) { + * SDL_CDPlayTracks(cdrom, cdrom->numtracks-1, 0, 0, 0); + * } + * // Play first and second track and 10 seconds of third track: + * if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) + * SDL_CDPlayTracks(cdrom, 0, 0, 2, 10); + * @endcode + * + * @return This function returns 0, or -1 if there was an error. + */ +extern DECLSPEC int SDLCALL SDL_CDPlayTracks(SDL_CD *cdrom, + int start_track, int start_frame, int ntracks, int nframes); + +/** + * Play the given CD starting at 'start' frame for 'length' frames. + * @return It returns 0, or -1 if there was an error. + */ +extern DECLSPEC int SDLCALL SDL_CDPlay(SDL_CD *cdrom, int start, int length); + +/** Pause play + * @return returns 0, or -1 on error + */ +extern DECLSPEC int SDLCALL SDL_CDPause(SDL_CD *cdrom); + +/** Resume play + * @return returns 0, or -1 on error + */ +extern DECLSPEC int SDLCALL SDL_CDResume(SDL_CD *cdrom); + +/** Stop play + * @return returns 0, or -1 on error + */ +extern DECLSPEC int SDLCALL SDL_CDStop(SDL_CD *cdrom); + +/** Eject CD-ROM + * @return returns 0, or -1 on error + */ +extern DECLSPEC int SDLCALL SDL_CDEject(SDL_CD *cdrom); + +/** Closes the handle for the CD-ROM drive */ +extern DECLSPEC void SDLCALL SDL_CDClose(SDL_CD *cdrom); + + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_video_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_config.h b/lib/sdl/msvc/include/SDL/SDL_config.h new file mode 100644 index 0000000000000000000000000000000000000000..a50810169ce4697128b8c84b8768c37a7cb6f1e3 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_config.h @@ -0,0 +1,45 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_config_h +#define _SDL_config_h + +#include "SDL_platform.h" + +/* Add any platform that doesn't build using the configure system */ +#if defined(__DREAMCAST__) +#include "SDL_config_dreamcast.h" +#elif defined(__MACOS__) +#include "SDL_config_macos.h" +#elif defined(__MACOSX__) +#include "SDL_config_macosx.h" +#elif defined(__SYMBIAN32__) +#include "SDL_config_symbian.h" /* must be before win32! */ +#elif defined(__WIN32__) +#include "SDL_config_win32.h" +#elif defined(__OS2__) +#include "SDL_config_os2.h" +#else +#include "SDL_config_minimal.h" +#endif /* platform config */ + +#endif /* _SDL_config_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_config_amiga.h b/lib/sdl/msvc/include/SDL/SDL_config_amiga.h new file mode 100644 index 0000000000000000000000000000000000000000..23e0861928b3a0ce744269870000da976a57a930 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_config_amiga.h @@ -0,0 +1,80 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2006 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_config_amiga_h +#define _SDL_config_amiga_h + +#include "SDL_platform.h" + +/* This is a set of defines to configure the SDL features */ + +#define SDL_HAS_64BIT_TYPE 1 + +/* Useful headers */ +#define HAVE_SYS_TYPES_H 1 +#define HAVE_STDIO_H 1 +#define STDC_HEADERS 1 +#define HAVE_STRING_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_SIGNAL_H 1 + +/* C library functions */ +#define HAVE_MALLOC 1 +#define HAVE_CALLOC 1 +#define HAVE_REALLOC 1 +#define HAVE_FREE 1 +#define HAVE_ALLOCA 1 +#define HAVE_GETENV 1 +#define HAVE_PUTENV 1 +#define HAVE_MEMSET 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMCMP 1 + +/* Enable various audio drivers */ +#define SDL_AUDIO_DRIVER_AHI 1 +#define SDL_AUDIO_DRIVER_DISK 1 +#define SDL_AUDIO_DRIVER_DUMMY 1 + +/* Enable various cdrom drivers */ +#define SDL_CDROM_DUMMY 1 + +/* Enable various input drivers */ +#define SDL_JOYSTICK_AMIGA 1 + +/* Enable various shared object loading systems */ +#define SDL_LOADSO_DUMMY 1 + +/* Enable various threading systems */ +#define SDL_THREAD_AMIGA 1 + +/* Enable various timer systems */ +#define SDL_TIMER_AMIGA 1 + +/* Enable various video drivers */ +#define SDL_VIDEO_DRIVER_CYBERGRAPHICS 1 +#define SDL_VIDEO_DRIVER_DUMMY 1 + +/* Enable OpenGL support */ +#define SDL_VIDEO_OPENGL 1 + +#endif /* _SDL_config_amiga_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_config_dreamcast.h b/lib/sdl/msvc/include/SDL/SDL_config_dreamcast.h new file mode 100644 index 0000000000000000000000000000000000000000..07c2f081550fb666e6b184638dee638c229173ec --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_config_dreamcast.h @@ -0,0 +1,106 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_config_dreamcast_h +#define _SDL_config_dreamcast_h + +#include "SDL_platform.h" + +/* This is a set of defines to configure the SDL features */ + +typedef signed char int8_t; +typedef unsigned char uint8_t; +typedef signed short int16_t; +typedef unsigned short uint16_t; +typedef signed int int32_t; +typedef unsigned int uint32_t; +typedef signed long long int64_t; +typedef unsigned long long uint64_t; +typedef unsigned long uintptr_t; +#define SDL_HAS_64BIT_TYPE 1 + +/* Useful headers */ +#define HAVE_SYS_TYPES_H 1 +#define HAVE_STDIO_H 1 +#define STDC_HEADERS 1 +#define HAVE_STRING_H 1 +#define HAVE_CTYPE_H 1 + +/* C library functions */ +#define HAVE_MALLOC 1 +#define HAVE_CALLOC 1 +#define HAVE_REALLOC 1 +#define HAVE_FREE 1 +#define HAVE_ALLOCA 1 +#define HAVE_GETENV 1 +#define HAVE_PUTENV 1 +#define HAVE_QSORT 1 +#define HAVE_ABS 1 +#define HAVE_BCOPY 1 +#define HAVE_MEMSET 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMCMP 1 +#define HAVE_STRLEN 1 +#define HAVE_STRDUP 1 +#define HAVE_INDEX 1 +#define HAVE_RINDEX 1 +#define HAVE_STRCHR 1 +#define HAVE_STRRCHR 1 +#define HAVE_STRSTR 1 +#define HAVE_STRTOL 1 +#define HAVE_STRTOD 1 +#define HAVE_ATOI 1 +#define HAVE_ATOF 1 +#define HAVE_STRCMP 1 +#define HAVE_STRNCMP 1 +#define HAVE_STRICMP 1 +#define HAVE_STRCASECMP 1 +#define HAVE_SSCANF 1 +#define HAVE_SNPRINTF 1 +#define HAVE_VSNPRINTF 1 + +/* Enable various audio drivers */ +#define SDL_AUDIO_DRIVER_DC 1 +#define SDL_AUDIO_DRIVER_DISK 1 +#define SDL_AUDIO_DRIVER_DUMMY 1 + +/* Enable various cdrom drivers */ +#define SDL_CDROM_DC 1 + +/* Enable various input drivers */ +#define SDL_JOYSTICK_DC 1 + +/* Enable various shared object loading systems */ +#define SDL_LOADSO_DUMMY 1 + +/* Enable various threading systems */ +#define SDL_THREAD_DC 1 + +/* Enable various timer systems */ +#define SDL_TIMER_DC 1 + +/* Enable various video drivers */ +#define SDL_VIDEO_DRIVER_DC 1 +#define SDL_VIDEO_DRIVER_DUMMY 1 + +#endif /* _SDL_config_dreamcast_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_config_macos.h b/lib/sdl/msvc/include/SDL/SDL_config_macos.h new file mode 100644 index 0000000000000000000000000000000000000000..4ba5c22c3477e0ce8067c8c343f3ff18004ce37b --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_config_macos.h @@ -0,0 +1,112 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_config_macos_h +#define _SDL_config_macos_h + +#include "SDL_platform.h" + +/* This is a set of defines to configure the SDL features */ + +#include + +typedef SInt8 int8_t; +typedef UInt8 uint8_t; +typedef SInt16 int16_t; +typedef UInt16 uint16_t; +typedef SInt32 int32_t; +typedef UInt32 uint32_t; +typedef SInt64 int64_t; +typedef UInt64 uint64_t; +typedef unsigned long uintptr_t; + +#define SDL_HAS_64BIT_TYPE 1 + +/* Useful headers */ +#define HAVE_STDIO_H 1 +#define STDC_HEADERS 1 +#define HAVE_STRING_H 1 +#define HAVE_CTYPE_H 1 +#define HAVE_MATH_H 1 +#define HAVE_SIGNAL_H 1 + +/* C library functions */ +#define HAVE_MALLOC 1 +#define HAVE_CALLOC 1 +#define HAVE_REALLOC 1 +#define HAVE_FREE 1 +#define HAVE_ALLOCA 1 +#define HAVE_ABS 1 +#define HAVE_MEMSET 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMCMP 1 +#define HAVE_STRLEN 1 +#define HAVE_STRCHR 1 +#define HAVE_STRRCHR 1 +#define HAVE_STRSTR 1 +#define HAVE_ITOA 1 +#define HAVE_STRTOL 1 +#define HAVE_STRTOD 1 +#define HAVE_ATOI 1 +#define HAVE_ATOF 1 +#define HAVE_STRCMP 1 +#define HAVE_STRNCMP 1 +#define HAVE_SSCANF 1 + +/* Enable various audio drivers */ +#define SDL_AUDIO_DRIVER_SNDMGR 1 +#define SDL_AUDIO_DRIVER_DISK 1 +#define SDL_AUDIO_DRIVER_DUMMY 1 + +/* Enable various cdrom drivers */ +#if TARGET_API_MAC_CARBON +#define SDL_CDROM_DUMMY 1 +#else +#define SDL_CDROM_MACOS 1 +#endif + +/* Enable various input drivers */ +#if TARGET_API_MAC_CARBON +#define SDL_JOYSTICK_DUMMY 1 +#else +#define SDL_JOYSTICK_MACOS 1 +#endif + +/* Enable various shared object loading systems */ +#define SDL_LOADSO_MACOS 1 + +/* Enable various threading systems */ +#define SDL_THREADS_DISABLED 1 + +/* Enable various timer systems */ +#define SDL_TIMER_MACOS 1 + +/* Enable various video drivers */ +#define SDL_VIDEO_DRIVER_DUMMY 1 +#define SDL_VIDEO_DRIVER_DRAWSPROCKET 1 +#define SDL_VIDEO_DRIVER_TOOLBOX 1 + +/* Enable OpenGL support */ +#define SDL_VIDEO_OPENGL 1 + +#endif /* _SDL_config_macos_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_config_macosx.h b/lib/sdl/msvc/include/SDL/SDL_config_macosx.h new file mode 100644 index 0000000000000000000000000000000000000000..295b87245ee25f1be518f98e7cd03f26760c1e13 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_config_macosx.h @@ -0,0 +1,150 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_config_macosx_h +#define _SDL_config_macosx_h + +#include "SDL_platform.h" + +/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */ +#include + +/* This is a set of defines to configure the SDL features */ + +#define SDL_HAS_64BIT_TYPE 1 + +/* Useful headers */ +/* If we specified an SDK or have a post-PowerPC chip, then alloca.h exists. */ +#if ( (MAC_OS_X_VERSION_MIN_REQUIRED >= 1030) || (!defined(__POWERPC__)) ) +#define HAVE_ALLOCA_H 1 +#endif +#define HAVE_SYS_TYPES_H 1 +#define HAVE_STDIO_H 1 +#define STDC_HEADERS 1 +#define HAVE_STRING_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_CTYPE_H 1 +#define HAVE_MATH_H 1 +#define HAVE_SIGNAL_H 1 + +/* C library functions */ +#define HAVE_MALLOC 1 +#define HAVE_CALLOC 1 +#define HAVE_REALLOC 1 +#define HAVE_FREE 1 +#define HAVE_ALLOCA 1 +#define HAVE_GETENV 1 +#define HAVE_PUTENV 1 +#define HAVE_UNSETENV 1 +#define HAVE_QSORT 1 +#define HAVE_ABS 1 +#define HAVE_BCOPY 1 +#define HAVE_MEMSET 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMCMP 1 +#define HAVE_STRLEN 1 +#define HAVE_STRLCPY 1 +#define HAVE_STRLCAT 1 +#define HAVE_STRDUP 1 +#define HAVE_STRCHR 1 +#define HAVE_STRRCHR 1 +#define HAVE_STRSTR 1 +#define HAVE_STRTOL 1 +#define HAVE_STRTOUL 1 +#define HAVE_STRTOLL 1 +#define HAVE_STRTOULL 1 +#define HAVE_STRTOD 1 +#define HAVE_ATOI 1 +#define HAVE_ATOF 1 +#define HAVE_STRCMP 1 +#define HAVE_STRNCMP 1 +#define HAVE_STRCASECMP 1 +#define HAVE_STRNCASECMP 1 +#define HAVE_SSCANF 1 +#define HAVE_SNPRINTF 1 +#define HAVE_VSNPRINTF 1 +#define HAVE_SIGACTION 1 +#define HAVE_SETJMP 1 +#define HAVE_NANOSLEEP 1 + +/* Enable various audio drivers */ +#define SDL_AUDIO_DRIVER_COREAUDIO 1 +#define SDL_AUDIO_DRIVER_DISK 1 +#define SDL_AUDIO_DRIVER_DUMMY 1 + +/* Enable various cdrom drivers */ +#define SDL_CDROM_MACOSX 1 + +/* Enable various input drivers */ +#define SDL_JOYSTICK_IOKIT 1 + +/* Enable various shared object loading systems */ +#ifdef __ppc__ +/* For Mac OS X 10.2 compatibility */ +#define SDL_LOADSO_DLCOMPAT 1 +#else +#define SDL_LOADSO_DLOPEN 1 +#endif + +/* Enable various threading systems */ +#define SDL_THREAD_PTHREAD 1 +#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1 + +/* Enable various timer systems */ +#define SDL_TIMER_UNIX 1 + +/* Enable various video drivers */ +#define SDL_VIDEO_DRIVER_DUMMY 1 +#if ((defined TARGET_API_MAC_CARBON) && (TARGET_API_MAC_CARBON)) +#define SDL_VIDEO_DRIVER_TOOLBOX 1 +#else +#define SDL_VIDEO_DRIVER_QUARTZ 1 +#endif +#define SDL_VIDEO_DRIVER_DGA 1 +#define SDL_VIDEO_DRIVER_X11 1 +#define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1 +#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib" +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib" +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib" +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "/usr/X11R6/lib/libXrender.1.dylib" +#define SDL_VIDEO_DRIVER_X11_VIDMODE 1 +#define SDL_VIDEO_DRIVER_X11_XINERAMA 1 +#define SDL_VIDEO_DRIVER_X11_XME 1 +#define SDL_VIDEO_DRIVER_X11_XRANDR 1 +#define SDL_VIDEO_DRIVER_X11_XV 1 + +/* Enable OpenGL support */ +#define SDL_VIDEO_OPENGL 1 +#define SDL_VIDEO_OPENGL_GLX 1 + +/* Disable screensaver */ +#define SDL_VIDEO_DISABLE_SCREENSAVER 1 + +/* Enable assembly routines */ +#define SDL_ASSEMBLY_ROUTINES 1 +#ifdef __ppc__ +#define SDL_ALTIVEC_BLITTERS 1 +#endif + +#endif /* _SDL_config_macosx_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_config_minimal.h b/lib/sdl/msvc/include/SDL/SDL_config_minimal.h new file mode 100644 index 0000000000000000000000000000000000000000..002c56eadb37826802236a5b205a37b4ae385300 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_config_minimal.h @@ -0,0 +1,62 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_config_minimal_h +#define _SDL_config_minimal_h + +#include "SDL_platform.h" + +/* This is the minimal configuration that can be used to build SDL */ + +#include + +typedef signed char int8_t; +typedef unsigned char uint8_t; +typedef signed short int16_t; +typedef unsigned short uint16_t; +typedef signed int int32_t; +typedef unsigned int uint32_t; +typedef unsigned int size_t; +typedef unsigned long uintptr_t; + +/* Enable the dummy audio driver (src/audio/dummy/\*.c) */ +#define SDL_AUDIO_DRIVER_DUMMY 1 + +/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */ +#define SDL_CDROM_DISABLED 1 + +/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */ +#define SDL_JOYSTICK_DISABLED 1 + +/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */ +#define SDL_LOADSO_DISABLED 1 + +/* Enable the stub thread support (src/thread/generic/\*.c) */ +#define SDL_THREADS_DISABLED 1 + +/* Enable the stub timer support (src/timer/dummy/\*.c) */ +#define SDL_TIMERS_DISABLED 1 + +/* Enable the dummy video driver (src/video/dummy/\*.c) */ +#define SDL_VIDEO_DRIVER_DUMMY 1 + +#endif /* _SDL_config_minimal_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_config_nds.h b/lib/sdl/msvc/include/SDL/SDL_config_nds.h new file mode 100644 index 0000000000000000000000000000000000000000..4ac60a504520de928146cb9cb4634a2940439a50 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_config_nds.h @@ -0,0 +1,115 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_config_nds_h +#define _SDL_config_nds_h + +#include "SDL_platform.h" + +/* This is a set of defines to configure the SDL features */ + +/* General platform specific identifiers */ +#include "SDL_platform.h" + +/* C datatypes */ +#define SDL_HAS_64BIT_TYPE 1 + +/* Endianness */ +#define SDL_BYTEORDER 1234 + +/* Useful headers */ +#define HAVE_ALLOCA_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_STDIO_H 1 +#define STDC_HEADERS 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STDARG_H 1 +#define HAVE_MALLOC_H 1 +#define HAVE_STRING_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_CTYPE_H 1 +#define HAVE_MATH_H 1 +#define HAVE_ICONV_H 1 +#define HAVE_SIGNAL_H 1 + +/* C library functions */ +#define HAVE_MALLOC 1 +#define HAVE_CALLOC 1 +#define HAVE_REALLOC 1 +#define HAVE_FREE 1 +#define HAVE_ALLOCA 1 +#define HAVE_GETENV 1 +#define HAVE_PUTENV 1 +#define HAVE_UNSETENV 1 +#define HAVE_QSORT 1 +#define HAVE_ABS 1 +#define HAVE_BCOPY 1 +#define HAVE_MEMSET 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMOVE 1 +#define HAVE_STRLEN 1 +#define HAVE_STRLCPY 1 +#define HAVE_STRLCAT 1 +#define HAVE_STRDUP 1 +#define HAVE_STRCHR 1 +#define HAVE_STRRCHR 1 +#define HAVE_STRSTR 1 +#define HAVE_STRTOL 1 +#define HAVE_STRTOUL 1 +#define HAVE_STRTOLL 1 +#define HAVE_STRTOULL 1 +#define HAVE_ATOI 1 +#define HAVE_ATOF 1 +#define HAVE_STRCMP 1 +#define HAVE_STRNCMP 1 +#define HAVE_STRCASECMP 1 +#define HAVE_STRNCASECMP 1 +#define HAVE_SSCANF 1 +#define HAVE_SNPRINTF 1 +#define HAVE_VSNPRINTF 1 +#define HAVE_SETJMP 1 + +/* Enable various audio drivers */ +#define SDL_AUDIO_DRIVER_NDS 1 +#define SDL_AUDIO_DRIVER_DUMMY 1 + +/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */ +#define SDL_CDROM_DISABLED 1 + +/* Enable various input drivers */ +#define SDL_JOYSTICK_NDS 1 + +/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */ +#define SDL_LOADSO_DISABLED 1 + +/* Enable the stub thread support (src/thread/generic/\*.c) */ +#define SDL_THREADS_DISABLED 1 + +/* Enable various timer systems */ +#define SDL_TIMER_NDS 1 + +/* Enable various video drivers */ +#define SDL_VIDEO_DRIVER_NDS 1 +#define SDL_VIDEO_DRIVER_DUMMY 1 + +#endif /* _SDL_config_nds_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_config_os2.h b/lib/sdl/msvc/include/SDL/SDL_config_os2.h new file mode 100644 index 0000000000000000000000000000000000000000..bb40df00185995af58859cbd449aeb9c2df00383 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_config_os2.h @@ -0,0 +1,141 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_config_os2_h +#define _SDL_config_os2_h + +#include "SDL_platform.h" + +/* This is a set of defines to configure the SDL features */ + +typedef signed char int8_t; +typedef unsigned char uint8_t; +typedef signed short int16_t; +typedef unsigned short uint16_t; +typedef signed int int32_t; +typedef unsigned int uint32_t; +typedef unsigned int size_t; +typedef unsigned long uintptr_t; +typedef signed long long int64_t; +typedef unsigned long long uint64_t; + +#define SDL_HAS_64BIT_TYPE 1 + +/* Use Watcom's LIBC */ +#define HAVE_LIBC 1 + +/* Useful headers */ +#define HAVE_SYS_TYPES_H 1 +#define HAVE_STDIO_H 1 +#define STDC_HEADERS 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STDARG_H 1 +#define HAVE_MALLOC_H 1 +#define HAVE_MEMORY_H 1 +#define HAVE_STRING_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_CTYPE_H 1 +#define HAVE_MATH_H 1 +#define HAVE_SIGNAL_H 1 + +/* C library functions */ +#define HAVE_MALLOC 1 +#define HAVE_CALLOC 1 +#define HAVE_REALLOC 1 +#define HAVE_FREE 1 +#define HAVE_ALLOCA 1 +#define HAVE_GETENV 1 +#define HAVE_PUTENV 1 +#define HAVE_UNSETENV 1 +#define HAVE_QSORT 1 +#define HAVE_ABS 1 +#define HAVE_BCOPY 1 +#define HAVE_MEMSET 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMCMP 1 +#define HAVE_STRLEN 1 +#define HAVE_STRLCPY 1 +#define HAVE_STRLCAT 1 +#define HAVE_STRDUP 1 +#define HAVE__STRREV 1 +#define HAVE__STRUPR 1 +#define HAVE__STRLWR 1 +#define HAVE_INDEX 1 +#define HAVE_RINDEX 1 +#define HAVE_STRCHR 1 +#define HAVE_STRRCHR 1 +#define HAVE_STRSTR 1 +#define HAVE_ITOA 1 +#define HAVE__LTOA 1 +#define HAVE__UITOA 1 +#define HAVE__ULTOA 1 +#define HAVE_STRTOL 1 +#define HAVE__I64TOA 1 +#define HAVE__UI64TOA 1 +#define HAVE_STRTOLL 1 +#define HAVE_STRTOD 1 +#define HAVE_ATOI 1 +#define HAVE_ATOF 1 +#define HAVE_STRCMP 1 +#define HAVE_STRNCMP 1 +#define HAVE_STRICMP 1 +#define HAVE_STRCASECMP 1 +#define HAVE_SSCANF 1 +#define HAVE_SNPRINTF 1 +#define HAVE_VSNPRINTF 1 +#define HAVE_SETJMP 1 +#define HAVE_CLOCK_GETTIME 1 + +/* Enable various audio drivers */ +#define SDL_AUDIO_DRIVER_DART 1 +#define SDL_AUDIO_DRIVER_DISK 1 +#define SDL_AUDIO_DRIVER_DUMMY 1 + +/* Enable various cdrom drivers */ +#define SDL_CDROM_OS2 1 + +/* Enable various input drivers */ +#define SDL_JOYSTICK_OS2 1 + +/* Enable various shared object loading systems */ +#define SDL_LOADSO_OS2 1 + +/* Enable various threading systems */ +#define SDL_THREAD_OS2 1 + +/* Enable various timer systems */ +#define SDL_TIMER_OS2 1 + +/* Enable various video drivers */ +#define SDL_VIDEO_DRIVER_DUMMY 1 +#define SDL_VIDEO_DRIVER_OS2FS 1 + +/* Enable OpenGL support */ +/* Nothing here yet for OS/2... :( */ + +/* Enable assembly routines where available */ +#define SDL_ASSEMBLY_ROUTINES 1 + +#endif /* _SDL_config_os2_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_config_symbian.h b/lib/sdl/msvc/include/SDL/SDL_config_symbian.h new file mode 100644 index 0000000000000000000000000000000000000000..53527b23249aaefc5c82f36546d73ed8e41fa9bb --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_config_symbian.h @@ -0,0 +1,146 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/* + +Symbian version Markus Mertama + +*/ + + +#ifndef _SDL_CONFIG_SYMBIAN_H +#define _SDL_CONFIG_SYMBIAN_H + +#include "SDL_platform.h" + +/* This is the minimal configuration that can be used to build SDL */ + + +#include +#include + + +#ifdef __GCCE__ +#define SYMBIAN32_GCCE +#endif + +#ifndef _SIZE_T_DEFINED +typedef unsigned int size_t; +#endif + +#ifndef _INTPTR_T_DECLARED +typedef unsigned int uintptr_t; +#endif + +#ifndef _INT8_T_DECLARED +typedef signed char int8_t; +#endif + +#ifndef _UINT8_T_DECLARED +typedef unsigned char uint8_t; +#endif + +#ifndef _INT16_T_DECLARED +typedef signed short int16_t; +#endif + +#ifndef _UINT16_T_DECLARED +typedef unsigned short uint16_t; +#endif + +#ifndef _INT32_T_DECLARED +typedef signed int int32_t; +#endif + +#ifndef _UINT32_T_DECLARED +typedef unsigned int uint32_t; +#endif + +#ifndef _INT64_T_DECLARED +typedef signed long long int64_t; +#endif + +#ifndef _UINT64_T_DECLARED +typedef unsigned long long uint64_t; +#endif + +#define SDL_AUDIO_DRIVER_EPOCAUDIO 1 + + +/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */ +#define SDL_CDROM_DISABLED 1 + +/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */ +#define SDL_JOYSTICK_DISABLED 1 + +/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */ +#define SDL_LOADSO_DISABLED 1 + +#define SDL_THREAD_SYMBIAN 1 + +#define SDL_VIDEO_DRIVER_EPOC 1 + +#define SDL_VIDEO_OPENGL 0 + +#define SDL_HAS_64BIT_TYPE 1 + +#define HAVE_LIBC 1 +#define HAVE_STDIO_H 1 +#define STDC_HEADERS 1 +#define HAVE_STRING_H 1 +#define HAVE_CTYPE_H 1 +#define HAVE_MATH_H 1 + +#define HAVE_MALLOC 1 +#define HAVE_CALLOC 1 +#define HAVE_REALLOC 1 +#define HAVE_FREE 1 +/*#define HAVE_ALLOCA 1*/ +#define HAVE_QSORT 1 +#define HAVE_ABS 1 +#define HAVE_MEMSET 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMCMP 1 +#define HAVE_STRLEN 1 +#define HAVE__STRUPR 1 +#define HAVE_STRCHR 1 +#define HAVE_STRRCHR 1 +#define HAVE_STRSTR 1 +#define HAVE_ITOA 1 +#define HAVE_STRTOL 1 +#define HAVE_STRTOUL 1 +#define HAVE_STRTOLL 1 +#define HAVE_STRTOD 1 +#define HAVE_ATOI 1 +#define HAVE_ATOF 1 +#define HAVE_STRCMP 1 +#define HAVE_STRNCMP 1 +/*#define HAVE__STRICMP 1*/ +#define HAVE__STRNICMP 1 +#define HAVE_SSCANF 1 +#define HAVE_STDARG_H 1 +#define HAVE_STDDEF_H 1 + + + +#endif /* _SDL_CONFIG_SYMBIAN_H */ diff --git a/lib/sdl/msvc/include/SDL/SDL_config_win32.h b/lib/sdl/msvc/include/SDL/SDL_config_win32.h new file mode 100644 index 0000000000000000000000000000000000000000..6d019a8d9c9a8a1422b3d7623aab0a89cb42696b --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_config_win32.h @@ -0,0 +1,183 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_config_win32_h +#define _SDL_config_win32_h + +#include "SDL_platform.h" + +/* This is a set of defines to configure the SDL features */ + +#if defined(__GNUC__) || defined(__DMC__) +#define HAVE_STDINT_H 1 +#elif defined(_MSC_VER) +typedef signed __int8 int8_t; +typedef unsigned __int8 uint8_t; +typedef signed __int16 int16_t; +typedef unsigned __int16 uint16_t; +typedef signed __int32 int32_t; +typedef unsigned __int32 uint32_t; +typedef signed __int64 int64_t; +typedef unsigned __int64 uint64_t; +#ifndef _UINTPTR_T_DEFINED +#ifdef _WIN64 +typedef unsigned __int64 uintptr_t; +#else +typedef unsigned int uintptr_t; +#endif +#define _UINTPTR_T_DEFINED +#endif +/* Older Visual C++ headers don't have the Win64-compatible typedefs... */ +#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR))) +#define DWORD_PTR DWORD +#endif +#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR))) +#define LONG_PTR LONG +#endif +#else /* !__GNUC__ && !_MSC_VER */ +typedef signed char int8_t; +typedef unsigned char uint8_t; +typedef signed short int16_t; +typedef unsigned short uint16_t; +typedef signed int int32_t; +typedef unsigned int uint32_t; +typedef signed long long int64_t; +typedef unsigned long long uint64_t; +#ifndef _SIZE_T_DEFINED_ +#define _SIZE_T_DEFINED_ +typedef unsigned int size_t; +#endif +typedef unsigned int uintptr_t; +#endif /* __GNUC__ || _MSC_VER */ +#define SDL_HAS_64BIT_TYPE 1 + +/* Enabled for SDL 1.2 (binary compatibility) */ +#define HAVE_LIBC 1 +#ifdef HAVE_LIBC +/* Useful headers */ +#define HAVE_STDIO_H 1 +#define STDC_HEADERS 1 +#define HAVE_STRING_H 1 +#define HAVE_CTYPE_H 1 +#define HAVE_MATH_H 1 +#ifndef _WIN32_WCE +#define HAVE_SIGNAL_H 1 +#endif + +/* C library functions */ +#define HAVE_MALLOC 1 +#define HAVE_CALLOC 1 +#define HAVE_REALLOC 1 +#define HAVE_FREE 1 +#define HAVE_ALLOCA 1 +#define HAVE_QSORT 1 +#define HAVE_ABS 1 +#define HAVE_MEMSET 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMCMP 1 +#define HAVE_STRLEN 1 +#define HAVE__STRREV 1 +#define HAVE__STRUPR 1 +#define HAVE__STRLWR 1 +#define HAVE_STRCHR 1 +#define HAVE_STRRCHR 1 +#define HAVE_STRSTR 1 +#define HAVE_ITOA 1 +#define HAVE__LTOA 1 +#define HAVE__ULTOA 1 +#define HAVE_STRTOL 1 +#define HAVE_STRTOUL 1 +#define HAVE_STRTOLL 1 +#define HAVE_STRTOD 1 +#define HAVE_ATOI 1 +#define HAVE_ATOF 1 +#define HAVE_STRCMP 1 +#define HAVE_STRNCMP 1 +#define HAVE__STRICMP 1 +#define HAVE__STRNICMP 1 +#define HAVE_SSCANF 1 +#else +#define HAVE_STDARG_H 1 +#define HAVE_STDDEF_H 1 +#endif + +/* Enable various audio drivers */ +#ifndef _WIN32_WCE +#define SDL_AUDIO_DRIVER_DSOUND 1 +#endif +#define SDL_AUDIO_DRIVER_WAVEOUT 1 +#define SDL_AUDIO_DRIVER_DISK 1 +#define SDL_AUDIO_DRIVER_DUMMY 1 + +/* Enable various cdrom drivers */ +#ifdef _WIN32_WCE +#define SDL_CDROM_DISABLED 1 +#else +#define SDL_CDROM_WIN32 1 +#endif + +/* Enable various input drivers */ +#ifdef _WIN32_WCE +#define SDL_JOYSTICK_DISABLED 1 +#else +#define SDL_JOYSTICK_WINMM 1 +#endif + +/* Enable various shared object loading systems */ +#define SDL_LOADSO_WIN32 1 + +/* Enable various threading systems */ +#define SDL_THREAD_WIN32 1 + +/* Enable various timer systems */ +#ifdef _WIN32_WCE +#define SDL_TIMER_WINCE 1 +#else +#define SDL_TIMER_WIN32 1 +#endif + +/* Enable various video drivers */ +#ifdef _WIN32_WCE +#define SDL_VIDEO_DRIVER_GAPI 1 +#endif +#ifndef _WIN32_WCE +#define SDL_VIDEO_DRIVER_DDRAW 1 +#endif +#define SDL_VIDEO_DRIVER_DUMMY 1 +#define SDL_VIDEO_DRIVER_WINDIB 1 + +/* Enable OpenGL support */ +#ifndef _WIN32_WCE +#define SDL_VIDEO_OPENGL 1 +#define SDL_VIDEO_OPENGL_WGL 1 +#endif + +/* Disable screensaver */ +#define SDL_VIDEO_DISABLE_SCREENSAVER 1 + +/* Enable assembly routines (Win64 doesn't have inline asm) */ +#ifndef _WIN64 +#define SDL_ASSEMBLY_ROUTINES 1 +#endif + +#endif /* _SDL_config_win32_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_copying.h b/lib/sdl/msvc/include/SDL/SDL_copying.h new file mode 100644 index 0000000000000000000000000000000000000000..1bd6b84cd849fc461d7046a19740fa847d7c9210 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_copying.h @@ -0,0 +1,22 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + diff --git a/lib/sdl/msvc/include/SDL/SDL_cpuinfo.h b/lib/sdl/msvc/include/SDL/SDL_cpuinfo.h new file mode 100644 index 0000000000000000000000000000000000000000..f4be8e032332635bf7efb52710ef808bc47c16fe --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_cpuinfo.h @@ -0,0 +1,69 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** + * @file SDL_cpuinfo.h + * CPU feature detection for SDL + */ + +#ifndef _SDL_cpuinfo_h +#define _SDL_cpuinfo_h + +#include "SDL_stdinc.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** This function returns true if the CPU has the RDTSC instruction */ +extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void); + +/** This function returns true if the CPU has MMX features */ +extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void); + +/** This function returns true if the CPU has MMX Ext. features */ +extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt(void); + +/** This function returns true if the CPU has 3DNow features */ +extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void); + +/** This function returns true if the CPU has 3DNow! Ext. features */ +extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt(void); + +/** This function returns true if the CPU has SSE features */ +extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void); + +/** This function returns true if the CPU has SSE2 features */ +extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void); + +/** This function returns true if the CPU has AltiVec features */ +extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void); + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_cpuinfo_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_endian.h b/lib/sdl/msvc/include/SDL/SDL_endian.h new file mode 100644 index 0000000000000000000000000000000000000000..f7a2e2f8c011c50d3d38285f0117ba3b040300fc --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_endian.h @@ -0,0 +1,209 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** + * @file SDL_endian.h + * Functions for reading and writing endian-specific values + */ + +#ifndef _SDL_endian_h +#define _SDL_endian_h + +#include "SDL_stdinc.h" + +/** @name SDL_ENDIANs + * The two types of endianness + */ +/*@{*/ +#define SDL_LIL_ENDIAN 1234 +#define SDL_BIG_ENDIAN 4321 +/*@}*/ + +#ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */ +#if defined(__hppa__) || \ + defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \ + (defined(__MIPS__) && defined(__MISPEB__)) || \ + defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || \ + defined(__sparc__) +#define SDL_BYTEORDER SDL_BIG_ENDIAN +#else +#define SDL_BYTEORDER SDL_LIL_ENDIAN +#endif +#endif /* !SDL_BYTEORDER */ + + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @name SDL_Swap Functions + * Use inline functions for compilers that support them, and static + * functions for those that do not. Because these functions become + * static for compilers that do not support inline functions, this + * header should only be included in files that actually use them. + */ +/*@{*/ +#if defined(__GNUC__) && defined(__i386__) && \ + !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */) +static __inline__ Uint16 SDL_Swap16(Uint16 x) +{ + __asm__("xchgb %b0,%h0" : "=q" (x) : "0" (x)); + return x; +} +#elif defined(__GNUC__) && defined(__x86_64__) +static __inline__ Uint16 SDL_Swap16(Uint16 x) +{ + __asm__("xchgb %b0,%h0" : "=Q" (x) : "0" (x)); + return x; +} +#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) +static __inline__ Uint16 SDL_Swap16(Uint16 x) +{ + Uint16 result; + + __asm__("rlwimi %0,%2,8,16,23" : "=&r" (result) : "0" (x >> 8), "r" (x)); + return result; +} +#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) +static __inline__ Uint16 SDL_Swap16(Uint16 x) +{ + __asm__("rorw #8,%0" : "=d" (x) : "0" (x) : "cc"); + return x; +} +#else +static __inline__ Uint16 SDL_Swap16(Uint16 x) { + return((x<<8)|(x>>8)); +} +#endif + +#if defined(__GNUC__) && defined(__i386__) && \ + !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */) +static __inline__ Uint32 SDL_Swap32(Uint32 x) +{ + __asm__("bswap %0" : "=r" (x) : "0" (x)); + return x; +} +#elif defined(__GNUC__) && defined(__x86_64__) +static __inline__ Uint32 SDL_Swap32(Uint32 x) +{ + __asm__("bswapl %0" : "=r" (x) : "0" (x)); + return x; +} +#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) +static __inline__ Uint32 SDL_Swap32(Uint32 x) +{ + Uint32 result; + + __asm__("rlwimi %0,%2,24,16,23" : "=&r" (result) : "0" (x>>24), "r" (x)); + __asm__("rlwimi %0,%2,8,8,15" : "=&r" (result) : "0" (result), "r" (x)); + __asm__("rlwimi %0,%2,24,0,7" : "=&r" (result) : "0" (result), "r" (x)); + return result; +} +#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) +static __inline__ Uint32 SDL_Swap32(Uint32 x) +{ + __asm__("rorw #8,%0\n\tswap %0\n\trorw #8,%0" : "=d" (x) : "0" (x) : "cc"); + return x; +} +#else +static __inline__ Uint32 SDL_Swap32(Uint32 x) { + return((x<<24)|((x<<8)&0x00FF0000)|((x>>8)&0x0000FF00)|(x>>24)); +} +#endif + +#ifdef SDL_HAS_64BIT_TYPE +#if defined(__GNUC__) && defined(__i386__) && \ + !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */) +static __inline__ Uint64 SDL_Swap64(Uint64 x) +{ + union { + struct { Uint32 a,b; } s; + Uint64 u; + } v; + v.u = x; + __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1" + : "=r" (v.s.a), "=r" (v.s.b) + : "0" (v.s.a), "1" (v.s.b)); + return v.u; +} +#elif defined(__GNUC__) && defined(__x86_64__) +static __inline__ Uint64 SDL_Swap64(Uint64 x) +{ + __asm__("bswapq %0" : "=r" (x) : "0" (x)); + return x; +} +#else +static __inline__ Uint64 SDL_Swap64(Uint64 x) +{ + Uint32 hi, lo; + + /* Separate into high and low 32-bit values and swap them */ + lo = SDL_static_cast(Uint32, x & 0xFFFFFFFF); + x >>= 32; + hi = SDL_static_cast(Uint32, x & 0xFFFFFFFF); + x = SDL_Swap32(lo); + x <<= 32; + x |= SDL_Swap32(hi); + return(x); +} +#endif +#else +/* This is mainly to keep compilers from complaining in SDL code. + * If there is no real 64-bit datatype, then compilers will complain about + * the fake 64-bit datatype that SDL provides when it compiles user code. + */ +#define SDL_Swap64(X) (X) +#endif /* SDL_HAS_64BIT_TYPE */ +/*@}*/ + +/** + * @name SDL_SwapLE and SDL_SwapBE Functions + * Byteswap item from the specified endianness to the native endianness + */ +/*@{*/ +#if SDL_BYTEORDER == SDL_LIL_ENDIAN +#define SDL_SwapLE16(X) (X) +#define SDL_SwapLE32(X) (X) +#define SDL_SwapLE64(X) (X) +#define SDL_SwapBE16(X) SDL_Swap16(X) +#define SDL_SwapBE32(X) SDL_Swap32(X) +#define SDL_SwapBE64(X) SDL_Swap64(X) +#else +#define SDL_SwapLE16(X) SDL_Swap16(X) +#define SDL_SwapLE32(X) SDL_Swap32(X) +#define SDL_SwapLE64(X) SDL_Swap64(X) +#define SDL_SwapBE16(X) (X) +#define SDL_SwapBE32(X) (X) +#define SDL_SwapBE64(X) (X) +#endif +/*@}*/ + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_endian_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_error.h b/lib/sdl/msvc/include/SDL/SDL_error.h new file mode 100644 index 0000000000000000000000000000000000000000..b103703a5b3d42674420a0e572af3912c7204d7f --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_error.h @@ -0,0 +1,72 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** + * @file SDL_error.h + * Simple error message routines for SDL + */ + +#ifndef _SDL_error_h +#define _SDL_error_h + +#include "SDL_stdinc.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @name Public functions + */ +/*@{*/ +extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...); +extern DECLSPEC char * SDLCALL SDL_GetError(void); +extern DECLSPEC void SDLCALL SDL_ClearError(void); +/*@}*/ + +/** + * @name Private functions + * @internal Private error message function - used internally + */ +/*@{*/ +#define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) +#define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) +typedef enum { + SDL_ENOMEM, + SDL_EFREAD, + SDL_EFWRITE, + SDL_EFSEEK, + SDL_UNSUPPORTED, + SDL_LASTERROR +} SDL_errorcode; +extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code); +/*@}*/ + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_error_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_events.h b/lib/sdl/msvc/include/SDL/SDL_events.h new file mode 100644 index 0000000000000000000000000000000000000000..c94a30c9c9a9ac4472c88a520170fb18f456fc1d --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_events.h @@ -0,0 +1,356 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** + * @file SDL_events.h + * Include file for SDL event handling + */ + +#ifndef _SDL_events_h +#define _SDL_events_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" +#include "SDL_active.h" +#include "SDL_keyboard.h" +#include "SDL_mouse.h" +#include "SDL_joystick.h" +#include "SDL_quit.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** @name General keyboard/mouse state definitions */ +/*@{*/ +#define SDL_RELEASED 0 +#define SDL_PRESSED 1 +/*@}*/ + +/** Event enumerations */ +typedef enum { + SDL_NOEVENT = 0, /**< Unused (do not remove) */ + SDL_ACTIVEEVENT, /**< Application loses/gains visibility */ + SDL_KEYDOWN, /**< Keys pressed */ + SDL_KEYUP, /**< Keys released */ + SDL_MOUSEMOTION, /**< Mouse moved */ + SDL_MOUSEBUTTONDOWN, /**< Mouse button pressed */ + SDL_MOUSEBUTTONUP, /**< Mouse button released */ + SDL_JOYAXISMOTION, /**< Joystick axis motion */ + SDL_JOYBALLMOTION, /**< Joystick trackball motion */ + SDL_JOYHATMOTION, /**< Joystick hat position change */ + SDL_JOYBUTTONDOWN, /**< Joystick button pressed */ + SDL_JOYBUTTONUP, /**< Joystick button released */ + SDL_QUIT, /**< User-requested quit */ + SDL_SYSWMEVENT, /**< System specific event */ + SDL_EVENT_RESERVEDA, /**< Reserved for future use.. */ + SDL_EVENT_RESERVEDB, /**< Reserved for future use.. */ + SDL_VIDEORESIZE, /**< User resized video mode */ + SDL_VIDEOEXPOSE, /**< Screen needs to be redrawn */ + SDL_EVENT_RESERVED2, /**< Reserved for future use.. */ + SDL_EVENT_RESERVED3, /**< Reserved for future use.. */ + SDL_EVENT_RESERVED4, /**< Reserved for future use.. */ + SDL_EVENT_RESERVED5, /**< Reserved for future use.. */ + SDL_EVENT_RESERVED6, /**< Reserved for future use.. */ + SDL_EVENT_RESERVED7, /**< Reserved for future use.. */ + /** Events SDL_USEREVENT through SDL_MAXEVENTS-1 are for your use */ + SDL_USEREVENT = 24, + /** This last event is only for bounding internal arrays + * It is the number of bits in the event mask datatype -- Uint32 + */ + SDL_NUMEVENTS = 32 +} SDL_EventType; + +/** @name Predefined event masks */ +/*@{*/ +#define SDL_EVENTMASK(X) (1<<(X)) +typedef enum { + SDL_ACTIVEEVENTMASK = SDL_EVENTMASK(SDL_ACTIVEEVENT), + SDL_KEYDOWNMASK = SDL_EVENTMASK(SDL_KEYDOWN), + SDL_KEYUPMASK = SDL_EVENTMASK(SDL_KEYUP), + SDL_KEYEVENTMASK = SDL_EVENTMASK(SDL_KEYDOWN)| + SDL_EVENTMASK(SDL_KEYUP), + SDL_MOUSEMOTIONMASK = SDL_EVENTMASK(SDL_MOUSEMOTION), + SDL_MOUSEBUTTONDOWNMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN), + SDL_MOUSEBUTTONUPMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONUP), + SDL_MOUSEEVENTMASK = SDL_EVENTMASK(SDL_MOUSEMOTION)| + SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN)| + SDL_EVENTMASK(SDL_MOUSEBUTTONUP), + SDL_JOYAXISMOTIONMASK = SDL_EVENTMASK(SDL_JOYAXISMOTION), + SDL_JOYBALLMOTIONMASK = SDL_EVENTMASK(SDL_JOYBALLMOTION), + SDL_JOYHATMOTIONMASK = SDL_EVENTMASK(SDL_JOYHATMOTION), + SDL_JOYBUTTONDOWNMASK = SDL_EVENTMASK(SDL_JOYBUTTONDOWN), + SDL_JOYBUTTONUPMASK = SDL_EVENTMASK(SDL_JOYBUTTONUP), + SDL_JOYEVENTMASK = SDL_EVENTMASK(SDL_JOYAXISMOTION)| + SDL_EVENTMASK(SDL_JOYBALLMOTION)| + SDL_EVENTMASK(SDL_JOYHATMOTION)| + SDL_EVENTMASK(SDL_JOYBUTTONDOWN)| + SDL_EVENTMASK(SDL_JOYBUTTONUP), + SDL_VIDEORESIZEMASK = SDL_EVENTMASK(SDL_VIDEORESIZE), + SDL_VIDEOEXPOSEMASK = SDL_EVENTMASK(SDL_VIDEOEXPOSE), + SDL_QUITMASK = SDL_EVENTMASK(SDL_QUIT), + SDL_SYSWMEVENTMASK = SDL_EVENTMASK(SDL_SYSWMEVENT) +} SDL_EventMask ; +#define SDL_ALLEVENTS 0xFFFFFFFF +/*@}*/ + +/** Application visibility event structure */ +typedef struct SDL_ActiveEvent { + Uint8 type; /**< SDL_ACTIVEEVENT */ + Uint8 gain; /**< Whether given states were gained or lost (1/0) */ + Uint8 state; /**< A mask of the focus states */ +} SDL_ActiveEvent; + +/** Keyboard event structure */ +typedef struct SDL_KeyboardEvent { + Uint8 type; /**< SDL_KEYDOWN or SDL_KEYUP */ + Uint8 which; /**< The keyboard device index */ + Uint8 state; /**< SDL_PRESSED or SDL_RELEASED */ + SDL_keysym keysym; +} SDL_KeyboardEvent; + +/** Mouse motion event structure */ +typedef struct SDL_MouseMotionEvent { + Uint8 type; /**< SDL_MOUSEMOTION */ + Uint8 which; /**< The mouse device index */ + Uint8 state; /**< The current button state */ + Uint16 x, y; /**< The X/Y coordinates of the mouse */ + Sint16 xrel; /**< The relative motion in the X direction */ + Sint16 yrel; /**< The relative motion in the Y direction */ +} SDL_MouseMotionEvent; + +/** Mouse button event structure */ +typedef struct SDL_MouseButtonEvent { + Uint8 type; /**< SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP */ + Uint8 which; /**< The mouse device index */ + Uint8 button; /**< The mouse button index */ + Uint8 state; /**< SDL_PRESSED or SDL_RELEASED */ + Uint16 x, y; /**< The X/Y coordinates of the mouse at press time */ +} SDL_MouseButtonEvent; + +/** Joystick axis motion event structure */ +typedef struct SDL_JoyAxisEvent { + Uint8 type; /**< SDL_JOYAXISMOTION */ + Uint8 which; /**< The joystick device index */ + Uint8 axis; /**< The joystick axis index */ + Sint16 value; /**< The axis value (range: -32768 to 32767) */ +} SDL_JoyAxisEvent; + +/** Joystick trackball motion event structure */ +typedef struct SDL_JoyBallEvent { + Uint8 type; /**< SDL_JOYBALLMOTION */ + Uint8 which; /**< The joystick device index */ + Uint8 ball; /**< The joystick trackball index */ + Sint16 xrel; /**< The relative motion in the X direction */ + Sint16 yrel; /**< The relative motion in the Y direction */ +} SDL_JoyBallEvent; + +/** Joystick hat position change event structure */ +typedef struct SDL_JoyHatEvent { + Uint8 type; /**< SDL_JOYHATMOTION */ + Uint8 which; /**< The joystick device index */ + Uint8 hat; /**< The joystick hat index */ + Uint8 value; /**< The hat position value: + * SDL_HAT_LEFTUP SDL_HAT_UP SDL_HAT_RIGHTUP + * SDL_HAT_LEFT SDL_HAT_CENTERED SDL_HAT_RIGHT + * SDL_HAT_LEFTDOWN SDL_HAT_DOWN SDL_HAT_RIGHTDOWN + * Note that zero means the POV is centered. + */ +} SDL_JoyHatEvent; + +/** Joystick button event structure */ +typedef struct SDL_JoyButtonEvent { + Uint8 type; /**< SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP */ + Uint8 which; /**< The joystick device index */ + Uint8 button; /**< The joystick button index */ + Uint8 state; /**< SDL_PRESSED or SDL_RELEASED */ +} SDL_JoyButtonEvent; + +/** The "window resized" event + * When you get this event, you are responsible for setting a new video + * mode with the new width and height. + */ +typedef struct SDL_ResizeEvent { + Uint8 type; /**< SDL_VIDEORESIZE */ + int w; /**< New width */ + int h; /**< New height */ +} SDL_ResizeEvent; + +/** The "screen redraw" event */ +typedef struct SDL_ExposeEvent { + Uint8 type; /**< SDL_VIDEOEXPOSE */ +} SDL_ExposeEvent; + +/** The "quit requested" event */ +typedef struct SDL_QuitEvent { + Uint8 type; /**< SDL_QUIT */ +} SDL_QuitEvent; + +/** A user-defined event type */ +typedef struct SDL_UserEvent { + Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */ + int code; /**< User defined event code */ + void *data1; /**< User defined data pointer */ + void *data2; /**< User defined data pointer */ +} SDL_UserEvent; + +/** If you want to use this event, you should include SDL_syswm.h */ +struct SDL_SysWMmsg; +typedef struct SDL_SysWMmsg SDL_SysWMmsg; +typedef struct SDL_SysWMEvent { + Uint8 type; + SDL_SysWMmsg *msg; +} SDL_SysWMEvent; + +/** General event structure */ +typedef union SDL_Event { + Uint8 type; + SDL_ActiveEvent active; + SDL_KeyboardEvent key; + SDL_MouseMotionEvent motion; + SDL_MouseButtonEvent button; + SDL_JoyAxisEvent jaxis; + SDL_JoyBallEvent jball; + SDL_JoyHatEvent jhat; + SDL_JoyButtonEvent jbutton; + SDL_ResizeEvent resize; + SDL_ExposeEvent expose; + SDL_QuitEvent quit; + SDL_UserEvent user; + SDL_SysWMEvent syswm; +} SDL_Event; + + +/* Function prototypes */ + +/** Pumps the event loop, gathering events from the input devices. + * This function updates the event queue and internal input device state. + * This should only be run in the thread that sets the video mode. + */ +extern DECLSPEC void SDLCALL SDL_PumpEvents(void); + +typedef enum { + SDL_ADDEVENT, + SDL_PEEKEVENT, + SDL_GETEVENT +} SDL_eventaction; + +/** + * Checks the event queue for messages and optionally returns them. + * + * If 'action' is SDL_ADDEVENT, up to 'numevents' events will be added to + * the back of the event queue. + * If 'action' is SDL_PEEKEVENT, up to 'numevents' events at the front + * of the event queue, matching 'mask', will be returned and will not + * be removed from the queue. + * If 'action' is SDL_GETEVENT, up to 'numevents' events at the front + * of the event queue, matching 'mask', will be returned and will be + * removed from the queue. + * + * @return + * This function returns the number of events actually stored, or -1 + * if there was an error. + * + * This function is thread-safe. + */ +extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event *events, int numevents, + SDL_eventaction action, Uint32 mask); + +/** Polls for currently pending events, and returns 1 if there are any pending + * events, or 0 if there are none available. If 'event' is not NULL, the next + * event is removed from the queue and stored in that area. + */ +extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event *event); + +/** Waits indefinitely for the next available event, returning 1, or 0 if there + * was an error while waiting for events. If 'event' is not NULL, the next + * event is removed from the queue and stored in that area. + */ +extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event *event); + +/** Add an event to the event queue. + * This function returns 0 on success, or -1 if the event queue was full + * or there was some other error. + */ +extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event *event); + +/** @name Event Filtering */ +/*@{*/ +typedef int (SDLCALL *SDL_EventFilter)(const SDL_Event *event); +/** + * This function sets up a filter to process all events before they + * change internal state and are posted to the internal event queue. + * + * The filter is protypted as: + * @code typedef int (SDLCALL *SDL_EventFilter)(const SDL_Event *event); @endcode + * + * If the filter returns 1, then the event will be added to the internal queue. + * If it returns 0, then the event will be dropped from the queue, but the + * internal state will still be updated. This allows selective filtering of + * dynamically arriving events. + * + * @warning Be very careful of what you do in the event filter function, as + * it may run in a different thread! + * + * There is one caveat when dealing with the SDL_QUITEVENT event type. The + * event filter is only called when the window manager desires to close the + * application window. If the event filter returns 1, then the window will + * be closed, otherwise the window will remain open if possible. + * If the quit event is generated by an interrupt signal, it will bypass the + * internal queue and be delivered to the application at the next event poll. + */ +extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter); + +/** + * Return the current event filter - can be used to "chain" filters. + * If there is no event filter set, this function returns NULL. + */ +extern DECLSPEC SDL_EventFilter SDLCALL SDL_GetEventFilter(void); +/*@}*/ + +/** @name Event State */ +/*@{*/ +#define SDL_QUERY -1 +#define SDL_IGNORE 0 +#define SDL_DISABLE 0 +#define SDL_ENABLE 1 +/*@}*/ + +/** +* This function allows you to set the state of processing certain events. +* If 'state' is set to SDL_IGNORE, that event will be automatically dropped +* from the event queue and will not event be filtered. +* If 'state' is set to SDL_ENABLE, that event will be processed normally. +* If 'state' is set to SDL_QUERY, SDL_EventState() will return the +* current processing state of the specified event. +*/ +extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint8 type, int state); + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_events_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_getenv.h b/lib/sdl/msvc/include/SDL/SDL_getenv.h new file mode 100644 index 0000000000000000000000000000000000000000..253ad88cc5d967e5ebbffb7f041657099f91b838 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_getenv.h @@ -0,0 +1,28 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_getenv.h + * @deprecated Use SDL_stdinc.h instead + */ + +/* DEPRECATED */ +#include "SDL_stdinc.h" diff --git a/lib/sdl/msvc/include/SDL/SDL_joystick.h b/lib/sdl/msvc/include/SDL/SDL_joystick.h new file mode 100644 index 0000000000000000000000000000000000000000..d5135c3d538360f868d2bee3a0f867889d4283c5 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_joystick.h @@ -0,0 +1,187 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_joystick.h + * Include file for SDL joystick event handling + */ + +#ifndef _SDL_joystick_h +#define _SDL_joystick_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** @file SDL_joystick.h + * @note In order to use these functions, SDL_Init() must have been called + * with the SDL_INIT_JOYSTICK flag. This causes SDL to scan the system + * for joysticks, and load appropriate drivers. + */ + +/** The joystick structure used to identify an SDL joystick */ +struct _SDL_Joystick; +typedef struct _SDL_Joystick SDL_Joystick; + +/* Function prototypes */ +/** + * Count the number of joysticks attached to the system + */ +extern DECLSPEC int SDLCALL SDL_NumJoysticks(void); + +/** + * Get the implementation dependent name of a joystick. + * + * This can be called before any joysticks are opened. + * If no name can be found, this function returns NULL. + */ +extern DECLSPEC const char * SDLCALL SDL_JoystickName(int device_index); + +/** + * Open a joystick for use. + * + * @param[in] device_index + * The index passed as an argument refers to + * the N'th joystick on the system. This index is the value which will + * identify this joystick in future joystick events. + * + * @return This function returns a joystick identifier, or NULL if an error occurred. + */ +extern DECLSPEC SDL_Joystick * SDLCALL SDL_JoystickOpen(int device_index); + +/** + * Returns 1 if the joystick has been opened, or 0 if it has not. + */ +extern DECLSPEC int SDLCALL SDL_JoystickOpened(int device_index); + +/** + * Get the device index of an opened joystick. + */ +extern DECLSPEC int SDLCALL SDL_JoystickIndex(SDL_Joystick *joystick); + +/** + * Get the number of general axis controls on a joystick + */ +extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick *joystick); + +/** + * Get the number of trackballs on a joystick + * + * Joystick trackballs have only relative motion events associated + * with them and their state cannot be polled. + */ +extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick *joystick); + +/** + * Get the number of POV hats on a joystick + */ +extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick *joystick); + +/** + * Get the number of buttons on a joystick + */ +extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick *joystick); + +/** + * Update the current state of the open joysticks. + * + * This is called automatically by the event loop if any joystick + * events are enabled. + */ +extern DECLSPEC void SDLCALL SDL_JoystickUpdate(void); + +/** + * Enable/disable joystick event polling. + * + * If joystick events are disabled, you must call SDL_JoystickUpdate() + * yourself and check the state of the joystick when you want joystick + * information. + * + * @param[in] state The state can be one of SDL_QUERY, SDL_ENABLE or SDL_IGNORE. + */ +extern DECLSPEC int SDLCALL SDL_JoystickEventState(int state); + +/** + * Get the current state of an axis control on a joystick + * + * @param[in] axis The axis indices start at index 0. + * + * @return The state is a value ranging from -32768 to 32767. + */ +extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis); + +/** + * @name Hat Positions + * The return value of SDL_JoystickGetHat() is one of the following positions: + */ +/*@{*/ +#define SDL_HAT_CENTERED 0x00 +#define SDL_HAT_UP 0x01 +#define SDL_HAT_RIGHT 0x02 +#define SDL_HAT_DOWN 0x04 +#define SDL_HAT_LEFT 0x08 +#define SDL_HAT_RIGHTUP (SDL_HAT_RIGHT|SDL_HAT_UP) +#define SDL_HAT_RIGHTDOWN (SDL_HAT_RIGHT|SDL_HAT_DOWN) +#define SDL_HAT_LEFTUP (SDL_HAT_LEFT|SDL_HAT_UP) +#define SDL_HAT_LEFTDOWN (SDL_HAT_LEFT|SDL_HAT_DOWN) +/*@}*/ + +/** + * Get the current state of a POV hat on a joystick + * + * @param[in] hat The hat indices start at index 0. + */ +extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick *joystick, int hat); + +/** + * Get the ball axis change since the last poll + * + * @param[in] ball The ball indices start at index 0. + * + * @return This returns 0, or -1 if you passed it invalid parameters. + */ +extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy); + +/** + * Get the current state of a button on a joystick + * + * @param[in] button The button indices start at index 0. + */ +extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick *joystick, int button); + +/** + * Close a joystick previously opened with SDL_JoystickOpen() + */ +extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick *joystick); + + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_joystick_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_keyboard.h b/lib/sdl/msvc/include/SDL/SDL_keyboard.h new file mode 100644 index 0000000000000000000000000000000000000000..7b59d24e5565cad692bc08d1229bf0a58f2928b3 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_keyboard.h @@ -0,0 +1,135 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_keyboard.h + * Include file for SDL keyboard event handling + */ + +#ifndef _SDL_keyboard_h +#define _SDL_keyboard_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" +#include "SDL_keysym.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** Keysym structure + * + * - The scancode is hardware dependent, and should not be used by general + * applications. If no hardware scancode is available, it will be 0. + * + * - The 'unicode' translated character is only available when character + * translation is enabled by the SDL_EnableUNICODE() API. If non-zero, + * this is a UNICODE character corresponding to the keypress. If the + * high 9 bits of the character are 0, then this maps to the equivalent + * ASCII character: + * @code + * char ch; + * if ( (keysym.unicode & 0xFF80) == 0 ) { + * ch = keysym.unicode & 0x7F; + * } else { + * An international character.. + * } + * @endcode + */ +typedef struct SDL_keysym { + Uint8 scancode; /**< hardware specific scancode */ + SDLKey sym; /**< SDL virtual keysym */ + SDLMod mod; /**< current key modifiers */ + Uint16 unicode; /**< translated character */ +} SDL_keysym; + +/** This is the mask which refers to all hotkey bindings */ +#define SDL_ALL_HOTKEYS 0xFFFFFFFF + +/* Function prototypes */ +/** + * Enable/Disable UNICODE translation of keyboard input. + * + * This translation has some overhead, so translation defaults off. + * + * @param[in] enable + * If 'enable' is 1, translation is enabled. + * If 'enable' is 0, translation is disabled. + * If 'enable' is -1, the translation state is not changed. + * + * @return It returns the previous state of keyboard translation. + */ +extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); + +#define SDL_DEFAULT_REPEAT_DELAY 500 +#define SDL_DEFAULT_REPEAT_INTERVAL 30 +/** + * Enable/Disable keyboard repeat. Keyboard repeat defaults to off. + * + * @param[in] delay + * 'delay' is the initial delay in ms between the time when a key is + * pressed, and keyboard repeat begins. + * + * @param[in] interval + * 'interval' is the time in ms between keyboard repeat events. + * + * If 'delay' is set to 0, keyboard repeat is disabled. + */ +extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval); +extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval); + +/** + * Get a snapshot of the current state of the keyboard. + * Returns an array of keystates, indexed by the SDLK_* syms. + * Usage: + * @code + * Uint8 *keystate = SDL_GetKeyState(NULL); + * if ( keystate[SDLK_RETURN] ) //... \ is pressed. + * @endcode + */ +extern DECLSPEC Uint8 * SDLCALL SDL_GetKeyState(int *numkeys); + +/** + * Get the current key modifier state + */ +extern DECLSPEC SDLMod SDLCALL SDL_GetModState(void); + +/** + * Set the current key modifier state. + * This does not change the keyboard state, only the key modifier flags. + */ +extern DECLSPEC void SDLCALL SDL_SetModState(SDLMod modstate); + +/** + * Get the name of an SDL virtual keysym + */ +extern DECLSPEC char * SDLCALL SDL_GetKeyName(SDLKey key); + + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_keyboard_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_keysym.h b/lib/sdl/msvc/include/SDL/SDL_keysym.h new file mode 100644 index 0000000000000000000000000000000000000000..90101286e3d6e3f8bf17d82b4186f9aaf8f2b0d0 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_keysym.h @@ -0,0 +1,326 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_keysym_h +#define _SDL_keysym_h + +/** What we really want is a mapping of every raw key on the keyboard. + * To support international keyboards, we use the range 0xA1 - 0xFF + * as international virtual keycodes. We'll follow in the footsteps of X11... + * @brief The names of the keys + */ +typedef enum { + /** @name ASCII mapped keysyms + * The keyboard syms have been cleverly chosen to map to ASCII + */ + /*@{*/ + SDLK_UNKNOWN = 0, + SDLK_FIRST = 0, + SDLK_BACKSPACE = 8, + SDLK_TAB = 9, + SDLK_CLEAR = 12, + SDLK_RETURN = 13, + SDLK_PAUSE = 19, + SDLK_ESCAPE = 27, + SDLK_SPACE = 32, + SDLK_EXCLAIM = 33, + SDLK_QUOTEDBL = 34, + SDLK_HASH = 35, + SDLK_DOLLAR = 36, + SDLK_AMPERSAND = 38, + SDLK_QUOTE = 39, + SDLK_LEFTPAREN = 40, + SDLK_RIGHTPAREN = 41, + SDLK_ASTERISK = 42, + SDLK_PLUS = 43, + SDLK_COMMA = 44, + SDLK_MINUS = 45, + SDLK_PERIOD = 46, + SDLK_SLASH = 47, + SDLK_0 = 48, + SDLK_1 = 49, + SDLK_2 = 50, + SDLK_3 = 51, + SDLK_4 = 52, + SDLK_5 = 53, + SDLK_6 = 54, + SDLK_7 = 55, + SDLK_8 = 56, + SDLK_9 = 57, + SDLK_COLON = 58, + SDLK_SEMICOLON = 59, + SDLK_LESS = 60, + SDLK_EQUALS = 61, + SDLK_GREATER = 62, + SDLK_QUESTION = 63, + SDLK_AT = 64, + /* + Skip uppercase letters + */ + SDLK_LEFTBRACKET = 91, + SDLK_BACKSLASH = 92, + SDLK_RIGHTBRACKET = 93, + SDLK_CARET = 94, + SDLK_UNDERSCORE = 95, + SDLK_BACKQUOTE = 96, + SDLK_a = 97, + SDLK_b = 98, + SDLK_c = 99, + SDLK_d = 100, + SDLK_e = 101, + SDLK_f = 102, + SDLK_g = 103, + SDLK_h = 104, + SDLK_i = 105, + SDLK_j = 106, + SDLK_k = 107, + SDLK_l = 108, + SDLK_m = 109, + SDLK_n = 110, + SDLK_o = 111, + SDLK_p = 112, + SDLK_q = 113, + SDLK_r = 114, + SDLK_s = 115, + SDLK_t = 116, + SDLK_u = 117, + SDLK_v = 118, + SDLK_w = 119, + SDLK_x = 120, + SDLK_y = 121, + SDLK_z = 122, + SDLK_DELETE = 127, + /* End of ASCII mapped keysyms */ + /*@}*/ + + /** @name International keyboard syms */ + /*@{*/ + SDLK_WORLD_0 = 160, /* 0xA0 */ + SDLK_WORLD_1 = 161, + SDLK_WORLD_2 = 162, + SDLK_WORLD_3 = 163, + SDLK_WORLD_4 = 164, + SDLK_WORLD_5 = 165, + SDLK_WORLD_6 = 166, + SDLK_WORLD_7 = 167, + SDLK_WORLD_8 = 168, + SDLK_WORLD_9 = 169, + SDLK_WORLD_10 = 170, + SDLK_WORLD_11 = 171, + SDLK_WORLD_12 = 172, + SDLK_WORLD_13 = 173, + SDLK_WORLD_14 = 174, + SDLK_WORLD_15 = 175, + SDLK_WORLD_16 = 176, + SDLK_WORLD_17 = 177, + SDLK_WORLD_18 = 178, + SDLK_WORLD_19 = 179, + SDLK_WORLD_20 = 180, + SDLK_WORLD_21 = 181, + SDLK_WORLD_22 = 182, + SDLK_WORLD_23 = 183, + SDLK_WORLD_24 = 184, + SDLK_WORLD_25 = 185, + SDLK_WORLD_26 = 186, + SDLK_WORLD_27 = 187, + SDLK_WORLD_28 = 188, + SDLK_WORLD_29 = 189, + SDLK_WORLD_30 = 190, + SDLK_WORLD_31 = 191, + SDLK_WORLD_32 = 192, + SDLK_WORLD_33 = 193, + SDLK_WORLD_34 = 194, + SDLK_WORLD_35 = 195, + SDLK_WORLD_36 = 196, + SDLK_WORLD_37 = 197, + SDLK_WORLD_38 = 198, + SDLK_WORLD_39 = 199, + SDLK_WORLD_40 = 200, + SDLK_WORLD_41 = 201, + SDLK_WORLD_42 = 202, + SDLK_WORLD_43 = 203, + SDLK_WORLD_44 = 204, + SDLK_WORLD_45 = 205, + SDLK_WORLD_46 = 206, + SDLK_WORLD_47 = 207, + SDLK_WORLD_48 = 208, + SDLK_WORLD_49 = 209, + SDLK_WORLD_50 = 210, + SDLK_WORLD_51 = 211, + SDLK_WORLD_52 = 212, + SDLK_WORLD_53 = 213, + SDLK_WORLD_54 = 214, + SDLK_WORLD_55 = 215, + SDLK_WORLD_56 = 216, + SDLK_WORLD_57 = 217, + SDLK_WORLD_58 = 218, + SDLK_WORLD_59 = 219, + SDLK_WORLD_60 = 220, + SDLK_WORLD_61 = 221, + SDLK_WORLD_62 = 222, + SDLK_WORLD_63 = 223, + SDLK_WORLD_64 = 224, + SDLK_WORLD_65 = 225, + SDLK_WORLD_66 = 226, + SDLK_WORLD_67 = 227, + SDLK_WORLD_68 = 228, + SDLK_WORLD_69 = 229, + SDLK_WORLD_70 = 230, + SDLK_WORLD_71 = 231, + SDLK_WORLD_72 = 232, + SDLK_WORLD_73 = 233, + SDLK_WORLD_74 = 234, + SDLK_WORLD_75 = 235, + SDLK_WORLD_76 = 236, + SDLK_WORLD_77 = 237, + SDLK_WORLD_78 = 238, + SDLK_WORLD_79 = 239, + SDLK_WORLD_80 = 240, + SDLK_WORLD_81 = 241, + SDLK_WORLD_82 = 242, + SDLK_WORLD_83 = 243, + SDLK_WORLD_84 = 244, + SDLK_WORLD_85 = 245, + SDLK_WORLD_86 = 246, + SDLK_WORLD_87 = 247, + SDLK_WORLD_88 = 248, + SDLK_WORLD_89 = 249, + SDLK_WORLD_90 = 250, + SDLK_WORLD_91 = 251, + SDLK_WORLD_92 = 252, + SDLK_WORLD_93 = 253, + SDLK_WORLD_94 = 254, + SDLK_WORLD_95 = 255, /* 0xFF */ + /*@}*/ + + /** @name Numeric keypad */ + /*@{*/ + SDLK_KP0 = 256, + SDLK_KP1 = 257, + SDLK_KP2 = 258, + SDLK_KP3 = 259, + SDLK_KP4 = 260, + SDLK_KP5 = 261, + SDLK_KP6 = 262, + SDLK_KP7 = 263, + SDLK_KP8 = 264, + SDLK_KP9 = 265, + SDLK_KP_PERIOD = 266, + SDLK_KP_DIVIDE = 267, + SDLK_KP_MULTIPLY = 268, + SDLK_KP_MINUS = 269, + SDLK_KP_PLUS = 270, + SDLK_KP_ENTER = 271, + SDLK_KP_EQUALS = 272, + /*@}*/ + + /** @name Arrows + Home/End pad */ + /*@{*/ + SDLK_UP = 273, + SDLK_DOWN = 274, + SDLK_RIGHT = 275, + SDLK_LEFT = 276, + SDLK_INSERT = 277, + SDLK_HOME = 278, + SDLK_END = 279, + SDLK_PAGEUP = 280, + SDLK_PAGEDOWN = 281, + /*@}*/ + + /** @name Function keys */ + /*@{*/ + SDLK_F1 = 282, + SDLK_F2 = 283, + SDLK_F3 = 284, + SDLK_F4 = 285, + SDLK_F5 = 286, + SDLK_F6 = 287, + SDLK_F7 = 288, + SDLK_F8 = 289, + SDLK_F9 = 290, + SDLK_F10 = 291, + SDLK_F11 = 292, + SDLK_F12 = 293, + SDLK_F13 = 294, + SDLK_F14 = 295, + SDLK_F15 = 296, + /*@}*/ + + /** @name Key state modifier keys */ + /*@{*/ + SDLK_NUMLOCK = 300, + SDLK_CAPSLOCK = 301, + SDLK_SCROLLOCK = 302, + SDLK_RSHIFT = 303, + SDLK_LSHIFT = 304, + SDLK_RCTRL = 305, + SDLK_LCTRL = 306, + SDLK_RALT = 307, + SDLK_LALT = 308, + SDLK_RMETA = 309, + SDLK_LMETA = 310, + SDLK_LSUPER = 311, /**< Left "Windows" key */ + SDLK_RSUPER = 312, /**< Right "Windows" key */ + SDLK_MODE = 313, /**< "Alt Gr" key */ + SDLK_COMPOSE = 314, /**< Multi-key compose key */ + /*@}*/ + + /** @name Miscellaneous function keys */ + /*@{*/ + SDLK_HELP = 315, + SDLK_PRINT = 316, + SDLK_SYSREQ = 317, + SDLK_BREAK = 318, + SDLK_MENU = 319, + SDLK_POWER = 320, /**< Power Macintosh power key */ + SDLK_EURO = 321, /**< Some european keyboards */ + SDLK_UNDO = 322, /**< Atari keyboard has Undo */ + /*@}*/ + + /* Add any other keys here */ + + SDLK_LAST +} SDLKey; + +/** Enumeration of valid key mods (possibly OR'd together) */ +typedef enum { + KMOD_NONE = 0x0000, + KMOD_LSHIFT= 0x0001, + KMOD_RSHIFT= 0x0002, + KMOD_LCTRL = 0x0040, + KMOD_RCTRL = 0x0080, + KMOD_LALT = 0x0100, + KMOD_RALT = 0x0200, + KMOD_LMETA = 0x0400, + KMOD_RMETA = 0x0800, + KMOD_NUM = 0x1000, + KMOD_CAPS = 0x2000, + KMOD_MODE = 0x4000, + KMOD_RESERVED = 0x8000 +} SDLMod; + +#define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL) +#define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT) +#define KMOD_ALT (KMOD_LALT|KMOD_RALT) +#define KMOD_META (KMOD_LMETA|KMOD_RMETA) + +#endif /* _SDL_keysym_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_loadso.h b/lib/sdl/msvc/include/SDL/SDL_loadso.h new file mode 100644 index 0000000000000000000000000000000000000000..45a17f9f41b526881ff0b4cbd598fd6b88b6a1cc --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_loadso.h @@ -0,0 +1,78 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_loadso.h + * System dependent library loading routines + */ + +/** @file SDL_loadso.h + * Some things to keep in mind: + * - These functions only work on C function names. Other languages may + * have name mangling and intrinsic language support that varies from + * compiler to compiler. + * - Make sure you declare your function pointers with the same calling + * convention as the actual library function. Your code will crash + * mysteriously if you do not do this. + * - Avoid namespace collisions. If you load a symbol from the library, + * it is not defined whether or not it goes into the global symbol + * namespace for the application. If it does and it conflicts with + * symbols in your code or other shared libraries, you will not get + * the results you expect. :) + */ + + +#ifndef _SDL_loadso_h +#define _SDL_loadso_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** + * This function dynamically loads a shared object and returns a pointer + * to the object handle (or NULL if there was an error). + * The 'sofile' parameter is a system dependent name of the object file. + */ +extern DECLSPEC void * SDLCALL SDL_LoadObject(const char *sofile); + +/** + * Given an object handle, this function looks up the address of the + * named function in the shared object and returns it. This address + * is no longer valid after calling SDL_UnloadObject(). + */ +extern DECLSPEC void * SDLCALL SDL_LoadFunction(void *handle, const char *name); + +/** Unload a shared object from memory */ +extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle); + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_loadso_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_main.h b/lib/sdl/msvc/include/SDL/SDL_main.h new file mode 100644 index 0000000000000000000000000000000000000000..b7f6b2c8235d0a3265e8b5d2b9e85cfbd6982773 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_main.h @@ -0,0 +1,106 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_main_h +#define _SDL_main_h + +#include "SDL_stdinc.h" + +/** @file SDL_main.h + * Redefine main() on Win32 and MacOS so that it is called by winmain.c + */ + +#if defined(__WIN32__) || \ + (defined(__MWERKS__) && !defined(__BEOS__)) || \ + defined(__MACOS__) || defined(__MACOSX__) || \ + defined(__SYMBIAN32__) || defined(QWS) + +#ifdef __cplusplus +#define C_LINKAGE "C" +#else +#define C_LINKAGE +#endif /* __cplusplus */ + +/** The application's main() function must be called with C linkage, + * and should be declared like this: + * @code + * #ifdef __cplusplus + * extern "C" + * #endif + * int main(int argc, char *argv[]) + * { + * } + * @endcode + */ +#define main SDL_main + +/** The prototype for the application's main() function */ +extern C_LINKAGE int SDL_main(int argc, char *argv[]); + + +/** @name From the SDL library code -- needed for registering the app on Win32 */ +/*@{*/ +#ifdef __WIN32__ + +#include "begin_code.h" +#ifdef __cplusplus +extern "C" { +#endif + +/** This should be called from your WinMain() function, if any */ +extern DECLSPEC void SDLCALL SDL_SetModuleHandle(void *hInst); +/** This can also be called, but is no longer necessary */ +extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style, void *hInst); +/** This can also be called, but is no longer necessary (SDL_Quit calls it) */ +extern DECLSPEC void SDLCALL SDL_UnregisterApp(void); +#ifdef __cplusplus +} +#endif +#include "close_code.h" +#endif +/*@}*/ + +/** @name From the SDL library code -- needed for registering QuickDraw on MacOS */ +/*@{*/ +#if defined(__MACOS__) + +#include "begin_code.h" +#ifdef __cplusplus +extern "C" { +#endif + +/** Forward declaration so we don't need to include QuickDraw.h */ +struct QDGlobals; + +/** This should be called from your main() function, if any */ +extern DECLSPEC void SDLCALL SDL_InitQuickDraw(struct QDGlobals *the_qd); + +#ifdef __cplusplus +} +#endif +#include "close_code.h" +#endif +/*@}*/ + +#endif /* Need to redefine main()? */ + +#endif /* _SDL_main_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_mouse.h b/lib/sdl/msvc/include/SDL/SDL_mouse.h new file mode 100644 index 0000000000000000000000000000000000000000..a573f04ee059c9a26c05e2bd96bc4c255165b0ab --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_mouse.h @@ -0,0 +1,143 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_mouse.h + * Include file for SDL mouse event handling + */ + +#ifndef _SDL_mouse_h +#define _SDL_mouse_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" +#include "SDL_video.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct WMcursor WMcursor; /**< Implementation dependent */ +typedef struct SDL_Cursor { + SDL_Rect area; /**< The area of the mouse cursor */ + Sint16 hot_x, hot_y; /**< The "tip" of the cursor */ + Uint8 *data; /**< B/W cursor data */ + Uint8 *mask; /**< B/W cursor mask */ + Uint8 *save[2]; /**< Place to save cursor area */ + WMcursor *wm_cursor; /**< Window-manager cursor */ +} SDL_Cursor; + +/* Function prototypes */ +/** + * Retrieve the current state of the mouse. + * The current button state is returned as a button bitmask, which can + * be tested using the SDL_BUTTON(X) macros, and x and y are set to the + * current mouse cursor position. You can pass NULL for either x or y. + */ +extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int *x, int *y); + +/** + * Retrieve the current state of the mouse. + * The current button state is returned as a button bitmask, which can + * be tested using the SDL_BUTTON(X) macros, and x and y are set to the + * mouse deltas since the last call to SDL_GetRelativeMouseState(). + */ +extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int *x, int *y); + +/** + * Set the position of the mouse cursor (generates a mouse motion event) + */ +extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y); + +/** + * Create a cursor using the specified data and mask (in MSB format). + * The cursor width must be a multiple of 8 bits. + * + * The cursor is created in black and white according to the following: + * data mask resulting pixel on screen + * 0 1 White + * 1 1 Black + * 0 0 Transparent + * 1 0 Inverted color if possible, black if not. + * + * Cursors created with this function must be freed with SDL_FreeCursor(). + */ +extern DECLSPEC SDL_Cursor * SDLCALL SDL_CreateCursor + (Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y); + +/** + * Set the currently active cursor to the specified one. + * If the cursor is currently visible, the change will be immediately + * represented on the display. + */ +extern DECLSPEC void SDLCALL SDL_SetCursor(SDL_Cursor *cursor); + +/** + * Returns the currently active cursor. + */ +extern DECLSPEC SDL_Cursor * SDLCALL SDL_GetCursor(void); + +/** + * Deallocates a cursor created with SDL_CreateCursor(). + */ +extern DECLSPEC void SDLCALL SDL_FreeCursor(SDL_Cursor *cursor); + +/** + * Toggle whether or not the cursor is shown on the screen. + * The cursor start off displayed, but can be turned off. + * SDL_ShowCursor() returns 1 if the cursor was being displayed + * before the call, or 0 if it was not. You can query the current + * state by passing a 'toggle' value of -1. + */ +extern DECLSPEC int SDLCALL SDL_ShowCursor(int toggle); + +/*@{*/ +/** Used as a mask when testing buttons in buttonstate + * Button 1: Left mouse button + * Button 2: Middle mouse button + * Button 3: Right mouse button + * Button 4: Mouse wheel up (may also be a real button) + * Button 5: Mouse wheel down (may also be a real button) + */ +#define SDL_BUTTON(X) (1 << ((X)-1)) +#define SDL_BUTTON_LEFT 1 +#define SDL_BUTTON_MIDDLE 2 +#define SDL_BUTTON_RIGHT 3 +#define SDL_BUTTON_WHEELUP 4 +#define SDL_BUTTON_WHEELDOWN 5 +#define SDL_BUTTON_X1 6 +#define SDL_BUTTON_X2 7 +#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) +#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) +#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) +#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1) +#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2) +/*@}*/ + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_mouse_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_mutex.h b/lib/sdl/msvc/include/SDL/SDL_mutex.h new file mode 100644 index 0000000000000000000000000000000000000000..920971dfa7c5d8cfc6206b099e7ac83dd8b373be --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_mutex.h @@ -0,0 +1,177 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_mutex_h +#define _SDL_mutex_h + +/** @file SDL_mutex.h + * Functions to provide thread synchronization primitives + * + * @note These are independent of the other SDL routines. + */ + +#include "SDL_stdinc.h" +#include "SDL_error.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** Synchronization functions which can time out return this value + * if they time out. + */ +#define SDL_MUTEX_TIMEDOUT 1 + +/** This is the timeout value which corresponds to never time out */ +#define SDL_MUTEX_MAXWAIT (~(Uint32)0) + + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/** @name Mutex functions */ /*@{*/ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** The SDL mutex structure, defined in SDL_mutex.c */ +struct SDL_mutex; +typedef struct SDL_mutex SDL_mutex; + +/** Create a mutex, initialized unlocked */ +extern DECLSPEC SDL_mutex * SDLCALL SDL_CreateMutex(void); + +#define SDL_LockMutex(m) SDL_mutexP(m) +/** Lock the mutex + * @return 0, or -1 on error + */ +extern DECLSPEC int SDLCALL SDL_mutexP(SDL_mutex *mutex); + +#define SDL_UnlockMutex(m) SDL_mutexV(m) +/** Unlock the mutex + * @return 0, or -1 on error + * + * It is an error to unlock a mutex that has not been locked by + * the current thread, and doing so results in undefined behavior. + */ +extern DECLSPEC int SDLCALL SDL_mutexV(SDL_mutex *mutex); + +/** Destroy a mutex */ +extern DECLSPEC void SDLCALL SDL_DestroyMutex(SDL_mutex *mutex); + +/*@}*/ + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/** @name Semaphore functions */ /*@{*/ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** The SDL semaphore structure, defined in SDL_sem.c */ +struct SDL_semaphore; +typedef struct SDL_semaphore SDL_sem; + +/** Create a semaphore, initialized with value, returns NULL on failure. */ +extern DECLSPEC SDL_sem * SDLCALL SDL_CreateSemaphore(Uint32 initial_value); + +/** Destroy a semaphore */ +extern DECLSPEC void SDLCALL SDL_DestroySemaphore(SDL_sem *sem); + +/** + * This function suspends the calling thread until the semaphore pointed + * to by sem has a positive count. It then atomically decreases the semaphore + * count. + */ +extern DECLSPEC int SDLCALL SDL_SemWait(SDL_sem *sem); + +/** Non-blocking variant of SDL_SemWait(). + * @return 0 if the wait succeeds, + * SDL_MUTEX_TIMEDOUT if the wait would block, and -1 on error. + */ +extern DECLSPEC int SDLCALL SDL_SemTryWait(SDL_sem *sem); + +/** Variant of SDL_SemWait() with a timeout in milliseconds, returns 0 if + * the wait succeeds, SDL_MUTEX_TIMEDOUT if the wait does not succeed in + * the allotted time, and -1 on error. + * + * On some platforms this function is implemented by looping with a delay + * of 1 ms, and so should be avoided if possible. + */ +extern DECLSPEC int SDLCALL SDL_SemWaitTimeout(SDL_sem *sem, Uint32 ms); + +/** Atomically increases the semaphore's count (not blocking). + * @return 0, or -1 on error. + */ +extern DECLSPEC int SDLCALL SDL_SemPost(SDL_sem *sem); + +/** Returns the current count of the semaphore */ +extern DECLSPEC Uint32 SDLCALL SDL_SemValue(SDL_sem *sem); + +/*@}*/ + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/** @name Condition_variable_functions */ /*@{*/ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/*@{*/ +/** The SDL condition variable structure, defined in SDL_cond.c */ +struct SDL_cond; +typedef struct SDL_cond SDL_cond; +/*@}*/ + +/** Create a condition variable */ +extern DECLSPEC SDL_cond * SDLCALL SDL_CreateCond(void); + +/** Destroy a condition variable */ +extern DECLSPEC void SDLCALL SDL_DestroyCond(SDL_cond *cond); + +/** Restart one of the threads that are waiting on the condition variable, + * @return 0 or -1 on error. + */ +extern DECLSPEC int SDLCALL SDL_CondSignal(SDL_cond *cond); + +/** Restart all threads that are waiting on the condition variable, + * @return 0 or -1 on error. + */ +extern DECLSPEC int SDLCALL SDL_CondBroadcast(SDL_cond *cond); + +/** Wait on the condition variable, unlocking the provided mutex. + * The mutex must be locked before entering this function! + * The mutex is re-locked once the condition variable is signaled. + * @return 0 when it is signaled, or -1 on error. + */ +extern DECLSPEC int SDLCALL SDL_CondWait(SDL_cond *cond, SDL_mutex *mut); + +/** Waits for at most 'ms' milliseconds, and returns 0 if the condition + * variable is signaled, SDL_MUTEX_TIMEDOUT if the condition is not + * signaled in the allotted time, and -1 on error. + * On some platforms this function is implemented by looping with a delay + * of 1 ms, and so should be avoided if possible. + */ +extern DECLSPEC int SDLCALL SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms); + +/*@}*/ + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_mutex_h */ + diff --git a/lib/sdl/msvc/include/SDL/SDL_name.h b/lib/sdl/msvc/include/SDL/SDL_name.h new file mode 100644 index 0000000000000000000000000000000000000000..511619af561713b72b349612ad7d4080aa570525 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_name.h @@ -0,0 +1,11 @@ + +#ifndef _SDLname_h_ +#define _SDLname_h_ + +#if defined(__STDC__) || defined(__cplusplus) +#define NeedFunctionPrototypes 1 +#endif + +#define SDL_NAME(X) SDL_##X + +#endif /* _SDLname_h_ */ diff --git a/lib/sdl/msvc/include/SDL/SDL_opengl.h b/lib/sdl/msvc/include/SDL/SDL_opengl.h new file mode 100644 index 0000000000000000000000000000000000000000..c479a3a4e46b9d552dadd182e146b1704807e947 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_opengl.h @@ -0,0 +1,6556 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_opengl.h + * This is a simple file to encapsulate the OpenGL API headers + */ + +#include "SDL_config.h" + +#ifdef __WIN32__ +#define WIN32_LEAN_AND_MEAN +#ifndef NOMINMAX +#define NOMINMAX /* Don't defined min() and max() */ +#endif +#include +#endif +#ifndef NO_SDL_GLEXT +#define __glext_h_ /* Don't let gl.h include glext.h */ +#endif +#if defined(__MACOSX__) +#include /* Header File For The OpenGL Library */ +#include /* Header File For The GLU Library */ +#elif defined(__MACOS__) +#include /* Header File For The OpenGL Library */ +#include /* Header File For The GLU Library */ +#else +#include /* Header File For The OpenGL Library */ +#include /* Header File For The GLU Library */ +#endif +#ifndef NO_SDL_GLEXT +#undef __glext_h_ +#endif + +/** @name GLext.h + * This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials. + * It is included here because glext.h is not available on some systems. + * If you don't want this version included, simply define "NO_SDL_GLEXT" + */ +/*@{*/ +#ifndef NO_SDL_GLEXT +#if !defined(__glext_h_) && !defined(GL_GLEXT_LEGACY) +#define __glext_h_ + +#ifdef __cplusplus +extern "C" { +#endif + +/* +** License Applicability. Except to the extent portions of this file are +** made subject to an alternative license as permitted in the SGI Free +** Software License B, Version 1.1 (the "License"), the contents of this +** file are subject only to the provisions of the License. You may not use +** this file except in compliance with the License. You may obtain a copy +** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 +** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: +** +** http://oss.sgi.com/projects/FreeB +** +** Note that, as provided in the License, the Software is distributed on an +** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS +** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND +** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A +** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. +** +** Original Code. The Original Code is: OpenGL Sample Implementation, +** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, +** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc. +** Copyright in any portions created by third parties is as indicated +** elsewhere herein. All Rights Reserved. +** +** Additional Notice Provisions: This software was created using the +** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has +** not been independently verified as being compliant with the OpenGL(R) +** version 1.2.1 Specification. +*/ + +#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) +#define WIN32_LEAN_AND_MEAN 1 +#include +#endif + +#ifndef APIENTRY +#define APIENTRY +#endif +#ifndef APIENTRYP +#define APIENTRYP APIENTRY * +#endif +#ifndef GLAPI +#define GLAPI extern +#endif + +/*************************************************************/ + +/* Header file version number, required by OpenGL ABI for Linux */ +/* glext.h last updated 2005/06/20 */ +/* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */ +#define GL_GLEXT_VERSION 29 + +#ifndef GL_VERSION_1_2 +#define GL_UNSIGNED_BYTE_3_3_2 0x8032 +#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 +#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 +#define GL_UNSIGNED_INT_8_8_8_8 0x8035 +#define GL_UNSIGNED_INT_10_10_10_2 0x8036 +#define GL_RESCALE_NORMAL 0x803A +#define GL_TEXTURE_BINDING_3D 0x806A +#define GL_PACK_SKIP_IMAGES 0x806B +#define GL_PACK_IMAGE_HEIGHT 0x806C +#define GL_UNPACK_SKIP_IMAGES 0x806D +#define GL_UNPACK_IMAGE_HEIGHT 0x806E +#define GL_TEXTURE_3D 0x806F +#define GL_PROXY_TEXTURE_3D 0x8070 +#define GL_TEXTURE_DEPTH 0x8071 +#define GL_TEXTURE_WRAP_R 0x8072 +#define GL_MAX_3D_TEXTURE_SIZE 0x8073 +#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 +#define GL_UNSIGNED_SHORT_5_6_5 0x8363 +#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 +#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 +#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 +#define GL_BGR 0x80E0 +#define GL_BGRA 0x80E1 +#define GL_MAX_ELEMENTS_VERTICES 0x80E8 +#define GL_MAX_ELEMENTS_INDICES 0x80E9 +#define GL_CLAMP_TO_EDGE 0x812F +#define GL_TEXTURE_MIN_LOD 0x813A +#define GL_TEXTURE_MAX_LOD 0x813B +#define GL_TEXTURE_BASE_LEVEL 0x813C +#define GL_TEXTURE_MAX_LEVEL 0x813D +#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 +#define GL_SINGLE_COLOR 0x81F9 +#define GL_SEPARATE_SPECULAR_COLOR 0x81FA +#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 +#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 +#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_ALIASED_POINT_SIZE_RANGE 0x846D +#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E +#endif + +#ifndef GL_ARB_imaging +#define GL_CONSTANT_COLOR 0x8001 +#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 +#define GL_CONSTANT_ALPHA 0x8003 +#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 +#define GL_BLEND_COLOR 0x8005 +#define GL_FUNC_ADD 0x8006 +#define GL_MIN 0x8007 +#define GL_MAX 0x8008 +#define GL_BLEND_EQUATION 0x8009 +#define GL_FUNC_SUBTRACT 0x800A +#define GL_FUNC_REVERSE_SUBTRACT 0x800B +#define GL_CONVOLUTION_1D 0x8010 +#define GL_CONVOLUTION_2D 0x8011 +#define GL_SEPARABLE_2D 0x8012 +#define GL_CONVOLUTION_BORDER_MODE 0x8013 +#define GL_CONVOLUTION_FILTER_SCALE 0x8014 +#define GL_CONVOLUTION_FILTER_BIAS 0x8015 +#define GL_REDUCE 0x8016 +#define GL_CONVOLUTION_FORMAT 0x8017 +#define GL_CONVOLUTION_WIDTH 0x8018 +#define GL_CONVOLUTION_HEIGHT 0x8019 +#define GL_MAX_CONVOLUTION_WIDTH 0x801A +#define GL_MAX_CONVOLUTION_HEIGHT 0x801B +#define GL_POST_CONVOLUTION_RED_SCALE 0x801C +#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D +#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E +#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F +#define GL_POST_CONVOLUTION_RED_BIAS 0x8020 +#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021 +#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022 +#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023 +#define GL_HISTOGRAM 0x8024 +#define GL_PROXY_HISTOGRAM 0x8025 +#define GL_HISTOGRAM_WIDTH 0x8026 +#define GL_HISTOGRAM_FORMAT 0x8027 +#define GL_HISTOGRAM_RED_SIZE 0x8028 +#define GL_HISTOGRAM_GREEN_SIZE 0x8029 +#define GL_HISTOGRAM_BLUE_SIZE 0x802A +#define GL_HISTOGRAM_ALPHA_SIZE 0x802B +#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C +#define GL_HISTOGRAM_SINK 0x802D +#define GL_MINMAX 0x802E +#define GL_MINMAX_FORMAT 0x802F +#define GL_MINMAX_SINK 0x8030 +#define GL_TABLE_TOO_LARGE 0x8031 +#define GL_COLOR_MATRIX 0x80B1 +#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2 +#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3 +#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4 +#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5 +#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6 +#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7 +#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8 +#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9 +#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA +#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB +#define GL_COLOR_TABLE 0x80D0 +#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1 +#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2 +#define GL_PROXY_COLOR_TABLE 0x80D3 +#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4 +#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5 +#define GL_COLOR_TABLE_SCALE 0x80D6 +#define GL_COLOR_TABLE_BIAS 0x80D7 +#define GL_COLOR_TABLE_FORMAT 0x80D8 +#define GL_COLOR_TABLE_WIDTH 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF +#define GL_CONSTANT_BORDER 0x8151 +#define GL_REPLICATE_BORDER 0x8153 +#define GL_CONVOLUTION_BORDER_COLOR 0x8154 +#endif + +#ifndef GL_VERSION_1_3 +#define GL_TEXTURE0 0x84C0 +#define GL_TEXTURE1 0x84C1 +#define GL_TEXTURE2 0x84C2 +#define GL_TEXTURE3 0x84C3 +#define GL_TEXTURE4 0x84C4 +#define GL_TEXTURE5 0x84C5 +#define GL_TEXTURE6 0x84C6 +#define GL_TEXTURE7 0x84C7 +#define GL_TEXTURE8 0x84C8 +#define GL_TEXTURE9 0x84C9 +#define GL_TEXTURE10 0x84CA +#define GL_TEXTURE11 0x84CB +#define GL_TEXTURE12 0x84CC +#define GL_TEXTURE13 0x84CD +#define GL_TEXTURE14 0x84CE +#define GL_TEXTURE15 0x84CF +#define GL_TEXTURE16 0x84D0 +#define GL_TEXTURE17 0x84D1 +#define GL_TEXTURE18 0x84D2 +#define GL_TEXTURE19 0x84D3 +#define GL_TEXTURE20 0x84D4 +#define GL_TEXTURE21 0x84D5 +#define GL_TEXTURE22 0x84D6 +#define GL_TEXTURE23 0x84D7 +#define GL_TEXTURE24 0x84D8 +#define GL_TEXTURE25 0x84D9 +#define GL_TEXTURE26 0x84DA +#define GL_TEXTURE27 0x84DB +#define GL_TEXTURE28 0x84DC +#define GL_TEXTURE29 0x84DD +#define GL_TEXTURE30 0x84DE +#define GL_TEXTURE31 0x84DF +#define GL_ACTIVE_TEXTURE 0x84E0 +#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 +#define GL_MAX_TEXTURE_UNITS 0x84E2 +#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 +#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 +#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 +#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 +#define GL_MULTISAMPLE 0x809D +#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE 0x809F +#define GL_SAMPLE_COVERAGE 0x80A0 +#define GL_SAMPLE_BUFFERS 0x80A8 +#define GL_SAMPLES 0x80A9 +#define GL_SAMPLE_COVERAGE_VALUE 0x80AA +#define GL_SAMPLE_COVERAGE_INVERT 0x80AB +#define GL_MULTISAMPLE_BIT 0x20000000 +#define GL_NORMAL_MAP 0x8511 +#define GL_REFLECTION_MAP 0x8512 +#define GL_TEXTURE_CUBE_MAP 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C +#define GL_COMPRESSED_ALPHA 0x84E9 +#define GL_COMPRESSED_LUMINANCE 0x84EA +#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB +#define GL_COMPRESSED_INTENSITY 0x84EC +#define GL_COMPRESSED_RGB 0x84ED +#define GL_COMPRESSED_RGBA 0x84EE +#define GL_TEXTURE_COMPRESSION_HINT 0x84EF +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 +#define GL_TEXTURE_COMPRESSED 0x86A1 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 +#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 +#define GL_CLAMP_TO_BORDER 0x812D +#define GL_COMBINE 0x8570 +#define GL_COMBINE_RGB 0x8571 +#define GL_COMBINE_ALPHA 0x8572 +#define GL_SOURCE0_RGB 0x8580 +#define GL_SOURCE1_RGB 0x8581 +#define GL_SOURCE2_RGB 0x8582 +#define GL_SOURCE0_ALPHA 0x8588 +#define GL_SOURCE1_ALPHA 0x8589 +#define GL_SOURCE2_ALPHA 0x858A +#define GL_OPERAND0_RGB 0x8590 +#define GL_OPERAND1_RGB 0x8591 +#define GL_OPERAND2_RGB 0x8592 +#define GL_OPERAND0_ALPHA 0x8598 +#define GL_OPERAND1_ALPHA 0x8599 +#define GL_OPERAND2_ALPHA 0x859A +#define GL_RGB_SCALE 0x8573 +#define GL_ADD_SIGNED 0x8574 +#define GL_INTERPOLATE 0x8575 +#define GL_SUBTRACT 0x84E7 +#define GL_CONSTANT 0x8576 +#define GL_PRIMARY_COLOR 0x8577 +#define GL_PREVIOUS 0x8578 +#define GL_DOT3_RGB 0x86AE +#define GL_DOT3_RGBA 0x86AF +#endif + +#ifndef GL_VERSION_1_4 +#define GL_BLEND_DST_RGB 0x80C8 +#define GL_BLEND_SRC_RGB 0x80C9 +#define GL_BLEND_DST_ALPHA 0x80CA +#define GL_BLEND_SRC_ALPHA 0x80CB +#define GL_POINT_SIZE_MIN 0x8126 +#define GL_POINT_SIZE_MAX 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 +#define GL_POINT_DISTANCE_ATTENUATION 0x8129 +#define GL_GENERATE_MIPMAP 0x8191 +#define GL_GENERATE_MIPMAP_HINT 0x8192 +#define GL_DEPTH_COMPONENT16 0x81A5 +#define GL_DEPTH_COMPONENT24 0x81A6 +#define GL_DEPTH_COMPONENT32 0x81A7 +#define GL_MIRRORED_REPEAT 0x8370 +#define GL_FOG_COORDINATE_SOURCE 0x8450 +#define GL_FOG_COORDINATE 0x8451 +#define GL_FRAGMENT_DEPTH 0x8452 +#define GL_CURRENT_FOG_COORDINATE 0x8453 +#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454 +#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455 +#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456 +#define GL_FOG_COORDINATE_ARRAY 0x8457 +#define GL_COLOR_SUM 0x8458 +#define GL_CURRENT_SECONDARY_COLOR 0x8459 +#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A +#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B +#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C +#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D +#define GL_SECONDARY_COLOR_ARRAY 0x845E +#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD +#define GL_TEXTURE_FILTER_CONTROL 0x8500 +#define GL_TEXTURE_LOD_BIAS 0x8501 +#define GL_INCR_WRAP 0x8507 +#define GL_DECR_WRAP 0x8508 +#define GL_TEXTURE_DEPTH_SIZE 0x884A +#define GL_DEPTH_TEXTURE_MODE 0x884B +#define GL_TEXTURE_COMPARE_MODE 0x884C +#define GL_TEXTURE_COMPARE_FUNC 0x884D +#define GL_COMPARE_R_TO_TEXTURE 0x884E +#endif + +#ifndef GL_VERSION_1_5 +#define GL_BUFFER_SIZE 0x8764 +#define GL_BUFFER_USAGE 0x8765 +#define GL_QUERY_COUNTER_BITS 0x8864 +#define GL_CURRENT_QUERY 0x8865 +#define GL_QUERY_RESULT 0x8866 +#define GL_QUERY_RESULT_AVAILABLE 0x8867 +#define GL_ARRAY_BUFFER 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER 0x8893 +#define GL_ARRAY_BUFFER_BINDING 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 +#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 +#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 +#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 +#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A +#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B +#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C +#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D +#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F +#define GL_READ_ONLY 0x88B8 +#define GL_WRITE_ONLY 0x88B9 +#define GL_READ_WRITE 0x88BA +#define GL_BUFFER_ACCESS 0x88BB +#define GL_BUFFER_MAPPED 0x88BC +#define GL_BUFFER_MAP_POINTER 0x88BD +#define GL_STREAM_DRAW 0x88E0 +#define GL_STREAM_READ 0x88E1 +#define GL_STREAM_COPY 0x88E2 +#define GL_STATIC_DRAW 0x88E4 +#define GL_STATIC_READ 0x88E5 +#define GL_STATIC_COPY 0x88E6 +#define GL_DYNAMIC_DRAW 0x88E8 +#define GL_DYNAMIC_READ 0x88E9 +#define GL_DYNAMIC_COPY 0x88EA +#define GL_SAMPLES_PASSED 0x8914 +#define GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE +#define GL_FOG_COORD GL_FOG_COORDINATE +#define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE +#define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE +#define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE +#define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER +#define GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY +#define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING +#define GL_SRC0_RGB GL_SOURCE0_RGB +#define GL_SRC1_RGB GL_SOURCE1_RGB +#define GL_SRC2_RGB GL_SOURCE2_RGB +#define GL_SRC0_ALPHA GL_SOURCE0_ALPHA +#define GL_SRC1_ALPHA GL_SOURCE1_ALPHA +#define GL_SRC2_ALPHA GL_SOURCE2_ALPHA +#endif + +#ifndef GL_VERSION_2_0 +#define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 +#define GL_CURRENT_VERTEX_ATTRIB 0x8626 +#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 +#define GL_STENCIL_BACK_FUNC 0x8800 +#define GL_STENCIL_BACK_FAIL 0x8801 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 +#define GL_MAX_DRAW_BUFFERS 0x8824 +#define GL_DRAW_BUFFER0 0x8825 +#define GL_DRAW_BUFFER1 0x8826 +#define GL_DRAW_BUFFER2 0x8827 +#define GL_DRAW_BUFFER3 0x8828 +#define GL_DRAW_BUFFER4 0x8829 +#define GL_DRAW_BUFFER5 0x882A +#define GL_DRAW_BUFFER6 0x882B +#define GL_DRAW_BUFFER7 0x882C +#define GL_DRAW_BUFFER8 0x882D +#define GL_DRAW_BUFFER9 0x882E +#define GL_DRAW_BUFFER10 0x882F +#define GL_DRAW_BUFFER11 0x8830 +#define GL_DRAW_BUFFER12 0x8831 +#define GL_DRAW_BUFFER13 0x8832 +#define GL_DRAW_BUFFER14 0x8833 +#define GL_DRAW_BUFFER15 0x8834 +#define GL_BLEND_EQUATION_ALPHA 0x883D +#define GL_POINT_SPRITE 0x8861 +#define GL_COORD_REPLACE 0x8862 +#define GL_MAX_VERTEX_ATTRIBS 0x8869 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A +#define GL_MAX_TEXTURE_COORDS 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 +#define GL_FRAGMENT_SHADER 0x8B30 +#define GL_VERTEX_SHADER 0x8B31 +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A +#define GL_MAX_VARYING_FLOATS 0x8B4B +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D +#define GL_SHADER_TYPE 0x8B4F +#define GL_FLOAT_VEC2 0x8B50 +#define GL_FLOAT_VEC3 0x8B51 +#define GL_FLOAT_VEC4 0x8B52 +#define GL_INT_VEC2 0x8B53 +#define GL_INT_VEC3 0x8B54 +#define GL_INT_VEC4 0x8B55 +#define GL_BOOL 0x8B56 +#define GL_BOOL_VEC2 0x8B57 +#define GL_BOOL_VEC3 0x8B58 +#define GL_BOOL_VEC4 0x8B59 +#define GL_FLOAT_MAT2 0x8B5A +#define GL_FLOAT_MAT3 0x8B5B +#define GL_FLOAT_MAT4 0x8B5C +#define GL_SAMPLER_1D 0x8B5D +#define GL_SAMPLER_2D 0x8B5E +#define GL_SAMPLER_3D 0x8B5F +#define GL_SAMPLER_CUBE 0x8B60 +#define GL_SAMPLER_1D_SHADOW 0x8B61 +#define GL_SAMPLER_2D_SHADOW 0x8B62 +#define GL_DELETE_STATUS 0x8B80 +#define GL_COMPILE_STATUS 0x8B81 +#define GL_LINK_STATUS 0x8B82 +#define GL_VALIDATE_STATUS 0x8B83 +#define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_ATTACHED_SHADERS 0x8B85 +#define GL_ACTIVE_UNIFORMS 0x8B86 +#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 +#define GL_SHADER_SOURCE_LENGTH 0x8B88 +#define GL_ACTIVE_ATTRIBUTES 0x8B89 +#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B +#define GL_SHADING_LANGUAGE_VERSION 0x8B8C +#define GL_CURRENT_PROGRAM 0x8B8D +#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 +#define GL_LOWER_LEFT 0x8CA1 +#define GL_UPPER_LEFT 0x8CA2 +#define GL_STENCIL_BACK_REF 0x8CA3 +#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 +#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 +#endif + +#ifndef GL_ARB_multitexture +#define GL_TEXTURE0_ARB 0x84C0 +#define GL_TEXTURE1_ARB 0x84C1 +#define GL_TEXTURE2_ARB 0x84C2 +#define GL_TEXTURE3_ARB 0x84C3 +#define GL_TEXTURE4_ARB 0x84C4 +#define GL_TEXTURE5_ARB 0x84C5 +#define GL_TEXTURE6_ARB 0x84C6 +#define GL_TEXTURE7_ARB 0x84C7 +#define GL_TEXTURE8_ARB 0x84C8 +#define GL_TEXTURE9_ARB 0x84C9 +#define GL_TEXTURE10_ARB 0x84CA +#define GL_TEXTURE11_ARB 0x84CB +#define GL_TEXTURE12_ARB 0x84CC +#define GL_TEXTURE13_ARB 0x84CD +#define GL_TEXTURE14_ARB 0x84CE +#define GL_TEXTURE15_ARB 0x84CF +#define GL_TEXTURE16_ARB 0x84D0 +#define GL_TEXTURE17_ARB 0x84D1 +#define GL_TEXTURE18_ARB 0x84D2 +#define GL_TEXTURE19_ARB 0x84D3 +#define GL_TEXTURE20_ARB 0x84D4 +#define GL_TEXTURE21_ARB 0x84D5 +#define GL_TEXTURE22_ARB 0x84D6 +#define GL_TEXTURE23_ARB 0x84D7 +#define GL_TEXTURE24_ARB 0x84D8 +#define GL_TEXTURE25_ARB 0x84D9 +#define GL_TEXTURE26_ARB 0x84DA +#define GL_TEXTURE27_ARB 0x84DB +#define GL_TEXTURE28_ARB 0x84DC +#define GL_TEXTURE29_ARB 0x84DD +#define GL_TEXTURE30_ARB 0x84DE +#define GL_TEXTURE31_ARB 0x84DF +#define GL_ACTIVE_TEXTURE_ARB 0x84E0 +#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 +#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2 +#endif + +#ifndef GL_ARB_transpose_matrix +#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3 +#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4 +#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB 0x84E5 +#define GL_TRANSPOSE_COLOR_MATRIX_ARB 0x84E6 +#endif + +#ifndef GL_ARB_multisample +#define GL_MULTISAMPLE_ARB 0x809D +#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F +#define GL_SAMPLE_COVERAGE_ARB 0x80A0 +#define GL_SAMPLE_BUFFERS_ARB 0x80A8 +#define GL_SAMPLES_ARB 0x80A9 +#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA +#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB +#define GL_MULTISAMPLE_BIT_ARB 0x20000000 +#endif + +#ifndef GL_ARB_texture_env_add +#endif + +#ifndef GL_ARB_texture_cube_map +#define GL_NORMAL_MAP_ARB 0x8511 +#define GL_REFLECTION_MAP_ARB 0x8512 +#define GL_TEXTURE_CUBE_MAP_ARB 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851C +#endif + +#ifndef GL_ARB_texture_compression +#define GL_COMPRESSED_ALPHA_ARB 0x84E9 +#define GL_COMPRESSED_LUMINANCE_ARB 0x84EA +#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB +#define GL_COMPRESSED_INTENSITY_ARB 0x84EC +#define GL_COMPRESSED_RGB_ARB 0x84ED +#define GL_COMPRESSED_RGBA_ARB 0x84EE +#define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0 +#define GL_TEXTURE_COMPRESSED_ARB 0x86A1 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2 +#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3 +#endif + +#ifndef GL_ARB_texture_border_clamp +#define GL_CLAMP_TO_BORDER_ARB 0x812D +#endif + +#ifndef GL_ARB_point_parameters +#define GL_POINT_SIZE_MIN_ARB 0x8126 +#define GL_POINT_SIZE_MAX_ARB 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128 +#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129 +#endif + +#ifndef GL_ARB_vertex_blend +#define GL_MAX_VERTEX_UNITS_ARB 0x86A4 +#define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5 +#define GL_WEIGHT_SUM_UNITY_ARB 0x86A6 +#define GL_VERTEX_BLEND_ARB 0x86A7 +#define GL_CURRENT_WEIGHT_ARB 0x86A8 +#define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9 +#define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA +#define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB +#define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC +#define GL_WEIGHT_ARRAY_ARB 0x86AD +#define GL_MODELVIEW0_ARB 0x1700 +#define GL_MODELVIEW1_ARB 0x850A +#define GL_MODELVIEW2_ARB 0x8722 +#define GL_MODELVIEW3_ARB 0x8723 +#define GL_MODELVIEW4_ARB 0x8724 +#define GL_MODELVIEW5_ARB 0x8725 +#define GL_MODELVIEW6_ARB 0x8726 +#define GL_MODELVIEW7_ARB 0x8727 +#define GL_MODELVIEW8_ARB 0x8728 +#define GL_MODELVIEW9_ARB 0x8729 +#define GL_MODELVIEW10_ARB 0x872A +#define GL_MODELVIEW11_ARB 0x872B +#define GL_MODELVIEW12_ARB 0x872C +#define GL_MODELVIEW13_ARB 0x872D +#define GL_MODELVIEW14_ARB 0x872E +#define GL_MODELVIEW15_ARB 0x872F +#define GL_MODELVIEW16_ARB 0x8730 +#define GL_MODELVIEW17_ARB 0x8731 +#define GL_MODELVIEW18_ARB 0x8732 +#define GL_MODELVIEW19_ARB 0x8733 +#define GL_MODELVIEW20_ARB 0x8734 +#define GL_MODELVIEW21_ARB 0x8735 +#define GL_MODELVIEW22_ARB 0x8736 +#define GL_MODELVIEW23_ARB 0x8737 +#define GL_MODELVIEW24_ARB 0x8738 +#define GL_MODELVIEW25_ARB 0x8739 +#define GL_MODELVIEW26_ARB 0x873A +#define GL_MODELVIEW27_ARB 0x873B +#define GL_MODELVIEW28_ARB 0x873C +#define GL_MODELVIEW29_ARB 0x873D +#define GL_MODELVIEW30_ARB 0x873E +#define GL_MODELVIEW31_ARB 0x873F +#endif + +#ifndef GL_ARB_matrix_palette +#define GL_MATRIX_PALETTE_ARB 0x8840 +#define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841 +#define GL_MAX_PALETTE_MATRICES_ARB 0x8842 +#define GL_CURRENT_PALETTE_MATRIX_ARB 0x8843 +#define GL_MATRIX_INDEX_ARRAY_ARB 0x8844 +#define GL_CURRENT_MATRIX_INDEX_ARB 0x8845 +#define GL_MATRIX_INDEX_ARRAY_SIZE_ARB 0x8846 +#define GL_MATRIX_INDEX_ARRAY_TYPE_ARB 0x8847 +#define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB 0x8848 +#define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849 +#endif + +#ifndef GL_ARB_texture_env_combine +#define GL_COMBINE_ARB 0x8570 +#define GL_COMBINE_RGB_ARB 0x8571 +#define GL_COMBINE_ALPHA_ARB 0x8572 +#define GL_SOURCE0_RGB_ARB 0x8580 +#define GL_SOURCE1_RGB_ARB 0x8581 +#define GL_SOURCE2_RGB_ARB 0x8582 +#define GL_SOURCE0_ALPHA_ARB 0x8588 +#define GL_SOURCE1_ALPHA_ARB 0x8589 +#define GL_SOURCE2_ALPHA_ARB 0x858A +#define GL_OPERAND0_RGB_ARB 0x8590 +#define GL_OPERAND1_RGB_ARB 0x8591 +#define GL_OPERAND2_RGB_ARB 0x8592 +#define GL_OPERAND0_ALPHA_ARB 0x8598 +#define GL_OPERAND1_ALPHA_ARB 0x8599 +#define GL_OPERAND2_ALPHA_ARB 0x859A +#define GL_RGB_SCALE_ARB 0x8573 +#define GL_ADD_SIGNED_ARB 0x8574 +#define GL_INTERPOLATE_ARB 0x8575 +#define GL_SUBTRACT_ARB 0x84E7 +#define GL_CONSTANT_ARB 0x8576 +#define GL_PRIMARY_COLOR_ARB 0x8577 +#define GL_PREVIOUS_ARB 0x8578 +#endif + +#ifndef GL_ARB_texture_env_crossbar +#endif + +#ifndef GL_ARB_texture_env_dot3 +#define GL_DOT3_RGB_ARB 0x86AE +#define GL_DOT3_RGBA_ARB 0x86AF +#endif + +#ifndef GL_ARB_texture_mirrored_repeat +#define GL_MIRRORED_REPEAT_ARB 0x8370 +#endif + +#ifndef GL_ARB_depth_texture +#define GL_DEPTH_COMPONENT16_ARB 0x81A5 +#define GL_DEPTH_COMPONENT24_ARB 0x81A6 +#define GL_DEPTH_COMPONENT32_ARB 0x81A7 +#define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A +#define GL_DEPTH_TEXTURE_MODE_ARB 0x884B +#endif + +#ifndef GL_ARB_shadow +#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C +#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D +#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E +#endif + +#ifndef GL_ARB_shadow_ambient +#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF +#endif + +#ifndef GL_ARB_window_pos +#endif + +#ifndef GL_ARB_vertex_program +#define GL_COLOR_SUM_ARB 0x8458 +#define GL_VERTEX_PROGRAM_ARB 0x8620 +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625 +#define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626 +#define GL_PROGRAM_LENGTH_ARB 0x8627 +#define GL_PROGRAM_STRING_ARB 0x8628 +#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E +#define GL_MAX_PROGRAM_MATRICES_ARB 0x862F +#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640 +#define GL_CURRENT_MATRIX_ARB 0x8641 +#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645 +#define GL_PROGRAM_ERROR_POSITION_ARB 0x864B +#define GL_PROGRAM_BINDING_ARB 0x8677 +#define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A +#define GL_PROGRAM_ERROR_STRING_ARB 0x8874 +#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875 +#define GL_PROGRAM_FORMAT_ARB 0x8876 +#define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0 +#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1 +#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2 +#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3 +#define GL_PROGRAM_TEMPORARIES_ARB 0x88A4 +#define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5 +#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6 +#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7 +#define GL_PROGRAM_PARAMETERS_ARB 0x88A8 +#define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9 +#define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA +#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB +#define GL_PROGRAM_ATTRIBS_ARB 0x88AC +#define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD +#define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE +#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF +#define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0 +#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1 +#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2 +#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3 +#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4 +#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5 +#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6 +#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7 +#define GL_MATRIX0_ARB 0x88C0 +#define GL_MATRIX1_ARB 0x88C1 +#define GL_MATRIX2_ARB 0x88C2 +#define GL_MATRIX3_ARB 0x88C3 +#define GL_MATRIX4_ARB 0x88C4 +#define GL_MATRIX5_ARB 0x88C5 +#define GL_MATRIX6_ARB 0x88C6 +#define GL_MATRIX7_ARB 0x88C7 +#define GL_MATRIX8_ARB 0x88C8 +#define GL_MATRIX9_ARB 0x88C9 +#define GL_MATRIX10_ARB 0x88CA +#define GL_MATRIX11_ARB 0x88CB +#define GL_MATRIX12_ARB 0x88CC +#define GL_MATRIX13_ARB 0x88CD +#define GL_MATRIX14_ARB 0x88CE +#define GL_MATRIX15_ARB 0x88CF +#define GL_MATRIX16_ARB 0x88D0 +#define GL_MATRIX17_ARB 0x88D1 +#define GL_MATRIX18_ARB 0x88D2 +#define GL_MATRIX19_ARB 0x88D3 +#define GL_MATRIX20_ARB 0x88D4 +#define GL_MATRIX21_ARB 0x88D5 +#define GL_MATRIX22_ARB 0x88D6 +#define GL_MATRIX23_ARB 0x88D7 +#define GL_MATRIX24_ARB 0x88D8 +#define GL_MATRIX25_ARB 0x88D9 +#define GL_MATRIX26_ARB 0x88DA +#define GL_MATRIX27_ARB 0x88DB +#define GL_MATRIX28_ARB 0x88DC +#define GL_MATRIX29_ARB 0x88DD +#define GL_MATRIX30_ARB 0x88DE +#define GL_MATRIX31_ARB 0x88DF +#endif + +#ifndef GL_ARB_fragment_program +#define GL_FRAGMENT_PROGRAM_ARB 0x8804 +#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805 +#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806 +#define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807 +#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808 +#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809 +#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A +#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B +#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C +#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D +#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E +#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F +#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810 +#define GL_MAX_TEXTURE_COORDS_ARB 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872 +#endif + +#ifndef GL_ARB_vertex_buffer_object +#define GL_BUFFER_SIZE_ARB 0x8764 +#define GL_BUFFER_USAGE_ARB 0x8765 +#define GL_ARRAY_BUFFER_ARB 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893 +#define GL_ARRAY_BUFFER_BINDING_ARB 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895 +#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896 +#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897 +#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898 +#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A +#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B +#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C +#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D +#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F +#define GL_READ_ONLY_ARB 0x88B8 +#define GL_WRITE_ONLY_ARB 0x88B9 +#define GL_READ_WRITE_ARB 0x88BA +#define GL_BUFFER_ACCESS_ARB 0x88BB +#define GL_BUFFER_MAPPED_ARB 0x88BC +#define GL_BUFFER_MAP_POINTER_ARB 0x88BD +#define GL_STREAM_DRAW_ARB 0x88E0 +#define GL_STREAM_READ_ARB 0x88E1 +#define GL_STREAM_COPY_ARB 0x88E2 +#define GL_STATIC_DRAW_ARB 0x88E4 +#define GL_STATIC_READ_ARB 0x88E5 +#define GL_STATIC_COPY_ARB 0x88E6 +#define GL_DYNAMIC_DRAW_ARB 0x88E8 +#define GL_DYNAMIC_READ_ARB 0x88E9 +#define GL_DYNAMIC_COPY_ARB 0x88EA +#endif + +#ifndef GL_ARB_occlusion_query +#define GL_QUERY_COUNTER_BITS_ARB 0x8864 +#define GL_CURRENT_QUERY_ARB 0x8865 +#define GL_QUERY_RESULT_ARB 0x8866 +#define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867 +#define GL_SAMPLES_PASSED_ARB 0x8914 +#endif + +#ifndef GL_ARB_shader_objects +#define GL_PROGRAM_OBJECT_ARB 0x8B40 +#define GL_SHADER_OBJECT_ARB 0x8B48 +#define GL_OBJECT_TYPE_ARB 0x8B4E +#define GL_OBJECT_SUBTYPE_ARB 0x8B4F +#define GL_FLOAT_VEC2_ARB 0x8B50 +#define GL_FLOAT_VEC3_ARB 0x8B51 +#define GL_FLOAT_VEC4_ARB 0x8B52 +#define GL_INT_VEC2_ARB 0x8B53 +#define GL_INT_VEC3_ARB 0x8B54 +#define GL_INT_VEC4_ARB 0x8B55 +#define GL_BOOL_ARB 0x8B56 +#define GL_BOOL_VEC2_ARB 0x8B57 +#define GL_BOOL_VEC3_ARB 0x8B58 +#define GL_BOOL_VEC4_ARB 0x8B59 +#define GL_FLOAT_MAT2_ARB 0x8B5A +#define GL_FLOAT_MAT3_ARB 0x8B5B +#define GL_FLOAT_MAT4_ARB 0x8B5C +#define GL_SAMPLER_1D_ARB 0x8B5D +#define GL_SAMPLER_2D_ARB 0x8B5E +#define GL_SAMPLER_3D_ARB 0x8B5F +#define GL_SAMPLER_CUBE_ARB 0x8B60 +#define GL_SAMPLER_1D_SHADOW_ARB 0x8B61 +#define GL_SAMPLER_2D_SHADOW_ARB 0x8B62 +#define GL_SAMPLER_2D_RECT_ARB 0x8B63 +#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64 +#define GL_OBJECT_DELETE_STATUS_ARB 0x8B80 +#define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81 +#define GL_OBJECT_LINK_STATUS_ARB 0x8B82 +#define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83 +#define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84 +#define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8B85 +#define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8B86 +#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87 +#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88 +#endif + +#ifndef GL_ARB_vertex_shader +#define GL_VERTEX_SHADER_ARB 0x8B31 +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A +#define GL_MAX_VARYING_FLOATS_ARB 0x8B4B +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D +#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB 0x8B89 +#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A +#endif + +#ifndef GL_ARB_fragment_shader +#define GL_FRAGMENT_SHADER_ARB 0x8B30 +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49 +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B +#endif + +#ifndef GL_ARB_shading_language_100 +#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C +#endif + +#ifndef GL_ARB_texture_non_power_of_two +#endif + +#ifndef GL_ARB_point_sprite +#define GL_POINT_SPRITE_ARB 0x8861 +#define GL_COORD_REPLACE_ARB 0x8862 +#endif + +#ifndef GL_ARB_fragment_program_shadow +#endif + +#ifndef GL_ARB_draw_buffers +#define GL_MAX_DRAW_BUFFERS_ARB 0x8824 +#define GL_DRAW_BUFFER0_ARB 0x8825 +#define GL_DRAW_BUFFER1_ARB 0x8826 +#define GL_DRAW_BUFFER2_ARB 0x8827 +#define GL_DRAW_BUFFER3_ARB 0x8828 +#define GL_DRAW_BUFFER4_ARB 0x8829 +#define GL_DRAW_BUFFER5_ARB 0x882A +#define GL_DRAW_BUFFER6_ARB 0x882B +#define GL_DRAW_BUFFER7_ARB 0x882C +#define GL_DRAW_BUFFER8_ARB 0x882D +#define GL_DRAW_BUFFER9_ARB 0x882E +#define GL_DRAW_BUFFER10_ARB 0x882F +#define GL_DRAW_BUFFER11_ARB 0x8830 +#define GL_DRAW_BUFFER12_ARB 0x8831 +#define GL_DRAW_BUFFER13_ARB 0x8832 +#define GL_DRAW_BUFFER14_ARB 0x8833 +#define GL_DRAW_BUFFER15_ARB 0x8834 +#endif + +#ifndef GL_ARB_texture_rectangle +#define GL_TEXTURE_RECTANGLE_ARB 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8 +#endif + +#ifndef GL_ARB_color_buffer_float +#define GL_RGBA_FLOAT_MODE_ARB 0x8820 +#define GL_CLAMP_VERTEX_COLOR_ARB 0x891A +#define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B +#define GL_CLAMP_READ_COLOR_ARB 0x891C +#define GL_FIXED_ONLY_ARB 0x891D +#endif + +#ifndef GL_ARB_half_float_pixel +#define GL_HALF_FLOAT_ARB 0x140B +#endif + +#ifndef GL_ARB_texture_float +#define GL_TEXTURE_RED_TYPE_ARB 0x8C10 +#define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11 +#define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12 +#define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13 +#define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14 +#define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15 +#define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16 +#define GL_UNSIGNED_NORMALIZED_ARB 0x8C17 +#define GL_RGBA32F_ARB 0x8814 +#define GL_RGB32F_ARB 0x8815 +#define GL_ALPHA32F_ARB 0x8816 +#define GL_INTENSITY32F_ARB 0x8817 +#define GL_LUMINANCE32F_ARB 0x8818 +#define GL_LUMINANCE_ALPHA32F_ARB 0x8819 +#define GL_RGBA16F_ARB 0x881A +#define GL_RGB16F_ARB 0x881B +#define GL_ALPHA16F_ARB 0x881C +#define GL_INTENSITY16F_ARB 0x881D +#define GL_LUMINANCE16F_ARB 0x881E +#define GL_LUMINANCE_ALPHA16F_ARB 0x881F +#endif + +#ifndef GL_ARB_pixel_buffer_object +#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB +#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF +#endif + +#ifndef GL_EXT_abgr +#define GL_ABGR_EXT 0x8000 +#endif + +#ifndef GL_EXT_blend_color +#define GL_CONSTANT_COLOR_EXT 0x8001 +#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002 +#define GL_CONSTANT_ALPHA_EXT 0x8003 +#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004 +#define GL_BLEND_COLOR_EXT 0x8005 +#endif + +#ifndef GL_EXT_polygon_offset +#define GL_POLYGON_OFFSET_EXT 0x8037 +#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038 +#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039 +#endif + +#ifndef GL_EXT_texture +#define GL_ALPHA4_EXT 0x803B +#define GL_ALPHA8_EXT 0x803C +#define GL_ALPHA12_EXT 0x803D +#define GL_ALPHA16_EXT 0x803E +#define GL_LUMINANCE4_EXT 0x803F +#define GL_LUMINANCE8_EXT 0x8040 +#define GL_LUMINANCE12_EXT 0x8041 +#define GL_LUMINANCE16_EXT 0x8042 +#define GL_LUMINANCE4_ALPHA4_EXT 0x8043 +#define GL_LUMINANCE6_ALPHA2_EXT 0x8044 +#define GL_LUMINANCE8_ALPHA8_EXT 0x8045 +#define GL_LUMINANCE12_ALPHA4_EXT 0x8046 +#define GL_LUMINANCE12_ALPHA12_EXT 0x8047 +#define GL_LUMINANCE16_ALPHA16_EXT 0x8048 +#define GL_INTENSITY_EXT 0x8049 +#define GL_INTENSITY4_EXT 0x804A +#define GL_INTENSITY8_EXT 0x804B +#define GL_INTENSITY12_EXT 0x804C +#define GL_INTENSITY16_EXT 0x804D +#define GL_RGB2_EXT 0x804E +#define GL_RGB4_EXT 0x804F +#define GL_RGB5_EXT 0x8050 +#define GL_RGB8_EXT 0x8051 +#define GL_RGB10_EXT 0x8052 +#define GL_RGB12_EXT 0x8053 +#define GL_RGB16_EXT 0x8054 +#define GL_RGBA2_EXT 0x8055 +#define GL_RGBA4_EXT 0x8056 +#define GL_RGB5_A1_EXT 0x8057 +#define GL_RGBA8_EXT 0x8058 +#define GL_RGB10_A2_EXT 0x8059 +#define GL_RGBA12_EXT 0x805A +#define GL_RGBA16_EXT 0x805B +#define GL_TEXTURE_RED_SIZE_EXT 0x805C +#define GL_TEXTURE_GREEN_SIZE_EXT 0x805D +#define GL_TEXTURE_BLUE_SIZE_EXT 0x805E +#define GL_TEXTURE_ALPHA_SIZE_EXT 0x805F +#define GL_TEXTURE_LUMINANCE_SIZE_EXT 0x8060 +#define GL_TEXTURE_INTENSITY_SIZE_EXT 0x8061 +#define GL_REPLACE_EXT 0x8062 +#define GL_PROXY_TEXTURE_1D_EXT 0x8063 +#define GL_PROXY_TEXTURE_2D_EXT 0x8064 +#define GL_TEXTURE_TOO_LARGE_EXT 0x8065 +#endif + +#ifndef GL_EXT_texture3D +#define GL_PACK_SKIP_IMAGES_EXT 0x806B +#define GL_PACK_IMAGE_HEIGHT_EXT 0x806C +#define GL_UNPACK_SKIP_IMAGES_EXT 0x806D +#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E +#define GL_TEXTURE_3D_EXT 0x806F +#define GL_PROXY_TEXTURE_3D_EXT 0x8070 +#define GL_TEXTURE_DEPTH_EXT 0x8071 +#define GL_TEXTURE_WRAP_R_EXT 0x8072 +#define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073 +#endif + +#ifndef GL_SGIS_texture_filter4 +#define GL_FILTER4_SGIS 0x8146 +#define GL_TEXTURE_FILTER4_SIZE_SGIS 0x8147 +#endif + +#ifndef GL_EXT_subtexture +#endif + +#ifndef GL_EXT_copy_texture +#endif + +#ifndef GL_EXT_histogram +#define GL_HISTOGRAM_EXT 0x8024 +#define GL_PROXY_HISTOGRAM_EXT 0x8025 +#define GL_HISTOGRAM_WIDTH_EXT 0x8026 +#define GL_HISTOGRAM_FORMAT_EXT 0x8027 +#define GL_HISTOGRAM_RED_SIZE_EXT 0x8028 +#define GL_HISTOGRAM_GREEN_SIZE_EXT 0x8029 +#define GL_HISTOGRAM_BLUE_SIZE_EXT 0x802A +#define GL_HISTOGRAM_ALPHA_SIZE_EXT 0x802B +#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT 0x802C +#define GL_HISTOGRAM_SINK_EXT 0x802D +#define GL_MINMAX_EXT 0x802E +#define GL_MINMAX_FORMAT_EXT 0x802F +#define GL_MINMAX_SINK_EXT 0x8030 +#define GL_TABLE_TOO_LARGE_EXT 0x8031 +#endif + +#ifndef GL_EXT_convolution +#define GL_CONVOLUTION_1D_EXT 0x8010 +#define GL_CONVOLUTION_2D_EXT 0x8011 +#define GL_SEPARABLE_2D_EXT 0x8012 +#define GL_CONVOLUTION_BORDER_MODE_EXT 0x8013 +#define GL_CONVOLUTION_FILTER_SCALE_EXT 0x8014 +#define GL_CONVOLUTION_FILTER_BIAS_EXT 0x8015 +#define GL_REDUCE_EXT 0x8016 +#define GL_CONVOLUTION_FORMAT_EXT 0x8017 +#define GL_CONVOLUTION_WIDTH_EXT 0x8018 +#define GL_CONVOLUTION_HEIGHT_EXT 0x8019 +#define GL_MAX_CONVOLUTION_WIDTH_EXT 0x801A +#define GL_MAX_CONVOLUTION_HEIGHT_EXT 0x801B +#define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C +#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D +#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E +#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F +#define GL_POST_CONVOLUTION_RED_BIAS_EXT 0x8020 +#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021 +#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022 +#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023 +#endif + +#ifndef GL_SGI_color_matrix +#define GL_COLOR_MATRIX_SGI 0x80B1 +#define GL_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B2 +#define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3 +#define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4 +#define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5 +#define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6 +#define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7 +#define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8 +#define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9 +#define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA +#define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB +#endif + +#ifndef GL_SGI_color_table +#define GL_COLOR_TABLE_SGI 0x80D0 +#define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1 +#define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2 +#define GL_PROXY_COLOR_TABLE_SGI 0x80D3 +#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4 +#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5 +#define GL_COLOR_TABLE_SCALE_SGI 0x80D6 +#define GL_COLOR_TABLE_BIAS_SGI 0x80D7 +#define GL_COLOR_TABLE_FORMAT_SGI 0x80D8 +#define GL_COLOR_TABLE_WIDTH_SGI 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE_SGI 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE_SGI 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE_SGI 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE_SGI 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF +#endif + +#ifndef GL_SGIS_pixel_texture +#define GL_PIXEL_TEXTURE_SGIS 0x8353 +#define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354 +#define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355 +#define GL_PIXEL_GROUP_COLOR_SGIS 0x8356 +#endif + +#ifndef GL_SGIX_pixel_texture +#define GL_PIXEL_TEX_GEN_SGIX 0x8139 +#define GL_PIXEL_TEX_GEN_MODE_SGIX 0x832B +#endif + +#ifndef GL_SGIS_texture4D +#define GL_PACK_SKIP_VOLUMES_SGIS 0x8130 +#define GL_PACK_IMAGE_DEPTH_SGIS 0x8131 +#define GL_UNPACK_SKIP_VOLUMES_SGIS 0x8132 +#define GL_UNPACK_IMAGE_DEPTH_SGIS 0x8133 +#define GL_TEXTURE_4D_SGIS 0x8134 +#define GL_PROXY_TEXTURE_4D_SGIS 0x8135 +#define GL_TEXTURE_4DSIZE_SGIS 0x8136 +#define GL_TEXTURE_WRAP_Q_SGIS 0x8137 +#define GL_MAX_4D_TEXTURE_SIZE_SGIS 0x8138 +#define GL_TEXTURE_4D_BINDING_SGIS 0x814F +#endif + +#ifndef GL_SGI_texture_color_table +#define GL_TEXTURE_COLOR_TABLE_SGI 0x80BC +#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI 0x80BD +#endif + +#ifndef GL_EXT_cmyka +#define GL_CMYK_EXT 0x800C +#define GL_CMYKA_EXT 0x800D +#define GL_PACK_CMYK_HINT_EXT 0x800E +#define GL_UNPACK_CMYK_HINT_EXT 0x800F +#endif + +#ifndef GL_EXT_texture_object +#define GL_TEXTURE_PRIORITY_EXT 0x8066 +#define GL_TEXTURE_RESIDENT_EXT 0x8067 +#define GL_TEXTURE_1D_BINDING_EXT 0x8068 +#define GL_TEXTURE_2D_BINDING_EXT 0x8069 +#define GL_TEXTURE_3D_BINDING_EXT 0x806A +#endif + +#ifndef GL_SGIS_detail_texture +#define GL_DETAIL_TEXTURE_2D_SGIS 0x8095 +#define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096 +#define GL_LINEAR_DETAIL_SGIS 0x8097 +#define GL_LINEAR_DETAIL_ALPHA_SGIS 0x8098 +#define GL_LINEAR_DETAIL_COLOR_SGIS 0x8099 +#define GL_DETAIL_TEXTURE_LEVEL_SGIS 0x809A +#define GL_DETAIL_TEXTURE_MODE_SGIS 0x809B +#define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C +#endif + +#ifndef GL_SGIS_sharpen_texture +#define GL_LINEAR_SHARPEN_SGIS 0x80AD +#define GL_LINEAR_SHARPEN_ALPHA_SGIS 0x80AE +#define GL_LINEAR_SHARPEN_COLOR_SGIS 0x80AF +#define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0 +#endif + +#ifndef GL_EXT_packed_pixels +#define GL_UNSIGNED_BYTE_3_3_2_EXT 0x8032 +#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033 +#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034 +#define GL_UNSIGNED_INT_8_8_8_8_EXT 0x8035 +#define GL_UNSIGNED_INT_10_10_10_2_EXT 0x8036 +#endif + +#ifndef GL_SGIS_texture_lod +#define GL_TEXTURE_MIN_LOD_SGIS 0x813A +#define GL_TEXTURE_MAX_LOD_SGIS 0x813B +#define GL_TEXTURE_BASE_LEVEL_SGIS 0x813C +#define GL_TEXTURE_MAX_LEVEL_SGIS 0x813D +#endif + +#ifndef GL_SGIS_multisample +#define GL_MULTISAMPLE_SGIS 0x809D +#define GL_SAMPLE_ALPHA_TO_MASK_SGIS 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_SGIS 0x809F +#define GL_SAMPLE_MASK_SGIS 0x80A0 +#define GL_1PASS_SGIS 0x80A1 +#define GL_2PASS_0_SGIS 0x80A2 +#define GL_2PASS_1_SGIS 0x80A3 +#define GL_4PASS_0_SGIS 0x80A4 +#define GL_4PASS_1_SGIS 0x80A5 +#define GL_4PASS_2_SGIS 0x80A6 +#define GL_4PASS_3_SGIS 0x80A7 +#define GL_SAMPLE_BUFFERS_SGIS 0x80A8 +#define GL_SAMPLES_SGIS 0x80A9 +#define GL_SAMPLE_MASK_VALUE_SGIS 0x80AA +#define GL_SAMPLE_MASK_INVERT_SGIS 0x80AB +#define GL_SAMPLE_PATTERN_SGIS 0x80AC +#endif + +#ifndef GL_EXT_rescale_normal +#define GL_RESCALE_NORMAL_EXT 0x803A +#endif + +#ifndef GL_EXT_vertex_array +#define GL_VERTEX_ARRAY_EXT 0x8074 +#define GL_NORMAL_ARRAY_EXT 0x8075 +#define GL_COLOR_ARRAY_EXT 0x8076 +#define GL_INDEX_ARRAY_EXT 0x8077 +#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 +#define GL_EDGE_FLAG_ARRAY_EXT 0x8079 +#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A +#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B +#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C +#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D +#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E +#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F +#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 +#define GL_COLOR_ARRAY_SIZE_EXT 0x8081 +#define GL_COLOR_ARRAY_TYPE_EXT 0x8082 +#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 +#define GL_COLOR_ARRAY_COUNT_EXT 0x8084 +#define GL_INDEX_ARRAY_TYPE_EXT 0x8085 +#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 +#define GL_INDEX_ARRAY_COUNT_EXT 0x8087 +#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 +#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 +#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A +#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B +#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C +#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D +#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E +#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F +#define GL_COLOR_ARRAY_POINTER_EXT 0x8090 +#define GL_INDEX_ARRAY_POINTER_EXT 0x8091 +#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 +#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 +#endif + +#ifndef GL_EXT_misc_attribute +#endif + +#ifndef GL_SGIS_generate_mipmap +#define GL_GENERATE_MIPMAP_SGIS 0x8191 +#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192 +#endif + +#ifndef GL_SGIX_clipmap +#define GL_LINEAR_CLIPMAP_LINEAR_SGIX 0x8170 +#define GL_TEXTURE_CLIPMAP_CENTER_SGIX 0x8171 +#define GL_TEXTURE_CLIPMAP_FRAME_SGIX 0x8172 +#define GL_TEXTURE_CLIPMAP_OFFSET_SGIX 0x8173 +#define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174 +#define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175 +#define GL_TEXTURE_CLIPMAP_DEPTH_SGIX 0x8176 +#define GL_MAX_CLIPMAP_DEPTH_SGIX 0x8177 +#define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178 +#define GL_NEAREST_CLIPMAP_NEAREST_SGIX 0x844D +#define GL_NEAREST_CLIPMAP_LINEAR_SGIX 0x844E +#define GL_LINEAR_CLIPMAP_NEAREST_SGIX 0x844F +#endif + +#ifndef GL_SGIX_shadow +#define GL_TEXTURE_COMPARE_SGIX 0x819A +#define GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B +#define GL_TEXTURE_LEQUAL_R_SGIX 0x819C +#define GL_TEXTURE_GEQUAL_R_SGIX 0x819D +#endif + +#ifndef GL_SGIS_texture_edge_clamp +#define GL_CLAMP_TO_EDGE_SGIS 0x812F +#endif + +#ifndef GL_SGIS_texture_border_clamp +#define GL_CLAMP_TO_BORDER_SGIS 0x812D +#endif + +#ifndef GL_EXT_blend_minmax +#define GL_FUNC_ADD_EXT 0x8006 +#define GL_MIN_EXT 0x8007 +#define GL_MAX_EXT 0x8008 +#define GL_BLEND_EQUATION_EXT 0x8009 +#endif + +#ifndef GL_EXT_blend_subtract +#define GL_FUNC_SUBTRACT_EXT 0x800A +#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B +#endif + +#ifndef GL_EXT_blend_logic_op +#endif + +#ifndef GL_SGIX_interlace +#define GL_INTERLACE_SGIX 0x8094 +#endif + +#ifndef GL_SGIX_pixel_tiles +#define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E +#define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F +#define GL_PIXEL_TILE_WIDTH_SGIX 0x8140 +#define GL_PIXEL_TILE_HEIGHT_SGIX 0x8141 +#define GL_PIXEL_TILE_GRID_WIDTH_SGIX 0x8142 +#define GL_PIXEL_TILE_GRID_HEIGHT_SGIX 0x8143 +#define GL_PIXEL_TILE_GRID_DEPTH_SGIX 0x8144 +#define GL_PIXEL_TILE_CACHE_SIZE_SGIX 0x8145 +#endif + +#ifndef GL_SGIS_texture_select +#define GL_DUAL_ALPHA4_SGIS 0x8110 +#define GL_DUAL_ALPHA8_SGIS 0x8111 +#define GL_DUAL_ALPHA12_SGIS 0x8112 +#define GL_DUAL_ALPHA16_SGIS 0x8113 +#define GL_DUAL_LUMINANCE4_SGIS 0x8114 +#define GL_DUAL_LUMINANCE8_SGIS 0x8115 +#define GL_DUAL_LUMINANCE12_SGIS 0x8116 +#define GL_DUAL_LUMINANCE16_SGIS 0x8117 +#define GL_DUAL_INTENSITY4_SGIS 0x8118 +#define GL_DUAL_INTENSITY8_SGIS 0x8119 +#define GL_DUAL_INTENSITY12_SGIS 0x811A +#define GL_DUAL_INTENSITY16_SGIS 0x811B +#define GL_DUAL_LUMINANCE_ALPHA4_SGIS 0x811C +#define GL_DUAL_LUMINANCE_ALPHA8_SGIS 0x811D +#define GL_QUAD_ALPHA4_SGIS 0x811E +#define GL_QUAD_ALPHA8_SGIS 0x811F +#define GL_QUAD_LUMINANCE4_SGIS 0x8120 +#define GL_QUAD_LUMINANCE8_SGIS 0x8121 +#define GL_QUAD_INTENSITY4_SGIS 0x8122 +#define GL_QUAD_INTENSITY8_SGIS 0x8123 +#define GL_DUAL_TEXTURE_SELECT_SGIS 0x8124 +#define GL_QUAD_TEXTURE_SELECT_SGIS 0x8125 +#endif + +#ifndef GL_SGIX_sprite +#define GL_SPRITE_SGIX 0x8148 +#define GL_SPRITE_MODE_SGIX 0x8149 +#define GL_SPRITE_AXIS_SGIX 0x814A +#define GL_SPRITE_TRANSLATION_SGIX 0x814B +#define GL_SPRITE_AXIAL_SGIX 0x814C +#define GL_SPRITE_OBJECT_ALIGNED_SGIX 0x814D +#define GL_SPRITE_EYE_ALIGNED_SGIX 0x814E +#endif + +#ifndef GL_SGIX_texture_multi_buffer +#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E +#endif + +#ifndef GL_EXT_point_parameters +#define GL_POINT_SIZE_MIN_EXT 0x8126 +#define GL_POINT_SIZE_MAX_EXT 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128 +#define GL_DISTANCE_ATTENUATION_EXT 0x8129 +#endif + +#ifndef GL_SGIS_point_parameters +#define GL_POINT_SIZE_MIN_SGIS 0x8126 +#define GL_POINT_SIZE_MAX_SGIS 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128 +#define GL_DISTANCE_ATTENUATION_SGIS 0x8129 +#endif + +#ifndef GL_SGIX_instruments +#define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180 +#define GL_INSTRUMENT_MEASUREMENTS_SGIX 0x8181 +#endif + +#ifndef GL_SGIX_texture_scale_bias +#define GL_POST_TEXTURE_FILTER_BIAS_SGIX 0x8179 +#define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A +#define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B +#define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C +#endif + +#ifndef GL_SGIX_framezoom +#define GL_FRAMEZOOM_SGIX 0x818B +#define GL_FRAMEZOOM_FACTOR_SGIX 0x818C +#define GL_MAX_FRAMEZOOM_FACTOR_SGIX 0x818D +#endif + +#ifndef GL_SGIX_tag_sample_buffer +#endif + +#ifndef GL_FfdMaskSGIX +#define GL_TEXTURE_DEFORMATION_BIT_SGIX 0x00000001 +#define GL_GEOMETRY_DEFORMATION_BIT_SGIX 0x00000002 +#endif + +#ifndef GL_SGIX_polynomial_ffd +#define GL_GEOMETRY_DEFORMATION_SGIX 0x8194 +#define GL_TEXTURE_DEFORMATION_SGIX 0x8195 +#define GL_DEFORMATIONS_MASK_SGIX 0x8196 +#define GL_MAX_DEFORMATION_ORDER_SGIX 0x8197 +#endif + +#ifndef GL_SGIX_reference_plane +#define GL_REFERENCE_PLANE_SGIX 0x817D +#define GL_REFERENCE_PLANE_EQUATION_SGIX 0x817E +#endif + +#ifndef GL_SGIX_flush_raster +#endif + +#ifndef GL_SGIX_depth_texture +#define GL_DEPTH_COMPONENT16_SGIX 0x81A5 +#define GL_DEPTH_COMPONENT24_SGIX 0x81A6 +#define GL_DEPTH_COMPONENT32_SGIX 0x81A7 +#endif + +#ifndef GL_SGIS_fog_function +#define GL_FOG_FUNC_SGIS 0x812A +#define GL_FOG_FUNC_POINTS_SGIS 0x812B +#define GL_MAX_FOG_FUNC_POINTS_SGIS 0x812C +#endif + +#ifndef GL_SGIX_fog_offset +#define GL_FOG_OFFSET_SGIX 0x8198 +#define GL_FOG_OFFSET_VALUE_SGIX 0x8199 +#endif + +#ifndef GL_HP_image_transform +#define GL_IMAGE_SCALE_X_HP 0x8155 +#define GL_IMAGE_SCALE_Y_HP 0x8156 +#define GL_IMAGE_TRANSLATE_X_HP 0x8157 +#define GL_IMAGE_TRANSLATE_Y_HP 0x8158 +#define GL_IMAGE_ROTATE_ANGLE_HP 0x8159 +#define GL_IMAGE_ROTATE_ORIGIN_X_HP 0x815A +#define GL_IMAGE_ROTATE_ORIGIN_Y_HP 0x815B +#define GL_IMAGE_MAG_FILTER_HP 0x815C +#define GL_IMAGE_MIN_FILTER_HP 0x815D +#define GL_IMAGE_CUBIC_WEIGHT_HP 0x815E +#define GL_CUBIC_HP 0x815F +#define GL_AVERAGE_HP 0x8160 +#define GL_IMAGE_TRANSFORM_2D_HP 0x8161 +#define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162 +#define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163 +#endif + +#ifndef GL_HP_convolution_border_modes +#define GL_IGNORE_BORDER_HP 0x8150 +#define GL_CONSTANT_BORDER_HP 0x8151 +#define GL_REPLICATE_BORDER_HP 0x8153 +#define GL_CONVOLUTION_BORDER_COLOR_HP 0x8154 +#endif + +#ifndef GL_INGR_palette_buffer +#endif + +#ifndef GL_SGIX_texture_add_env +#define GL_TEXTURE_ENV_BIAS_SGIX 0x80BE +#endif + +#ifndef GL_EXT_color_subtable +#endif + +#ifndef GL_PGI_vertex_hints +#define GL_VERTEX_DATA_HINT_PGI 0x1A22A +#define GL_VERTEX_CONSISTENT_HINT_PGI 0x1A22B +#define GL_MATERIAL_SIDE_HINT_PGI 0x1A22C +#define GL_MAX_VERTEX_HINT_PGI 0x1A22D +#define GL_COLOR3_BIT_PGI 0x00010000 +#define GL_COLOR4_BIT_PGI 0x00020000 +#define GL_EDGEFLAG_BIT_PGI 0x00040000 +#define GL_INDEX_BIT_PGI 0x00080000 +#define GL_MAT_AMBIENT_BIT_PGI 0x00100000 +#define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000 +#define GL_MAT_DIFFUSE_BIT_PGI 0x00400000 +#define GL_MAT_EMISSION_BIT_PGI 0x00800000 +#define GL_MAT_COLOR_INDEXES_BIT_PGI 0x01000000 +#define GL_MAT_SHININESS_BIT_PGI 0x02000000 +#define GL_MAT_SPECULAR_BIT_PGI 0x04000000 +#define GL_NORMAL_BIT_PGI 0x08000000 +#define GL_TEXCOORD1_BIT_PGI 0x10000000 +#define GL_TEXCOORD2_BIT_PGI 0x20000000 +#define GL_TEXCOORD3_BIT_PGI 0x40000000 +#define GL_TEXCOORD4_BIT_PGI 0x80000000 +#define GL_VERTEX23_BIT_PGI 0x00000004 +#define GL_VERTEX4_BIT_PGI 0x00000008 +#endif + +#ifndef GL_PGI_misc_hints +#define GL_PREFER_DOUBLEBUFFER_HINT_PGI 0x1A1F8 +#define GL_CONSERVE_MEMORY_HINT_PGI 0x1A1FD +#define GL_RECLAIM_MEMORY_HINT_PGI 0x1A1FE +#define GL_NATIVE_GRAPHICS_HANDLE_PGI 0x1A202 +#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203 +#define GL_NATIVE_GRAPHICS_END_HINT_PGI 0x1A204 +#define GL_ALWAYS_FAST_HINT_PGI 0x1A20C +#define GL_ALWAYS_SOFT_HINT_PGI 0x1A20D +#define GL_ALLOW_DRAW_OBJ_HINT_PGI 0x1A20E +#define GL_ALLOW_DRAW_WIN_HINT_PGI 0x1A20F +#define GL_ALLOW_DRAW_FRG_HINT_PGI 0x1A210 +#define GL_ALLOW_DRAW_MEM_HINT_PGI 0x1A211 +#define GL_STRICT_DEPTHFUNC_HINT_PGI 0x1A216 +#define GL_STRICT_LIGHTING_HINT_PGI 0x1A217 +#define GL_STRICT_SCISSOR_HINT_PGI 0x1A218 +#define GL_FULL_STIPPLE_HINT_PGI 0x1A219 +#define GL_CLIP_NEAR_HINT_PGI 0x1A220 +#define GL_CLIP_FAR_HINT_PGI 0x1A221 +#define GL_WIDE_LINE_HINT_PGI 0x1A222 +#define GL_BACK_NORMALS_HINT_PGI 0x1A223 +#endif + +#ifndef GL_EXT_paletted_texture +#define GL_COLOR_INDEX1_EXT 0x80E2 +#define GL_COLOR_INDEX2_EXT 0x80E3 +#define GL_COLOR_INDEX4_EXT 0x80E4 +#define GL_COLOR_INDEX8_EXT 0x80E5 +#define GL_COLOR_INDEX12_EXT 0x80E6 +#define GL_COLOR_INDEX16_EXT 0x80E7 +#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED +#endif + +#ifndef GL_EXT_clip_volume_hint +#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F0 +#endif + +#ifndef GL_SGIX_list_priority +#define GL_LIST_PRIORITY_SGIX 0x8182 +#endif + +#ifndef GL_SGIX_ir_instrument1 +#define GL_IR_INSTRUMENT1_SGIX 0x817F +#endif + +#ifndef GL_SGIX_calligraphic_fragment +#define GL_CALLIGRAPHIC_FRAGMENT_SGIX 0x8183 +#endif + +#ifndef GL_SGIX_texture_lod_bias +#define GL_TEXTURE_LOD_BIAS_S_SGIX 0x818E +#define GL_TEXTURE_LOD_BIAS_T_SGIX 0x818F +#define GL_TEXTURE_LOD_BIAS_R_SGIX 0x8190 +#endif + +#ifndef GL_SGIX_shadow_ambient +#define GL_SHADOW_AMBIENT_SGIX 0x80BF +#endif + +#ifndef GL_EXT_index_texture +#endif + +#ifndef GL_EXT_index_material +#define GL_INDEX_MATERIAL_EXT 0x81B8 +#define GL_INDEX_MATERIAL_PARAMETER_EXT 0x81B9 +#define GL_INDEX_MATERIAL_FACE_EXT 0x81BA +#endif + +#ifndef GL_EXT_index_func +#define GL_INDEX_TEST_EXT 0x81B5 +#define GL_INDEX_TEST_FUNC_EXT 0x81B6 +#define GL_INDEX_TEST_REF_EXT 0x81B7 +#endif + +#ifndef GL_EXT_index_array_formats +#define GL_IUI_V2F_EXT 0x81AD +#define GL_IUI_V3F_EXT 0x81AE +#define GL_IUI_N3F_V2F_EXT 0x81AF +#define GL_IUI_N3F_V3F_EXT 0x81B0 +#define GL_T2F_IUI_V2F_EXT 0x81B1 +#define GL_T2F_IUI_V3F_EXT 0x81B2 +#define GL_T2F_IUI_N3F_V2F_EXT 0x81B3 +#define GL_T2F_IUI_N3F_V3F_EXT 0x81B4 +#endif + +#ifndef GL_EXT_compiled_vertex_array +#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8 +#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9 +#endif + +#ifndef GL_EXT_cull_vertex +#define GL_CULL_VERTEX_EXT 0x81AA +#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB +#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC +#endif + +#ifndef GL_SGIX_ycrcb +#define GL_YCRCB_422_SGIX 0x81BB +#define GL_YCRCB_444_SGIX 0x81BC +#endif + +#ifndef GL_SGIX_fragment_lighting +#define GL_FRAGMENT_LIGHTING_SGIX 0x8400 +#define GL_FRAGMENT_COLOR_MATERIAL_SGIX 0x8401 +#define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402 +#define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403 +#define GL_MAX_FRAGMENT_LIGHTS_SGIX 0x8404 +#define GL_MAX_ACTIVE_LIGHTS_SGIX 0x8405 +#define GL_CURRENT_RASTER_NORMAL_SGIX 0x8406 +#define GL_LIGHT_ENV_MODE_SGIX 0x8407 +#define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408 +#define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409 +#define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A +#define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B +#define GL_FRAGMENT_LIGHT0_SGIX 0x840C +#define GL_FRAGMENT_LIGHT1_SGIX 0x840D +#define GL_FRAGMENT_LIGHT2_SGIX 0x840E +#define GL_FRAGMENT_LIGHT3_SGIX 0x840F +#define GL_FRAGMENT_LIGHT4_SGIX 0x8410 +#define GL_FRAGMENT_LIGHT5_SGIX 0x8411 +#define GL_FRAGMENT_LIGHT6_SGIX 0x8412 +#define GL_FRAGMENT_LIGHT7_SGIX 0x8413 +#endif + +#ifndef GL_IBM_rasterpos_clip +#define GL_RASTER_POSITION_UNCLIPPED_IBM 0x19262 +#endif + +#ifndef GL_HP_texture_lighting +#define GL_TEXTURE_LIGHTING_MODE_HP 0x8167 +#define GL_TEXTURE_POST_SPECULAR_HP 0x8168 +#define GL_TEXTURE_PRE_SPECULAR_HP 0x8169 +#endif + +#ifndef GL_EXT_draw_range_elements +#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 +#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 +#endif + +#ifndef GL_WIN_phong_shading +#define GL_PHONG_WIN 0x80EA +#define GL_PHONG_HINT_WIN 0x80EB +#endif + +#ifndef GL_WIN_specular_fog +#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC +#endif + +#ifndef GL_EXT_light_texture +#define GL_FRAGMENT_MATERIAL_EXT 0x8349 +#define GL_FRAGMENT_NORMAL_EXT 0x834A +#define GL_FRAGMENT_COLOR_EXT 0x834C +#define GL_ATTENUATION_EXT 0x834D +#define GL_SHADOW_ATTENUATION_EXT 0x834E +#define GL_TEXTURE_APPLICATION_MODE_EXT 0x834F +#define GL_TEXTURE_LIGHT_EXT 0x8350 +#define GL_TEXTURE_MATERIAL_FACE_EXT 0x8351 +#define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352 +/* reuse GL_FRAGMENT_DEPTH_EXT */ +#endif + +#ifndef GL_SGIX_blend_alpha_minmax +#define GL_ALPHA_MIN_SGIX 0x8320 +#define GL_ALPHA_MAX_SGIX 0x8321 +#endif + +#ifndef GL_SGIX_impact_pixel_texture +#define GL_PIXEL_TEX_GEN_Q_CEILING_SGIX 0x8184 +#define GL_PIXEL_TEX_GEN_Q_ROUND_SGIX 0x8185 +#define GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX 0x8186 +#define GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX 0x8187 +#define GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX 0x8188 +#define GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX 0x8189 +#define GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX 0x818A +#endif + +#ifndef GL_EXT_bgra +#define GL_BGR_EXT 0x80E0 +#define GL_BGRA_EXT 0x80E1 +#endif + +#ifndef GL_SGIX_async +#define GL_ASYNC_MARKER_SGIX 0x8329 +#endif + +#ifndef GL_SGIX_async_pixel +#define GL_ASYNC_TEX_IMAGE_SGIX 0x835C +#define GL_ASYNC_DRAW_PIXELS_SGIX 0x835D +#define GL_ASYNC_READ_PIXELS_SGIX 0x835E +#define GL_MAX_ASYNC_TEX_IMAGE_SGIX 0x835F +#define GL_MAX_ASYNC_DRAW_PIXELS_SGIX 0x8360 +#define GL_MAX_ASYNC_READ_PIXELS_SGIX 0x8361 +#endif + +#ifndef GL_SGIX_async_histogram +#define GL_ASYNC_HISTOGRAM_SGIX 0x832C +#define GL_MAX_ASYNC_HISTOGRAM_SGIX 0x832D +#endif + +#ifndef GL_INTEL_texture_scissor +#endif + +#ifndef GL_INTEL_parallel_arrays +#define GL_PARALLEL_ARRAYS_INTEL 0x83F4 +#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5 +#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6 +#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7 +#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8 +#endif + +#ifndef GL_HP_occlusion_test +#define GL_OCCLUSION_TEST_HP 0x8165 +#define GL_OCCLUSION_TEST_RESULT_HP 0x8166 +#endif + +#ifndef GL_EXT_pixel_transform +#define GL_PIXEL_TRANSFORM_2D_EXT 0x8330 +#define GL_PIXEL_MAG_FILTER_EXT 0x8331 +#define GL_PIXEL_MIN_FILTER_EXT 0x8332 +#define GL_PIXEL_CUBIC_WEIGHT_EXT 0x8333 +#define GL_CUBIC_EXT 0x8334 +#define GL_AVERAGE_EXT 0x8335 +#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336 +#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337 +#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT 0x8338 +#endif + +#ifndef GL_EXT_pixel_transform_color_table +#endif + +#ifndef GL_EXT_shared_texture_palette +#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB +#endif + +#ifndef GL_EXT_separate_specular_color +#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8 +#define GL_SINGLE_COLOR_EXT 0x81F9 +#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA +#endif + +#ifndef GL_EXT_secondary_color +#define GL_COLOR_SUM_EXT 0x8458 +#define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459 +#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A +#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B +#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C +#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D +#define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E +#endif + +#ifndef GL_EXT_texture_perturb_normal +#define GL_PERTURB_EXT 0x85AE +#define GL_TEXTURE_NORMAL_EXT 0x85AF +#endif + +#ifndef GL_EXT_multi_draw_arrays +#endif + +#ifndef GL_EXT_fog_coord +#define GL_FOG_COORDINATE_SOURCE_EXT 0x8450 +#define GL_FOG_COORDINATE_EXT 0x8451 +#define GL_FRAGMENT_DEPTH_EXT 0x8452 +#define GL_CURRENT_FOG_COORDINATE_EXT 0x8453 +#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454 +#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455 +#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456 +#define GL_FOG_COORDINATE_ARRAY_EXT 0x8457 +#endif + +#ifndef GL_REND_screen_coordinates +#define GL_SCREEN_COORDINATES_REND 0x8490 +#define GL_INVERTED_SCREEN_W_REND 0x8491 +#endif + +#ifndef GL_EXT_coordinate_frame +#define GL_TANGENT_ARRAY_EXT 0x8439 +#define GL_BINORMAL_ARRAY_EXT 0x843A +#define GL_CURRENT_TANGENT_EXT 0x843B +#define GL_CURRENT_BINORMAL_EXT 0x843C +#define GL_TANGENT_ARRAY_TYPE_EXT 0x843E +#define GL_TANGENT_ARRAY_STRIDE_EXT 0x843F +#define GL_BINORMAL_ARRAY_TYPE_EXT 0x8440 +#define GL_BINORMAL_ARRAY_STRIDE_EXT 0x8441 +#define GL_TANGENT_ARRAY_POINTER_EXT 0x8442 +#define GL_BINORMAL_ARRAY_POINTER_EXT 0x8443 +#define GL_MAP1_TANGENT_EXT 0x8444 +#define GL_MAP2_TANGENT_EXT 0x8445 +#define GL_MAP1_BINORMAL_EXT 0x8446 +#define GL_MAP2_BINORMAL_EXT 0x8447 +#endif + +#ifndef GL_EXT_texture_env_combine +#define GL_COMBINE_EXT 0x8570 +#define GL_COMBINE_RGB_EXT 0x8571 +#define GL_COMBINE_ALPHA_EXT 0x8572 +#define GL_RGB_SCALE_EXT 0x8573 +#define GL_ADD_SIGNED_EXT 0x8574 +#define GL_INTERPOLATE_EXT 0x8575 +#define GL_CONSTANT_EXT 0x8576 +#define GL_PRIMARY_COLOR_EXT 0x8577 +#define GL_PREVIOUS_EXT 0x8578 +#define GL_SOURCE0_RGB_EXT 0x8580 +#define GL_SOURCE1_RGB_EXT 0x8581 +#define GL_SOURCE2_RGB_EXT 0x8582 +#define GL_SOURCE0_ALPHA_EXT 0x8588 +#define GL_SOURCE1_ALPHA_EXT 0x8589 +#define GL_SOURCE2_ALPHA_EXT 0x858A +#define GL_OPERAND0_RGB_EXT 0x8590 +#define GL_OPERAND1_RGB_EXT 0x8591 +#define GL_OPERAND2_RGB_EXT 0x8592 +#define GL_OPERAND0_ALPHA_EXT 0x8598 +#define GL_OPERAND1_ALPHA_EXT 0x8599 +#define GL_OPERAND2_ALPHA_EXT 0x859A +#endif + +#ifndef GL_APPLE_specular_vector +#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0 +#endif + +#ifndef GL_APPLE_transform_hint +#define GL_TRANSFORM_HINT_APPLE 0x85B1 +#endif + +#ifndef GL_SGIX_fog_scale +#define GL_FOG_SCALE_SGIX 0x81FC +#define GL_FOG_SCALE_VALUE_SGIX 0x81FD +#endif + +#ifndef GL_SUNX_constant_data +#define GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5 +#define GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6 +#endif + +#ifndef GL_SUN_global_alpha +#define GL_GLOBAL_ALPHA_SUN 0x81D9 +#define GL_GLOBAL_ALPHA_FACTOR_SUN 0x81DA +#endif + +#ifndef GL_SUN_triangle_list +#define GL_RESTART_SUN 0x0001 +#define GL_REPLACE_MIDDLE_SUN 0x0002 +#define GL_REPLACE_OLDEST_SUN 0x0003 +#define GL_TRIANGLE_LIST_SUN 0x81D7 +#define GL_REPLACEMENT_CODE_SUN 0x81D8 +#define GL_REPLACEMENT_CODE_ARRAY_SUN 0x85C0 +#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1 +#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2 +#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3 +#define GL_R1UI_V3F_SUN 0x85C4 +#define GL_R1UI_C4UB_V3F_SUN 0x85C5 +#define GL_R1UI_C3F_V3F_SUN 0x85C6 +#define GL_R1UI_N3F_V3F_SUN 0x85C7 +#define GL_R1UI_C4F_N3F_V3F_SUN 0x85C8 +#define GL_R1UI_T2F_V3F_SUN 0x85C9 +#define GL_R1UI_T2F_N3F_V3F_SUN 0x85CA +#define GL_R1UI_T2F_C4F_N3F_V3F_SUN 0x85CB +#endif + +#ifndef GL_SUN_vertex +#endif + +#ifndef GL_EXT_blend_func_separate +#define GL_BLEND_DST_RGB_EXT 0x80C8 +#define GL_BLEND_SRC_RGB_EXT 0x80C9 +#define GL_BLEND_DST_ALPHA_EXT 0x80CA +#define GL_BLEND_SRC_ALPHA_EXT 0x80CB +#endif + +#ifndef GL_INGR_color_clamp +#define GL_RED_MIN_CLAMP_INGR 0x8560 +#define GL_GREEN_MIN_CLAMP_INGR 0x8561 +#define GL_BLUE_MIN_CLAMP_INGR 0x8562 +#define GL_ALPHA_MIN_CLAMP_INGR 0x8563 +#define GL_RED_MAX_CLAMP_INGR 0x8564 +#define GL_GREEN_MAX_CLAMP_INGR 0x8565 +#define GL_BLUE_MAX_CLAMP_INGR 0x8566 +#define GL_ALPHA_MAX_CLAMP_INGR 0x8567 +#endif + +#ifndef GL_INGR_interlace_read +#define GL_INTERLACE_READ_INGR 0x8568 +#endif + +#ifndef GL_EXT_stencil_wrap +#define GL_INCR_WRAP_EXT 0x8507 +#define GL_DECR_WRAP_EXT 0x8508 +#endif + +#ifndef GL_EXT_422_pixels +#define GL_422_EXT 0x80CC +#define GL_422_REV_EXT 0x80CD +#define GL_422_AVERAGE_EXT 0x80CE +#define GL_422_REV_AVERAGE_EXT 0x80CF +#endif + +#ifndef GL_NV_texgen_reflection +#define GL_NORMAL_MAP_NV 0x8511 +#define GL_REFLECTION_MAP_NV 0x8512 +#endif + +#ifndef GL_EXT_texture_cube_map +#define GL_NORMAL_MAP_EXT 0x8511 +#define GL_REFLECTION_MAP_EXT 0x8512 +#define GL_TEXTURE_CUBE_MAP_EXT 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP_EXT 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP_EXT 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT 0x851C +#endif + +#ifndef GL_SUN_convolution_border_modes +#define GL_WRAP_BORDER_SUN 0x81D4 +#endif + +#ifndef GL_EXT_texture_env_add +#endif + +#ifndef GL_EXT_texture_lod_bias +#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD +#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500 +#define GL_TEXTURE_LOD_BIAS_EXT 0x8501 +#endif + +#ifndef GL_EXT_texture_filter_anisotropic +#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE +#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF +#endif + +#ifndef GL_EXT_vertex_weighting +#define GL_MODELVIEW0_STACK_DEPTH_EXT GL_MODELVIEW_STACK_DEPTH +#define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502 +#define GL_MODELVIEW0_MATRIX_EXT GL_MODELVIEW_MATRIX +#define GL_MODELVIEW1_MATRIX_EXT 0x8506 +#define GL_VERTEX_WEIGHTING_EXT 0x8509 +#define GL_MODELVIEW0_EXT GL_MODELVIEW +#define GL_MODELVIEW1_EXT 0x850A +#define GL_CURRENT_VERTEX_WEIGHT_EXT 0x850B +#define GL_VERTEX_WEIGHT_ARRAY_EXT 0x850C +#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT 0x850D +#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT 0x850E +#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F +#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510 +#endif + +#ifndef GL_NV_light_max_exponent +#define GL_MAX_SHININESS_NV 0x8504 +#define GL_MAX_SPOT_EXPONENT_NV 0x8505 +#endif + +#ifndef GL_NV_vertex_array_range +#define GL_VERTEX_ARRAY_RANGE_NV 0x851D +#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV 0x851E +#define GL_VERTEX_ARRAY_RANGE_VALID_NV 0x851F +#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520 +#define GL_VERTEX_ARRAY_RANGE_POINTER_NV 0x8521 +#endif + +#ifndef GL_NV_register_combiners +#define GL_REGISTER_COMBINERS_NV 0x8522 +#define GL_VARIABLE_A_NV 0x8523 +#define GL_VARIABLE_B_NV 0x8524 +#define GL_VARIABLE_C_NV 0x8525 +#define GL_VARIABLE_D_NV 0x8526 +#define GL_VARIABLE_E_NV 0x8527 +#define GL_VARIABLE_F_NV 0x8528 +#define GL_VARIABLE_G_NV 0x8529 +#define GL_CONSTANT_COLOR0_NV 0x852A +#define GL_CONSTANT_COLOR1_NV 0x852B +#define GL_PRIMARY_COLOR_NV 0x852C +#define GL_SECONDARY_COLOR_NV 0x852D +#define GL_SPARE0_NV 0x852E +#define GL_SPARE1_NV 0x852F +#define GL_DISCARD_NV 0x8530 +#define GL_E_TIMES_F_NV 0x8531 +#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532 +#define GL_UNSIGNED_IDENTITY_NV 0x8536 +#define GL_UNSIGNED_INVERT_NV 0x8537 +#define GL_EXPAND_NORMAL_NV 0x8538 +#define GL_EXPAND_NEGATE_NV 0x8539 +#define GL_HALF_BIAS_NORMAL_NV 0x853A +#define GL_HALF_BIAS_NEGATE_NV 0x853B +#define GL_SIGNED_IDENTITY_NV 0x853C +#define GL_SIGNED_NEGATE_NV 0x853D +#define GL_SCALE_BY_TWO_NV 0x853E +#define GL_SCALE_BY_FOUR_NV 0x853F +#define GL_SCALE_BY_ONE_HALF_NV 0x8540 +#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541 +#define GL_COMBINER_INPUT_NV 0x8542 +#define GL_COMBINER_MAPPING_NV 0x8543 +#define GL_COMBINER_COMPONENT_USAGE_NV 0x8544 +#define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545 +#define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546 +#define GL_COMBINER_MUX_SUM_NV 0x8547 +#define GL_COMBINER_SCALE_NV 0x8548 +#define GL_COMBINER_BIAS_NV 0x8549 +#define GL_COMBINER_AB_OUTPUT_NV 0x854A +#define GL_COMBINER_CD_OUTPUT_NV 0x854B +#define GL_COMBINER_SUM_OUTPUT_NV 0x854C +#define GL_MAX_GENERAL_COMBINERS_NV 0x854D +#define GL_NUM_GENERAL_COMBINERS_NV 0x854E +#define GL_COLOR_SUM_CLAMP_NV 0x854F +#define GL_COMBINER0_NV 0x8550 +#define GL_COMBINER1_NV 0x8551 +#define GL_COMBINER2_NV 0x8552 +#define GL_COMBINER3_NV 0x8553 +#define GL_COMBINER4_NV 0x8554 +#define GL_COMBINER5_NV 0x8555 +#define GL_COMBINER6_NV 0x8556 +#define GL_COMBINER7_NV 0x8557 +/* reuse GL_TEXTURE0_ARB */ +/* reuse GL_TEXTURE1_ARB */ +/* reuse GL_ZERO */ +/* reuse GL_NONE */ +/* reuse GL_FOG */ +#endif + +#ifndef GL_NV_fog_distance +#define GL_FOG_DISTANCE_MODE_NV 0x855A +#define GL_EYE_RADIAL_NV 0x855B +#define GL_EYE_PLANE_ABSOLUTE_NV 0x855C +/* reuse GL_EYE_PLANE */ +#endif + +#ifndef GL_NV_texgen_emboss +#define GL_EMBOSS_LIGHT_NV 0x855D +#define GL_EMBOSS_CONSTANT_NV 0x855E +#define GL_EMBOSS_MAP_NV 0x855F +#endif + +#ifndef GL_NV_blend_square +#endif + +#ifndef GL_NV_texture_env_combine4 +#define GL_COMBINE4_NV 0x8503 +#define GL_SOURCE3_RGB_NV 0x8583 +#define GL_SOURCE3_ALPHA_NV 0x858B +#define GL_OPERAND3_RGB_NV 0x8593 +#define GL_OPERAND3_ALPHA_NV 0x859B +#endif + +#ifndef GL_MESA_resize_buffers +#endif + +#ifndef GL_MESA_window_pos +#endif + +#ifndef GL_EXT_texture_compression_s3tc +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 +#endif + +#ifndef GL_IBM_cull_vertex +#define GL_CULL_VERTEX_IBM 103050 +#endif + +#ifndef GL_IBM_multimode_draw_arrays +#endif + +#ifndef GL_IBM_vertex_array_lists +#define GL_VERTEX_ARRAY_LIST_IBM 103070 +#define GL_NORMAL_ARRAY_LIST_IBM 103071 +#define GL_COLOR_ARRAY_LIST_IBM 103072 +#define GL_INDEX_ARRAY_LIST_IBM 103073 +#define GL_TEXTURE_COORD_ARRAY_LIST_IBM 103074 +#define GL_EDGE_FLAG_ARRAY_LIST_IBM 103075 +#define GL_FOG_COORDINATE_ARRAY_LIST_IBM 103076 +#define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077 +#define GL_VERTEX_ARRAY_LIST_STRIDE_IBM 103080 +#define GL_NORMAL_ARRAY_LIST_STRIDE_IBM 103081 +#define GL_COLOR_ARRAY_LIST_STRIDE_IBM 103082 +#define GL_INDEX_ARRAY_LIST_STRIDE_IBM 103083 +#define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084 +#define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085 +#define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086 +#define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087 +#endif + +#ifndef GL_SGIX_subsample +#define GL_PACK_SUBSAMPLE_RATE_SGIX 0x85A0 +#define GL_UNPACK_SUBSAMPLE_RATE_SGIX 0x85A1 +#define GL_PIXEL_SUBSAMPLE_4444_SGIX 0x85A2 +#define GL_PIXEL_SUBSAMPLE_2424_SGIX 0x85A3 +#define GL_PIXEL_SUBSAMPLE_4242_SGIX 0x85A4 +#endif + +#ifndef GL_SGIX_ycrcb_subsample +#endif + +#ifndef GL_SGIX_ycrcba +#define GL_YCRCB_SGIX 0x8318 +#define GL_YCRCBA_SGIX 0x8319 +#endif + +#ifndef GL_SGI_depth_pass_instrument +#define GL_DEPTH_PASS_INSTRUMENT_SGIX 0x8310 +#define GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX 0x8311 +#define GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX 0x8312 +#endif + +#ifndef GL_3DFX_texture_compression_FXT1 +#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0 +#define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1 +#endif + +#ifndef GL_3DFX_multisample +#define GL_MULTISAMPLE_3DFX 0x86B2 +#define GL_SAMPLE_BUFFERS_3DFX 0x86B3 +#define GL_SAMPLES_3DFX 0x86B4 +#define GL_MULTISAMPLE_BIT_3DFX 0x20000000 +#endif + +#ifndef GL_3DFX_tbuffer +#endif + +#ifndef GL_EXT_multisample +#define GL_MULTISAMPLE_EXT 0x809D +#define GL_SAMPLE_ALPHA_TO_MASK_EXT 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_EXT 0x809F +#define GL_SAMPLE_MASK_EXT 0x80A0 +#define GL_1PASS_EXT 0x80A1 +#define GL_2PASS_0_EXT 0x80A2 +#define GL_2PASS_1_EXT 0x80A3 +#define GL_4PASS_0_EXT 0x80A4 +#define GL_4PASS_1_EXT 0x80A5 +#define GL_4PASS_2_EXT 0x80A6 +#define GL_4PASS_3_EXT 0x80A7 +#define GL_SAMPLE_BUFFERS_EXT 0x80A8 +#define GL_SAMPLES_EXT 0x80A9 +#define GL_SAMPLE_MASK_VALUE_EXT 0x80AA +#define GL_SAMPLE_MASK_INVERT_EXT 0x80AB +#define GL_SAMPLE_PATTERN_EXT 0x80AC +#define GL_MULTISAMPLE_BIT_EXT 0x20000000 +#endif + +#ifndef GL_SGIX_vertex_preclip +#define GL_VERTEX_PRECLIP_SGIX 0x83EE +#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF +#endif + +#ifndef GL_SGIX_convolution_accuracy +#define GL_CONVOLUTION_HINT_SGIX 0x8316 +#endif + +#ifndef GL_SGIX_resample +#define GL_PACK_RESAMPLE_SGIX 0x842C +#define GL_UNPACK_RESAMPLE_SGIX 0x842D +#define GL_RESAMPLE_REPLICATE_SGIX 0x842E +#define GL_RESAMPLE_ZERO_FILL_SGIX 0x842F +#define GL_RESAMPLE_DECIMATE_SGIX 0x8430 +#endif + +#ifndef GL_SGIS_point_line_texgen +#define GL_EYE_DISTANCE_TO_POINT_SGIS 0x81F0 +#define GL_OBJECT_DISTANCE_TO_POINT_SGIS 0x81F1 +#define GL_EYE_DISTANCE_TO_LINE_SGIS 0x81F2 +#define GL_OBJECT_DISTANCE_TO_LINE_SGIS 0x81F3 +#define GL_EYE_POINT_SGIS 0x81F4 +#define GL_OBJECT_POINT_SGIS 0x81F5 +#define GL_EYE_LINE_SGIS 0x81F6 +#define GL_OBJECT_LINE_SGIS 0x81F7 +#endif + +#ifndef GL_SGIS_texture_color_mask +#define GL_TEXTURE_COLOR_WRITEMASK_SGIS 0x81EF +#endif + +#ifndef GL_EXT_texture_env_dot3 +#define GL_DOT3_RGB_EXT 0x8740 +#define GL_DOT3_RGBA_EXT 0x8741 +#endif + +#ifndef GL_ATI_texture_mirror_once +#define GL_MIRROR_CLAMP_ATI 0x8742 +#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743 +#endif + +#ifndef GL_NV_fence +#define GL_ALL_COMPLETED_NV 0x84F2 +#define GL_FENCE_STATUS_NV 0x84F3 +#define GL_FENCE_CONDITION_NV 0x84F4 +#endif + +#ifndef GL_IBM_texture_mirrored_repeat +#define GL_MIRRORED_REPEAT_IBM 0x8370 +#endif + +#ifndef GL_NV_evaluators +#define GL_EVAL_2D_NV 0x86C0 +#define GL_EVAL_TRIANGULAR_2D_NV 0x86C1 +#define GL_MAP_TESSELLATION_NV 0x86C2 +#define GL_MAP_ATTRIB_U_ORDER_NV 0x86C3 +#define GL_MAP_ATTRIB_V_ORDER_NV 0x86C4 +#define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5 +#define GL_EVAL_VERTEX_ATTRIB0_NV 0x86C6 +#define GL_EVAL_VERTEX_ATTRIB1_NV 0x86C7 +#define GL_EVAL_VERTEX_ATTRIB2_NV 0x86C8 +#define GL_EVAL_VERTEX_ATTRIB3_NV 0x86C9 +#define GL_EVAL_VERTEX_ATTRIB4_NV 0x86CA +#define GL_EVAL_VERTEX_ATTRIB5_NV 0x86CB +#define GL_EVAL_VERTEX_ATTRIB6_NV 0x86CC +#define GL_EVAL_VERTEX_ATTRIB7_NV 0x86CD +#define GL_EVAL_VERTEX_ATTRIB8_NV 0x86CE +#define GL_EVAL_VERTEX_ATTRIB9_NV 0x86CF +#define GL_EVAL_VERTEX_ATTRIB10_NV 0x86D0 +#define GL_EVAL_VERTEX_ATTRIB11_NV 0x86D1 +#define GL_EVAL_VERTEX_ATTRIB12_NV 0x86D2 +#define GL_EVAL_VERTEX_ATTRIB13_NV 0x86D3 +#define GL_EVAL_VERTEX_ATTRIB14_NV 0x86D4 +#define GL_EVAL_VERTEX_ATTRIB15_NV 0x86D5 +#define GL_MAX_MAP_TESSELLATION_NV 0x86D6 +#define GL_MAX_RATIONAL_EVAL_ORDER_NV 0x86D7 +#endif + +#ifndef GL_NV_packed_depth_stencil +#define GL_DEPTH_STENCIL_NV 0x84F9 +#define GL_UNSIGNED_INT_24_8_NV 0x84FA +#endif + +#ifndef GL_NV_register_combiners2 +#define GL_PER_STAGE_CONSTANTS_NV 0x8535 +#endif + +#ifndef GL_NV_texture_compression_vtc +#endif + +#ifndef GL_NV_texture_rectangle +#define GL_TEXTURE_RECTANGLE_NV 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE_NV 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE_NV 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8 +#endif + +#ifndef GL_NV_texture_shader +#define GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864C +#define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D +#define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E +#define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9 +#define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA +#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB +#define GL_DSDT_MAG_INTENSITY_NV 0x86DC +#define GL_SHADER_CONSISTENT_NV 0x86DD +#define GL_TEXTURE_SHADER_NV 0x86DE +#define GL_SHADER_OPERATION_NV 0x86DF +#define GL_CULL_MODES_NV 0x86E0 +#define GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1 +#define GL_OFFSET_TEXTURE_SCALE_NV 0x86E2 +#define GL_OFFSET_TEXTURE_BIAS_NV 0x86E3 +#define GL_OFFSET_TEXTURE_2D_MATRIX_NV GL_OFFSET_TEXTURE_MATRIX_NV +#define GL_OFFSET_TEXTURE_2D_SCALE_NV GL_OFFSET_TEXTURE_SCALE_NV +#define GL_OFFSET_TEXTURE_2D_BIAS_NV GL_OFFSET_TEXTURE_BIAS_NV +#define GL_PREVIOUS_TEXTURE_INPUT_NV 0x86E4 +#define GL_CONST_EYE_NV 0x86E5 +#define GL_PASS_THROUGH_NV 0x86E6 +#define GL_CULL_FRAGMENT_NV 0x86E7 +#define GL_OFFSET_TEXTURE_2D_NV 0x86E8 +#define GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86E9 +#define GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86EA +#define GL_DOT_PRODUCT_NV 0x86EC +#define GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ED +#define GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86EE +#define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0 +#define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1 +#define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2 +#define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3 +#define GL_HILO_NV 0x86F4 +#define GL_DSDT_NV 0x86F5 +#define GL_DSDT_MAG_NV 0x86F6 +#define GL_DSDT_MAG_VIB_NV 0x86F7 +#define GL_HILO16_NV 0x86F8 +#define GL_SIGNED_HILO_NV 0x86F9 +#define GL_SIGNED_HILO16_NV 0x86FA +#define GL_SIGNED_RGBA_NV 0x86FB +#define GL_SIGNED_RGBA8_NV 0x86FC +#define GL_SIGNED_RGB_NV 0x86FE +#define GL_SIGNED_RGB8_NV 0x86FF +#define GL_SIGNED_LUMINANCE_NV 0x8701 +#define GL_SIGNED_LUMINANCE8_NV 0x8702 +#define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703 +#define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704 +#define GL_SIGNED_ALPHA_NV 0x8705 +#define GL_SIGNED_ALPHA8_NV 0x8706 +#define GL_SIGNED_INTENSITY_NV 0x8707 +#define GL_SIGNED_INTENSITY8_NV 0x8708 +#define GL_DSDT8_NV 0x8709 +#define GL_DSDT8_MAG8_NV 0x870A +#define GL_DSDT8_MAG8_INTENSITY8_NV 0x870B +#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C +#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D +#define GL_HI_SCALE_NV 0x870E +#define GL_LO_SCALE_NV 0x870F +#define GL_DS_SCALE_NV 0x8710 +#define GL_DT_SCALE_NV 0x8711 +#define GL_MAGNITUDE_SCALE_NV 0x8712 +#define GL_VIBRANCE_SCALE_NV 0x8713 +#define GL_HI_BIAS_NV 0x8714 +#define GL_LO_BIAS_NV 0x8715 +#define GL_DS_BIAS_NV 0x8716 +#define GL_DT_BIAS_NV 0x8717 +#define GL_MAGNITUDE_BIAS_NV 0x8718 +#define GL_VIBRANCE_BIAS_NV 0x8719 +#define GL_TEXTURE_BORDER_VALUES_NV 0x871A +#define GL_TEXTURE_HI_SIZE_NV 0x871B +#define GL_TEXTURE_LO_SIZE_NV 0x871C +#define GL_TEXTURE_DS_SIZE_NV 0x871D +#define GL_TEXTURE_DT_SIZE_NV 0x871E +#define GL_TEXTURE_MAG_SIZE_NV 0x871F +#endif + +#ifndef GL_NV_texture_shader2 +#define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF +#endif + +#ifndef GL_NV_vertex_array_range2 +#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533 +#endif + +#ifndef GL_NV_vertex_program +#define GL_VERTEX_PROGRAM_NV 0x8620 +#define GL_VERTEX_STATE_PROGRAM_NV 0x8621 +#define GL_ATTRIB_ARRAY_SIZE_NV 0x8623 +#define GL_ATTRIB_ARRAY_STRIDE_NV 0x8624 +#define GL_ATTRIB_ARRAY_TYPE_NV 0x8625 +#define GL_CURRENT_ATTRIB_NV 0x8626 +#define GL_PROGRAM_LENGTH_NV 0x8627 +#define GL_PROGRAM_STRING_NV 0x8628 +#define GL_MODELVIEW_PROJECTION_NV 0x8629 +#define GL_IDENTITY_NV 0x862A +#define GL_INVERSE_NV 0x862B +#define GL_TRANSPOSE_NV 0x862C +#define GL_INVERSE_TRANSPOSE_NV 0x862D +#define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E +#define GL_MAX_TRACK_MATRICES_NV 0x862F +#define GL_MATRIX0_NV 0x8630 +#define GL_MATRIX1_NV 0x8631 +#define GL_MATRIX2_NV 0x8632 +#define GL_MATRIX3_NV 0x8633 +#define GL_MATRIX4_NV 0x8634 +#define GL_MATRIX5_NV 0x8635 +#define GL_MATRIX6_NV 0x8636 +#define GL_MATRIX7_NV 0x8637 +#define GL_CURRENT_MATRIX_STACK_DEPTH_NV 0x8640 +#define GL_CURRENT_MATRIX_NV 0x8641 +#define GL_VERTEX_PROGRAM_POINT_SIZE_NV 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE_NV 0x8643 +#define GL_PROGRAM_PARAMETER_NV 0x8644 +#define GL_ATTRIB_ARRAY_POINTER_NV 0x8645 +#define GL_PROGRAM_TARGET_NV 0x8646 +#define GL_PROGRAM_RESIDENT_NV 0x8647 +#define GL_TRACK_MATRIX_NV 0x8648 +#define GL_TRACK_MATRIX_TRANSFORM_NV 0x8649 +#define GL_VERTEX_PROGRAM_BINDING_NV 0x864A +#define GL_PROGRAM_ERROR_POSITION_NV 0x864B +#define GL_VERTEX_ATTRIB_ARRAY0_NV 0x8650 +#define GL_VERTEX_ATTRIB_ARRAY1_NV 0x8651 +#define GL_VERTEX_ATTRIB_ARRAY2_NV 0x8652 +#define GL_VERTEX_ATTRIB_ARRAY3_NV 0x8653 +#define GL_VERTEX_ATTRIB_ARRAY4_NV 0x8654 +#define GL_VERTEX_ATTRIB_ARRAY5_NV 0x8655 +#define GL_VERTEX_ATTRIB_ARRAY6_NV 0x8656 +#define GL_VERTEX_ATTRIB_ARRAY7_NV 0x8657 +#define GL_VERTEX_ATTRIB_ARRAY8_NV 0x8658 +#define GL_VERTEX_ATTRIB_ARRAY9_NV 0x8659 +#define GL_VERTEX_ATTRIB_ARRAY10_NV 0x865A +#define GL_VERTEX_ATTRIB_ARRAY11_NV 0x865B +#define GL_VERTEX_ATTRIB_ARRAY12_NV 0x865C +#define GL_VERTEX_ATTRIB_ARRAY13_NV 0x865D +#define GL_VERTEX_ATTRIB_ARRAY14_NV 0x865E +#define GL_VERTEX_ATTRIB_ARRAY15_NV 0x865F +#define GL_MAP1_VERTEX_ATTRIB0_4_NV 0x8660 +#define GL_MAP1_VERTEX_ATTRIB1_4_NV 0x8661 +#define GL_MAP1_VERTEX_ATTRIB2_4_NV 0x8662 +#define GL_MAP1_VERTEX_ATTRIB3_4_NV 0x8663 +#define GL_MAP1_VERTEX_ATTRIB4_4_NV 0x8664 +#define GL_MAP1_VERTEX_ATTRIB5_4_NV 0x8665 +#define GL_MAP1_VERTEX_ATTRIB6_4_NV 0x8666 +#define GL_MAP1_VERTEX_ATTRIB7_4_NV 0x8667 +#define GL_MAP1_VERTEX_ATTRIB8_4_NV 0x8668 +#define GL_MAP1_VERTEX_ATTRIB9_4_NV 0x8669 +#define GL_MAP1_VERTEX_ATTRIB10_4_NV 0x866A +#define GL_MAP1_VERTEX_ATTRIB11_4_NV 0x866B +#define GL_MAP1_VERTEX_ATTRIB12_4_NV 0x866C +#define GL_MAP1_VERTEX_ATTRIB13_4_NV 0x866D +#define GL_MAP1_VERTEX_ATTRIB14_4_NV 0x866E +#define GL_MAP1_VERTEX_ATTRIB15_4_NV 0x866F +#define GL_MAP2_VERTEX_ATTRIB0_4_NV 0x8670 +#define GL_MAP2_VERTEX_ATTRIB1_4_NV 0x8671 +#define GL_MAP2_VERTEX_ATTRIB2_4_NV 0x8672 +#define GL_MAP2_VERTEX_ATTRIB3_4_NV 0x8673 +#define GL_MAP2_VERTEX_ATTRIB4_4_NV 0x8674 +#define GL_MAP2_VERTEX_ATTRIB5_4_NV 0x8675 +#define GL_MAP2_VERTEX_ATTRIB6_4_NV 0x8676 +#define GL_MAP2_VERTEX_ATTRIB7_4_NV 0x8677 +#define GL_MAP2_VERTEX_ATTRIB8_4_NV 0x8678 +#define GL_MAP2_VERTEX_ATTRIB9_4_NV 0x8679 +#define GL_MAP2_VERTEX_ATTRIB10_4_NV 0x867A +#define GL_MAP2_VERTEX_ATTRIB11_4_NV 0x867B +#define GL_MAP2_VERTEX_ATTRIB12_4_NV 0x867C +#define GL_MAP2_VERTEX_ATTRIB13_4_NV 0x867D +#define GL_MAP2_VERTEX_ATTRIB14_4_NV 0x867E +#define GL_MAP2_VERTEX_ATTRIB15_4_NV 0x867F +#endif + +#ifndef GL_SGIX_texture_coordinate_clamp +#define GL_TEXTURE_MAX_CLAMP_S_SGIX 0x8369 +#define GL_TEXTURE_MAX_CLAMP_T_SGIX 0x836A +#define GL_TEXTURE_MAX_CLAMP_R_SGIX 0x836B +#endif + +#ifndef GL_SGIX_scalebias_hint +#define GL_SCALEBIAS_HINT_SGIX 0x8322 +#endif + +#ifndef GL_OML_interlace +#define GL_INTERLACE_OML 0x8980 +#define GL_INTERLACE_READ_OML 0x8981 +#endif + +#ifndef GL_OML_subsample +#define GL_FORMAT_SUBSAMPLE_24_24_OML 0x8982 +#define GL_FORMAT_SUBSAMPLE_244_244_OML 0x8983 +#endif + +#ifndef GL_OML_resample +#define GL_PACK_RESAMPLE_OML 0x8984 +#define GL_UNPACK_RESAMPLE_OML 0x8985 +#define GL_RESAMPLE_REPLICATE_OML 0x8986 +#define GL_RESAMPLE_ZERO_FILL_OML 0x8987 +#define GL_RESAMPLE_AVERAGE_OML 0x8988 +#define GL_RESAMPLE_DECIMATE_OML 0x8989 +#endif + +#ifndef GL_NV_copy_depth_to_color +#define GL_DEPTH_STENCIL_TO_RGBA_NV 0x886E +#define GL_DEPTH_STENCIL_TO_BGRA_NV 0x886F +#endif + +#ifndef GL_ATI_envmap_bumpmap +#define GL_BUMP_ROT_MATRIX_ATI 0x8775 +#define GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776 +#define GL_BUMP_NUM_TEX_UNITS_ATI 0x8777 +#define GL_BUMP_TEX_UNITS_ATI 0x8778 +#define GL_DUDV_ATI 0x8779 +#define GL_DU8DV8_ATI 0x877A +#define GL_BUMP_ENVMAP_ATI 0x877B +#define GL_BUMP_TARGET_ATI 0x877C +#endif + +#ifndef GL_ATI_fragment_shader +#define GL_FRAGMENT_SHADER_ATI 0x8920 +#define GL_REG_0_ATI 0x8921 +#define GL_REG_1_ATI 0x8922 +#define GL_REG_2_ATI 0x8923 +#define GL_REG_3_ATI 0x8924 +#define GL_REG_4_ATI 0x8925 +#define GL_REG_5_ATI 0x8926 +#define GL_REG_6_ATI 0x8927 +#define GL_REG_7_ATI 0x8928 +#define GL_REG_8_ATI 0x8929 +#define GL_REG_9_ATI 0x892A +#define GL_REG_10_ATI 0x892B +#define GL_REG_11_ATI 0x892C +#define GL_REG_12_ATI 0x892D +#define GL_REG_13_ATI 0x892E +#define GL_REG_14_ATI 0x892F +#define GL_REG_15_ATI 0x8930 +#define GL_REG_16_ATI 0x8931 +#define GL_REG_17_ATI 0x8932 +#define GL_REG_18_ATI 0x8933 +#define GL_REG_19_ATI 0x8934 +#define GL_REG_20_ATI 0x8935 +#define GL_REG_21_ATI 0x8936 +#define GL_REG_22_ATI 0x8937 +#define GL_REG_23_ATI 0x8938 +#define GL_REG_24_ATI 0x8939 +#define GL_REG_25_ATI 0x893A +#define GL_REG_26_ATI 0x893B +#define GL_REG_27_ATI 0x893C +#define GL_REG_28_ATI 0x893D +#define GL_REG_29_ATI 0x893E +#define GL_REG_30_ATI 0x893F +#define GL_REG_31_ATI 0x8940 +#define GL_CON_0_ATI 0x8941 +#define GL_CON_1_ATI 0x8942 +#define GL_CON_2_ATI 0x8943 +#define GL_CON_3_ATI 0x8944 +#define GL_CON_4_ATI 0x8945 +#define GL_CON_5_ATI 0x8946 +#define GL_CON_6_ATI 0x8947 +#define GL_CON_7_ATI 0x8948 +#define GL_CON_8_ATI 0x8949 +#define GL_CON_9_ATI 0x894A +#define GL_CON_10_ATI 0x894B +#define GL_CON_11_ATI 0x894C +#define GL_CON_12_ATI 0x894D +#define GL_CON_13_ATI 0x894E +#define GL_CON_14_ATI 0x894F +#define GL_CON_15_ATI 0x8950 +#define GL_CON_16_ATI 0x8951 +#define GL_CON_17_ATI 0x8952 +#define GL_CON_18_ATI 0x8953 +#define GL_CON_19_ATI 0x8954 +#define GL_CON_20_ATI 0x8955 +#define GL_CON_21_ATI 0x8956 +#define GL_CON_22_ATI 0x8957 +#define GL_CON_23_ATI 0x8958 +#define GL_CON_24_ATI 0x8959 +#define GL_CON_25_ATI 0x895A +#define GL_CON_26_ATI 0x895B +#define GL_CON_27_ATI 0x895C +#define GL_CON_28_ATI 0x895D +#define GL_CON_29_ATI 0x895E +#define GL_CON_30_ATI 0x895F +#define GL_CON_31_ATI 0x8960 +#define GL_MOV_ATI 0x8961 +#define GL_ADD_ATI 0x8963 +#define GL_MUL_ATI 0x8964 +#define GL_SUB_ATI 0x8965 +#define GL_DOT3_ATI 0x8966 +#define GL_DOT4_ATI 0x8967 +#define GL_MAD_ATI 0x8968 +#define GL_LERP_ATI 0x8969 +#define GL_CND_ATI 0x896A +#define GL_CND0_ATI 0x896B +#define GL_DOT2_ADD_ATI 0x896C +#define GL_SECONDARY_INTERPOLATOR_ATI 0x896D +#define GL_NUM_FRAGMENT_REGISTERS_ATI 0x896E +#define GL_NUM_FRAGMENT_CONSTANTS_ATI 0x896F +#define GL_NUM_PASSES_ATI 0x8970 +#define GL_NUM_INSTRUCTIONS_PER_PASS_ATI 0x8971 +#define GL_NUM_INSTRUCTIONS_TOTAL_ATI 0x8972 +#define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973 +#define GL_NUM_LOOPBACK_COMPONENTS_ATI 0x8974 +#define GL_COLOR_ALPHA_PAIRING_ATI 0x8975 +#define GL_SWIZZLE_STR_ATI 0x8976 +#define GL_SWIZZLE_STQ_ATI 0x8977 +#define GL_SWIZZLE_STR_DR_ATI 0x8978 +#define GL_SWIZZLE_STQ_DQ_ATI 0x8979 +#define GL_SWIZZLE_STRQ_ATI 0x897A +#define GL_SWIZZLE_STRQ_DQ_ATI 0x897B +#define GL_RED_BIT_ATI 0x00000001 +#define GL_GREEN_BIT_ATI 0x00000002 +#define GL_BLUE_BIT_ATI 0x00000004 +#define GL_2X_BIT_ATI 0x00000001 +#define GL_4X_BIT_ATI 0x00000002 +#define GL_8X_BIT_ATI 0x00000004 +#define GL_HALF_BIT_ATI 0x00000008 +#define GL_QUARTER_BIT_ATI 0x00000010 +#define GL_EIGHTH_BIT_ATI 0x00000020 +#define GL_SATURATE_BIT_ATI 0x00000040 +#define GL_COMP_BIT_ATI 0x00000002 +#define GL_NEGATE_BIT_ATI 0x00000004 +#define GL_BIAS_BIT_ATI 0x00000008 +#endif + +#ifndef GL_ATI_pn_triangles +#define GL_PN_TRIANGLES_ATI 0x87F0 +#define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1 +#define GL_PN_TRIANGLES_POINT_MODE_ATI 0x87F2 +#define GL_PN_TRIANGLES_NORMAL_MODE_ATI 0x87F3 +#define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4 +#define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5 +#define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6 +#define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7 +#define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8 +#endif + +#ifndef GL_ATI_vertex_array_object +#define GL_STATIC_ATI 0x8760 +#define GL_DYNAMIC_ATI 0x8761 +#define GL_PRESERVE_ATI 0x8762 +#define GL_DISCARD_ATI 0x8763 +#define GL_OBJECT_BUFFER_SIZE_ATI 0x8764 +#define GL_OBJECT_BUFFER_USAGE_ATI 0x8765 +#define GL_ARRAY_OBJECT_BUFFER_ATI 0x8766 +#define GL_ARRAY_OBJECT_OFFSET_ATI 0x8767 +#endif + +#ifndef GL_EXT_vertex_shader +#define GL_VERTEX_SHADER_EXT 0x8780 +#define GL_VERTEX_SHADER_BINDING_EXT 0x8781 +#define GL_OP_INDEX_EXT 0x8782 +#define GL_OP_NEGATE_EXT 0x8783 +#define GL_OP_DOT3_EXT 0x8784 +#define GL_OP_DOT4_EXT 0x8785 +#define GL_OP_MUL_EXT 0x8786 +#define GL_OP_ADD_EXT 0x8787 +#define GL_OP_MADD_EXT 0x8788 +#define GL_OP_FRAC_EXT 0x8789 +#define GL_OP_MAX_EXT 0x878A +#define GL_OP_MIN_EXT 0x878B +#define GL_OP_SET_GE_EXT 0x878C +#define GL_OP_SET_LT_EXT 0x878D +#define GL_OP_CLAMP_EXT 0x878E +#define GL_OP_FLOOR_EXT 0x878F +#define GL_OP_ROUND_EXT 0x8790 +#define GL_OP_EXP_BASE_2_EXT 0x8791 +#define GL_OP_LOG_BASE_2_EXT 0x8792 +#define GL_OP_POWER_EXT 0x8793 +#define GL_OP_RECIP_EXT 0x8794 +#define GL_OP_RECIP_SQRT_EXT 0x8795 +#define GL_OP_SUB_EXT 0x8796 +#define GL_OP_CROSS_PRODUCT_EXT 0x8797 +#define GL_OP_MULTIPLY_MATRIX_EXT 0x8798 +#define GL_OP_MOV_EXT 0x8799 +#define GL_OUTPUT_VERTEX_EXT 0x879A +#define GL_OUTPUT_COLOR0_EXT 0x879B +#define GL_OUTPUT_COLOR1_EXT 0x879C +#define GL_OUTPUT_TEXTURE_COORD0_EXT 0x879D +#define GL_OUTPUT_TEXTURE_COORD1_EXT 0x879E +#define GL_OUTPUT_TEXTURE_COORD2_EXT 0x879F +#define GL_OUTPUT_TEXTURE_COORD3_EXT 0x87A0 +#define GL_OUTPUT_TEXTURE_COORD4_EXT 0x87A1 +#define GL_OUTPUT_TEXTURE_COORD5_EXT 0x87A2 +#define GL_OUTPUT_TEXTURE_COORD6_EXT 0x87A3 +#define GL_OUTPUT_TEXTURE_COORD7_EXT 0x87A4 +#define GL_OUTPUT_TEXTURE_COORD8_EXT 0x87A5 +#define GL_OUTPUT_TEXTURE_COORD9_EXT 0x87A6 +#define GL_OUTPUT_TEXTURE_COORD10_EXT 0x87A7 +#define GL_OUTPUT_TEXTURE_COORD11_EXT 0x87A8 +#define GL_OUTPUT_TEXTURE_COORD12_EXT 0x87A9 +#define GL_OUTPUT_TEXTURE_COORD13_EXT 0x87AA +#define GL_OUTPUT_TEXTURE_COORD14_EXT 0x87AB +#define GL_OUTPUT_TEXTURE_COORD15_EXT 0x87AC +#define GL_OUTPUT_TEXTURE_COORD16_EXT 0x87AD +#define GL_OUTPUT_TEXTURE_COORD17_EXT 0x87AE +#define GL_OUTPUT_TEXTURE_COORD18_EXT 0x87AF +#define GL_OUTPUT_TEXTURE_COORD19_EXT 0x87B0 +#define GL_OUTPUT_TEXTURE_COORD20_EXT 0x87B1 +#define GL_OUTPUT_TEXTURE_COORD21_EXT 0x87B2 +#define GL_OUTPUT_TEXTURE_COORD22_EXT 0x87B3 +#define GL_OUTPUT_TEXTURE_COORD23_EXT 0x87B4 +#define GL_OUTPUT_TEXTURE_COORD24_EXT 0x87B5 +#define GL_OUTPUT_TEXTURE_COORD25_EXT 0x87B6 +#define GL_OUTPUT_TEXTURE_COORD26_EXT 0x87B7 +#define GL_OUTPUT_TEXTURE_COORD27_EXT 0x87B8 +#define GL_OUTPUT_TEXTURE_COORD28_EXT 0x87B9 +#define GL_OUTPUT_TEXTURE_COORD29_EXT 0x87BA +#define GL_OUTPUT_TEXTURE_COORD30_EXT 0x87BB +#define GL_OUTPUT_TEXTURE_COORD31_EXT 0x87BC +#define GL_OUTPUT_FOG_EXT 0x87BD +#define GL_SCALAR_EXT 0x87BE +#define GL_VECTOR_EXT 0x87BF +#define GL_MATRIX_EXT 0x87C0 +#define GL_VARIANT_EXT 0x87C1 +#define GL_INVARIANT_EXT 0x87C2 +#define GL_LOCAL_CONSTANT_EXT 0x87C3 +#define GL_LOCAL_EXT 0x87C4 +#define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5 +#define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6 +#define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7 +#define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8 +#define GL_MAX_VERTEX_SHADER_LOCALS_EXT 0x87C9 +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CD +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE +#define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF +#define GL_VERTEX_SHADER_VARIANTS_EXT 0x87D0 +#define GL_VERTEX_SHADER_INVARIANTS_EXT 0x87D1 +#define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2 +#define GL_VERTEX_SHADER_LOCALS_EXT 0x87D3 +#define GL_VERTEX_SHADER_OPTIMIZED_EXT 0x87D4 +#define GL_X_EXT 0x87D5 +#define GL_Y_EXT 0x87D6 +#define GL_Z_EXT 0x87D7 +#define GL_W_EXT 0x87D8 +#define GL_NEGATIVE_X_EXT 0x87D9 +#define GL_NEGATIVE_Y_EXT 0x87DA +#define GL_NEGATIVE_Z_EXT 0x87DB +#define GL_NEGATIVE_W_EXT 0x87DC +#define GL_ZERO_EXT 0x87DD +#define GL_ONE_EXT 0x87DE +#define GL_NEGATIVE_ONE_EXT 0x87DF +#define GL_NORMALIZED_RANGE_EXT 0x87E0 +#define GL_FULL_RANGE_EXT 0x87E1 +#define GL_CURRENT_VERTEX_EXT 0x87E2 +#define GL_MVP_MATRIX_EXT 0x87E3 +#define GL_VARIANT_VALUE_EXT 0x87E4 +#define GL_VARIANT_DATATYPE_EXT 0x87E5 +#define GL_VARIANT_ARRAY_STRIDE_EXT 0x87E6 +#define GL_VARIANT_ARRAY_TYPE_EXT 0x87E7 +#define GL_VARIANT_ARRAY_EXT 0x87E8 +#define GL_VARIANT_ARRAY_POINTER_EXT 0x87E9 +#define GL_INVARIANT_VALUE_EXT 0x87EA +#define GL_INVARIANT_DATATYPE_EXT 0x87EB +#define GL_LOCAL_CONSTANT_VALUE_EXT 0x87EC +#define GL_LOCAL_CONSTANT_DATATYPE_EXT 0x87ED +#endif + +#ifndef GL_ATI_vertex_streams +#define GL_MAX_VERTEX_STREAMS_ATI 0x876B +#define GL_VERTEX_STREAM0_ATI 0x876C +#define GL_VERTEX_STREAM1_ATI 0x876D +#define GL_VERTEX_STREAM2_ATI 0x876E +#define GL_VERTEX_STREAM3_ATI 0x876F +#define GL_VERTEX_STREAM4_ATI 0x8770 +#define GL_VERTEX_STREAM5_ATI 0x8771 +#define GL_VERTEX_STREAM6_ATI 0x8772 +#define GL_VERTEX_STREAM7_ATI 0x8773 +#define GL_VERTEX_SOURCE_ATI 0x8774 +#endif + +#ifndef GL_ATI_element_array +#define GL_ELEMENT_ARRAY_ATI 0x8768 +#define GL_ELEMENT_ARRAY_TYPE_ATI 0x8769 +#define GL_ELEMENT_ARRAY_POINTER_ATI 0x876A +#endif + +#ifndef GL_SUN_mesh_array +#define GL_QUAD_MESH_SUN 0x8614 +#define GL_TRIANGLE_MESH_SUN 0x8615 +#endif + +#ifndef GL_SUN_slice_accum +#define GL_SLICE_ACCUM_SUN 0x85CC +#endif + +#ifndef GL_NV_multisample_filter_hint +#define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534 +#endif + +#ifndef GL_NV_depth_clamp +#define GL_DEPTH_CLAMP_NV 0x864F +#endif + +#ifndef GL_NV_occlusion_query +#define GL_PIXEL_COUNTER_BITS_NV 0x8864 +#define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865 +#define GL_PIXEL_COUNT_NV 0x8866 +#define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867 +#endif + +#ifndef GL_NV_point_sprite +#define GL_POINT_SPRITE_NV 0x8861 +#define GL_COORD_REPLACE_NV 0x8862 +#define GL_POINT_SPRITE_R_MODE_NV 0x8863 +#endif + +#ifndef GL_NV_texture_shader3 +#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850 +#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851 +#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852 +#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853 +#define GL_OFFSET_HILO_TEXTURE_2D_NV 0x8854 +#define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855 +#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856 +#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857 +#define GL_DEPENDENT_HILO_TEXTURE_2D_NV 0x8858 +#define GL_DEPENDENT_RGB_TEXTURE_3D_NV 0x8859 +#define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A +#define GL_DOT_PRODUCT_PASS_THROUGH_NV 0x885B +#define GL_DOT_PRODUCT_TEXTURE_1D_NV 0x885C +#define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D +#define GL_HILO8_NV 0x885E +#define GL_SIGNED_HILO8_NV 0x885F +#define GL_FORCE_BLUE_TO_ONE_NV 0x8860 +#endif + +#ifndef GL_NV_vertex_program1_1 +#endif + +#ifndef GL_EXT_shadow_funcs +#endif + +#ifndef GL_EXT_stencil_two_side +#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910 +#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911 +#endif + +#ifndef GL_ATI_text_fragment_shader +#define GL_TEXT_FRAGMENT_SHADER_ATI 0x8200 +#endif + +#ifndef GL_APPLE_client_storage +#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2 +#endif + +#ifndef GL_APPLE_element_array +#define GL_ELEMENT_ARRAY_APPLE 0x8768 +#define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8769 +#define GL_ELEMENT_ARRAY_POINTER_APPLE 0x876A +#endif + +#ifndef GL_APPLE_fence +#define GL_DRAW_PIXELS_APPLE 0x8A0A +#define GL_FENCE_APPLE 0x8A0B +#endif + +#ifndef GL_APPLE_vertex_array_object +#define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5 +#endif + +#ifndef GL_APPLE_vertex_array_range +#define GL_VERTEX_ARRAY_RANGE_APPLE 0x851D +#define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E +#define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F +#define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521 +#define GL_STORAGE_CACHED_APPLE 0x85BE +#define GL_STORAGE_SHARED_APPLE 0x85BF +#endif + +#ifndef GL_APPLE_ycbcr_422 +#define GL_YCBCR_422_APPLE 0x85B9 +#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB +#endif + +#ifndef GL_S3_s3tc +#define GL_RGB_S3TC 0x83A0 +#define GL_RGB4_S3TC 0x83A1 +#define GL_RGBA_S3TC 0x83A2 +#define GL_RGBA4_S3TC 0x83A3 +#endif + +#ifndef GL_ATI_draw_buffers +#define GL_MAX_DRAW_BUFFERS_ATI 0x8824 +#define GL_DRAW_BUFFER0_ATI 0x8825 +#define GL_DRAW_BUFFER1_ATI 0x8826 +#define GL_DRAW_BUFFER2_ATI 0x8827 +#define GL_DRAW_BUFFER3_ATI 0x8828 +#define GL_DRAW_BUFFER4_ATI 0x8829 +#define GL_DRAW_BUFFER5_ATI 0x882A +#define GL_DRAW_BUFFER6_ATI 0x882B +#define GL_DRAW_BUFFER7_ATI 0x882C +#define GL_DRAW_BUFFER8_ATI 0x882D +#define GL_DRAW_BUFFER9_ATI 0x882E +#define GL_DRAW_BUFFER10_ATI 0x882F +#define GL_DRAW_BUFFER11_ATI 0x8830 +#define GL_DRAW_BUFFER12_ATI 0x8831 +#define GL_DRAW_BUFFER13_ATI 0x8832 +#define GL_DRAW_BUFFER14_ATI 0x8833 +#define GL_DRAW_BUFFER15_ATI 0x8834 +#endif + +#ifndef GL_ATI_pixel_format_float +#define GL_TYPE_RGBA_FLOAT_ATI 0x8820 +#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 +#endif + +#ifndef GL_ATI_texture_env_combine3 +#define GL_MODULATE_ADD_ATI 0x8744 +#define GL_MODULATE_SIGNED_ADD_ATI 0x8745 +#define GL_MODULATE_SUBTRACT_ATI 0x8746 +#endif + +#ifndef GL_ATI_texture_float +#define GL_RGBA_FLOAT32_ATI 0x8814 +#define GL_RGB_FLOAT32_ATI 0x8815 +#define GL_ALPHA_FLOAT32_ATI 0x8816 +#define GL_INTENSITY_FLOAT32_ATI 0x8817 +#define GL_LUMINANCE_FLOAT32_ATI 0x8818 +#define GL_LUMINANCE_ALPHA_FLOAT32_ATI 0x8819 +#define GL_RGBA_FLOAT16_ATI 0x881A +#define GL_RGB_FLOAT16_ATI 0x881B +#define GL_ALPHA_FLOAT16_ATI 0x881C +#define GL_INTENSITY_FLOAT16_ATI 0x881D +#define GL_LUMINANCE_FLOAT16_ATI 0x881E +#define GL_LUMINANCE_ALPHA_FLOAT16_ATI 0x881F +#endif + +#ifndef GL_NV_float_buffer +#define GL_FLOAT_R_NV 0x8880 +#define GL_FLOAT_RG_NV 0x8881 +#define GL_FLOAT_RGB_NV 0x8882 +#define GL_FLOAT_RGBA_NV 0x8883 +#define GL_FLOAT_R16_NV 0x8884 +#define GL_FLOAT_R32_NV 0x8885 +#define GL_FLOAT_RG16_NV 0x8886 +#define GL_FLOAT_RG32_NV 0x8887 +#define GL_FLOAT_RGB16_NV 0x8888 +#define GL_FLOAT_RGB32_NV 0x8889 +#define GL_FLOAT_RGBA16_NV 0x888A +#define GL_FLOAT_RGBA32_NV 0x888B +#define GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C +#define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D +#define GL_FLOAT_RGBA_MODE_NV 0x888E +#endif + +#ifndef GL_NV_fragment_program +#define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868 +#define GL_FRAGMENT_PROGRAM_NV 0x8870 +#define GL_MAX_TEXTURE_COORDS_NV 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS_NV 0x8872 +#define GL_FRAGMENT_PROGRAM_BINDING_NV 0x8873 +#define GL_PROGRAM_ERROR_STRING_NV 0x8874 +#endif + +#ifndef GL_NV_half_float +#define GL_HALF_FLOAT_NV 0x140B +#endif + +#ifndef GL_NV_pixel_data_range +#define GL_WRITE_PIXEL_DATA_RANGE_NV 0x8878 +#define GL_READ_PIXEL_DATA_RANGE_NV 0x8879 +#define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A +#define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B +#define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C +#define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D +#endif + +#ifndef GL_NV_primitive_restart +#define GL_PRIMITIVE_RESTART_NV 0x8558 +#define GL_PRIMITIVE_RESTART_INDEX_NV 0x8559 +#endif + +#ifndef GL_NV_texture_expand_normal +#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F +#endif + +#ifndef GL_NV_vertex_program2 +#endif + +#ifndef GL_ATI_map_object_buffer +#endif + +#ifndef GL_ATI_separate_stencil +#define GL_STENCIL_BACK_FUNC_ATI 0x8800 +#define GL_STENCIL_BACK_FAIL_ATI 0x8801 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803 +#endif + +#ifndef GL_ATI_vertex_attrib_array_object +#endif + +#ifndef GL_OES_read_format +#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A +#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B +#endif + +#ifndef GL_EXT_depth_bounds_test +#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890 +#define GL_DEPTH_BOUNDS_EXT 0x8891 +#endif + +#ifndef GL_EXT_texture_mirror_clamp +#define GL_MIRROR_CLAMP_EXT 0x8742 +#define GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743 +#define GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912 +#endif + +#ifndef GL_EXT_blend_equation_separate +#define GL_BLEND_EQUATION_RGB_EXT GL_BLEND_EQUATION +#define GL_BLEND_EQUATION_ALPHA_EXT 0x883D +#endif + +#ifndef GL_MESA_pack_invert +#define GL_PACK_INVERT_MESA 0x8758 +#endif + +#ifndef GL_MESA_ycbcr_texture +#define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB +#define GL_YCBCR_MESA 0x8757 +#endif + +#ifndef GL_EXT_pixel_buffer_object +#define GL_PIXEL_PACK_BUFFER_EXT 0x88EB +#define GL_PIXEL_UNPACK_BUFFER_EXT 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING_EXT 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF +#endif + +#ifndef GL_NV_fragment_program_option +#endif + +#ifndef GL_NV_fragment_program2 +#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4 +#define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5 +#define GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6 +#define GL_MAX_PROGRAM_LOOP_DEPTH_NV 0x88F7 +#define GL_MAX_PROGRAM_LOOP_COUNT_NV 0x88F8 +#endif + +#ifndef GL_NV_vertex_program2_option +/* reuse GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV */ +/* reuse GL_MAX_PROGRAM_CALL_DEPTH_NV */ +#endif + +#ifndef GL_NV_vertex_program3 +/* reuse GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB */ +#endif + +#ifndef GL_EXT_framebuffer_object +#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506 +#define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8 +#define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6 +#define GL_RENDERBUFFER_BINDING_EXT 0x8CA7 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4 +#define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7 +#define GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 0x8CD8 +#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9 +#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA +#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB +#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC +#define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD +#define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF +#define GL_COLOR_ATTACHMENT0_EXT 0x8CE0 +#define GL_COLOR_ATTACHMENT1_EXT 0x8CE1 +#define GL_COLOR_ATTACHMENT2_EXT 0x8CE2 +#define GL_COLOR_ATTACHMENT3_EXT 0x8CE3 +#define GL_COLOR_ATTACHMENT4_EXT 0x8CE4 +#define GL_COLOR_ATTACHMENT5_EXT 0x8CE5 +#define GL_COLOR_ATTACHMENT6_EXT 0x8CE6 +#define GL_COLOR_ATTACHMENT7_EXT 0x8CE7 +#define GL_COLOR_ATTACHMENT8_EXT 0x8CE8 +#define GL_COLOR_ATTACHMENT9_EXT 0x8CE9 +#define GL_COLOR_ATTACHMENT10_EXT 0x8CEA +#define GL_COLOR_ATTACHMENT11_EXT 0x8CEB +#define GL_COLOR_ATTACHMENT12_EXT 0x8CEC +#define GL_COLOR_ATTACHMENT13_EXT 0x8CED +#define GL_COLOR_ATTACHMENT14_EXT 0x8CEE +#define GL_COLOR_ATTACHMENT15_EXT 0x8CEF +#define GL_DEPTH_ATTACHMENT_EXT 0x8D00 +#define GL_STENCIL_ATTACHMENT_EXT 0x8D20 +#define GL_FRAMEBUFFER_EXT 0x8D40 +#define GL_RENDERBUFFER_EXT 0x8D41 +#define GL_RENDERBUFFER_WIDTH_EXT 0x8D42 +#define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43 +#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44 +#define GL_STENCIL_INDEX1_EXT 0x8D46 +#define GL_STENCIL_INDEX4_EXT 0x8D47 +#define GL_STENCIL_INDEX8_EXT 0x8D48 +#define GL_STENCIL_INDEX16_EXT 0x8D49 +#define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50 +#define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51 +#define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52 +#define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53 +#define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54 +#define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55 +#endif + +#ifndef GL_GREMEDY_string_marker +#endif + + +/*************************************************************/ + +#include +#ifndef GL_VERSION_2_0 +/* GL type for program/shader text */ +typedef char GLchar; /* native character */ +#endif + +#ifndef GL_VERSION_1_5 +/* GL types for handling large vertex buffer objects */ +typedef ptrdiff_t GLintptr; +typedef ptrdiff_t GLsizeiptr; +#endif + +#ifndef GL_ARB_vertex_buffer_object +/* GL types for handling large vertex buffer objects */ +typedef ptrdiff_t GLintptrARB; +typedef ptrdiff_t GLsizeiptrARB; +#endif + +#ifndef GL_ARB_shader_objects +/* GL types for handling shader object handles and program/shader text */ +typedef char GLcharARB; /* native character */ +typedef unsigned int GLhandleARB; /* shader object handle */ +#endif + +/* GL types for "half" precision (s10e5) float data in host memory */ +#ifndef GL_ARB_half_float_pixel +typedef unsigned short GLhalfARB; +#endif + +#ifndef GL_NV_half_float +typedef unsigned short GLhalfNV; +#endif + +#ifndef GL_VERSION_1_2 +#define GL_VERSION_1_2 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendColor (GLclampf, GLclampf, GLclampf, GLclampf); +GLAPI void APIENTRY glBlendEquation (GLenum); +GLAPI void APIENTRY glDrawRangeElements (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); +GLAPI void APIENTRY glColorTable (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glColorTableParameterfv (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glColorTableParameteriv (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glCopyColorTable (GLenum, GLenum, GLint, GLint, GLsizei); +GLAPI void APIENTRY glGetColorTable (GLenum, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetColorTableParameterfv (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetColorTableParameteriv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glColorSubTable (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glCopyColorSubTable (GLenum, GLsizei, GLint, GLint, GLsizei); +GLAPI void APIENTRY glConvolutionFilter1D (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glConvolutionFilter2D (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glConvolutionParameterf (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glConvolutionParameterfv (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glConvolutionParameteri (GLenum, GLenum, GLint); +GLAPI void APIENTRY glConvolutionParameteriv (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum, GLenum, GLint, GLint, GLsizei); +GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum, GLenum, GLint, GLint, GLsizei, GLsizei); +GLAPI void APIENTRY glGetConvolutionFilter (GLenum, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetSeparableFilter (GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); +GLAPI void APIENTRY glSeparableFilter2D (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); +GLAPI void APIENTRY glGetHistogram (GLenum, GLboolean, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetHistogramParameterfv (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetHistogramParameteriv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetMinmax (GLenum, GLboolean, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glHistogram (GLenum, GLsizei, GLenum, GLboolean); +GLAPI void APIENTRY glMinmax (GLenum, GLenum, GLboolean); +GLAPI void APIENTRY glResetHistogram (GLenum); +GLAPI void APIENTRY glResetMinmax (GLenum); +GLAPI void APIENTRY glTexImage3D (GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glCopyTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); +typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); +typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); +typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); +typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); +typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); +typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); +typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); +typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); +typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink); +typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target); +typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target); +typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#endif + +#ifndef GL_VERSION_1_3 +#define GL_VERSION_1_3 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glActiveTexture (GLenum); +GLAPI void APIENTRY glClientActiveTexture (GLenum); +GLAPI void APIENTRY glMultiTexCoord1d (GLenum, GLdouble); +GLAPI void APIENTRY glMultiTexCoord1dv (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord1f (GLenum, GLfloat); +GLAPI void APIENTRY glMultiTexCoord1fv (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord1i (GLenum, GLint); +GLAPI void APIENTRY glMultiTexCoord1iv (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord1s (GLenum, GLshort); +GLAPI void APIENTRY glMultiTexCoord1sv (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord2d (GLenum, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord2dv (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord2f (GLenum, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord2fv (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord2i (GLenum, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord2iv (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord2s (GLenum, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord2sv (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord3d (GLenum, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord3dv (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord3f (GLenum, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord3fv (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord3i (GLenum, GLint, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord3iv (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord3s (GLenum, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord3sv (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord4d (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord4dv (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord4f (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord4fv (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord4i (GLenum, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord4iv (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord4s (GLenum, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord4sv (GLenum, const GLshort *); +GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *); +GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *); +GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *); +GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *); +GLAPI void APIENTRY glSampleCoverage (GLclampf, GLboolean); +GLAPI void APIENTRY glCompressedTexImage3D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexImage2D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexImage1D (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glGetCompressedTexImage (GLenum, GLint, GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); +typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m); +typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m); +typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m); +typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m); +typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img); +#endif + +#ifndef GL_VERSION_1_4 +#define GL_VERSION_1_4 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendFuncSeparate (GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glFogCoordf (GLfloat); +GLAPI void APIENTRY glFogCoordfv (const GLfloat *); +GLAPI void APIENTRY glFogCoordd (GLdouble); +GLAPI void APIENTRY glFogCoorddv (const GLdouble *); +GLAPI void APIENTRY glFogCoordPointer (GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glMultiDrawArrays (GLenum, GLint *, GLsizei *, GLsizei); +GLAPI void APIENTRY glMultiDrawElements (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei); +GLAPI void APIENTRY glPointParameterf (GLenum, GLfloat); +GLAPI void APIENTRY glPointParameterfv (GLenum, const GLfloat *); +GLAPI void APIENTRY glPointParameteri (GLenum, GLint); +GLAPI void APIENTRY glPointParameteriv (GLenum, const GLint *); +GLAPI void APIENTRY glSecondaryColor3b (GLbyte, GLbyte, GLbyte); +GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *); +GLAPI void APIENTRY glSecondaryColor3d (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *); +GLAPI void APIENTRY glSecondaryColor3f (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *); +GLAPI void APIENTRY glSecondaryColor3i (GLint, GLint, GLint); +GLAPI void APIENTRY glSecondaryColor3iv (const GLint *); +GLAPI void APIENTRY glSecondaryColor3s (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *); +GLAPI void APIENTRY glSecondaryColor3ub (GLubyte, GLubyte, GLubyte); +GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *); +GLAPI void APIENTRY glSecondaryColor3ui (GLuint, GLuint, GLuint); +GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *); +GLAPI void APIENTRY glSecondaryColor3us (GLushort, GLushort, GLushort); +GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *); +GLAPI void APIENTRY glSecondaryColorPointer (GLint, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glWindowPos2d (GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos2dv (const GLdouble *); +GLAPI void APIENTRY glWindowPos2f (GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos2fv (const GLfloat *); +GLAPI void APIENTRY glWindowPos2i (GLint, GLint); +GLAPI void APIENTRY glWindowPos2iv (const GLint *); +GLAPI void APIENTRY glWindowPos2s (GLshort, GLshort); +GLAPI void APIENTRY glWindowPos2sv (const GLshort *); +GLAPI void APIENTRY glWindowPos3d (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos3dv (const GLdouble *); +GLAPI void APIENTRY glWindowPos3f (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos3fv (const GLfloat *); +GLAPI void APIENTRY glWindowPos3i (GLint, GLint, GLint); +GLAPI void APIENTRY glWindowPos3iv (const GLint *); +GLAPI void APIENTRY glWindowPos3s (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glWindowPos3sv (const GLshort *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord); +typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord); +typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord); +typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord); +typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y); +typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v); +#endif + +#ifndef GL_VERSION_1_5 +#define GL_VERSION_1_5 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenQueries (GLsizei, GLuint *); +GLAPI void APIENTRY glDeleteQueries (GLsizei, const GLuint *); +GLAPI GLboolean APIENTRY glIsQuery (GLuint); +GLAPI void APIENTRY glBeginQuery (GLenum, GLuint); +GLAPI void APIENTRY glEndQuery (GLenum); +GLAPI void APIENTRY glGetQueryiv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetQueryObjectiv (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetQueryObjectuiv (GLuint, GLenum, GLuint *); +GLAPI void APIENTRY glBindBuffer (GLenum, GLuint); +GLAPI void APIENTRY glDeleteBuffers (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenBuffers (GLsizei, GLuint *); +GLAPI GLboolean APIENTRY glIsBuffer (GLuint); +GLAPI void APIENTRY glBufferData (GLenum, GLsizeiptr, const GLvoid *, GLenum); +GLAPI void APIENTRY glBufferSubData (GLenum, GLintptr, GLsizeiptr, const GLvoid *); +GLAPI void APIENTRY glGetBufferSubData (GLenum, GLintptr, GLsizeiptr, GLvoid *); +GLAPI GLvoid* APIENTRY glMapBuffer (GLenum, GLenum); +GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum); +GLAPI void APIENTRY glGetBufferParameteriv (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetBufferPointerv (GLenum, GLenum, GLvoid* *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids); +typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id); +typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); +typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); +typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers); +typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers); +typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); +typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); +typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data); +typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); +typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params); +#endif + +#ifndef GL_VERSION_2_0 +#define GL_VERSION_2_0 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationSeparate (GLenum, GLenum); +GLAPI void APIENTRY glDrawBuffers (GLsizei, const GLenum *); +GLAPI void APIENTRY glStencilOpSeparate (GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glStencilFuncSeparate (GLenum, GLenum, GLint, GLuint); +GLAPI void APIENTRY glStencilMaskSeparate (GLenum, GLuint); +GLAPI void APIENTRY glAttachShader (GLuint, GLuint); +GLAPI void APIENTRY glBindAttribLocation (GLuint, GLuint, const GLchar *); +GLAPI void APIENTRY glCompileShader (GLuint); +GLAPI GLuint APIENTRY glCreateProgram (void); +GLAPI GLuint APIENTRY glCreateShader (GLenum); +GLAPI void APIENTRY glDeleteProgram (GLuint); +GLAPI void APIENTRY glDeleteShader (GLuint); +GLAPI void APIENTRY glDetachShader (GLuint, GLuint); +GLAPI void APIENTRY glDisableVertexAttribArray (GLuint); +GLAPI void APIENTRY glEnableVertexAttribArray (GLuint); +GLAPI void APIENTRY glGetActiveAttrib (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *); +GLAPI void APIENTRY glGetActiveUniform (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *); +GLAPI void APIENTRY glGetAttachedShaders (GLuint, GLsizei, GLsizei *, GLuint *); +GLAPI GLint APIENTRY glGetAttribLocation (GLuint, const GLchar *); +GLAPI void APIENTRY glGetProgramiv (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetProgramInfoLog (GLuint, GLsizei, GLsizei *, GLchar *); +GLAPI void APIENTRY glGetShaderiv (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetShaderInfoLog (GLuint, GLsizei, GLsizei *, GLchar *); +GLAPI void APIENTRY glGetShaderSource (GLuint, GLsizei, GLsizei *, GLchar *); +GLAPI GLint APIENTRY glGetUniformLocation (GLuint, const GLchar *); +GLAPI void APIENTRY glGetUniformfv (GLuint, GLint, GLfloat *); +GLAPI void APIENTRY glGetUniformiv (GLuint, GLint, GLint *); +GLAPI void APIENTRY glGetVertexAttribdv (GLuint, GLenum, GLdouble *); +GLAPI void APIENTRY glGetVertexAttribfv (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVertexAttribiv (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint, GLenum, GLvoid* *); +GLAPI GLboolean APIENTRY glIsProgram (GLuint); +GLAPI GLboolean APIENTRY glIsShader (GLuint); +GLAPI void APIENTRY glLinkProgram (GLuint); +GLAPI void APIENTRY glShaderSource (GLuint, GLsizei, const GLchar* *, const GLint *); +GLAPI void APIENTRY glUseProgram (GLuint); +GLAPI void APIENTRY glUniform1f (GLint, GLfloat); +GLAPI void APIENTRY glUniform2f (GLint, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform3f (GLint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform4f (GLint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform1i (GLint, GLint); +GLAPI void APIENTRY glUniform2i (GLint, GLint, GLint); +GLAPI void APIENTRY glUniform3i (GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glUniform4i (GLint, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glUniform1fv (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform2fv (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform3fv (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform4fv (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform1iv (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform2iv (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform3iv (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform4iv (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniformMatrix2fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix3fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix4fv (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glValidateProgram (GLuint); +GLAPI void APIENTRY glVertexAttrib1d (GLuint, GLdouble); +GLAPI void APIENTRY glVertexAttrib1dv (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib1f (GLuint, GLfloat); +GLAPI void APIENTRY glVertexAttrib1fv (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib1s (GLuint, GLshort); +GLAPI void APIENTRY glVertexAttrib1sv (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib2d (GLuint, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib2dv (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib2f (GLuint, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib2fv (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib2s (GLuint, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib2sv (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib3d (GLuint, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib3dv (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib3f (GLuint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib3fv (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib3s (GLuint, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib3sv (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint, const GLbyte *); +GLAPI void APIENTRY glVertexAttrib4Niv (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4Nub (GLuint, GLubyte, GLubyte, GLubyte, GLubyte); +GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint, const GLushort *); +GLAPI void APIENTRY glVertexAttrib4bv (GLuint, const GLbyte *); +GLAPI void APIENTRY glVertexAttrib4d (GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib4dv (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib4f (GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib4fv (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib4iv (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttrib4s (GLuint, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib4sv (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4ubv (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttrib4uiv (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttrib4usv (GLuint, const GLushort *); +GLAPI void APIENTRY glVertexAttribPointer (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha); +typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs); +typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); +typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask); +typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name); +typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader); +typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void); +typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type); +typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader); +typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj); +typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); +typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params); +typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program); +typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader); +typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length); +typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); +typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); +typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0); +typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); +typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); +typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_ARB_multitexture +#define GL_ARB_multitexture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glActiveTextureARB (GLenum); +GLAPI void APIENTRY glClientActiveTextureARB (GLenum); +GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum, GLdouble); +GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum, GLfloat); +GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum, GLint); +GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum, GLshort); +GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum, GLint, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum, const GLshort *); +GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum, const GLdouble *); +GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum, const GLfloat *); +GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum, const GLint *); +GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum, const GLshort *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture); +typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v); +#endif + +#ifndef GL_ARB_transpose_matrix +#define GL_ARB_transpose_matrix 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *); +GLAPI void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *); +GLAPI void APIENTRY glMultTransposeMatrixfARB (const GLfloat *); +GLAPI void APIENTRY glMultTransposeMatrixdARB (const GLdouble *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); +typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); +typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); +typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); +#endif + +#ifndef GL_ARB_multisample +#define GL_ARB_multisample 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSampleCoverageARB (GLclampf, GLboolean); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert); +#endif + +#ifndef GL_ARB_texture_env_add +#define GL_ARB_texture_env_add 1 +#endif + +#ifndef GL_ARB_texture_cube_map +#define GL_ARB_texture_cube_map 1 +#endif + +#ifndef GL_ARB_texture_compression +#define GL_ARB_texture_compression 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexImage1DARB (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage3DARB (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage2DARB (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glCompressedTexSubImage1DARB (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glGetCompressedTexImageARB (GLenum, GLint, GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, GLvoid *img); +#endif + +#ifndef GL_ARB_texture_border_clamp +#define GL_ARB_texture_border_clamp 1 +#endif + +#ifndef GL_ARB_point_parameters +#define GL_ARB_point_parameters 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPointParameterfARB (GLenum, GLfloat); +GLAPI void APIENTRY glPointParameterfvARB (GLenum, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params); +#endif + +#ifndef GL_ARB_vertex_blend +#define GL_ARB_vertex_blend 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glWeightbvARB (GLint, const GLbyte *); +GLAPI void APIENTRY glWeightsvARB (GLint, const GLshort *); +GLAPI void APIENTRY glWeightivARB (GLint, const GLint *); +GLAPI void APIENTRY glWeightfvARB (GLint, const GLfloat *); +GLAPI void APIENTRY glWeightdvARB (GLint, const GLdouble *); +GLAPI void APIENTRY glWeightubvARB (GLint, const GLubyte *); +GLAPI void APIENTRY glWeightusvARB (GLint, const GLushort *); +GLAPI void APIENTRY glWeightuivARB (GLint, const GLuint *); +GLAPI void APIENTRY glWeightPointerARB (GLint, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glVertexBlendARB (GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights); +typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights); +typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights); +typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights); +typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights); +typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights); +typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights); +typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights); +typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count); +#endif + +#ifndef GL_ARB_matrix_palette +#define GL_ARB_matrix_palette 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCurrentPaletteMatrixARB (GLint); +GLAPI void APIENTRY glMatrixIndexubvARB (GLint, const GLubyte *); +GLAPI void APIENTRY glMatrixIndexusvARB (GLint, const GLushort *); +GLAPI void APIENTRY glMatrixIndexuivARB (GLint, const GLuint *); +GLAPI void APIENTRY glMatrixIndexPointerARB (GLint, GLenum, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index); +typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices); +typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices); +typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices); +typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_ARB_texture_env_combine +#define GL_ARB_texture_env_combine 1 +#endif + +#ifndef GL_ARB_texture_env_crossbar +#define GL_ARB_texture_env_crossbar 1 +#endif + +#ifndef GL_ARB_texture_env_dot3 +#define GL_ARB_texture_env_dot3 1 +#endif + +#ifndef GL_ARB_texture_mirrored_repeat +#define GL_ARB_texture_mirrored_repeat 1 +#endif + +#ifndef GL_ARB_depth_texture +#define GL_ARB_depth_texture 1 +#endif + +#ifndef GL_ARB_shadow +#define GL_ARB_shadow 1 +#endif + +#ifndef GL_ARB_shadow_ambient +#define GL_ARB_shadow_ambient 1 +#endif + +#ifndef GL_ARB_window_pos +#define GL_ARB_window_pos 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glWindowPos2dARB (GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos2dvARB (const GLdouble *); +GLAPI void APIENTRY glWindowPos2fARB (GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos2fvARB (const GLfloat *); +GLAPI void APIENTRY glWindowPos2iARB (GLint, GLint); +GLAPI void APIENTRY glWindowPos2ivARB (const GLint *); +GLAPI void APIENTRY glWindowPos2sARB (GLshort, GLshort); +GLAPI void APIENTRY glWindowPos2svARB (const GLshort *); +GLAPI void APIENTRY glWindowPos3dARB (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos3dvARB (const GLdouble *); +GLAPI void APIENTRY glWindowPos3fARB (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos3fvARB (const GLfloat *); +GLAPI void APIENTRY glWindowPos3iARB (GLint, GLint, GLint); +GLAPI void APIENTRY glWindowPos3ivARB (const GLint *); +GLAPI void APIENTRY glWindowPos3sARB (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glWindowPos3svARB (const GLshort *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y); +typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v); +#endif + +#ifndef GL_ARB_vertex_program +#define GL_ARB_vertex_program 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexAttrib1dARB (GLuint, GLdouble); +GLAPI void APIENTRY glVertexAttrib1dvARB (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib1fARB (GLuint, GLfloat); +GLAPI void APIENTRY glVertexAttrib1fvARB (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib1sARB (GLuint, GLshort); +GLAPI void APIENTRY glVertexAttrib1svARB (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib2dARB (GLuint, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib2dvARB (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib2fARB (GLuint, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib2fvARB (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib2sARB (GLuint, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib2svARB (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib3dARB (GLuint, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib3dvARB (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib3fARB (GLuint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib3fvARB (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib3sARB (GLuint, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib3svARB (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4NbvARB (GLuint, const GLbyte *); +GLAPI void APIENTRY glVertexAttrib4NivARB (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttrib4NsvARB (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4NubARB (GLuint, GLubyte, GLubyte, GLubyte, GLubyte); +GLAPI void APIENTRY glVertexAttrib4NubvARB (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttrib4NuivARB (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttrib4NusvARB (GLuint, const GLushort *); +GLAPI void APIENTRY glVertexAttrib4bvARB (GLuint, const GLbyte *); +GLAPI void APIENTRY glVertexAttrib4dARB (GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib4dvARB (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib4fARB (GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib4fvARB (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib4ivARB (GLuint, const GLint *); +GLAPI void APIENTRY glVertexAttrib4sARB (GLuint, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib4svARB (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4ubvARB (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttrib4uivARB (GLuint, const GLuint *); +GLAPI void APIENTRY glVertexAttrib4usvARB (GLuint, const GLushort *); +GLAPI void APIENTRY glVertexAttribPointerARB (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *); +GLAPI void APIENTRY glEnableVertexAttribArrayARB (GLuint); +GLAPI void APIENTRY glDisableVertexAttribArrayARB (GLuint); +GLAPI void APIENTRY glProgramStringARB (GLenum, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glBindProgramARB (GLenum, GLuint); +GLAPI void APIENTRY glDeleteProgramsARB (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenProgramsARB (GLsizei, GLuint *); +GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum, GLuint, const GLdouble *); +GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum, GLuint, const GLfloat *); +GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum, GLuint, const GLdouble *); +GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum, GLuint, const GLfloat *); +GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum, GLuint, GLdouble *); +GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum, GLuint, GLfloat *); +GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum, GLuint, GLdouble *); +GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum, GLuint, GLfloat *); +GLAPI void APIENTRY glGetProgramivARB (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetProgramStringARB (GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetVertexAttribdvARB (GLuint, GLenum, GLdouble *); +GLAPI void APIENTRY glGetVertexAttribfvARB (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVertexAttribivARB (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVertexAttribPointervARB (GLuint, GLenum, GLvoid* *); +GLAPI GLboolean APIENTRY glIsProgramARB (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); +typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); +typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const GLvoid *string); +typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program); +typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs); +typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); +typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); +typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); +typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); +typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, GLvoid *string); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid* *pointer); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program); +#endif + +#ifndef GL_ARB_fragment_program +#define GL_ARB_fragment_program 1 +/* All ARB_fragment_program entry points are shared with ARB_vertex_program. */ +#endif + +#ifndef GL_ARB_vertex_buffer_object +#define GL_ARB_vertex_buffer_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindBufferARB (GLenum, GLuint); +GLAPI void APIENTRY glDeleteBuffersARB (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenBuffersARB (GLsizei, GLuint *); +GLAPI GLboolean APIENTRY glIsBufferARB (GLuint); +GLAPI void APIENTRY glBufferDataARB (GLenum, GLsizeiptrARB, const GLvoid *, GLenum); +GLAPI void APIENTRY glBufferSubDataARB (GLenum, GLintptrARB, GLsizeiptrARB, const GLvoid *); +GLAPI void APIENTRY glGetBufferSubDataARB (GLenum, GLintptrARB, GLsizeiptrARB, GLvoid *); +GLAPI GLvoid* APIENTRY glMapBufferARB (GLenum, GLenum); +GLAPI GLboolean APIENTRY glUnmapBufferARB (GLenum); +GLAPI void APIENTRY glGetBufferParameterivARB (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetBufferPointervARB (GLenum, GLenum, GLvoid* *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer); +typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers); +typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers); +typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage); +typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data); +typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data); +typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); +typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid* *params); +#endif + +#ifndef GL_ARB_occlusion_query +#define GL_ARB_occlusion_query 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenQueriesARB (GLsizei, GLuint *); +GLAPI void APIENTRY glDeleteQueriesARB (GLsizei, const GLuint *); +GLAPI GLboolean APIENTRY glIsQueryARB (GLuint); +GLAPI void APIENTRY glBeginQueryARB (GLenum, GLuint); +GLAPI void APIENTRY glEndQueryARB (GLenum); +GLAPI void APIENTRY glGetQueryivARB (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetQueryObjectivARB (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetQueryObjectuivARB (GLuint, GLenum, GLuint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids); +typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC) (GLuint id); +typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id); +typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params); +#endif + +#ifndef GL_ARB_shader_objects +#define GL_ARB_shader_objects 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDeleteObjectARB (GLhandleARB); +GLAPI GLhandleARB APIENTRY glGetHandleARB (GLenum); +GLAPI void APIENTRY glDetachObjectARB (GLhandleARB, GLhandleARB); +GLAPI GLhandleARB APIENTRY glCreateShaderObjectARB (GLenum); +GLAPI void APIENTRY glShaderSourceARB (GLhandleARB, GLsizei, const GLcharARB* *, const GLint *); +GLAPI void APIENTRY glCompileShaderARB (GLhandleARB); +GLAPI GLhandleARB APIENTRY glCreateProgramObjectARB (void); +GLAPI void APIENTRY glAttachObjectARB (GLhandleARB, GLhandleARB); +GLAPI void APIENTRY glLinkProgramARB (GLhandleARB); +GLAPI void APIENTRY glUseProgramObjectARB (GLhandleARB); +GLAPI void APIENTRY glValidateProgramARB (GLhandleARB); +GLAPI void APIENTRY glUniform1fARB (GLint, GLfloat); +GLAPI void APIENTRY glUniform2fARB (GLint, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform3fARB (GLint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform4fARB (GLint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glUniform1iARB (GLint, GLint); +GLAPI void APIENTRY glUniform2iARB (GLint, GLint, GLint); +GLAPI void APIENTRY glUniform3iARB (GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glUniform4iARB (GLint, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glUniform1fvARB (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform2fvARB (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform3fvARB (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform4fvARB (GLint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glUniform1ivARB (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform2ivARB (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform3ivARB (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniform4ivARB (GLint, GLsizei, const GLint *); +GLAPI void APIENTRY glUniformMatrix2fvARB (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix3fvARB (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glUniformMatrix4fvARB (GLint, GLsizei, GLboolean, const GLfloat *); +GLAPI void APIENTRY glGetObjectParameterfvARB (GLhandleARB, GLenum, GLfloat *); +GLAPI void APIENTRY glGetObjectParameterivARB (GLhandleARB, GLenum, GLint *); +GLAPI void APIENTRY glGetInfoLogARB (GLhandleARB, GLsizei, GLsizei *, GLcharARB *); +GLAPI void APIENTRY glGetAttachedObjectsARB (GLhandleARB, GLsizei, GLsizei *, GLhandleARB *); +GLAPI GLint APIENTRY glGetUniformLocationARB (GLhandleARB, const GLcharARB *); +GLAPI void APIENTRY glGetActiveUniformARB (GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *); +GLAPI void APIENTRY glGetUniformfvARB (GLhandleARB, GLint, GLfloat *); +GLAPI void APIENTRY glGetUniformivARB (GLhandleARB, GLint, GLint *); +GLAPI void APIENTRY glGetShaderSourceARB (GLhandleARB, GLsizei, GLsizei *, GLcharARB *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj); +typedef GLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname); +typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj); +typedef GLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType); +typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length); +typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj); +typedef GLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void); +typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj); +typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj); +typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj); +typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj); +typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0); +typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1); +typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0); +typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1); +typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2); +typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog); +typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj); +typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); +typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params); +typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params); +typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source); +#endif + +#ifndef GL_ARB_vertex_shader +#define GL_ARB_vertex_shader 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindAttribLocationARB (GLhandleARB, GLuint, const GLcharARB *); +GLAPI void APIENTRY glGetActiveAttribARB (GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *); +GLAPI GLint APIENTRY glGetAttribLocationARB (GLhandleARB, const GLcharARB *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name); +typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); +typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name); +#endif + +#ifndef GL_ARB_fragment_shader +#define GL_ARB_fragment_shader 1 +#endif + +#ifndef GL_ARB_shading_language_100 +#define GL_ARB_shading_language_100 1 +#endif + +#ifndef GL_ARB_texture_non_power_of_two +#define GL_ARB_texture_non_power_of_two 1 +#endif + +#ifndef GL_ARB_point_sprite +#define GL_ARB_point_sprite 1 +#endif + +#ifndef GL_ARB_fragment_program_shadow +#define GL_ARB_fragment_program_shadow 1 +#endif + +#ifndef GL_ARB_draw_buffers +#define GL_ARB_draw_buffers 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawBuffersARB (GLsizei, const GLenum *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs); +#endif + +#ifndef GL_ARB_texture_rectangle +#define GL_ARB_texture_rectangle 1 +#endif + +#ifndef GL_ARB_color_buffer_float +#define GL_ARB_color_buffer_float 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glClampColorARB (GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp); +#endif + +#ifndef GL_ARB_half_float_pixel +#define GL_ARB_half_float_pixel 1 +#endif + +#ifndef GL_ARB_texture_float +#define GL_ARB_texture_float 1 +#endif + +#ifndef GL_ARB_pixel_buffer_object +#define GL_ARB_pixel_buffer_object 1 +#endif + +#ifndef GL_EXT_abgr +#define GL_EXT_abgr 1 +#endif + +#ifndef GL_EXT_blend_color +#define GL_EXT_blend_color 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendColorEXT (GLclampf, GLclampf, GLclampf, GLclampf); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); +#endif + +#ifndef GL_EXT_polygon_offset +#define GL_EXT_polygon_offset 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPolygonOffsetEXT (GLfloat, GLfloat); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias); +#endif + +#ifndef GL_EXT_texture +#define GL_EXT_texture 1 +#endif + +#ifndef GL_EXT_texture3D +#define GL_EXT_texture3D 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexImage3DEXT (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glTexSubImage3DEXT (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); +#endif + +#ifndef GL_SGIS_texture_filter4 +#define GL_SGIS_texture_filter4 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetTexFilterFuncSGIS (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glTexFilterFuncSGIS (GLenum, GLenum, GLsizei, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights); +typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights); +#endif + +#ifndef GL_EXT_subtexture +#define GL_EXT_subtexture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexSubImage1DEXT (GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glTexSubImage2DEXT (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); +#endif + +#ifndef GL_EXT_copy_texture +#define GL_EXT_copy_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCopyTexImage1DEXT (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint); +GLAPI void APIENTRY glCopyTexImage2DEXT (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); +GLAPI void APIENTRY glCopyTexSubImage1DEXT (GLenum, GLint, GLint, GLint, GLint, GLsizei); +GLAPI void APIENTRY glCopyTexSubImage2DEXT (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); +GLAPI void APIENTRY glCopyTexSubImage3DEXT (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#endif + +#ifndef GL_EXT_histogram +#define GL_EXT_histogram 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetHistogramEXT (GLenum, GLboolean, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetHistogramParameterfvEXT (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetHistogramParameterivEXT (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetMinmaxEXT (GLenum, GLboolean, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetMinmaxParameterfvEXT (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetMinmaxParameterivEXT (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glHistogramEXT (GLenum, GLsizei, GLenum, GLboolean); +GLAPI void APIENTRY glMinmaxEXT (GLenum, GLenum, GLboolean); +GLAPI void APIENTRY glResetHistogramEXT (GLenum); +GLAPI void APIENTRY glResetMinmaxEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); +typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); +typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); +typedef void (APIENTRYP PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink); +typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC) (GLenum target); +typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC) (GLenum target); +#endif + +#ifndef GL_EXT_convolution +#define GL_EXT_convolution 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glConvolutionFilter1DEXT (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glConvolutionFilter2DEXT (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glConvolutionParameterfEXT (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glConvolutionParameterfvEXT (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glConvolutionParameteriEXT (GLenum, GLenum, GLint); +GLAPI void APIENTRY glConvolutionParameterivEXT (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glCopyConvolutionFilter1DEXT (GLenum, GLenum, GLint, GLint, GLsizei); +GLAPI void APIENTRY glCopyConvolutionFilter2DEXT (GLenum, GLenum, GLint, GLint, GLsizei, GLsizei); +GLAPI void APIENTRY glGetConvolutionFilterEXT (GLenum, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetConvolutionParameterfvEXT (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetConvolutionParameterivEXT (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetSeparableFilterEXT (GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); +GLAPI void APIENTRY glSeparableFilter2DEXT (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); +typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params); +typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); +typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); +#endif + +#ifndef GL_EXT_color_matrix +#define GL_EXT_color_matrix 1 +#endif + +#ifndef GL_SGI_color_table +#define GL_SGI_color_table 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorTableSGI (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glColorTableParameterfvSGI (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glColorTableParameterivSGI (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glCopyColorTableSGI (GLenum, GLenum, GLint, GLint, GLsizei); +GLAPI void APIENTRY glGetColorTableSGI (GLenum, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetColorTableParameterfvSGI (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetColorTableParameterivSGI (GLenum, GLenum, GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); +typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params); +#endif + +#ifndef GL_SGIX_pixel_texture +#define GL_SGIX_pixel_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPixelTexGenSGIX (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC) (GLenum mode); +#endif + +#ifndef GL_SGIS_pixel_texture +#define GL_SGIS_pixel_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPixelTexGenParameteriSGIS (GLenum, GLint); +GLAPI void APIENTRY glPixelTexGenParameterivSGIS (GLenum, const GLint *); +GLAPI void APIENTRY glPixelTexGenParameterfSGIS (GLenum, GLfloat); +GLAPI void APIENTRY glPixelTexGenParameterfvSGIS (GLenum, const GLfloat *); +GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS (GLenum, GLint *); +GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS (GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params); +#endif + +#ifndef GL_SGIS_texture4D +#define GL_SGIS_texture4D 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexImage4DSGIS (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glTexSubImage4DSGIS (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid *pixels); +#endif + +#ifndef GL_SGI_texture_color_table +#define GL_SGI_texture_color_table 1 +#endif + +#ifndef GL_EXT_cmyka +#define GL_EXT_cmyka 1 +#endif + +#ifndef GL_EXT_texture_object +#define GL_EXT_texture_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLboolean APIENTRY glAreTexturesResidentEXT (GLsizei, const GLuint *, GLboolean *); +GLAPI void APIENTRY glBindTextureEXT (GLenum, GLuint); +GLAPI void APIENTRY glDeleteTexturesEXT (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenTexturesEXT (GLsizei, GLuint *); +GLAPI GLboolean APIENTRY glIsTextureEXT (GLuint); +GLAPI void APIENTRY glPrioritizeTexturesEXT (GLsizei, const GLuint *, const GLclampf *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences); +typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture); +typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures); +typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures); +typedef GLboolean (APIENTRYP PFNGLISTEXTUREEXTPROC) (GLuint texture); +typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities); +#endif + +#ifndef GL_SGIS_detail_texture +#define GL_SGIS_detail_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDetailTexFuncSGIS (GLenum, GLsizei, const GLfloat *); +GLAPI void APIENTRY glGetDetailTexFuncSGIS (GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); +typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points); +#endif + +#ifndef GL_SGIS_sharpen_texture +#define GL_SGIS_sharpen_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSharpenTexFuncSGIS (GLenum, GLsizei, const GLfloat *); +GLAPI void APIENTRY glGetSharpenTexFuncSGIS (GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); +typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points); +#endif + +#ifndef GL_EXT_packed_pixels +#define GL_EXT_packed_pixels 1 +#endif + +#ifndef GL_SGIS_texture_lod +#define GL_SGIS_texture_lod 1 +#endif + +#ifndef GL_SGIS_multisample +#define GL_SGIS_multisample 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSampleMaskSGIS (GLclampf, GLboolean); +GLAPI void APIENTRY glSamplePatternSGIS (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert); +typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern); +#endif + +#ifndef GL_EXT_rescale_normal +#define GL_EXT_rescale_normal 1 +#endif + +#ifndef GL_EXT_vertex_array +#define GL_EXT_vertex_array 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glArrayElementEXT (GLint); +GLAPI void APIENTRY glColorPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); +GLAPI void APIENTRY glDrawArraysEXT (GLenum, GLint, GLsizei); +GLAPI void APIENTRY glEdgeFlagPointerEXT (GLsizei, GLsizei, const GLboolean *); +GLAPI void APIENTRY glGetPointervEXT (GLenum, GLvoid* *); +GLAPI void APIENTRY glIndexPointerEXT (GLenum, GLsizei, GLsizei, const GLvoid *); +GLAPI void APIENTRY glNormalPointerEXT (GLenum, GLsizei, GLsizei, const GLvoid *); +GLAPI void APIENTRY glTexCoordPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); +GLAPI void APIENTRY glVertexPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC) (GLint i); +typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); +typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer); +typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params); +typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +#endif + +#ifndef GL_EXT_misc_attribute +#define GL_EXT_misc_attribute 1 +#endif + +#ifndef GL_SGIS_generate_mipmap +#define GL_SGIS_generate_mipmap 1 +#endif + +#ifndef GL_SGIX_clipmap +#define GL_SGIX_clipmap 1 +#endif + +#ifndef GL_SGIX_shadow +#define GL_SGIX_shadow 1 +#endif + +#ifndef GL_SGIS_texture_edge_clamp +#define GL_SGIS_texture_edge_clamp 1 +#endif + +#ifndef GL_SGIS_texture_border_clamp +#define GL_SGIS_texture_border_clamp 1 +#endif + +#ifndef GL_EXT_blend_minmax +#define GL_EXT_blend_minmax 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDEQUATIONEXTPROC) (GLenum mode); +#endif + +#ifndef GL_EXT_blend_subtract +#define GL_EXT_blend_subtract 1 +#endif + +#ifndef GL_EXT_blend_logic_op +#define GL_EXT_blend_logic_op 1 +#endif + +#ifndef GL_SGIX_interlace +#define GL_SGIX_interlace 1 +#endif + +#ifndef GL_SGIX_pixel_tiles +#define GL_SGIX_pixel_tiles 1 +#endif + +#ifndef GL_SGIX_texture_select +#define GL_SGIX_texture_select 1 +#endif + +#ifndef GL_SGIX_sprite +#define GL_SGIX_sprite 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSpriteParameterfSGIX (GLenum, GLfloat); +GLAPI void APIENTRY glSpriteParameterfvSGIX (GLenum, const GLfloat *); +GLAPI void APIENTRY glSpriteParameteriSGIX (GLenum, GLint); +GLAPI void APIENTRY glSpriteParameterivSGIX (GLenum, const GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params); +#endif + +#ifndef GL_SGIX_texture_multi_buffer +#define GL_SGIX_texture_multi_buffer 1 +#endif + +#ifndef GL_EXT_point_parameters +#define GL_EXT_point_parameters 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPointParameterfEXT (GLenum, GLfloat); +GLAPI void APIENTRY glPointParameterfvEXT (GLenum, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params); +#endif + +#ifndef GL_SGIS_point_parameters +#define GL_SGIS_point_parameters 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPointParameterfSGIS (GLenum, GLfloat); +GLAPI void APIENTRY glPointParameterfvSGIS (GLenum, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); +#endif + +#ifndef GL_SGIX_instruments +#define GL_SGIX_instruments 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLint APIENTRY glGetInstrumentsSGIX (void); +GLAPI void APIENTRY glInstrumentsBufferSGIX (GLsizei, GLint *); +GLAPI GLint APIENTRY glPollInstrumentsSGIX (GLint *); +GLAPI void APIENTRY glReadInstrumentsSGIX (GLint); +GLAPI void APIENTRY glStartInstrumentsSGIX (void); +GLAPI void APIENTRY glStopInstrumentsSGIX (GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLint (APIENTRYP PFNGLGETINSTRUMENTSSGIXPROC) (void); +typedef void (APIENTRYP PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer); +typedef GLint (APIENTRYP PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p); +typedef void (APIENTRYP PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker); +typedef void (APIENTRYP PFNGLSTARTINSTRUMENTSSGIXPROC) (void); +typedef void (APIENTRYP PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker); +#endif + +#ifndef GL_SGIX_texture_scale_bias +#define GL_SGIX_texture_scale_bias 1 +#endif + +#ifndef GL_SGIX_framezoom +#define GL_SGIX_framezoom 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFrameZoomSGIX (GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFRAMEZOOMSGIXPROC) (GLint factor); +#endif + +#ifndef GL_SGIX_tag_sample_buffer +#define GL_SGIX_tag_sample_buffer 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTagSampleBufferSGIX (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTAGSAMPLEBUFFERSGIXPROC) (void); +#endif + +#ifndef GL_SGIX_polynomial_ffd +#define GL_SGIX_polynomial_ffd 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDeformationMap3dSGIX (GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *); +GLAPI void APIENTRY glDeformationMap3fSGIX (GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *); +GLAPI void APIENTRY glDeformSGIX (GLbitfield); +GLAPI void APIENTRY glLoadIdentityDeformationMapSGIX (GLbitfield); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points); +typedef void (APIENTRYP PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points); +typedef void (APIENTRYP PFNGLDEFORMSGIXPROC) (GLbitfield mask); +typedef void (APIENTRYP PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask); +#endif + +#ifndef GL_SGIX_reference_plane +#define GL_SGIX_reference_plane 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glReferencePlaneSGIX (const GLdouble *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation); +#endif + +#ifndef GL_SGIX_flush_raster +#define GL_SGIX_flush_raster 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFlushRasterSGIX (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFLUSHRASTERSGIXPROC) (void); +#endif + +#ifndef GL_SGIX_depth_texture +#define GL_SGIX_depth_texture 1 +#endif + +#ifndef GL_SGIS_fog_function +#define GL_SGIS_fog_function 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFogFuncSGIS (GLsizei, const GLfloat *); +GLAPI void APIENTRY glGetFogFuncSGIS (GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points); +typedef void (APIENTRYP PFNGLGETFOGFUNCSGISPROC) (GLfloat *points); +#endif + +#ifndef GL_SGIX_fog_offset +#define GL_SGIX_fog_offset 1 +#endif + +#ifndef GL_HP_image_transform +#define GL_HP_image_transform 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glImageTransformParameteriHP (GLenum, GLenum, GLint); +GLAPI void APIENTRY glImageTransformParameterfHP (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glImageTransformParameterivHP (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glImageTransformParameterfvHP (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glGetImageTransformParameterivHP (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetImageTransformParameterfvHP (GLenum, GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params); +#endif + +#ifndef GL_HP_convolution_border_modes +#define GL_HP_convolution_border_modes 1 +#endif + +#ifndef GL_SGIX_texture_add_env +#define GL_SGIX_texture_add_env 1 +#endif + +#ifndef GL_EXT_color_subtable +#define GL_EXT_color_subtable 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorSubTableEXT (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glCopyColorSubTableEXT (GLenum, GLsizei, GLint, GLint, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); +typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); +#endif + +#ifndef GL_PGI_vertex_hints +#define GL_PGI_vertex_hints 1 +#endif + +#ifndef GL_PGI_misc_hints +#define GL_PGI_misc_hints 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glHintPGI (GLenum, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLHINTPGIPROC) (GLenum target, GLint mode); +#endif + +#ifndef GL_EXT_paletted_texture +#define GL_EXT_paletted_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorTableEXT (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +GLAPI void APIENTRY glGetColorTableEXT (GLenum, GLenum, GLenum, GLvoid *); +GLAPI void APIENTRY glGetColorTableParameterivEXT (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetColorTableParameterfvEXT (GLenum, GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); +typedef void (APIENTRYP PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *data); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); +#endif + +#ifndef GL_EXT_clip_volume_hint +#define GL_EXT_clip_volume_hint 1 +#endif + +#ifndef GL_SGIX_list_priority +#define GL_SGIX_list_priority 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetListParameterfvSGIX (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetListParameterivSGIX (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glListParameterfSGIX (GLuint, GLenum, GLfloat); +GLAPI void APIENTRY glListParameterfvSGIX (GLuint, GLenum, const GLfloat *); +GLAPI void APIENTRY glListParameteriSGIX (GLuint, GLenum, GLint); +GLAPI void APIENTRY glListParameterivSGIX (GLuint, GLenum, const GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params); +#endif + +#ifndef GL_SGIX_ir_instrument1 +#define GL_SGIX_ir_instrument1 1 +#endif + +#ifndef GL_SGIX_calligraphic_fragment +#define GL_SGIX_calligraphic_fragment 1 +#endif + +#ifndef GL_SGIX_texture_lod_bias +#define GL_SGIX_texture_lod_bias 1 +#endif + +#ifndef GL_SGIX_shadow_ambient +#define GL_SGIX_shadow_ambient 1 +#endif + +#ifndef GL_EXT_index_texture +#define GL_EXT_index_texture 1 +#endif + +#ifndef GL_EXT_index_material +#define GL_EXT_index_material 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glIndexMaterialEXT (GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode); +#endif + +#ifndef GL_EXT_index_func +#define GL_EXT_index_func 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glIndexFuncEXT (GLenum, GLclampf); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref); +#endif + +#ifndef GL_EXT_index_array_formats +#define GL_EXT_index_array_formats 1 +#endif + +#ifndef GL_EXT_compiled_vertex_array +#define GL_EXT_compiled_vertex_array 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glLockArraysEXT (GLint, GLsizei); +GLAPI void APIENTRY glUnlockArraysEXT (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count); +typedef void (APIENTRYP PFNGLUNLOCKARRAYSEXTPROC) (void); +#endif + +#ifndef GL_EXT_cull_vertex +#define GL_EXT_cull_vertex 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCullParameterdvEXT (GLenum, GLdouble *); +GLAPI void APIENTRY glCullParameterfvEXT (GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params); +#endif + +#ifndef GL_SGIX_ycrcb +#define GL_SGIX_ycrcb 1 +#endif + +#ifndef GL_SGIX_fragment_lighting +#define GL_SGIX_fragment_lighting 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFragmentColorMaterialSGIX (GLenum, GLenum); +GLAPI void APIENTRY glFragmentLightfSGIX (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glFragmentLightfvSGIX (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glFragmentLightiSGIX (GLenum, GLenum, GLint); +GLAPI void APIENTRY glFragmentLightivSGIX (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glFragmentLightModelfSGIX (GLenum, GLfloat); +GLAPI void APIENTRY glFragmentLightModelfvSGIX (GLenum, const GLfloat *); +GLAPI void APIENTRY glFragmentLightModeliSGIX (GLenum, GLint); +GLAPI void APIENTRY glFragmentLightModelivSGIX (GLenum, const GLint *); +GLAPI void APIENTRY glFragmentMaterialfSGIX (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glFragmentMaterialfvSGIX (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glFragmentMaterialiSGIX (GLenum, GLenum, GLint); +GLAPI void APIENTRY glFragmentMaterialivSGIX (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glGetFragmentLightfvSGIX (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetFragmentLightivSGIX (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetFragmentMaterialfvSGIX (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetFragmentMaterialivSGIX (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glLightEnviSGIX (GLenum, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param); +#endif + +#ifndef GL_IBM_rasterpos_clip +#define GL_IBM_rasterpos_clip 1 +#endif + +#ifndef GL_HP_texture_lighting +#define GL_HP_texture_lighting 1 +#endif + +#ifndef GL_EXT_draw_range_elements +#define GL_EXT_draw_range_elements 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawRangeElementsEXT (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); +#endif + +#ifndef GL_WIN_phong_shading +#define GL_WIN_phong_shading 1 +#endif + +#ifndef GL_WIN_specular_fog +#define GL_WIN_specular_fog 1 +#endif + +#ifndef GL_EXT_light_texture +#define GL_EXT_light_texture 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glApplyTextureEXT (GLenum); +GLAPI void APIENTRY glTextureLightEXT (GLenum); +GLAPI void APIENTRY glTextureMaterialEXT (GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLTEXTURELIGHTEXTPROC) (GLenum pname); +typedef void (APIENTRYP PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode); +#endif + +#ifndef GL_SGIX_blend_alpha_minmax +#define GL_SGIX_blend_alpha_minmax 1 +#endif + +#ifndef GL_EXT_bgra +#define GL_EXT_bgra 1 +#endif + +#ifndef GL_SGIX_async +#define GL_SGIX_async 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glAsyncMarkerSGIX (GLuint); +GLAPI GLint APIENTRY glFinishAsyncSGIX (GLuint *); +GLAPI GLint APIENTRY glPollAsyncSGIX (GLuint *); +GLAPI GLuint APIENTRY glGenAsyncMarkersSGIX (GLsizei); +GLAPI void APIENTRY glDeleteAsyncMarkersSGIX (GLuint, GLsizei); +GLAPI GLboolean APIENTRY glIsAsyncMarkerSGIX (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLASYNCMARKERSGIXPROC) (GLuint marker); +typedef GLint (APIENTRYP PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp); +typedef GLint (APIENTRYP PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp); +typedef GLuint (APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range); +typedef void (APIENTRYP PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range); +typedef GLboolean (APIENTRYP PFNGLISASYNCMARKERSGIXPROC) (GLuint marker); +#endif + +#ifndef GL_SGIX_async_pixel +#define GL_SGIX_async_pixel 1 +#endif + +#ifndef GL_SGIX_async_histogram +#define GL_SGIX_async_histogram 1 +#endif + +#ifndef GL_INTEL_parallel_arrays +#define GL_INTEL_parallel_arrays 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexPointervINTEL (GLint, GLenum, const GLvoid* *); +GLAPI void APIENTRY glNormalPointervINTEL (GLenum, const GLvoid* *); +GLAPI void APIENTRY glColorPointervINTEL (GLint, GLenum, const GLvoid* *); +GLAPI void APIENTRY glTexCoordPointervINTEL (GLint, GLenum, const GLvoid* *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); +typedef void (APIENTRYP PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const GLvoid* *pointer); +typedef void (APIENTRYP PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); +typedef void (APIENTRYP PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); +#endif + +#ifndef GL_HP_occlusion_test +#define GL_HP_occlusion_test 1 +#endif + +#ifndef GL_EXT_pixel_transform +#define GL_EXT_pixel_transform 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPixelTransformParameteriEXT (GLenum, GLenum, GLint); +GLAPI void APIENTRY glPixelTransformParameterfEXT (GLenum, GLenum, GLfloat); +GLAPI void APIENTRY glPixelTransformParameterivEXT (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glPixelTransformParameterfvEXT (GLenum, GLenum, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); +#endif + +#ifndef GL_EXT_pixel_transform_color_table +#define GL_EXT_pixel_transform_color_table 1 +#endif + +#ifndef GL_EXT_shared_texture_palette +#define GL_EXT_shared_texture_palette 1 +#endif + +#ifndef GL_EXT_separate_specular_color +#define GL_EXT_separate_specular_color 1 +#endif + +#ifndef GL_EXT_secondary_color +#define GL_EXT_secondary_color 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSecondaryColor3bEXT (GLbyte, GLbyte, GLbyte); +GLAPI void APIENTRY glSecondaryColor3bvEXT (const GLbyte *); +GLAPI void APIENTRY glSecondaryColor3dEXT (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glSecondaryColor3dvEXT (const GLdouble *); +GLAPI void APIENTRY glSecondaryColor3fEXT (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glSecondaryColor3fvEXT (const GLfloat *); +GLAPI void APIENTRY glSecondaryColor3iEXT (GLint, GLint, GLint); +GLAPI void APIENTRY glSecondaryColor3ivEXT (const GLint *); +GLAPI void APIENTRY glSecondaryColor3sEXT (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glSecondaryColor3svEXT (const GLshort *); +GLAPI void APIENTRY glSecondaryColor3ubEXT (GLubyte, GLubyte, GLubyte); +GLAPI void APIENTRY glSecondaryColor3ubvEXT (const GLubyte *); +GLAPI void APIENTRY glSecondaryColor3uiEXT (GLuint, GLuint, GLuint); +GLAPI void APIENTRY glSecondaryColor3uivEXT (const GLuint *); +GLAPI void APIENTRY glSecondaryColor3usEXT (GLushort, GLushort, GLushort); +GLAPI void APIENTRY glSecondaryColor3usvEXT (const GLushort *); +GLAPI void APIENTRY glSecondaryColorPointerEXT (GLint, GLenum, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v); +typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_EXT_texture_perturb_normal +#define GL_EXT_texture_perturb_normal 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTextureNormalEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXTURENORMALEXTPROC) (GLenum mode); +#endif + +#ifndef GL_EXT_multi_draw_arrays +#define GL_EXT_multi_draw_arrays 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei); +GLAPI void APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); +#endif + +#ifndef GL_EXT_fog_coord +#define GL_EXT_fog_coord 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFogCoordfEXT (GLfloat); +GLAPI void APIENTRY glFogCoordfvEXT (const GLfloat *); +GLAPI void APIENTRY glFogCoorddEXT (GLdouble); +GLAPI void APIENTRY glFogCoorddvEXT (const GLdouble *); +GLAPI void APIENTRY glFogCoordPointerEXT (GLenum, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFOGCOORDFEXTPROC) (GLfloat coord); +typedef void (APIENTRYP PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord); +typedef void (APIENTRYP PFNGLFOGCOORDDEXTPROC) (GLdouble coord); +typedef void (APIENTRYP PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord); +typedef void (APIENTRYP PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_REND_screen_coordinates +#define GL_REND_screen_coordinates 1 +#endif + +#ifndef GL_EXT_coordinate_frame +#define GL_EXT_coordinate_frame 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTangent3bEXT (GLbyte, GLbyte, GLbyte); +GLAPI void APIENTRY glTangent3bvEXT (const GLbyte *); +GLAPI void APIENTRY glTangent3dEXT (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glTangent3dvEXT (const GLdouble *); +GLAPI void APIENTRY glTangent3fEXT (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTangent3fvEXT (const GLfloat *); +GLAPI void APIENTRY glTangent3iEXT (GLint, GLint, GLint); +GLAPI void APIENTRY glTangent3ivEXT (const GLint *); +GLAPI void APIENTRY glTangent3sEXT (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glTangent3svEXT (const GLshort *); +GLAPI void APIENTRY glBinormal3bEXT (GLbyte, GLbyte, GLbyte); +GLAPI void APIENTRY glBinormal3bvEXT (const GLbyte *); +GLAPI void APIENTRY glBinormal3dEXT (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glBinormal3dvEXT (const GLdouble *); +GLAPI void APIENTRY glBinormal3fEXT (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glBinormal3fvEXT (const GLfloat *); +GLAPI void APIENTRY glBinormal3iEXT (GLint, GLint, GLint); +GLAPI void APIENTRY glBinormal3ivEXT (const GLint *); +GLAPI void APIENTRY glBinormal3sEXT (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glBinormal3svEXT (const GLshort *); +GLAPI void APIENTRY glTangentPointerEXT (GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glBinormalPointerEXT (GLenum, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz); +typedef void (APIENTRYP PFNGLTANGENT3BVEXTPROC) (const GLbyte *v); +typedef void (APIENTRYP PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz); +typedef void (APIENTRYP PFNGLTANGENT3DVEXTPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz); +typedef void (APIENTRYP PFNGLTANGENT3FVEXTPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz); +typedef void (APIENTRYP PFNGLTANGENT3IVEXTPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz); +typedef void (APIENTRYP PFNGLTANGENT3SVEXTPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz); +typedef void (APIENTRYP PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v); +typedef void (APIENTRYP PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz); +typedef void (APIENTRYP PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz); +typedef void (APIENTRYP PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz); +typedef void (APIENTRYP PFNGLBINORMAL3IVEXTPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz); +typedef void (APIENTRYP PFNGLBINORMAL3SVEXTPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_EXT_texture_env_combine +#define GL_EXT_texture_env_combine 1 +#endif + +#ifndef GL_APPLE_specular_vector +#define GL_APPLE_specular_vector 1 +#endif + +#ifndef GL_APPLE_transform_hint +#define GL_APPLE_transform_hint 1 +#endif + +#ifndef GL_SGIX_fog_scale +#define GL_SGIX_fog_scale 1 +#endif + +#ifndef GL_SUNX_constant_data +#define GL_SUNX_constant_data 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFinishTextureSUNX (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFINISHTEXTURESUNXPROC) (void); +#endif + +#ifndef GL_SUN_global_alpha +#define GL_SUN_global_alpha 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGlobalAlphaFactorbSUN (GLbyte); +GLAPI void APIENTRY glGlobalAlphaFactorsSUN (GLshort); +GLAPI void APIENTRY glGlobalAlphaFactoriSUN (GLint); +GLAPI void APIENTRY glGlobalAlphaFactorfSUN (GLfloat); +GLAPI void APIENTRY glGlobalAlphaFactordSUN (GLdouble); +GLAPI void APIENTRY glGlobalAlphaFactorubSUN (GLubyte); +GLAPI void APIENTRY glGlobalAlphaFactorusSUN (GLushort); +GLAPI void APIENTRY glGlobalAlphaFactoruiSUN (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor); +typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor); +#endif + +#ifndef GL_SUN_triangle_list +#define GL_SUN_triangle_list 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glReplacementCodeuiSUN (GLuint); +GLAPI void APIENTRY glReplacementCodeusSUN (GLushort); +GLAPI void APIENTRY glReplacementCodeubSUN (GLubyte); +GLAPI void APIENTRY glReplacementCodeuivSUN (const GLuint *); +GLAPI void APIENTRY glReplacementCodeusvSUN (const GLushort *); +GLAPI void APIENTRY glReplacementCodeubvSUN (const GLubyte *); +GLAPI void APIENTRY glReplacementCodePointerSUN (GLenum, GLsizei, const GLvoid* *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const GLvoid* *pointer); +#endif + +#ifndef GL_SUN_vertex +#define GL_SUN_vertex 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColor4ubVertex2fSUN (GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat); +GLAPI void APIENTRY glColor4ubVertex2fvSUN (const GLubyte *, const GLfloat *); +GLAPI void APIENTRY glColor4ubVertex3fSUN (GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glColor4ubVertex3fvSUN (const GLubyte *, const GLfloat *); +GLAPI void APIENTRY glColor3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glColor3fVertex3fvSUN (const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glColor4fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glColor4fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord2fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord2fVertex3fvSUN (const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord4fVertex4fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord4fVertex4fvSUN (const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fSUN (GLfloat, GLfloat, GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fvSUN (const GLfloat *, const GLubyte *, const GLfloat *); +GLAPI void APIENTRY glTexCoord2fColor3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord2fColor3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiVertex3fvSUN (const GLuint *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fSUN (GLuint, GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fvSUN (const GLuint *, const GLubyte *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +#endif + +#ifndef GL_EXT_blend_func_separate +#define GL_EXT_blend_func_separate 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendFuncSeparateEXT (GLenum, GLenum, GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +#endif + +#ifndef GL_INGR_blend_func_separate +#define GL_INGR_blend_func_separate 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendFuncSeparateINGR (GLenum, GLenum, GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +#endif + +#ifndef GL_INGR_color_clamp +#define GL_INGR_color_clamp 1 +#endif + +#ifndef GL_INGR_interlace_read +#define GL_INGR_interlace_read 1 +#endif + +#ifndef GL_EXT_stencil_wrap +#define GL_EXT_stencil_wrap 1 +#endif + +#ifndef GL_EXT_422_pixels +#define GL_EXT_422_pixels 1 +#endif + +#ifndef GL_NV_texgen_reflection +#define GL_NV_texgen_reflection 1 +#endif + +#ifndef GL_SUN_convolution_border_modes +#define GL_SUN_convolution_border_modes 1 +#endif + +#ifndef GL_EXT_texture_env_add +#define GL_EXT_texture_env_add 1 +#endif + +#ifndef GL_EXT_texture_lod_bias +#define GL_EXT_texture_lod_bias 1 +#endif + +#ifndef GL_EXT_texture_filter_anisotropic +#define GL_EXT_texture_filter_anisotropic 1 +#endif + +#ifndef GL_EXT_vertex_weighting +#define GL_EXT_vertex_weighting 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexWeightfEXT (GLfloat); +GLAPI void APIENTRY glVertexWeightfvEXT (const GLfloat *); +GLAPI void APIENTRY glVertexWeightPointerEXT (GLsizei, GLenum, GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight); +typedef void (APIENTRYP PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight); +typedef void (APIENTRYP PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid *pointer); +#endif + +#ifndef GL_NV_light_max_exponent +#define GL_NV_light_max_exponent 1 +#endif + +#ifndef GL_NV_vertex_array_range +#define GL_NV_vertex_array_range 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFlushVertexArrayRangeNV (void); +GLAPI void APIENTRY glVertexArrayRangeNV (GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void); +typedef void (APIENTRYP PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const GLvoid *pointer); +#endif + +#ifndef GL_NV_register_combiners +#define GL_NV_register_combiners 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCombinerParameterfvNV (GLenum, const GLfloat *); +GLAPI void APIENTRY glCombinerParameterfNV (GLenum, GLfloat); +GLAPI void APIENTRY glCombinerParameterivNV (GLenum, const GLint *); +GLAPI void APIENTRY glCombinerParameteriNV (GLenum, GLint); +GLAPI void APIENTRY glCombinerInputNV (GLenum, GLenum, GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glCombinerOutputNV (GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLboolean, GLboolean, GLboolean); +GLAPI void APIENTRY glFinalCombinerInputNV (GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glGetCombinerInputParameterfvNV (GLenum, GLenum, GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetCombinerInputParameterivNV (GLenum, GLenum, GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetCombinerOutputParameterfvNV (GLenum, GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetCombinerOutputParameterivNV (GLenum, GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetFinalCombinerInputParameterfvNV (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetFinalCombinerInputParameterivNV (GLenum, GLenum, GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); +typedef void (APIENTRYP PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); +typedef void (APIENTRYP PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); +typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params); +#endif + +#ifndef GL_NV_fog_distance +#define GL_NV_fog_distance 1 +#endif + +#ifndef GL_NV_texgen_emboss +#define GL_NV_texgen_emboss 1 +#endif + +#ifndef GL_NV_blend_square +#define GL_NV_blend_square 1 +#endif + +#ifndef GL_NV_texture_env_combine4 +#define GL_NV_texture_env_combine4 1 +#endif + +#ifndef GL_MESA_resize_buffers +#define GL_MESA_resize_buffers 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glResizeBuffersMESA (void); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLRESIZEBUFFERSMESAPROC) (void); +#endif + +#ifndef GL_MESA_window_pos +#define GL_MESA_window_pos 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glWindowPos2dMESA (GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos2dvMESA (const GLdouble *); +GLAPI void APIENTRY glWindowPos2fMESA (GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos2fvMESA (const GLfloat *); +GLAPI void APIENTRY glWindowPos2iMESA (GLint, GLint); +GLAPI void APIENTRY glWindowPos2ivMESA (const GLint *); +GLAPI void APIENTRY glWindowPos2sMESA (GLshort, GLshort); +GLAPI void APIENTRY glWindowPos2svMESA (const GLshort *); +GLAPI void APIENTRY glWindowPos3dMESA (GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos3dvMESA (const GLdouble *); +GLAPI void APIENTRY glWindowPos3fMESA (GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos3fvMESA (const GLfloat *); +GLAPI void APIENTRY glWindowPos3iMESA (GLint, GLint, GLint); +GLAPI void APIENTRY glWindowPos3ivMESA (const GLint *); +GLAPI void APIENTRY glWindowPos3sMESA (GLshort, GLshort, GLshort); +GLAPI void APIENTRY glWindowPos3svMESA (const GLshort *); +GLAPI void APIENTRY glWindowPos4dMESA (GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glWindowPos4dvMESA (const GLdouble *); +GLAPI void APIENTRY glWindowPos4fMESA (GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glWindowPos4fvMESA (const GLfloat *); +GLAPI void APIENTRY glWindowPos4iMESA (GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glWindowPos4ivMESA (const GLint *); +GLAPI void APIENTRY glWindowPos4sMESA (GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glWindowPos4svMESA (const GLshort *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y); +typedef void (APIENTRYP PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v); +typedef void (APIENTRYP PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v); +typedef void (APIENTRYP PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v); +typedef void (APIENTRYP PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v); +typedef void (APIENTRYP PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v); +#endif + +#ifndef GL_IBM_cull_vertex +#define GL_IBM_cull_vertex 1 +#endif + +#ifndef GL_IBM_multimode_draw_arrays +#define GL_IBM_multimode_draw_arrays 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMultiModeDrawArraysIBM (const GLenum *, const GLint *, const GLsizei *, GLsizei, GLint); +GLAPI void APIENTRY glMultiModeDrawElementsIBM (const GLenum *, const GLsizei *, GLenum, const GLvoid* const *, GLsizei, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); +typedef void (APIENTRYP PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount, GLint modestride); +#endif + +#ifndef GL_IBM_vertex_array_lists +#define GL_IBM_vertex_array_lists 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glSecondaryColorPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glEdgeFlagPointerListIBM (GLint, const GLboolean* *, GLint); +GLAPI void APIENTRY glFogCoordPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glIndexPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glNormalPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glTexCoordPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); +GLAPI void APIENTRY glVertexPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +typedef void (APIENTRYP PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); +#endif + +#ifndef GL_SGIX_subsample +#define GL_SGIX_subsample 1 +#endif + +#ifndef GL_SGIX_ycrcba +#define GL_SGIX_ycrcba 1 +#endif + +#ifndef GL_SGIX_ycrcb_subsample +#define GL_SGIX_ycrcb_subsample 1 +#endif + +#ifndef GL_SGIX_depth_pass_instrument +#define GL_SGIX_depth_pass_instrument 1 +#endif + +#ifndef GL_3DFX_texture_compression_FXT1 +#define GL_3DFX_texture_compression_FXT1 1 +#endif + +#ifndef GL_3DFX_multisample +#define GL_3DFX_multisample 1 +#endif + +#ifndef GL_3DFX_tbuffer +#define GL_3DFX_tbuffer 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTbufferMask3DFX (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC) (GLuint mask); +#endif + +#ifndef GL_EXT_multisample +#define GL_EXT_multisample 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSampleMaskEXT (GLclampf, GLboolean); +GLAPI void APIENTRY glSamplePatternEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert); +typedef void (APIENTRYP PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern); +#endif + +#ifndef GL_SGIX_vertex_preclip +#define GL_SGIX_vertex_preclip 1 +#endif + +#ifndef GL_SGIX_convolution_accuracy +#define GL_SGIX_convolution_accuracy 1 +#endif + +#ifndef GL_SGIX_resample +#define GL_SGIX_resample 1 +#endif + +#ifndef GL_SGIS_point_line_texgen +#define GL_SGIS_point_line_texgen 1 +#endif + +#ifndef GL_SGIS_texture_color_mask +#define GL_SGIS_texture_color_mask 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTextureColorMaskSGIS (GLboolean, GLboolean, GLboolean, GLboolean); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +#endif + +#ifndef GL_SGIX_igloo_interface +#define GL_SGIX_igloo_interface 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glIglooInterfaceSGIX (GLenum, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const GLvoid *params); +#endif + +#ifndef GL_EXT_texture_env_dot3 +#define GL_EXT_texture_env_dot3 1 +#endif + +#ifndef GL_ATI_texture_mirror_once +#define GL_ATI_texture_mirror_once 1 +#endif + +#ifndef GL_NV_fence +#define GL_NV_fence 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDeleteFencesNV (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenFencesNV (GLsizei, GLuint *); +GLAPI GLboolean APIENTRY glIsFenceNV (GLuint); +GLAPI GLboolean APIENTRY glTestFenceNV (GLuint); +GLAPI void APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glFinishFenceNV (GLuint); +GLAPI void APIENTRY glSetFenceNV (GLuint, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences); +typedef void (APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences); +typedef GLboolean (APIENTRYP PFNGLISFENCENVPROC) (GLuint fence); +typedef GLboolean (APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence); +typedef void (APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence); +typedef void (APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); +#endif + +#ifndef GL_NV_evaluators +#define GL_NV_evaluators 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMapControlPointsNV (GLenum, GLuint, GLenum, GLsizei, GLsizei, GLint, GLint, GLboolean, const GLvoid *); +GLAPI void APIENTRY glMapParameterivNV (GLenum, GLenum, const GLint *); +GLAPI void APIENTRY glMapParameterfvNV (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glGetMapControlPointsNV (GLenum, GLuint, GLenum, GLsizei, GLsizei, GLboolean, GLvoid *); +GLAPI void APIENTRY glGetMapParameterivNV (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGetMapParameterfvNV (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetMapAttribParameterivNV (GLenum, GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetMapAttribParameterfvNV (GLenum, GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glEvalMapsNV (GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points); +typedef void (APIENTRYP PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points); +typedef void (APIENTRYP PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode); +#endif + +#ifndef GL_NV_packed_depth_stencil +#define GL_NV_packed_depth_stencil 1 +#endif + +#ifndef GL_NV_register_combiners2 +#define GL_NV_register_combiners2 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCombinerStageParameterfvNV (GLenum, GLenum, const GLfloat *); +GLAPI void APIENTRY glGetCombinerStageParameterfvNV (GLenum, GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params); +#endif + +#ifndef GL_NV_texture_compression_vtc +#define GL_NV_texture_compression_vtc 1 +#endif + +#ifndef GL_NV_texture_rectangle +#define GL_NV_texture_rectangle 1 +#endif + +#ifndef GL_NV_texture_shader +#define GL_NV_texture_shader 1 +#endif + +#ifndef GL_NV_texture_shader2 +#define GL_NV_texture_shader2 1 +#endif + +#ifndef GL_NV_vertex_array_range2 +#define GL_NV_vertex_array_range2 1 +#endif + +#ifndef GL_NV_vertex_program +#define GL_NV_vertex_program 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLboolean APIENTRY glAreProgramsResidentNV (GLsizei, const GLuint *, GLboolean *); +GLAPI void APIENTRY glBindProgramNV (GLenum, GLuint); +GLAPI void APIENTRY glDeleteProgramsNV (GLsizei, const GLuint *); +GLAPI void APIENTRY glExecuteProgramNV (GLenum, GLuint, const GLfloat *); +GLAPI void APIENTRY glGenProgramsNV (GLsizei, GLuint *); +GLAPI void APIENTRY glGetProgramParameterdvNV (GLenum, GLuint, GLenum, GLdouble *); +GLAPI void APIENTRY glGetProgramParameterfvNV (GLenum, GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetProgramivNV (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetProgramStringNV (GLuint, GLenum, GLubyte *); +GLAPI void APIENTRY glGetTrackMatrixivNV (GLenum, GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVertexAttribdvNV (GLuint, GLenum, GLdouble *); +GLAPI void APIENTRY glGetVertexAttribfvNV (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVertexAttribivNV (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVertexAttribPointervNV (GLuint, GLenum, GLvoid* *); +GLAPI GLboolean APIENTRY glIsProgramNV (GLuint); +GLAPI void APIENTRY glLoadProgramNV (GLenum, GLuint, GLsizei, const GLubyte *); +GLAPI void APIENTRY glProgramParameter4dNV (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glProgramParameter4dvNV (GLenum, GLuint, const GLdouble *); +GLAPI void APIENTRY glProgramParameter4fNV (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glProgramParameter4fvNV (GLenum, GLuint, const GLfloat *); +GLAPI void APIENTRY glProgramParameters4dvNV (GLenum, GLuint, GLuint, const GLdouble *); +GLAPI void APIENTRY glProgramParameters4fvNV (GLenum, GLuint, GLuint, const GLfloat *); +GLAPI void APIENTRY glRequestResidentProgramsNV (GLsizei, const GLuint *); +GLAPI void APIENTRY glTrackMatrixNV (GLenum, GLuint, GLenum, GLenum); +GLAPI void APIENTRY glVertexAttribPointerNV (GLuint, GLint, GLenum, GLsizei, const GLvoid *); +GLAPI void APIENTRY glVertexAttrib1dNV (GLuint, GLdouble); +GLAPI void APIENTRY glVertexAttrib1dvNV (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib1fNV (GLuint, GLfloat); +GLAPI void APIENTRY glVertexAttrib1fvNV (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib1sNV (GLuint, GLshort); +GLAPI void APIENTRY glVertexAttrib1svNV (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib2dNV (GLuint, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib2dvNV (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib2fNV (GLuint, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib2fvNV (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib2sNV (GLuint, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib2svNV (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib3dNV (GLuint, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib3dvNV (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib3fNV (GLuint, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib3fvNV (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib3sNV (GLuint, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib3svNV (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4dNV (GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexAttrib4dvNV (GLuint, const GLdouble *); +GLAPI void APIENTRY glVertexAttrib4fNV (GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexAttrib4fvNV (GLuint, const GLfloat *); +GLAPI void APIENTRY glVertexAttrib4sNV (GLuint, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexAttrib4svNV (GLuint, const GLshort *); +GLAPI void APIENTRY glVertexAttrib4ubNV (GLuint, GLubyte, GLubyte, GLubyte, GLubyte); +GLAPI void APIENTRY glVertexAttrib4ubvNV (GLuint, const GLubyte *); +GLAPI void APIENTRY glVertexAttribs1dvNV (GLuint, GLsizei, const GLdouble *); +GLAPI void APIENTRY glVertexAttribs1fvNV (GLuint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glVertexAttribs1svNV (GLuint, GLsizei, const GLshort *); +GLAPI void APIENTRY glVertexAttribs2dvNV (GLuint, GLsizei, const GLdouble *); +GLAPI void APIENTRY glVertexAttribs2fvNV (GLuint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glVertexAttribs2svNV (GLuint, GLsizei, const GLshort *); +GLAPI void APIENTRY glVertexAttribs3dvNV (GLuint, GLsizei, const GLdouble *); +GLAPI void APIENTRY glVertexAttribs3fvNV (GLuint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glVertexAttribs3svNV (GLuint, GLsizei, const GLshort *); +GLAPI void APIENTRY glVertexAttribs4dvNV (GLuint, GLsizei, const GLdouble *); +GLAPI void APIENTRY glVertexAttribs4fvNV (GLuint, GLsizei, const GLfloat *); +GLAPI void APIENTRY glVertexAttribs4svNV (GLuint, GLsizei, const GLshort *); +GLAPI void APIENTRY glVertexAttribs4ubvNV (GLuint, GLsizei, const GLubyte *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLboolean (APIENTRYP PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences); +typedef void (APIENTRYP PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); +typedef void (APIENTRYP PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); +typedef void (APIENTRYP PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params); +typedef void (APIENTRYP PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs); +typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program); +typedef void (APIENTRYP PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMNVPROC) (GLuint id); +typedef void (APIENTRYP PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLuint count, const GLdouble *v); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLuint count, const GLfloat *v); +typedef void (APIENTRYP PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); +typedef void (APIENTRYP PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); +typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v); +#endif + +#ifndef GL_SGIX_texture_coordinate_clamp +#define GL_SGIX_texture_coordinate_clamp 1 +#endif + +#ifndef GL_SGIX_scalebias_hint +#define GL_SGIX_scalebias_hint 1 +#endif + +#ifndef GL_OML_interlace +#define GL_OML_interlace 1 +#endif + +#ifndef GL_OML_subsample +#define GL_OML_subsample 1 +#endif + +#ifndef GL_OML_resample +#define GL_OML_resample 1 +#endif + +#ifndef GL_NV_copy_depth_to_color +#define GL_NV_copy_depth_to_color 1 +#endif + +#ifndef GL_ATI_envmap_bumpmap +#define GL_ATI_envmap_bumpmap 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexBumpParameterivATI (GLenum, const GLint *); +GLAPI void APIENTRY glTexBumpParameterfvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glGetTexBumpParameterivATI (GLenum, GLint *); +GLAPI void APIENTRY glGetTexBumpParameterfvATI (GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param); +typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param); +typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param); +#endif + +#ifndef GL_ATI_fragment_shader +#define GL_ATI_fragment_shader 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLuint APIENTRY glGenFragmentShadersATI (GLuint); +GLAPI void APIENTRY glBindFragmentShaderATI (GLuint); +GLAPI void APIENTRY glDeleteFragmentShaderATI (GLuint); +GLAPI void APIENTRY glBeginFragmentShaderATI (void); +GLAPI void APIENTRY glEndFragmentShaderATI (void); +GLAPI void APIENTRY glPassTexCoordATI (GLuint, GLuint, GLenum); +GLAPI void APIENTRY glSampleMapATI (GLuint, GLuint, GLenum); +GLAPI void APIENTRY glColorFragmentOp1ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glColorFragmentOp2ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glColorFragmentOp3ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glAlphaFragmentOp1ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glAlphaFragmentOp2ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glAlphaFragmentOp3ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glSetFragmentShaderConstantATI (GLuint, const GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLuint (APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range); +typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id); +typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id); +typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC) (void); +typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC) (void); +typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle); +typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle); +typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); +typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); +typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); +typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); +typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); +typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); +typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value); +#endif + +#ifndef GL_ATI_pn_triangles +#define GL_ATI_pn_triangles 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPNTrianglesiATI (GLenum, GLint); +GLAPI void APIENTRY glPNTrianglesfATI (GLenum, GLfloat); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param); +#endif + +#ifndef GL_ATI_vertex_array_object +#define GL_ATI_vertex_array_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLuint APIENTRY glNewObjectBufferATI (GLsizei, const GLvoid *, GLenum); +GLAPI GLboolean APIENTRY glIsObjectBufferATI (GLuint); +GLAPI void APIENTRY glUpdateObjectBufferATI (GLuint, GLuint, GLsizei, const GLvoid *, GLenum); +GLAPI void APIENTRY glGetObjectBufferfvATI (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetObjectBufferivATI (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glFreeObjectBufferATI (GLuint); +GLAPI void APIENTRY glArrayObjectATI (GLenum, GLint, GLenum, GLsizei, GLuint, GLuint); +GLAPI void APIENTRY glGetArrayObjectfvATI (GLenum, GLenum, GLfloat *); +GLAPI void APIENTRY glGetArrayObjectivATI (GLenum, GLenum, GLint *); +GLAPI void APIENTRY glVariantArrayObjectATI (GLuint, GLenum, GLsizei, GLuint, GLuint); +GLAPI void APIENTRY glGetVariantArrayObjectfvATI (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVariantArrayObjectivATI (GLuint, GLenum, GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLuint (APIENTRYP PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage); +typedef GLboolean (APIENTRYP PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve); +typedef void (APIENTRYP PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); +typedef void (APIENTRYP PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); +typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params); +#endif + +#ifndef GL_EXT_vertex_shader +#define GL_EXT_vertex_shader 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBeginVertexShaderEXT (void); +GLAPI void APIENTRY glEndVertexShaderEXT (void); +GLAPI void APIENTRY glBindVertexShaderEXT (GLuint); +GLAPI GLuint APIENTRY glGenVertexShadersEXT (GLuint); +GLAPI void APIENTRY glDeleteVertexShaderEXT (GLuint); +GLAPI void APIENTRY glShaderOp1EXT (GLenum, GLuint, GLuint); +GLAPI void APIENTRY glShaderOp2EXT (GLenum, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glShaderOp3EXT (GLenum, GLuint, GLuint, GLuint, GLuint); +GLAPI void APIENTRY glSwizzleEXT (GLuint, GLuint, GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glWriteMaskEXT (GLuint, GLuint, GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glInsertComponentEXT (GLuint, GLuint, GLuint); +GLAPI void APIENTRY glExtractComponentEXT (GLuint, GLuint, GLuint); +GLAPI GLuint APIENTRY glGenSymbolsEXT (GLenum, GLenum, GLenum, GLuint); +GLAPI void APIENTRY glSetInvariantEXT (GLuint, GLenum, const GLvoid *); +GLAPI void APIENTRY glSetLocalConstantEXT (GLuint, GLenum, const GLvoid *); +GLAPI void APIENTRY glVariantbvEXT (GLuint, const GLbyte *); +GLAPI void APIENTRY glVariantsvEXT (GLuint, const GLshort *); +GLAPI void APIENTRY glVariantivEXT (GLuint, const GLint *); +GLAPI void APIENTRY glVariantfvEXT (GLuint, const GLfloat *); +GLAPI void APIENTRY glVariantdvEXT (GLuint, const GLdouble *); +GLAPI void APIENTRY glVariantubvEXT (GLuint, const GLubyte *); +GLAPI void APIENTRY glVariantusvEXT (GLuint, const GLushort *); +GLAPI void APIENTRY glVariantuivEXT (GLuint, const GLuint *); +GLAPI void APIENTRY glVariantPointerEXT (GLuint, GLenum, GLuint, const GLvoid *); +GLAPI void APIENTRY glEnableVariantClientStateEXT (GLuint); +GLAPI void APIENTRY glDisableVariantClientStateEXT (GLuint); +GLAPI GLuint APIENTRY glBindLightParameterEXT (GLenum, GLenum); +GLAPI GLuint APIENTRY glBindMaterialParameterEXT (GLenum, GLenum); +GLAPI GLuint APIENTRY glBindTexGenParameterEXT (GLenum, GLenum, GLenum); +GLAPI GLuint APIENTRY glBindTextureUnitParameterEXT (GLenum, GLenum); +GLAPI GLuint APIENTRY glBindParameterEXT (GLenum); +GLAPI GLboolean APIENTRY glIsVariantEnabledEXT (GLuint, GLenum); +GLAPI void APIENTRY glGetVariantBooleanvEXT (GLuint, GLenum, GLboolean *); +GLAPI void APIENTRY glGetVariantIntegervEXT (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetVariantFloatvEXT (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVariantPointervEXT (GLuint, GLenum, GLvoid* *); +GLAPI void APIENTRY glGetInvariantBooleanvEXT (GLuint, GLenum, GLboolean *); +GLAPI void APIENTRY glGetInvariantIntegervEXT (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetInvariantFloatvEXT (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetLocalConstantBooleanvEXT (GLuint, GLenum, GLboolean *); +GLAPI void APIENTRY glGetLocalConstantIntegervEXT (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetLocalConstantFloatvEXT (GLuint, GLenum, GLfloat *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBEGINVERTEXSHADEREXTPROC) (void); +typedef void (APIENTRYP PFNGLENDVERTEXSHADEREXTPROC) (void); +typedef void (APIENTRYP PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id); +typedef GLuint (APIENTRYP PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range); +typedef void (APIENTRYP PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id); +typedef void (APIENTRYP PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1); +typedef void (APIENTRYP PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); +typedef void (APIENTRYP PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); +typedef void (APIENTRYP PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); +typedef void (APIENTRYP PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); +typedef void (APIENTRYP PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); +typedef void (APIENTRYP PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); +typedef GLuint (APIENTRYP PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components); +typedef void (APIENTRYP PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr); +typedef void (APIENTRYP PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr); +typedef void (APIENTRYP PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr); +typedef void (APIENTRYP PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr); +typedef void (APIENTRYP PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr); +typedef void (APIENTRYP PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr); +typedef void (APIENTRYP PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr); +typedef void (APIENTRYP PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr); +typedef void (APIENTRYP PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr); +typedef void (APIENTRYP PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr); +typedef void (APIENTRYP PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const GLvoid *addr); +typedef void (APIENTRYP PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); +typedef void (APIENTRYP PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); +typedef GLuint (APIENTRYP PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value); +typedef GLuint (APIENTRYP PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value); +typedef GLuint (APIENTRYP PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value); +typedef GLuint (APIENTRYP PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value); +typedef GLuint (APIENTRYP PFNGLBINDPARAMETEREXTPROC) (GLenum value); +typedef GLboolean (APIENTRYP PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap); +typedef void (APIENTRYP PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); +typedef void (APIENTRYP PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); +typedef void (APIENTRYP PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); +typedef void (APIENTRYP PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, GLvoid* *data); +typedef void (APIENTRYP PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); +typedef void (APIENTRYP PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); +typedef void (APIENTRYP PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); +typedef void (APIENTRYP PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); +typedef void (APIENTRYP PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); +typedef void (APIENTRYP PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); +#endif + +#ifndef GL_ATI_vertex_streams +#define GL_ATI_vertex_streams 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexStream1sATI (GLenum, GLshort); +GLAPI void APIENTRY glVertexStream1svATI (GLenum, const GLshort *); +GLAPI void APIENTRY glVertexStream1iATI (GLenum, GLint); +GLAPI void APIENTRY glVertexStream1ivATI (GLenum, const GLint *); +GLAPI void APIENTRY glVertexStream1fATI (GLenum, GLfloat); +GLAPI void APIENTRY glVertexStream1fvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glVertexStream1dATI (GLenum, GLdouble); +GLAPI void APIENTRY glVertexStream1dvATI (GLenum, const GLdouble *); +GLAPI void APIENTRY glVertexStream2sATI (GLenum, GLshort, GLshort); +GLAPI void APIENTRY glVertexStream2svATI (GLenum, const GLshort *); +GLAPI void APIENTRY glVertexStream2iATI (GLenum, GLint, GLint); +GLAPI void APIENTRY glVertexStream2ivATI (GLenum, const GLint *); +GLAPI void APIENTRY glVertexStream2fATI (GLenum, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexStream2fvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glVertexStream2dATI (GLenum, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexStream2dvATI (GLenum, const GLdouble *); +GLAPI void APIENTRY glVertexStream3sATI (GLenum, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexStream3svATI (GLenum, const GLshort *); +GLAPI void APIENTRY glVertexStream3iATI (GLenum, GLint, GLint, GLint); +GLAPI void APIENTRY glVertexStream3ivATI (GLenum, const GLint *); +GLAPI void APIENTRY glVertexStream3fATI (GLenum, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexStream3fvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glVertexStream3dATI (GLenum, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexStream3dvATI (GLenum, const GLdouble *); +GLAPI void APIENTRY glVertexStream4sATI (GLenum, GLshort, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glVertexStream4svATI (GLenum, const GLshort *); +GLAPI void APIENTRY glVertexStream4iATI (GLenum, GLint, GLint, GLint, GLint); +GLAPI void APIENTRY glVertexStream4ivATI (GLenum, const GLint *); +GLAPI void APIENTRY glVertexStream4fATI (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glVertexStream4fvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glVertexStream4dATI (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glVertexStream4dvATI (GLenum, const GLdouble *); +GLAPI void APIENTRY glNormalStream3bATI (GLenum, GLbyte, GLbyte, GLbyte); +GLAPI void APIENTRY glNormalStream3bvATI (GLenum, const GLbyte *); +GLAPI void APIENTRY glNormalStream3sATI (GLenum, GLshort, GLshort, GLshort); +GLAPI void APIENTRY glNormalStream3svATI (GLenum, const GLshort *); +GLAPI void APIENTRY glNormalStream3iATI (GLenum, GLint, GLint, GLint); +GLAPI void APIENTRY glNormalStream3ivATI (GLenum, const GLint *); +GLAPI void APIENTRY glNormalStream3fATI (GLenum, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glNormalStream3fvATI (GLenum, const GLfloat *); +GLAPI void APIENTRY glNormalStream3dATI (GLenum, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glNormalStream3dvATI (GLenum, const GLdouble *); +GLAPI void APIENTRY glClientActiveVertexStreamATI (GLenum); +GLAPI void APIENTRY glVertexBlendEnviATI (GLenum, GLint); +GLAPI void APIENTRY glVertexBlendEnvfATI (GLenum, GLfloat); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords); +typedef void (APIENTRYP PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); +typedef void (APIENTRYP PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords); +typedef void (APIENTRYP PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz); +typedef void (APIENTRYP PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); +typedef void (APIENTRYP PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz); +typedef void (APIENTRYP PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); +typedef void (APIENTRYP PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); +typedef void (APIENTRYP PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); +typedef void (APIENTRYP PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); +typedef void (APIENTRYP PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); +typedef void (APIENTRYP PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream); +typedef void (APIENTRYP PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param); +#endif + +#ifndef GL_ATI_element_array +#define GL_ATI_element_array 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glElementPointerATI (GLenum, const GLvoid *); +GLAPI void APIENTRY glDrawElementArrayATI (GLenum, GLsizei); +GLAPI void APIENTRY glDrawRangeElementArrayATI (GLenum, GLuint, GLuint, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC) (GLenum type, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count); +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); +#endif + +#ifndef GL_SUN_mesh_array +#define GL_SUN_mesh_array 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawMeshArraysSUN (GLenum, GLint, GLsizei, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width); +#endif + +#ifndef GL_SUN_slice_accum +#define GL_SUN_slice_accum 1 +#endif + +#ifndef GL_NV_multisample_filter_hint +#define GL_NV_multisample_filter_hint 1 +#endif + +#ifndef GL_NV_depth_clamp +#define GL_NV_depth_clamp 1 +#endif + +#ifndef GL_NV_occlusion_query +#define GL_NV_occlusion_query 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenOcclusionQueriesNV (GLsizei, GLuint *); +GLAPI void APIENTRY glDeleteOcclusionQueriesNV (GLsizei, const GLuint *); +GLAPI GLboolean APIENTRY glIsOcclusionQueryNV (GLuint); +GLAPI void APIENTRY glBeginOcclusionQueryNV (GLuint); +GLAPI void APIENTRY glEndOcclusionQueryNV (void); +GLAPI void APIENTRY glGetOcclusionQueryivNV (GLuint, GLenum, GLint *); +GLAPI void APIENTRY glGetOcclusionQueryuivNV (GLuint, GLenum, GLuint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids); +typedef GLboolean (APIENTRYP PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id); +typedef void (APIENTRYP PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id); +typedef void (APIENTRYP PFNGLENDOCCLUSIONQUERYNVPROC) (void); +typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params); +#endif + +#ifndef GL_NV_point_sprite +#define GL_NV_point_sprite 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPointParameteriNV (GLenum, GLint); +GLAPI void APIENTRY glPointParameterivNV (GLenum, const GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params); +#endif + +#ifndef GL_NV_texture_shader3 +#define GL_NV_texture_shader3 1 +#endif + +#ifndef GL_NV_vertex_program1_1 +#define GL_NV_vertex_program1_1 1 +#endif + +#ifndef GL_EXT_shadow_funcs +#define GL_EXT_shadow_funcs 1 +#endif + +#ifndef GL_EXT_stencil_two_side +#define GL_EXT_stencil_two_side 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glActiveStencilFaceEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face); +#endif + +#ifndef GL_ATI_text_fragment_shader +#define GL_ATI_text_fragment_shader 1 +#endif + +#ifndef GL_APPLE_client_storage +#define GL_APPLE_client_storage 1 +#endif + +#ifndef GL_APPLE_element_array +#define GL_APPLE_element_array 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glElementPointerAPPLE (GLenum, const GLvoid *); +GLAPI void APIENTRY glDrawElementArrayAPPLE (GLenum, GLint, GLsizei); +GLAPI void APIENTRY glDrawRangeElementArrayAPPLE (GLenum, GLuint, GLuint, GLint, GLsizei); +GLAPI void APIENTRY glMultiDrawElementArrayAPPLE (GLenum, const GLint *, const GLsizei *, GLsizei); +GLAPI void APIENTRY glMultiDrawRangeElementArrayAPPLE (GLenum, GLuint, GLuint, const GLint *, const GLsizei *, GLsizei); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const GLvoid *pointer); +typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count); +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); +typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount); +#endif + +#ifndef GL_APPLE_fence +#define GL_APPLE_fence 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenFencesAPPLE (GLsizei, GLuint *); +GLAPI void APIENTRY glDeleteFencesAPPLE (GLsizei, const GLuint *); +GLAPI void APIENTRY glSetFenceAPPLE (GLuint); +GLAPI GLboolean APIENTRY glIsFenceAPPLE (GLuint); +GLAPI GLboolean APIENTRY glTestFenceAPPLE (GLuint); +GLAPI void APIENTRY glFinishFenceAPPLE (GLuint); +GLAPI GLboolean APIENTRY glTestObjectAPPLE (GLenum, GLuint); +GLAPI void APIENTRY glFinishObjectAPPLE (GLenum, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences); +typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences); +typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC) (GLuint fence); +typedef GLboolean (APIENTRYP PFNGLISFENCEAPPLEPROC) (GLuint fence); +typedef GLboolean (APIENTRYP PFNGLTESTFENCEAPPLEPROC) (GLuint fence); +typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC) (GLuint fence); +typedef GLboolean (APIENTRYP PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name); +typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name); +#endif + +#ifndef GL_APPLE_vertex_array_object +#define GL_APPLE_vertex_array_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindVertexArrayAPPLE (GLuint); +GLAPI void APIENTRY glDeleteVertexArraysAPPLE (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenVertexArraysAPPLE (GLsizei, const GLuint *); +GLAPI GLboolean APIENTRY glIsVertexArrayAPPLE (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array); +typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays); +typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays); +typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array); +#endif + +#ifndef GL_APPLE_vertex_array_range +#define GL_APPLE_vertex_array_range 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexArrayRangeAPPLE (GLsizei, GLvoid *); +GLAPI void APIENTRY glFlushVertexArrayRangeAPPLE (GLsizei, GLvoid *); +GLAPI void APIENTRY glVertexArrayParameteriAPPLE (GLenum, GLint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer); +typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer); +typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param); +#endif + +#ifndef GL_APPLE_ycbcr_422 +#define GL_APPLE_ycbcr_422 1 +#endif + +#ifndef GL_S3_s3tc +#define GL_S3_s3tc 1 +#endif + +#ifndef GL_ATI_draw_buffers +#define GL_ATI_draw_buffers 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawBuffersATI (GLsizei, const GLenum *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs); +#endif + +#ifndef GL_ATI_pixel_format_float +#define GL_ATI_pixel_format_float 1 +/* This is really a WGL extension, but defines some associated GL enums. + * ATI does not export "GL_ATI_pixel_format_float" in the GL_EXTENSIONS string. + */ +#endif + +#ifndef GL_ATI_texture_env_combine3 +#define GL_ATI_texture_env_combine3 1 +#endif + +#ifndef GL_ATI_texture_float +#define GL_ATI_texture_float 1 +#endif + +#ifndef GL_NV_float_buffer +#define GL_NV_float_buffer 1 +#endif + +#ifndef GL_NV_fragment_program +#define GL_NV_fragment_program 1 +/* Some NV_fragment_program entry points are shared with ARB_vertex_program. */ +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glProgramNamedParameter4fNV (GLuint, GLsizei, const GLubyte *, GLfloat, GLfloat, GLfloat, GLfloat); +GLAPI void APIENTRY glProgramNamedParameter4dNV (GLuint, GLsizei, const GLubyte *, GLdouble, GLdouble, GLdouble, GLdouble); +GLAPI void APIENTRY glProgramNamedParameter4fvNV (GLuint, GLsizei, const GLubyte *, const GLfloat *); +GLAPI void APIENTRY glProgramNamedParameter4dvNV (GLuint, GLsizei, const GLubyte *, const GLdouble *); +GLAPI void APIENTRY glGetProgramNamedParameterfvNV (GLuint, GLsizei, const GLubyte *, GLfloat *); +GLAPI void APIENTRY glGetProgramNamedParameterdvNV (GLuint, GLsizei, const GLubyte *, GLdouble *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v); +typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v); +typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params); +typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params); +#endif + +#ifndef GL_NV_half_float +#define GL_NV_half_float 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertex2hNV (GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertex2hvNV (const GLhalfNV *); +GLAPI void APIENTRY glVertex3hNV (GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertex3hvNV (const GLhalfNV *); +GLAPI void APIENTRY glVertex4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertex4hvNV (const GLhalfNV *); +GLAPI void APIENTRY glNormal3hNV (GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glNormal3hvNV (const GLhalfNV *); +GLAPI void APIENTRY glColor3hNV (GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glColor3hvNV (const GLhalfNV *); +GLAPI void APIENTRY glColor4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glColor4hvNV (const GLhalfNV *); +GLAPI void APIENTRY glTexCoord1hNV (GLhalfNV); +GLAPI void APIENTRY glTexCoord1hvNV (const GLhalfNV *); +GLAPI void APIENTRY glTexCoord2hNV (GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glTexCoord2hvNV (const GLhalfNV *); +GLAPI void APIENTRY glTexCoord3hNV (GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glTexCoord3hvNV (const GLhalfNV *); +GLAPI void APIENTRY glTexCoord4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glTexCoord4hvNV (const GLhalfNV *); +GLAPI void APIENTRY glMultiTexCoord1hNV (GLenum, GLhalfNV); +GLAPI void APIENTRY glMultiTexCoord1hvNV (GLenum, const GLhalfNV *); +GLAPI void APIENTRY glMultiTexCoord2hNV (GLenum, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glMultiTexCoord2hvNV (GLenum, const GLhalfNV *); +GLAPI void APIENTRY glMultiTexCoord3hNV (GLenum, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glMultiTexCoord3hvNV (GLenum, const GLhalfNV *); +GLAPI void APIENTRY glMultiTexCoord4hNV (GLenum, GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glMultiTexCoord4hvNV (GLenum, const GLhalfNV *); +GLAPI void APIENTRY glFogCoordhNV (GLhalfNV); +GLAPI void APIENTRY glFogCoordhvNV (const GLhalfNV *); +GLAPI void APIENTRY glSecondaryColor3hNV (GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glSecondaryColor3hvNV (const GLhalfNV *); +GLAPI void APIENTRY glVertexWeighthNV (GLhalfNV); +GLAPI void APIENTRY glVertexWeighthvNV (const GLhalfNV *); +GLAPI void APIENTRY glVertexAttrib1hNV (GLuint, GLhalfNV); +GLAPI void APIENTRY glVertexAttrib1hvNV (GLuint, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttrib2hNV (GLuint, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertexAttrib2hvNV (GLuint, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttrib3hNV (GLuint, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertexAttrib3hvNV (GLuint, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttrib4hNV (GLuint, GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); +GLAPI void APIENTRY glVertexAttrib4hvNV (GLuint, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttribs1hvNV (GLuint, GLsizei, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttribs2hvNV (GLuint, GLsizei, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttribs3hvNV (GLuint, GLsizei, const GLhalfNV *); +GLAPI void APIENTRY glVertexAttribs4hvNV (GLuint, GLsizei, const GLhalfNV *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y); +typedef void (APIENTRYP PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z); +typedef void (APIENTRYP PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); +typedef void (APIENTRYP PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); +typedef void (APIENTRYP PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); +typedef void (APIENTRYP PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); +typedef void (APIENTRYP PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLTEXCOORD1HNVPROC) (GLhalfNV s); +typedef void (APIENTRYP PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t); +typedef void (APIENTRYP PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r); +typedef void (APIENTRYP PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); +typedef void (APIENTRYP PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s); +typedef void (APIENTRYP PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t); +typedef void (APIENTRYP PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); +typedef void (APIENTRYP PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); +typedef void (APIENTRYP PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLFOGCOORDHNVPROC) (GLhalfNV fog); +typedef void (APIENTRYP PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); +typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight); +typedef void (APIENTRYP PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); +#endif + +#ifndef GL_NV_pixel_data_range +#define GL_NV_pixel_data_range 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPixelDataRangeNV (GLenum, GLsizei, GLvoid *); +GLAPI void APIENTRY glFlushPixelDataRangeNV (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, GLvoid *pointer); +typedef void (APIENTRYP PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target); +#endif + +#ifndef GL_NV_primitive_restart +#define GL_NV_primitive_restart 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPrimitiveRestartNV (void); +GLAPI void APIENTRY glPrimitiveRestartIndexNV (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLPRIMITIVERESTARTNVPROC) (void); +typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index); +#endif + +#ifndef GL_NV_texture_expand_normal +#define GL_NV_texture_expand_normal 1 +#endif + +#ifndef GL_NV_vertex_program2 +#define GL_NV_vertex_program2 1 +#endif + +#ifndef GL_ATI_map_object_buffer +#define GL_ATI_map_object_buffer 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLvoid* APIENTRY glMapObjectBufferATI (GLuint); +GLAPI void APIENTRY glUnmapObjectBufferATI (GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLvoid* (APIENTRYP PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer); +#endif + +#ifndef GL_ATI_separate_stencil +#define GL_ATI_separate_stencil 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glStencilOpSeparateATI (GLenum, GLenum, GLenum, GLenum); +GLAPI void APIENTRY glStencilFuncSeparateATI (GLenum, GLenum, GLint, GLuint); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); +typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +#endif + +#ifndef GL_ATI_vertex_attrib_array_object +#define GL_ATI_vertex_attrib_array_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexAttribArrayObjectATI (GLuint, GLint, GLenum, GLboolean, GLsizei, GLuint, GLuint); +GLAPI void APIENTRY glGetVertexAttribArrayObjectfvATI (GLuint, GLenum, GLfloat *); +GLAPI void APIENTRY glGetVertexAttribArrayObjectivATI (GLuint, GLenum, GLint *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params); +#endif + +#ifndef GL_OES_read_format +#define GL_OES_read_format 1 +#endif + +#ifndef GL_EXT_depth_bounds_test +#define GL_EXT_depth_bounds_test 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDepthBoundsEXT (GLclampd, GLclampd); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax); +#endif + +#ifndef GL_EXT_texture_mirror_clamp +#define GL_EXT_texture_mirror_clamp 1 +#endif + +#ifndef GL_EXT_blend_equation_separate +#define GL_EXT_blend_equation_separate 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationSeparateEXT (GLenum, GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha); +#endif + +#ifndef GL_MESA_pack_invert +#define GL_MESA_pack_invert 1 +#endif + +#ifndef GL_MESA_ycbcr_texture +#define GL_MESA_ycbcr_texture 1 +#endif + +#ifndef GL_EXT_pixel_buffer_object +#define GL_EXT_pixel_buffer_object 1 +#endif + +#ifndef GL_NV_fragment_program_option +#define GL_NV_fragment_program_option 1 +#endif + +#ifndef GL_NV_fragment_program2 +#define GL_NV_fragment_program2 1 +#endif + +#ifndef GL_NV_vertex_program2_option +#define GL_NV_vertex_program2_option 1 +#endif + +#ifndef GL_NV_vertex_program3 +#define GL_NV_vertex_program3 1 +#endif + +#ifndef GL_EXT_framebuffer_object +#define GL_EXT_framebuffer_object 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLboolean APIENTRY glIsRenderbufferEXT (GLuint); +GLAPI void APIENTRY glBindRenderbufferEXT (GLenum, GLuint); +GLAPI void APIENTRY glDeleteRenderbuffersEXT (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenRenderbuffersEXT (GLsizei, GLuint *); +GLAPI void APIENTRY glRenderbufferStorageEXT (GLenum, GLenum, GLsizei, GLsizei); +GLAPI void APIENTRY glGetRenderbufferParameterivEXT (GLenum, GLenum, GLint *); +GLAPI GLboolean APIENTRY glIsFramebufferEXT (GLuint); +GLAPI void APIENTRY glBindFramebufferEXT (GLenum, GLuint); +GLAPI void APIENTRY glDeleteFramebuffersEXT (GLsizei, const GLuint *); +GLAPI void APIENTRY glGenFramebuffersEXT (GLsizei, GLuint *); +GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT (GLenum); +GLAPI void APIENTRY glFramebufferTexture1DEXT (GLenum, GLenum, GLenum, GLuint, GLint); +GLAPI void APIENTRY glFramebufferTexture2DEXT (GLenum, GLenum, GLenum, GLuint, GLint); +GLAPI void APIENTRY glFramebufferTexture3DEXT (GLenum, GLenum, GLenum, GLuint, GLint, GLint); +GLAPI void APIENTRY glFramebufferRenderbufferEXT (GLenum, GLenum, GLenum, GLuint); +GLAPI void APIENTRY glGetFramebufferAttachmentParameterivEXT (GLenum, GLenum, GLenum, GLint *); +GLAPI void APIENTRY glGenerateMipmapEXT (GLenum); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer); +typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers); +typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers); +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer); +typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer); +typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers); +typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers); +typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC) (GLenum target); +#endif + +#ifndef GL_GREMEDY_string_marker +#define GL_GREMEDY_string_marker 1 +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glStringMarkerGREMEDY (GLsizei, const GLvoid *); +#endif /* GL_GLEXT_PROTOTYPES */ +typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const GLvoid *string); +#endif + + +#ifdef __cplusplus +} +#endif + +#endif +#endif /* NO_SDL_GLEXT */ +/*@}*/ diff --git a/lib/sdl/msvc/include/SDL/SDL_platform.h b/lib/sdl/msvc/include/SDL/SDL_platform.h new file mode 100644 index 0000000000000000000000000000000000000000..11d8673667abbfbd272e79b4afde5e583fdc113b --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_platform.h @@ -0,0 +1,110 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_platform.h + * Try to get a standard set of platform defines + */ + +#ifndef _SDL_platform_h +#define _SDL_platform_h + +#if defined(_AIX) +#undef __AIX__ +#define __AIX__ 1 +#endif +#if defined(__BEOS__) +#undef __BEOS__ +#define __BEOS__ 1 +#endif +#if defined(__HAIKU__) +#undef __HAIKU__ +#define __HAIKU__ 1 +#endif +#if defined(bsdi) || defined(__bsdi) || defined(__bsdi__) +#undef __BSDI__ +#define __BSDI__ 1 +#endif +#if defined(_arch_dreamcast) +#undef __DREAMCAST__ +#define __DREAMCAST__ 1 +#endif +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) +#undef __FREEBSD__ +#define __FREEBSD__ 1 +#endif +#if defined(__HAIKU__) +#undef __HAIKU__ +#define __HAIKU__ 1 +#endif +#if defined(hpux) || defined(__hpux) || defined(__hpux__) +#undef __HPUX__ +#define __HPUX__ 1 +#endif +#if defined(sgi) || defined(__sgi) || defined(__sgi__) || defined(_SGI_SOURCE) +#undef __IRIX__ +#define __IRIX__ 1 +#endif +#if defined(linux) || defined(__linux) || defined(__linux__) +#undef __LINUX__ +#define __LINUX__ 1 +#endif +#if defined(__APPLE__) +#undef __MACOSX__ +#define __MACOSX__ 1 +#elif defined(macintosh) +#undef __MACOS__ +#define __MACOS__ 1 +#endif +#if defined(__NetBSD__) +#undef __NETBSD__ +#define __NETBSD__ 1 +#endif +#if defined(__OpenBSD__) +#undef __OPENBSD__ +#define __OPENBSD__ 1 +#endif +#if defined(__OS2__) +#undef __OS2__ +#define __OS2__ 1 +#endif +#if defined(osf) || defined(__osf) || defined(__osf__) || defined(_OSF_SOURCE) +#undef __OSF__ +#define __OSF__ 1 +#endif +#if defined(__QNXNTO__) +#undef __QNXNTO__ +#define __QNXNTO__ 1 +#endif +#if defined(riscos) || defined(__riscos) || defined(__riscos__) +#undef __RISCOS__ +#define __RISCOS__ 1 +#endif +#if defined(__SVR4) +#undef __SOLARIS__ +#define __SOLARIS__ 1 +#endif +#if defined(WIN32) || defined(_WIN32) +#undef __WIN32__ +#define __WIN32__ 1 +#endif + +#endif /* _SDL_platform_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_quit.h b/lib/sdl/msvc/include/SDL/SDL_quit.h new file mode 100644 index 0000000000000000000000000000000000000000..6d82e7e06100dd741b0933719c0706f7c38de0b5 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_quit.h @@ -0,0 +1,55 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_quit.h + * Include file for SDL quit event handling + */ + +#ifndef _SDL_quit_h +#define _SDL_quit_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" + +/** @file SDL_quit.h + * An SDL_QUITEVENT is generated when the user tries to close the application + * window. If it is ignored or filtered out, the window will remain open. + * If it is not ignored or filtered, it is queued normally and the window + * is allowed to close. When the window is closed, screen updates will + * complete, but have no effect. + * + * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) + * and SIGTERM (system termination request), if handlers do not already + * exist, that generate SDL_QUITEVENT events as well. There is no way + * to determine the cause of an SDL_QUITEVENT, but setting a signal + * handler in your application will override the default generation of + * quit events for that signal. + */ + +/** @file SDL_quit.h + * There are no functions directly affecting the quit event + */ + +#define SDL_QuitRequested() \ + (SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUITMASK)) + +#endif /* _SDL_quit_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_rwops.h b/lib/sdl/msvc/include/SDL/SDL_rwops.h new file mode 100644 index 0000000000000000000000000000000000000000..a450119f1ccb471491ee4ac438e0f966bde13671 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_rwops.h @@ -0,0 +1,155 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_rwops.h + * This file provides a general interface for SDL to read and write + * data sources. It can easily be extended to files, memory, etc. + */ + +#ifndef _SDL_rwops_h +#define _SDL_rwops_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** This is the read/write operation structure -- very basic */ + +typedef struct SDL_RWops { + /** Seek to 'offset' relative to whence, one of stdio's whence values: + * SEEK_SET, SEEK_CUR, SEEK_END + * Returns the final offset in the data source. + */ + int (SDLCALL *seek)(struct SDL_RWops *context, int offset, int whence); + + /** Read up to 'maxnum' objects each of size 'size' from the data + * source to the area pointed at by 'ptr'. + * Returns the number of objects read, or -1 if the read failed. + */ + int (SDLCALL *read)(struct SDL_RWops *context, void *ptr, int size, int maxnum); + + /** Write exactly 'num' objects each of size 'objsize' from the area + * pointed at by 'ptr' to data source. + * Returns 'num', or -1 if the write failed. + */ + int (SDLCALL *write)(struct SDL_RWops *context, const void *ptr, int size, int num); + + /** Close and free an allocated SDL_FSops structure */ + int (SDLCALL *close)(struct SDL_RWops *context); + + Uint32 type; + union { +#if defined(__WIN32__) && !defined(__SYMBIAN32__) + struct { + int append; + void *h; + struct { + void *data; + int size; + int left; + } buffer; + } win32io; +#endif +#ifdef HAVE_STDIO_H + struct { + int autoclose; + FILE *fp; + } stdio; +#endif + struct { + Uint8 *base; + Uint8 *here; + Uint8 *stop; + } mem; + struct { + void *data1; + } unknown; + } hidden; + +} SDL_RWops; + + +/** @name Functions to create SDL_RWops structures from various data sources */ +/*@{*/ + +extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFile(const char *file, const char *mode); + +#ifdef HAVE_STDIO_H +extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFP(FILE *fp, int autoclose); +#endif + +extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromMem(void *mem, int size); +extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromConstMem(const void *mem, int size); + +extern DECLSPEC SDL_RWops * SDLCALL SDL_AllocRW(void); +extern DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops *area); + +/*@}*/ + +/** @name Seek Reference Points */ +/*@{*/ +#define RW_SEEK_SET 0 /**< Seek from the beginning of data */ +#define RW_SEEK_CUR 1 /**< Seek relative to current read point */ +#define RW_SEEK_END 2 /**< Seek relative to the end of data */ +/*@}*/ + +/** @name Macros to easily read and write from an SDL_RWops structure */ +/*@{*/ +#define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence) +#define SDL_RWtell(ctx) (ctx)->seek(ctx, 0, RW_SEEK_CUR) +#define SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n) +#define SDL_RWwrite(ctx, ptr, size, n) (ctx)->write(ctx, ptr, size, n) +#define SDL_RWclose(ctx) (ctx)->close(ctx) +/*@}*/ + +/** @name Read an item of the specified endianness and return in native format */ +/*@{*/ +extern DECLSPEC Uint16 SDLCALL SDL_ReadLE16(SDL_RWops *src); +extern DECLSPEC Uint16 SDLCALL SDL_ReadBE16(SDL_RWops *src); +extern DECLSPEC Uint32 SDLCALL SDL_ReadLE32(SDL_RWops *src); +extern DECLSPEC Uint32 SDLCALL SDL_ReadBE32(SDL_RWops *src); +extern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops *src); +extern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops *src); +/*@}*/ + +/** @name Write an item of native format to the specified endianness */ +/*@{*/ +extern DECLSPEC int SDLCALL SDL_WriteLE16(SDL_RWops *dst, Uint16 value); +extern DECLSPEC int SDLCALL SDL_WriteBE16(SDL_RWops *dst, Uint16 value); +extern DECLSPEC int SDLCALL SDL_WriteLE32(SDL_RWops *dst, Uint32 value); +extern DECLSPEC int SDLCALL SDL_WriteBE32(SDL_RWops *dst, Uint32 value); +extern DECLSPEC int SDLCALL SDL_WriteLE64(SDL_RWops *dst, Uint64 value); +extern DECLSPEC int SDLCALL SDL_WriteBE64(SDL_RWops *dst, Uint64 value); +/*@}*/ + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_rwops_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_stdinc.h b/lib/sdl/msvc/include/SDL/SDL_stdinc.h new file mode 100644 index 0000000000000000000000000000000000000000..e1f85fb75ab2f7b313789973a80dc9a7607d98c7 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_stdinc.h @@ -0,0 +1,620 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_stdinc.h + * This is a general header that includes C language support + */ + +#ifndef _SDL_stdinc_h +#define _SDL_stdinc_h + +#include "SDL_config.h" + + +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_STDIO_H +#include +#endif +#if defined(STDC_HEADERS) +# include +# include +# include +#else +# if defined(HAVE_STDLIB_H) +# include +# elif defined(HAVE_MALLOC_H) +# include +# endif +# if defined(HAVE_STDDEF_H) +# include +# endif +# if defined(HAVE_STDARG_H) +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H) +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#if defined(HAVE_INTTYPES_H) +# include +#elif defined(HAVE_STDINT_H) +# include +#endif +#ifdef HAVE_CTYPE_H +# include +#endif +#if defined(HAVE_ICONV) && defined(HAVE_ICONV_H) +# include +#endif + +/** The number of elements in an array */ +#define SDL_arraysize(array) (sizeof(array)/sizeof(array[0])) +#define SDL_TABLESIZE(table) SDL_arraysize(table) + +/* Use proper C++ casts when compiled as C++ to be compatible with the option + -Wold-style-cast of GCC (and -Werror=old-style-cast in GCC 4.2 and above. */ +#ifdef __cplusplus +#define SDL_reinterpret_cast(type, expression) reinterpret_cast(expression) +#define SDL_static_cast(type, expression) static_cast(expression) +#else +#define SDL_reinterpret_cast(type, expression) ((type)(expression)) +#define SDL_static_cast(type, expression) ((type)(expression)) +#endif + +/** @name Basic data types */ +/*@{*/ +typedef enum { + SDL_FALSE = 0, + SDL_TRUE = 1 +} SDL_bool; + +typedef int8_t Sint8; +typedef uint8_t Uint8; +typedef int16_t Sint16; +typedef uint16_t Uint16; +typedef int32_t Sint32; +typedef uint32_t Uint32; + +#ifdef SDL_HAS_64BIT_TYPE +typedef int64_t Sint64; +#ifndef SYMBIAN32_GCCE +typedef uint64_t Uint64; +#endif +#else +/* This is really just a hack to prevent the compiler from complaining */ +typedef struct { + Uint32 hi; + Uint32 lo; +} Uint64, Sint64; +#endif + +/*@}*/ + +/** @name Make sure the types really have the right sizes */ +/*@{*/ +#define SDL_COMPILE_TIME_ASSERT(name, x) \ + typedef int SDL_dummy_ ## name[(x) * 2 - 1] + +SDL_COMPILE_TIME_ASSERT(uint8, sizeof(Uint8) == 1); +SDL_COMPILE_TIME_ASSERT(sint8, sizeof(Sint8) == 1); +SDL_COMPILE_TIME_ASSERT(uint16, sizeof(Uint16) == 2); +SDL_COMPILE_TIME_ASSERT(sint16, sizeof(Sint16) == 2); +SDL_COMPILE_TIME_ASSERT(uint32, sizeof(Uint32) == 4); +SDL_COMPILE_TIME_ASSERT(sint32, sizeof(Sint32) == 4); +SDL_COMPILE_TIME_ASSERT(uint64, sizeof(Uint64) == 8); +SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8); +/*@}*/ + +/** @name Enum Size Check + * Check to make sure enums are the size of ints, for structure packing. + * For both Watcom C/C++ and Borland C/C++ the compiler option that makes + * enums having the size of an int must be enabled. + * This is "-b" for Borland C/C++ and "-ei" for Watcom C/C++ (v11). + */ +/* Enable enums always int in CodeWarrior (for MPW use "-enum int") */ +#ifdef __MWERKS__ +#pragma enumsalwaysint on +#endif + +typedef enum { + DUMMY_ENUM_VALUE +} SDL_DUMMY_ENUM; + +#ifndef __NDS__ +SDL_COMPILE_TIME_ASSERT(enum, sizeof(SDL_DUMMY_ENUM) == sizeof(int)); +#endif +/*@}*/ + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef HAVE_MALLOC +#define SDL_malloc malloc +#else +extern DECLSPEC void * SDLCALL SDL_malloc(size_t size); +#endif + +#ifdef HAVE_CALLOC +#define SDL_calloc calloc +#else +extern DECLSPEC void * SDLCALL SDL_calloc(size_t nmemb, size_t size); +#endif + +#ifdef HAVE_REALLOC +#define SDL_realloc realloc +#else +extern DECLSPEC void * SDLCALL SDL_realloc(void *mem, size_t size); +#endif + +#ifdef HAVE_FREE +#define SDL_free free +#else +extern DECLSPEC void SDLCALL SDL_free(void *mem); +#endif + +#if defined(HAVE_ALLOCA) && !defined(alloca) +# if defined(HAVE_ALLOCA_H) +# include +# elif defined(__GNUC__) +# define alloca __builtin_alloca +# elif defined(_MSC_VER) +# include +# define alloca _alloca +# elif defined(__WATCOMC__) +# include +# elif defined(__BORLANDC__) +# include +# elif defined(__DMC__) +# include +# elif defined(__AIX__) + #pragma alloca +# elif defined(__MRC__) + void *alloca (unsigned); +# else + char *alloca (); +# endif +#endif +#ifdef HAVE_ALLOCA +#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count)) +#define SDL_stack_free(data) +#else +#define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*(count)) +#define SDL_stack_free(data) SDL_free(data) +#endif + +#ifdef HAVE_GETENV +#define SDL_getenv getenv +#else +extern DECLSPEC char * SDLCALL SDL_getenv(const char *name); +#endif + +#ifdef HAVE_PUTENV +#define SDL_putenv putenv +#else +extern DECLSPEC int SDLCALL SDL_putenv(const char *variable); +#endif + +#ifdef HAVE_QSORT +#define SDL_qsort qsort +#else +extern DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size, + int (*compare)(const void *, const void *)); +#endif + +#ifdef HAVE_ABS +#define SDL_abs abs +#else +#define SDL_abs(X) ((X) < 0 ? -(X) : (X)) +#endif + +#define SDL_min(x, y) (((x) < (y)) ? (x) : (y)) +#define SDL_max(x, y) (((x) > (y)) ? (x) : (y)) + +#ifdef HAVE_CTYPE_H +#define SDL_isdigit(X) isdigit(X) +#define SDL_isspace(X) isspace(X) +#define SDL_toupper(X) toupper(X) +#define SDL_tolower(X) tolower(X) +#else +#define SDL_isdigit(X) (((X) >= '0') && ((X) <= '9')) +#define SDL_isspace(X) (((X) == ' ') || ((X) == '\t') || ((X) == '\r') || ((X) == '\n')) +#define SDL_toupper(X) (((X) >= 'a') && ((X) <= 'z') ? ('A'+((X)-'a')) : (X)) +#define SDL_tolower(X) (((X) >= 'A') && ((X) <= 'Z') ? ('a'+((X)-'A')) : (X)) +#endif + +#ifdef HAVE_MEMSET +#define SDL_memset memset +#else +extern DECLSPEC void * SDLCALL SDL_memset(void *dst, int c, size_t len); +#endif + +#if defined(__GNUC__) && defined(i386) +#define SDL_memset4(dst, val, len) \ +do { \ + int u0, u1, u2; \ + __asm__ __volatile__ ( \ + "cld\n\t" \ + "rep ; stosl\n\t" \ + : "=&D" (u0), "=&a" (u1), "=&c" (u2) \ + : "0" (dst), "1" (val), "2" (SDL_static_cast(Uint32, len)) \ + : "memory" ); \ +} while(0) +#endif +#ifndef SDL_memset4 +#define SDL_memset4(dst, val, len) \ +do { \ + unsigned _count = (len); \ + unsigned _n = (_count + 3) / 4; \ + Uint32 *_p = SDL_static_cast(Uint32 *, dst); \ + Uint32 _val = (val); \ + if (len == 0) break; \ + switch (_count % 4) { \ + case 0: do { *_p++ = _val; \ + case 3: *_p++ = _val; \ + case 2: *_p++ = _val; \ + case 1: *_p++ = _val; \ + } while ( --_n ); \ + } \ +} while(0) +#endif + +/* We can count on memcpy existing on Mac OS X and being well-tuned. */ +#if defined(__MACH__) && defined(__APPLE__) +#define SDL_memcpy(dst, src, len) memcpy(dst, src, len) +#elif defined(__GNUC__) && defined(i386) +#define SDL_memcpy(dst, src, len) \ +do { \ + int u0, u1, u2; \ + __asm__ __volatile__ ( \ + "cld\n\t" \ + "rep ; movsl\n\t" \ + "testb $2,%b4\n\t" \ + "je 1f\n\t" \ + "movsw\n" \ + "1:\ttestb $1,%b4\n\t" \ + "je 2f\n\t" \ + "movsb\n" \ + "2:" \ + : "=&c" (u0), "=&D" (u1), "=&S" (u2) \ + : "0" (SDL_static_cast(unsigned, len)/4), "q" (len), "1" (dst),"2" (src) \ + : "memory" ); \ +} while(0) +#endif +#ifndef SDL_memcpy +#ifdef HAVE_MEMCPY +#define SDL_memcpy memcpy +#elif defined(HAVE_BCOPY) +#define SDL_memcpy(d, s, n) bcopy((s), (d), (n)) +#else +extern DECLSPEC void * SDLCALL SDL_memcpy(void *dst, const void *src, size_t len); +#endif +#endif + +/* We can count on memcpy existing on Mac OS X and being well-tuned. */ +#if defined(__MACH__) && defined(__APPLE__) +#define SDL_memcpy4(dst, src, len) memcpy(dst, src, (len)*4) +#elif defined(__GNUC__) && defined(i386) +#define SDL_memcpy4(dst, src, len) \ +do { \ + int ecx, edi, esi; \ + __asm__ __volatile__ ( \ + "cld\n\t" \ + "rep ; movsl" \ + : "=&c" (ecx), "=&D" (edi), "=&S" (esi) \ + : "0" (SDL_static_cast(unsigned, len)), "1" (dst), "2" (src) \ + : "memory" ); \ +} while(0) +#endif +#ifndef SDL_memcpy4 +#define SDL_memcpy4(dst, src, len) SDL_memcpy(dst, src, (len) << 2) +#endif + +#if defined(__GNUC__) && defined(i386) +#define SDL_revcpy(dst, src, len) \ +do { \ + int u0, u1, u2; \ + char *dstp = SDL_static_cast(char *, dst); \ + char *srcp = SDL_static_cast(char *, src); \ + int n = (len); \ + if ( n >= 4 ) { \ + __asm__ __volatile__ ( \ + "std\n\t" \ + "rep ; movsl\n\t" \ + "cld\n\t" \ + : "=&c" (u0), "=&D" (u1), "=&S" (u2) \ + : "0" (n >> 2), \ + "1" (dstp+(n-4)), "2" (srcp+(n-4)) \ + : "memory" ); \ + } \ + switch (n & 3) { \ + case 3: dstp[2] = srcp[2]; \ + case 2: dstp[1] = srcp[1]; \ + case 1: dstp[0] = srcp[0]; \ + break; \ + default: \ + break; \ + } \ +} while(0) +#endif +#ifndef SDL_revcpy +extern DECLSPEC void * SDLCALL SDL_revcpy(void *dst, const void *src, size_t len); +#endif + +#ifdef HAVE_MEMMOVE +#define SDL_memmove memmove +#elif defined(HAVE_BCOPY) +#define SDL_memmove(d, s, n) bcopy((s), (d), (n)) +#else +#define SDL_memmove(dst, src, len) \ +do { \ + if ( dst < src ) { \ + SDL_memcpy(dst, src, len); \ + } else { \ + SDL_revcpy(dst, src, len); \ + } \ +} while(0) +#endif + +#ifdef HAVE_MEMCMP +#define SDL_memcmp memcmp +#else +extern DECLSPEC int SDLCALL SDL_memcmp(const void *s1, const void *s2, size_t len); +#endif + +#ifdef HAVE_STRLEN +#define SDL_strlen strlen +#else +extern DECLSPEC size_t SDLCALL SDL_strlen(const char *string); +#endif + +#ifdef HAVE_STRLCPY +#define SDL_strlcpy strlcpy +#else +extern DECLSPEC size_t SDLCALL SDL_strlcpy(char *dst, const char *src, size_t maxlen); +#endif + +#ifdef HAVE_STRLCAT +#define SDL_strlcat strlcat +#else +extern DECLSPEC size_t SDLCALL SDL_strlcat(char *dst, const char *src, size_t maxlen); +#endif + +#ifdef HAVE_STRDUP +#define SDL_strdup strdup +#else +extern DECLSPEC char * SDLCALL SDL_strdup(const char *string); +#endif + +#ifdef HAVE__STRREV +#define SDL_strrev _strrev +#else +extern DECLSPEC char * SDLCALL SDL_strrev(char *string); +#endif + +#ifdef HAVE__STRUPR +#define SDL_strupr _strupr +#else +extern DECLSPEC char * SDLCALL SDL_strupr(char *string); +#endif + +#ifdef HAVE__STRLWR +#define SDL_strlwr _strlwr +#else +extern DECLSPEC char * SDLCALL SDL_strlwr(char *string); +#endif + +#ifdef HAVE_STRCHR +#define SDL_strchr strchr +#elif defined(HAVE_INDEX) +#define SDL_strchr index +#else +extern DECLSPEC char * SDLCALL SDL_strchr(const char *string, int c); +#endif + +#ifdef HAVE_STRRCHR +#define SDL_strrchr strrchr +#elif defined(HAVE_RINDEX) +#define SDL_strrchr rindex +#else +extern DECLSPEC char * SDLCALL SDL_strrchr(const char *string, int c); +#endif + +#ifdef HAVE_STRSTR +#define SDL_strstr strstr +#else +extern DECLSPEC char * SDLCALL SDL_strstr(const char *haystack, const char *needle); +#endif + +#ifdef HAVE_ITOA +#define SDL_itoa itoa +#else +#define SDL_itoa(value, string, radix) SDL_ltoa((long)value, string, radix) +#endif + +#ifdef HAVE__LTOA +#define SDL_ltoa _ltoa +#else +extern DECLSPEC char * SDLCALL SDL_ltoa(long value, char *string, int radix); +#endif + +#ifdef HAVE__UITOA +#define SDL_uitoa _uitoa +#else +#define SDL_uitoa(value, string, radix) SDL_ultoa((long)value, string, radix) +#endif + +#ifdef HAVE__ULTOA +#define SDL_ultoa _ultoa +#else +extern DECLSPEC char * SDLCALL SDL_ultoa(unsigned long value, char *string, int radix); +#endif + +#ifdef HAVE_STRTOL +#define SDL_strtol strtol +#else +extern DECLSPEC long SDLCALL SDL_strtol(const char *string, char **endp, int base); +#endif + +#ifdef HAVE_STRTOUL +#define SDL_strtoul strtoul +#else +extern DECLSPEC unsigned long SDLCALL SDL_strtoul(const char *string, char **endp, int base); +#endif + +#ifdef SDL_HAS_64BIT_TYPE + +#ifdef HAVE__I64TOA +#define SDL_lltoa _i64toa +#else +extern DECLSPEC char* SDLCALL SDL_lltoa(Sint64 value, char *string, int radix); +#endif + +#ifdef HAVE__UI64TOA +#define SDL_ulltoa _ui64toa +#else +extern DECLSPEC char* SDLCALL SDL_ulltoa(Uint64 value, char *string, int radix); +#endif + +#ifdef HAVE_STRTOLL +#define SDL_strtoll strtoll +#else +extern DECLSPEC Sint64 SDLCALL SDL_strtoll(const char *string, char **endp, int base); +#endif + +#ifdef HAVE_STRTOULL +#define SDL_strtoull strtoull +#else +extern DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *string, char **endp, int base); +#endif + +#endif /* SDL_HAS_64BIT_TYPE */ + +#ifdef HAVE_STRTOD +#define SDL_strtod strtod +#else +extern DECLSPEC double SDLCALL SDL_strtod(const char *string, char **endp); +#endif + +#ifdef HAVE_ATOI +#define SDL_atoi atoi +#else +#define SDL_atoi(X) SDL_strtol(X, NULL, 0) +#endif + +#ifdef HAVE_ATOF +#define SDL_atof atof +#else +#define SDL_atof(X) SDL_strtod(X, NULL) +#endif + +#ifdef HAVE_STRCMP +#define SDL_strcmp strcmp +#else +extern DECLSPEC int SDLCALL SDL_strcmp(const char *str1, const char *str2); +#endif + +#ifdef HAVE_STRNCMP +#define SDL_strncmp strncmp +#else +extern DECLSPEC int SDLCALL SDL_strncmp(const char *str1, const char *str2, size_t maxlen); +#endif + +#ifdef HAVE_STRCASECMP +#define SDL_strcasecmp strcasecmp +#elif defined(HAVE__STRICMP) +#define SDL_strcasecmp _stricmp +#else +extern DECLSPEC int SDLCALL SDL_strcasecmp(const char *str1, const char *str2); +#endif + +#ifdef HAVE_STRNCASECMP +#define SDL_strncasecmp strncasecmp +#elif defined(HAVE__STRNICMP) +#define SDL_strncasecmp _strnicmp +#else +extern DECLSPEC int SDLCALL SDL_strncasecmp(const char *str1, const char *str2, size_t maxlen); +#endif + +#ifdef HAVE_SSCANF +#define SDL_sscanf sscanf +#else +extern DECLSPEC int SDLCALL SDL_sscanf(const char *text, const char *fmt, ...); +#endif + +#ifdef HAVE_SNPRINTF +#define SDL_snprintf snprintf +#else +extern DECLSPEC int SDLCALL SDL_snprintf(char *text, size_t maxlen, const char *fmt, ...); +#endif + +#ifdef HAVE_VSNPRINTF +#define SDL_vsnprintf vsnprintf +#else +extern DECLSPEC int SDLCALL SDL_vsnprintf(char *text, size_t maxlen, const char *fmt, va_list ap); +#endif + +/** @name SDL_ICONV Error Codes + * The SDL implementation of iconv() returns these error codes + */ +/*@{*/ +#define SDL_ICONV_ERROR (size_t)-1 +#define SDL_ICONV_E2BIG (size_t)-2 +#define SDL_ICONV_EILSEQ (size_t)-3 +#define SDL_ICONV_EINVAL (size_t)-4 +/*@}*/ + +#if defined(HAVE_ICONV) && defined(HAVE_ICONV_H) +#define SDL_iconv_t iconv_t +#define SDL_iconv_open iconv_open +#define SDL_iconv_close iconv_close +#else +typedef struct _SDL_iconv_t *SDL_iconv_t; +extern DECLSPEC SDL_iconv_t SDLCALL SDL_iconv_open(const char *tocode, const char *fromcode); +extern DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd); +#endif +extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); +/** This function converts a string between encodings in one pass, returning a + * string that must be freed with SDL_free() or NULL on error. + */ +extern DECLSPEC char * SDLCALL SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft); +#define SDL_iconv_utf8_locale(S) SDL_iconv_string("", "UTF-8", S, SDL_strlen(S)+1) +#define SDL_iconv_utf8_ucs2(S) (Uint16 *)SDL_iconv_string("UCS-2", "UTF-8", S, SDL_strlen(S)+1) +#define SDL_iconv_utf8_ucs4(S) (Uint32 *)SDL_iconv_string("UCS-4", "UTF-8", S, SDL_strlen(S)+1) + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_stdinc_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_syswm.h b/lib/sdl/msvc/include/SDL/SDL_syswm.h new file mode 100644 index 0000000000000000000000000000000000000000..716dddcb73c8736a17527a9fe20b607d02e4815e --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_syswm.h @@ -0,0 +1,225 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_syswm.h + * Include file for SDL custom system window manager hooks + */ + +#ifndef _SDL_syswm_h +#define _SDL_syswm_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" +#include "SDL_version.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** @file SDL_syswm.h + * Your application has access to a special type of event 'SDL_SYSWMEVENT', + * which contains window-manager specific information and arrives whenever + * an unhandled window event occurs. This event is ignored by default, but + * you can enable it with SDL_EventState() + */ +#ifdef SDL_PROTOTYPES_ONLY +struct SDL_SysWMinfo; +typedef struct SDL_SysWMinfo SDL_SysWMinfo; +#else + +/* This is the structure for custom window manager events */ +#if defined(SDL_VIDEO_DRIVER_X11) +#if defined(__APPLE__) && defined(__MACH__) +/* conflicts with Quickdraw.h */ +#define Cursor X11Cursor +#endif + +#include +#include + +#if defined(__APPLE__) && defined(__MACH__) +/* matches the re-define above */ +#undef Cursor +#endif + +/** These are the various supported subsystems under UNIX */ +typedef enum { + SDL_SYSWM_X11 +} SDL_SYSWM_TYPE; + +/** The UNIX custom event structure */ +struct SDL_SysWMmsg { + SDL_version version; + SDL_SYSWM_TYPE subsystem; + union { + XEvent xevent; + } event; +}; + +/** The UNIX custom window manager information structure. + * When this structure is returned, it holds information about which + * low level system it is using, and will be one of SDL_SYSWM_TYPE. + */ +typedef struct SDL_SysWMinfo { + SDL_version version; + SDL_SYSWM_TYPE subsystem; + union { + struct { + Display *display; /**< The X11 display */ + Window window; /**< The X11 display window */ + /** These locking functions should be called around + * any X11 functions using the display variable, + * but not the gfxdisplay variable. + * They lock the event thread, so should not be + * called around event functions or from event filters. + */ + /*@{*/ + void (*lock_func)(void); + void (*unlock_func)(void); + /*@}*/ + + /** @name Introduced in SDL 1.0.2 */ + /*@{*/ + Window fswindow; /**< The X11 fullscreen window */ + Window wmwindow; /**< The X11 managed input window */ + /*@}*/ + + /** @name Introduced in SDL 1.2.12 */ + /*@{*/ + Display *gfxdisplay; /**< The X11 display to which rendering is done */ + /*@}*/ + } x11; + } info; +} SDL_SysWMinfo; + +#elif defined(SDL_VIDEO_DRIVER_NANOX) +#include + +/** The generic custom event structure */ +struct SDL_SysWMmsg { + SDL_version version; + int data; +}; + +/** The windows custom window manager information structure */ +typedef struct SDL_SysWMinfo { + SDL_version version ; + GR_WINDOW_ID window ; /* The display window */ +} SDL_SysWMinfo; + +#elif defined(SDL_VIDEO_DRIVER_WINDIB) || defined(SDL_VIDEO_DRIVER_DDRAW) || defined(SDL_VIDEO_DRIVER_GAPI) +#define WIN32_LEAN_AND_MEAN +#include + +/** The windows custom event structure */ +struct SDL_SysWMmsg { + SDL_version version; + HWND hwnd; /**< The window for the message */ + UINT msg; /**< The type of message */ + WPARAM wParam; /**< WORD message parameter */ + LPARAM lParam; /**< LONG message parameter */ +}; + +/** The windows custom window manager information structure */ +typedef struct SDL_SysWMinfo { + SDL_version version; + HWND window; /**< The Win32 display window */ + HGLRC hglrc; /**< The OpenGL context, if any */ +} SDL_SysWMinfo; + +#elif defined(SDL_VIDEO_DRIVER_RISCOS) + +/** RISC OS custom event structure */ +struct SDL_SysWMmsg { + SDL_version version; + int eventCode; /**< The window for the message */ + int pollBlock[64]; +}; + +/** The RISC OS custom window manager information structure */ +typedef struct SDL_SysWMinfo { + SDL_version version; + int wimpVersion; /**< Wimp version running under */ + int taskHandle; /**< The RISC OS task handle */ + int window; /**< The RISC OS display window */ +} SDL_SysWMinfo; + +#elif defined(SDL_VIDEO_DRIVER_PHOTON) +#include +#include + +/** The QNX custom event structure */ +struct SDL_SysWMmsg { + SDL_version version; + int data; +}; + +/** The QNX custom window manager information structure */ +typedef struct SDL_SysWMinfo { + SDL_version version; + int data; +} SDL_SysWMinfo; + +#else + +/** The generic custom event structure */ +struct SDL_SysWMmsg { + SDL_version version; + int data; +}; + +/** The generic custom window manager information structure */ +typedef struct SDL_SysWMinfo { + SDL_version version; + int data; +} SDL_SysWMinfo; + +#endif /* video driver type */ + +#endif /* SDL_PROTOTYPES_ONLY */ + +/* Function prototypes */ +/** + * This function gives you custom hooks into the window manager information. + * It fills the structure pointed to by 'info' with custom information and + * returns 1 if the function is implemented. If it's not implemented, or + * the version member of the 'info' structure is invalid, it returns 0. + * + * You typically use this function like this: + * @code + * SDL_SysWMInfo info; + * SDL_VERSION(&info.version); + * if ( SDL_GetWMInfo(&info) ) { ... } + * @endcode + */ +extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo *info); + + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_syswm_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_thread.h b/lib/sdl/msvc/include/SDL/SDL_thread.h new file mode 100644 index 0000000000000000000000000000000000000000..1ca9a1bc42a623d594fd2eb2fe2e2387e28f3415 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_thread.h @@ -0,0 +1,120 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_thread_h +#define _SDL_thread_h + +/** @file SDL_thread.h + * Header for the SDL thread management routines + * + * @note These are independent of the other SDL routines. + */ + +#include "SDL_stdinc.h" +#include "SDL_error.h" + +/* Thread synchronization primitives */ +#include "SDL_mutex.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** The SDL thread structure, defined in SDL_thread.c */ +struct SDL_Thread; +typedef struct SDL_Thread SDL_Thread; + +/** Create a thread */ +#if ((defined(__WIN32__) && !defined(HAVE_LIBC)) || defined(__OS2__)) && !defined(__SYMBIAN32__) +/** + * We compile SDL into a DLL on OS/2. This means, that it's the DLL which + * creates a new thread for the calling process with the SDL_CreateThread() + * API. There is a problem with this, that only the RTL of the SDL.DLL will + * be initialized for those threads, and not the RTL of the calling application! + * To solve this, we make a little hack here. + * We'll always use the caller's _beginthread() and _endthread() APIs to + * start a new thread. This way, if it's the SDL.DLL which uses this API, + * then the RTL of SDL.DLL will be used to create the new thread, and if it's + * the application, then the RTL of the application will be used. + * So, in short: + * Always use the _beginthread() and _endthread() of the calling runtime library! + */ +#define SDL_PASSED_BEGINTHREAD_ENDTHREAD +#ifndef _WIN32_WCE +#include /* This has _beginthread() and _endthread() defined! */ +#endif + +#ifdef __OS2__ +typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); +typedef void (*pfnSDL_CurrentEndThread)(void); +#elif __GNUC__ +typedef unsigned long (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, + unsigned (__stdcall *func)(void *), void *arg, + unsigned, unsigned *threadID); +typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); +#else +typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, + unsigned (__stdcall *func)(void *), void *arg, + unsigned, unsigned *threadID); +typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); +#endif + +extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread); + +#ifdef __OS2__ +#define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthread, _endthread) +#elif defined(_WIN32_WCE) +#define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, NULL, NULL) +#else +#define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthreadex, _endthreadex) +#endif +#else +extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data); +#endif + +/** Get the 32-bit thread identifier for the current thread */ +extern DECLSPEC Uint32 SDLCALL SDL_ThreadID(void); + +/** Get the 32-bit thread identifier for the specified thread, + * equivalent to SDL_ThreadID() if the specified thread is NULL. + */ +extern DECLSPEC Uint32 SDLCALL SDL_GetThreadID(SDL_Thread *thread); + +/** Wait for a thread to finish. + * The return code for the thread function is placed in the area + * pointed to by 'status', if 'status' is not NULL. + */ +extern DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread *thread, int *status); + +/** Forcefully kill a thread without worrying about its state */ +extern DECLSPEC void SDLCALL SDL_KillThread(SDL_Thread *thread); + + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_thread_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_timer.h b/lib/sdl/msvc/include/SDL/SDL_timer.h new file mode 100644 index 0000000000000000000000000000000000000000..d7cd0246012c52a4061a051cfcb9ca1315532ec9 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_timer.h @@ -0,0 +1,125 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +#ifndef _SDL_timer_h +#define _SDL_timer_h + +/** @file SDL_timer.h + * Header for the SDL time management routines + */ + +#include "SDL_stdinc.h" +#include "SDL_error.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** This is the OS scheduler timeslice, in milliseconds */ +#define SDL_TIMESLICE 10 + +/** This is the maximum resolution of the SDL timer on all platforms */ +#define TIMER_RESOLUTION 10 /**< Experimentally determined */ + +/** + * Get the number of milliseconds since the SDL library initialization. + * Note that this value wraps if the program runs for more than ~49 days. + */ +extern DECLSPEC Uint32 SDLCALL SDL_GetTicks(void); + +/** Wait a specified number of milliseconds before returning */ +extern DECLSPEC void SDLCALL SDL_Delay(Uint32 ms); + +/** Function prototype for the timer callback function */ +typedef Uint32 (SDLCALL *SDL_TimerCallback)(Uint32 interval); + +/** + * Set a callback to run after the specified number of milliseconds has + * elapsed. The callback function is passed the current timer interval + * and returns the next timer interval. If the returned value is the + * same as the one passed in, the periodic alarm continues, otherwise a + * new alarm is scheduled. If the callback returns 0, the periodic alarm + * is cancelled. + * + * To cancel a currently running timer, call SDL_SetTimer(0, NULL); + * + * The timer callback function may run in a different thread than your + * main code, and so shouldn't call any functions from within itself. + * + * The maximum resolution of this timer is 10 ms, which means that if + * you request a 16 ms timer, your callback will run approximately 20 ms + * later on an unloaded system. If you wanted to set a flag signaling + * a frame update at 30 frames per second (every 33 ms), you might set a + * timer for 30 ms: + * @code SDL_SetTimer((33/10)*10, flag_update); @endcode + * + * If you use this function, you need to pass SDL_INIT_TIMER to SDL_Init(). + * + * Under UNIX, you should not use raise or use SIGALRM and this function + * in the same program, as it is implemented using setitimer(). You also + * should not use this function in multi-threaded applications as signals + * to multi-threaded apps have undefined behavior in some implementations. + * + * This function returns 0 if successful, or -1 if there was an error. + */ +extern DECLSPEC int SDLCALL SDL_SetTimer(Uint32 interval, SDL_TimerCallback callback); + +/** @name New timer API + * New timer API, supports multiple timers + * Written by Stephane Peter + */ +/*@{*/ + +/** + * Function prototype for the new timer callback function. + * The callback function is passed the current timer interval and returns + * the next timer interval. If the returned value is the same as the one + * passed in, the periodic alarm continues, otherwise a new alarm is + * scheduled. If the callback returns 0, the periodic alarm is cancelled. + */ +typedef Uint32 (SDLCALL *SDL_NewTimerCallback)(Uint32 interval, void *param); + +/** Definition of the timer ID type */ +typedef struct _SDL_TimerID *SDL_TimerID; + +/** Add a new timer to the pool of timers already running. + * Returns a timer ID, or NULL when an error occurs. + */ +extern DECLSPEC SDL_TimerID SDLCALL SDL_AddTimer(Uint32 interval, SDL_NewTimerCallback callback, void *param); + +/** + * Remove one of the multiple timers knowing its ID. + * Returns a boolean value indicating success. + */ +extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer(SDL_TimerID t); + +/*@}*/ + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_timer_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_types.h b/lib/sdl/msvc/include/SDL/SDL_types.h new file mode 100644 index 0000000000000000000000000000000000000000..cfa35236a450cace18d5ca2af7f145fdd0d20e9f --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_types.h @@ -0,0 +1,28 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_types.h + * @deprecated Use SDL_stdinc.h instead. + */ + +/* DEPRECATED */ +#include "SDL_stdinc.h" diff --git a/lib/sdl/msvc/include/SDL/SDL_version.h b/lib/sdl/msvc/include/SDL/SDL_version.h new file mode 100644 index 0000000000000000000000000000000000000000..fa02c3f6da17b89720b8ae564ef74da49037822a --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_version.h @@ -0,0 +1,91 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_version.h + * This header defines the current SDL version + */ + +#ifndef _SDL_version_h +#define _SDL_version_h + +#include "SDL_stdinc.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** @name Version Number + * Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL + */ +/*@{*/ +#define SDL_MAJOR_VERSION 1 +#define SDL_MINOR_VERSION 2 +#define SDL_PATCHLEVEL 14 +/*@}*/ + +typedef struct SDL_version { + Uint8 major; + Uint8 minor; + Uint8 patch; +} SDL_version; + +/** + * This macro can be used to fill a version structure with the compile-time + * version of the SDL library. + */ +#define SDL_VERSION(X) \ +{ \ + (X)->major = SDL_MAJOR_VERSION; \ + (X)->minor = SDL_MINOR_VERSION; \ + (X)->patch = SDL_PATCHLEVEL; \ +} + +/** This macro turns the version numbers into a numeric value: + * (1,2,3) -> (1203) + * This assumes that there will never be more than 100 patchlevels + */ +#define SDL_VERSIONNUM(X, Y, Z) \ + ((X)*1000 + (Y)*100 + (Z)) + +/** This is the version number macro for the current SDL version */ +#define SDL_COMPILEDVERSION \ + SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL) + +/** This macro will evaluate to true if compiled with SDL at least X.Y.Z */ +#define SDL_VERSION_ATLEAST(X, Y, Z) \ + (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z)) + +/** This function gets the version of the dynamically linked SDL library. + * it should NOT be used to fill a version structure, instead you should + * use the SDL_Version() macro. + */ +extern DECLSPEC const SDL_version * SDLCALL SDL_Linked_Version(void); + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_version_h */ diff --git a/lib/sdl/msvc/include/SDL/SDL_video.h b/lib/sdl/msvc/include/SDL/SDL_video.h new file mode 100644 index 0000000000000000000000000000000000000000..8f7f305203d4aca78cefebceb1bfe11c68dc5511 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/SDL_video.h @@ -0,0 +1,951 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** @file SDL_video.h + * Header file for access to the SDL raw framebuffer window + */ + +#ifndef _SDL_video_h +#define _SDL_video_h + +#include "SDL_stdinc.h" +#include "SDL_error.h" +#include "SDL_rwops.h" + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/** @name Transparency definitions + * These define alpha as the opacity of a surface + */ +/*@{*/ +#define SDL_ALPHA_OPAQUE 255 +#define SDL_ALPHA_TRANSPARENT 0 +/*@}*/ + +/** @name Useful data types */ +/*@{*/ +typedef struct SDL_Rect { + Sint16 x, y; + Uint16 w, h; +} SDL_Rect; + +typedef struct SDL_Color { + Uint8 r; + Uint8 g; + Uint8 b; + Uint8 unused; +} SDL_Color; +#define SDL_Colour SDL_Color + +typedef struct SDL_Palette { + int ncolors; + SDL_Color *colors; +} SDL_Palette; +/*@}*/ + +/** Everything in the pixel format structure is read-only */ +typedef struct SDL_PixelFormat { + SDL_Palette *palette; + Uint8 BitsPerPixel; + Uint8 BytesPerPixel; + Uint8 Rloss; + Uint8 Gloss; + Uint8 Bloss; + Uint8 Aloss; + Uint8 Rshift; + Uint8 Gshift; + Uint8 Bshift; + Uint8 Ashift; + Uint32 Rmask; + Uint32 Gmask; + Uint32 Bmask; + Uint32 Amask; + + /** RGB color key information */ + Uint32 colorkey; + /** Alpha value information (per-surface alpha) */ + Uint8 alpha; +} SDL_PixelFormat; + +/** This structure should be treated as read-only, except for 'pixels', + * which, if not NULL, contains the raw pixel data for the surface. + */ +typedef struct SDL_Surface { + Uint32 flags; /**< Read-only */ + SDL_PixelFormat *format; /**< Read-only */ + int w, h; /**< Read-only */ + Uint16 pitch; /**< Read-only */ + void *pixels; /**< Read-write */ + int offset; /**< Private */ + + /** Hardware-specific surface info */ + struct private_hwdata *hwdata; + + /** clipping information */ + SDL_Rect clip_rect; /**< Read-only */ + Uint32 unused1; /**< for binary compatibility */ + + /** Allow recursive locks */ + Uint32 locked; /**< Private */ + + /** info for fast blit mapping to other surfaces */ + struct SDL_BlitMap *map; /**< Private */ + + /** format version, bumped at every change to invalidate blit maps */ + unsigned int format_version; /**< Private */ + + /** Reference count -- used when freeing surface */ + int refcount; /**< Read-mostly */ +} SDL_Surface; + +/** @name SDL_Surface Flags + * These are the currently supported flags for the SDL_surface + */ +/*@{*/ + +/** Available for SDL_CreateRGBSurface() or SDL_SetVideoMode() */ +/*@{*/ +#define SDL_SWSURFACE 0x00000000 /**< Surface is in system memory */ +#define SDL_HWSURFACE 0x00000001 /**< Surface is in video memory */ +#define SDL_ASYNCBLIT 0x00000004 /**< Use asynchronous blits if possible */ +/*@}*/ + +/** Available for SDL_SetVideoMode() */ +/*@{*/ +#define SDL_ANYFORMAT 0x10000000 /**< Allow any video depth/pixel-format */ +#define SDL_HWPALETTE 0x20000000 /**< Surface has exclusive palette */ +#define SDL_DOUBLEBUF 0x40000000 /**< Set up double-buffered video mode */ +#define SDL_FULLSCREEN 0x80000000 /**< Surface is a full screen display */ +#define SDL_OPENGL 0x00000002 /**< Create an OpenGL rendering context */ +#define SDL_OPENGLBLIT 0x0000000A /**< Create an OpenGL rendering context and use it for blitting */ +#define SDL_RESIZABLE 0x00000010 /**< This video mode may be resized */ +#define SDL_NOFRAME 0x00000020 /**< No window caption or edge frame */ +/*@}*/ + +/** Used internally (read-only) */ +/*@{*/ +#define SDL_HWACCEL 0x00000100 /**< Blit uses hardware acceleration */ +#define SDL_SRCCOLORKEY 0x00001000 /**< Blit uses a source color key */ +#define SDL_RLEACCELOK 0x00002000 /**< Private flag */ +#define SDL_RLEACCEL 0x00004000 /**< Surface is RLE encoded */ +#define SDL_SRCALPHA 0x00010000 /**< Blit uses source alpha blending */ +#define SDL_PREALLOC 0x01000000 /**< Surface uses preallocated memory */ +/*@}*/ + +/*@}*/ + +/** Evaluates to true if the surface needs to be locked before access */ +#define SDL_MUSTLOCK(surface) \ + (surface->offset || \ + ((surface->flags & (SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_RLEACCEL)) != 0)) + +/** typedef for private surface blitting functions */ +typedef int (*SDL_blit)(struct SDL_Surface *src, SDL_Rect *srcrect, + struct SDL_Surface *dst, SDL_Rect *dstrect); + + +/** Useful for determining the video hardware capabilities */ +typedef struct SDL_VideoInfo { + Uint32 hw_available :1; /**< Flag: Can you create hardware surfaces? */ + Uint32 wm_available :1; /**< Flag: Can you talk to a window manager? */ + Uint32 UnusedBits1 :6; + Uint32 UnusedBits2 :1; + Uint32 blit_hw :1; /**< Flag: Accelerated blits HW --> HW */ + Uint32 blit_hw_CC :1; /**< Flag: Accelerated blits with Colorkey */ + Uint32 blit_hw_A :1; /**< Flag: Accelerated blits with Alpha */ + Uint32 blit_sw :1; /**< Flag: Accelerated blits SW --> HW */ + Uint32 blit_sw_CC :1; /**< Flag: Accelerated blits with Colorkey */ + Uint32 blit_sw_A :1; /**< Flag: Accelerated blits with Alpha */ + Uint32 blit_fill :1; /**< Flag: Accelerated color fill */ + Uint32 UnusedBits3 :16; + Uint32 video_mem; /**< The total amount of video memory (in K) */ + SDL_PixelFormat *vfmt; /**< Value: The format of the video surface */ + int current_w; /**< Value: The current video mode width */ + int current_h; /**< Value: The current video mode height */ +} SDL_VideoInfo; + + +/** @name Overlay Formats + * The most common video overlay formats. + * For an explanation of these pixel formats, see: + * http://www.webartz.com/fourcc/indexyuv.htm + * + * For information on the relationship between color spaces, see: + * http://www.neuro.sfc.keio.ac.jp/~aly/polygon/info/color-space-faq.html + */ +/*@{*/ +#define SDL_YV12_OVERLAY 0x32315659 /**< Planar mode: Y + V + U (3 planes) */ +#define SDL_IYUV_OVERLAY 0x56555949 /**< Planar mode: Y + U + V (3 planes) */ +#define SDL_YUY2_OVERLAY 0x32595559 /**< Packed mode: Y0+U0+Y1+V0 (1 plane) */ +#define SDL_UYVY_OVERLAY 0x59565955 /**< Packed mode: U0+Y0+V0+Y1 (1 plane) */ +#define SDL_YVYU_OVERLAY 0x55595659 /**< Packed mode: Y0+V0+Y1+U0 (1 plane) */ +/*@}*/ + +/** The YUV hardware video overlay */ +typedef struct SDL_Overlay { + Uint32 format; /**< Read-only */ + int w, h; /**< Read-only */ + int planes; /**< Read-only */ + Uint16 *pitches; /**< Read-only */ + Uint8 **pixels; /**< Read-write */ + + /** @name Hardware-specific surface info */ + /*@{*/ + struct private_yuvhwfuncs *hwfuncs; + struct private_yuvhwdata *hwdata; + /*@{*/ + + /** @name Special flags */ + /*@{*/ + Uint32 hw_overlay :1; /**< Flag: This overlay hardware accelerated? */ + Uint32 UnusedBits :31; + /*@}*/ +} SDL_Overlay; + + +/** Public enumeration for setting the OpenGL window attributes. */ +typedef enum { + SDL_GL_RED_SIZE, + SDL_GL_GREEN_SIZE, + SDL_GL_BLUE_SIZE, + SDL_GL_ALPHA_SIZE, + SDL_GL_BUFFER_SIZE, + SDL_GL_DOUBLEBUFFER, + SDL_GL_DEPTH_SIZE, + SDL_GL_STENCIL_SIZE, + SDL_GL_ACCUM_RED_SIZE, + SDL_GL_ACCUM_GREEN_SIZE, + SDL_GL_ACCUM_BLUE_SIZE, + SDL_GL_ACCUM_ALPHA_SIZE, + SDL_GL_STEREO, + SDL_GL_MULTISAMPLEBUFFERS, + SDL_GL_MULTISAMPLESAMPLES, + SDL_GL_ACCELERATED_VISUAL, + SDL_GL_SWAP_CONTROL +} SDL_GLattr; + +/** @name flags for SDL_SetPalette() */ +/*@{*/ +#define SDL_LOGPAL 0x01 +#define SDL_PHYSPAL 0x02 +/*@}*/ + +/* Function prototypes */ + +/** + * @name Video Init and Quit + * These functions are used internally, and should not be used unless you + * have a specific need to specify the video driver you want to use. + * You should normally use SDL_Init() or SDL_InitSubSystem(). + */ +/*@{*/ +/** + * Initializes the video subsystem. Sets up a connection + * to the window manager, etc, and determines the current video mode and + * pixel format, but does not initialize a window or graphics mode. + * Note that event handling is activated by this routine. + * + * If you use both sound and video in your application, you need to call + * SDL_Init() before opening the sound device, otherwise under Win32 DirectX, + * you won't be able to set full-screen display modes. + */ +extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name, Uint32 flags); +extern DECLSPEC void SDLCALL SDL_VideoQuit(void); +/*@}*/ + +/** + * This function fills the given character buffer with the name of the + * video driver, and returns a pointer to it if the video driver has + * been initialized. It returns NULL if no driver has been initialized. + */ +extern DECLSPEC char * SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen); + +/** + * This function returns a pointer to the current display surface. + * If SDL is doing format conversion on the display surface, this + * function returns the publicly visible surface, not the real video + * surface. + */ +extern DECLSPEC SDL_Surface * SDLCALL SDL_GetVideoSurface(void); + +/** + * This function returns a read-only pointer to information about the + * video hardware. If this is called before SDL_SetVideoMode(), the 'vfmt' + * member of the returned structure will contain the pixel format of the + * "best" video mode. + */ +extern DECLSPEC const SDL_VideoInfo * SDLCALL SDL_GetVideoInfo(void); + +/** + * Check to see if a particular video mode is supported. + * It returns 0 if the requested mode is not supported under any bit depth, + * or returns the bits-per-pixel of the closest available mode with the + * given width and height. If this bits-per-pixel is different from the + * one used when setting the video mode, SDL_SetVideoMode() will succeed, + * but will emulate the requested bits-per-pixel with a shadow surface. + * + * The arguments to SDL_VideoModeOK() are the same ones you would pass to + * SDL_SetVideoMode() + */ +extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, int height, int bpp, Uint32 flags); + +/** + * Return a pointer to an array of available screen dimensions for the + * given format and video flags, sorted largest to smallest. Returns + * NULL if there are no dimensions available for a particular format, + * or (SDL_Rect **)-1 if any dimension is okay for the given format. + * + * If 'format' is NULL, the mode list will be for the format given + * by SDL_GetVideoInfo()->vfmt + */ +extern DECLSPEC SDL_Rect ** SDLCALL SDL_ListModes(SDL_PixelFormat *format, Uint32 flags); + +/** + * Set up a video mode with the specified width, height and bits-per-pixel. + * + * If 'bpp' is 0, it is treated as the current display bits per pixel. + * + * If SDL_ANYFORMAT is set in 'flags', the SDL library will try to set the + * requested bits-per-pixel, but will return whatever video pixel format is + * available. The default is to emulate the requested pixel format if it + * is not natively available. + * + * If SDL_HWSURFACE is set in 'flags', the video surface will be placed in + * video memory, if possible, and you may have to call SDL_LockSurface() + * in order to access the raw framebuffer. Otherwise, the video surface + * will be created in system memory. + * + * If SDL_ASYNCBLIT is set in 'flags', SDL will try to perform rectangle + * updates asynchronously, but you must always lock before accessing pixels. + * SDL will wait for updates to complete before returning from the lock. + * + * If SDL_HWPALETTE is set in 'flags', the SDL library will guarantee + * that the colors set by SDL_SetColors() will be the colors you get. + * Otherwise, in 8-bit mode, SDL_SetColors() may not be able to set all + * of the colors exactly the way they are requested, and you should look + * at the video surface structure to determine the actual palette. + * If SDL cannot guarantee that the colors you request can be set, + * i.e. if the colormap is shared, then the video surface may be created + * under emulation in system memory, overriding the SDL_HWSURFACE flag. + * + * If SDL_FULLSCREEN is set in 'flags', the SDL library will try to set + * a fullscreen video mode. The default is to create a windowed mode + * if the current graphics system has a window manager. + * If the SDL library is able to set a fullscreen video mode, this flag + * will be set in the surface that is returned. + * + * If SDL_DOUBLEBUF is set in 'flags', the SDL library will try to set up + * two surfaces in video memory and swap between them when you call + * SDL_Flip(). This is usually slower than the normal single-buffering + * scheme, but prevents "tearing" artifacts caused by modifying video + * memory while the monitor is refreshing. It should only be used by + * applications that redraw the entire screen on every update. + * + * If SDL_RESIZABLE is set in 'flags', the SDL library will allow the + * window manager, if any, to resize the window at runtime. When this + * occurs, SDL will send a SDL_VIDEORESIZE event to you application, + * and you must respond to the event by re-calling SDL_SetVideoMode() + * with the requested size (or another size that suits the application). + * + * If SDL_NOFRAME is set in 'flags', the SDL library will create a window + * without any title bar or frame decoration. Fullscreen video modes have + * this flag set automatically. + * + * This function returns the video framebuffer surface, or NULL if it fails. + * + * If you rely on functionality provided by certain video flags, check the + * flags of the returned surface to make sure that functionality is available. + * SDL will fall back to reduced functionality if the exact flags you wanted + * are not available. + */ +extern DECLSPEC SDL_Surface * SDLCALL SDL_SetVideoMode + (int width, int height, int bpp, Uint32 flags); + +/** @name SDL_Update Functions + * These functions should not be called while 'screen' is locked. + */ +/*@{*/ +/** + * Makes sure the given list of rectangles is updated on the given screen. + */ +extern DECLSPEC void SDLCALL SDL_UpdateRects + (SDL_Surface *screen, int numrects, SDL_Rect *rects); +/** + * If 'x', 'y', 'w' and 'h' are all 0, SDL_UpdateRect will update the entire + * screen. + */ +extern DECLSPEC void SDLCALL SDL_UpdateRect + (SDL_Surface *screen, Sint32 x, Sint32 y, Uint32 w, Uint32 h); +/*@}*/ + +/** + * On hardware that supports double-buffering, this function sets up a flip + * and returns. The hardware will wait for vertical retrace, and then swap + * video buffers before the next video surface blit or lock will return. + * On hardware that doesn not support double-buffering, this is equivalent + * to calling SDL_UpdateRect(screen, 0, 0, 0, 0); + * The SDL_DOUBLEBUF flag must have been passed to SDL_SetVideoMode() when + * setting the video mode for this function to perform hardware flipping. + * This function returns 0 if successful, or -1 if there was an error. + */ +extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface *screen); + +/** + * Set the gamma correction for each of the color channels. + * The gamma values range (approximately) between 0.1 and 10.0 + * + * If this function isn't supported directly by the hardware, it will + * be emulated using gamma ramps, if available. If successful, this + * function returns 0, otherwise it returns -1. + */ +extern DECLSPEC int SDLCALL SDL_SetGamma(float red, float green, float blue); + +/** + * Set the gamma translation table for the red, green, and blue channels + * of the video hardware. Each table is an array of 256 16-bit quantities, + * representing a mapping between the input and output for that channel. + * The input is the index into the array, and the output is the 16-bit + * gamma value at that index, scaled to the output color precision. + * + * You may pass NULL for any of the channels to leave it unchanged. + * If the call succeeds, it will return 0. If the display driver or + * hardware does not support gamma translation, or otherwise fails, + * this function will return -1. + */ +extern DECLSPEC int SDLCALL SDL_SetGammaRamp(const Uint16 *red, const Uint16 *green, const Uint16 *blue); + +/** + * Retrieve the current values of the gamma translation tables. + * + * You must pass in valid pointers to arrays of 256 16-bit quantities. + * Any of the pointers may be NULL to ignore that channel. + * If the call succeeds, it will return 0. If the display driver or + * hardware does not support gamma translation, or otherwise fails, + * this function will return -1. + */ +extern DECLSPEC int SDLCALL SDL_GetGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue); + +/** + * Sets a portion of the colormap for the given 8-bit surface. If 'surface' + * is not a palettized surface, this function does nothing, returning 0. + * If all of the colors were set as passed to SDL_SetColors(), it will + * return 1. If not all the color entries were set exactly as given, + * it will return 0, and you should look at the surface palette to + * determine the actual color palette. + * + * When 'surface' is the surface associated with the current display, the + * display colormap will be updated with the requested colors. If + * SDL_HWPALETTE was set in SDL_SetVideoMode() flags, SDL_SetColors() + * will always return 1, and the palette is guaranteed to be set the way + * you desire, even if the window colormap has to be warped or run under + * emulation. + */ +extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface *surface, + SDL_Color *colors, int firstcolor, int ncolors); + +/** + * Sets a portion of the colormap for a given 8-bit surface. + * 'flags' is one or both of: + * SDL_LOGPAL -- set logical palette, which controls how blits are mapped + * to/from the surface, + * SDL_PHYSPAL -- set physical palette, which controls how pixels look on + * the screen + * Only screens have physical palettes. Separate change of physical/logical + * palettes is only possible if the screen has SDL_HWPALETTE set. + * + * The return value is 1 if all colours could be set as requested, and 0 + * otherwise. + * + * SDL_SetColors() is equivalent to calling this function with + * flags = (SDL_LOGPAL|SDL_PHYSPAL). + */ +extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface *surface, int flags, + SDL_Color *colors, int firstcolor, + int ncolors); + +/** + * Maps an RGB triple to an opaque pixel value for a given pixel format + */ +extern DECLSPEC Uint32 SDLCALL SDL_MapRGB +(const SDL_PixelFormat * const format, + const Uint8 r, const Uint8 g, const Uint8 b); + +/** + * Maps an RGBA quadruple to a pixel value for a given pixel format + */ +extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA +(const SDL_PixelFormat * const format, + const Uint8 r, const Uint8 g, const Uint8 b, const Uint8 a); + +/** + * Maps a pixel value into the RGB components for a given pixel format + */ +extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, + const SDL_PixelFormat * const fmt, + Uint8 *r, Uint8 *g, Uint8 *b); + +/** + * Maps a pixel value into the RGBA components for a given pixel format + */ +extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel, + const SDL_PixelFormat * const fmt, + Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a); + +/** @sa SDL_CreateRGBSurface */ +#define SDL_AllocSurface SDL_CreateRGBSurface +/** + * Allocate and free an RGB surface (must be called after SDL_SetVideoMode) + * If the depth is 4 or 8 bits, an empty palette is allocated for the surface. + * If the depth is greater than 8 bits, the pixel format is set using the + * flags '[RGB]mask'. + * If the function runs out of memory, it will return NULL. + * + * The 'flags' tell what kind of surface to create. + * SDL_SWSURFACE means that the surface should be created in system memory. + * SDL_HWSURFACE means that the surface should be created in video memory, + * with the same format as the display surface. This is useful for surfaces + * that will not change much, to take advantage of hardware acceleration + * when being blitted to the display surface. + * SDL_ASYNCBLIT means that SDL will try to perform asynchronous blits with + * this surface, but you must always lock it before accessing the pixels. + * SDL will wait for current blits to finish before returning from the lock. + * SDL_SRCCOLORKEY indicates that the surface will be used for colorkey blits. + * If the hardware supports acceleration of colorkey blits between + * two surfaces in video memory, SDL will try to place the surface in + * video memory. If this isn't possible or if there is no hardware + * acceleration available, the surface will be placed in system memory. + * SDL_SRCALPHA means that the surface will be used for alpha blits and + * if the hardware supports hardware acceleration of alpha blits between + * two surfaces in video memory, to place the surface in video memory + * if possible, otherwise it will be placed in system memory. + * If the surface is created in video memory, blits will be _much_ faster, + * but the surface format must be identical to the video surface format, + * and the only way to access the pixels member of the surface is to use + * the SDL_LockSurface() and SDL_UnlockSurface() calls. + * If the requested surface actually resides in video memory, SDL_HWSURFACE + * will be set in the flags member of the returned surface. If for some + * reason the surface could not be placed in video memory, it will not have + * the SDL_HWSURFACE flag set, and will be created in system memory instead. + */ +extern DECLSPEC SDL_Surface * SDLCALL SDL_CreateRGBSurface + (Uint32 flags, int width, int height, int depth, + Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask); +/** @sa SDL_CreateRGBSurface */ +extern DECLSPEC SDL_Surface * SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels, + int width, int height, int depth, int pitch, + Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask); +extern DECLSPEC void SDLCALL SDL_FreeSurface(SDL_Surface *surface); + +/** + * SDL_LockSurface() sets up a surface for directly accessing the pixels. + * Between calls to SDL_LockSurface()/SDL_UnlockSurface(), you can write + * to and read from 'surface->pixels', using the pixel format stored in + * 'surface->format'. Once you are done accessing the surface, you should + * use SDL_UnlockSurface() to release it. + * + * Not all surfaces require locking. If SDL_MUSTLOCK(surface) evaluates + * to 0, then you can read and write to the surface at any time, and the + * pixel format of the surface will not change. In particular, if the + * SDL_HWSURFACE flag is not given when calling SDL_SetVideoMode(), you + * will not need to lock the display surface before accessing it. + * + * No operating system or library calls should be made between lock/unlock + * pairs, as critical system locks may be held during this time. + * + * SDL_LockSurface() returns 0, or -1 if the surface couldn't be locked. + */ +extern DECLSPEC int SDLCALL SDL_LockSurface(SDL_Surface *surface); +extern DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface *surface); + +/** + * Load a surface from a seekable SDL data source (memory or file.) + * If 'freesrc' is non-zero, the source will be closed after being read. + * Returns the new surface, or NULL if there was an error. + * The new surface should be freed with SDL_FreeSurface(). + */ +extern DECLSPEC SDL_Surface * SDLCALL SDL_LoadBMP_RW(SDL_RWops *src, int freesrc); + +/** Convenience macro -- load a surface from a file */ +#define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1) + +/** + * Save a surface to a seekable SDL data source (memory or file.) + * If 'freedst' is non-zero, the source will be closed after being written. + * Returns 0 if successful or -1 if there was an error. + */ +extern DECLSPEC int SDLCALL SDL_SaveBMP_RW + (SDL_Surface *surface, SDL_RWops *dst, int freedst); + +/** Convenience macro -- save a surface to a file */ +#define SDL_SaveBMP(surface, file) \ + SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1) + +/** + * Sets the color key (transparent pixel) in a blittable surface. + * If 'flag' is SDL_SRCCOLORKEY (optionally OR'd with SDL_RLEACCEL), + * 'key' will be the transparent pixel in the source image of a blit. + * SDL_RLEACCEL requests RLE acceleration for the surface if present, + * and removes RLE acceleration if absent. + * If 'flag' is 0, this function clears any current color key. + * This function returns 0, or -1 if there was an error. + */ +extern DECLSPEC int SDLCALL SDL_SetColorKey + (SDL_Surface *surface, Uint32 flag, Uint32 key); + +/** + * This function sets the alpha value for the entire surface, as opposed to + * using the alpha component of each pixel. This value measures the range + * of transparency of the surface, 0 being completely transparent to 255 + * being completely opaque. An 'alpha' value of 255 causes blits to be + * opaque, the source pixels copied to the destination (the default). Note + * that per-surface alpha can be combined with colorkey transparency. + * + * If 'flag' is 0, alpha blending is disabled for the surface. + * If 'flag' is SDL_SRCALPHA, alpha blending is enabled for the surface. + * OR:ing the flag with SDL_RLEACCEL requests RLE acceleration for the + * surface; if SDL_RLEACCEL is not specified, the RLE accel will be removed. + * + * The 'alpha' parameter is ignored for surfaces that have an alpha channel. + */ +extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha); + +/** + * Sets the clipping rectangle for the destination surface in a blit. + * + * If the clip rectangle is NULL, clipping will be disabled. + * If the clip rectangle doesn't intersect the surface, the function will + * return SDL_FALSE and blits will be completely clipped. Otherwise the + * function returns SDL_TRUE and blits to the surface will be clipped to + * the intersection of the surface area and the clipping rectangle. + * + * Note that blits are automatically clipped to the edges of the source + * and destination surfaces. + */ +extern DECLSPEC SDL_bool SDLCALL SDL_SetClipRect(SDL_Surface *surface, const SDL_Rect *rect); + +/** + * Gets the clipping rectangle for the destination surface in a blit. + * 'rect' must be a pointer to a valid rectangle which will be filled + * with the correct values. + */ +extern DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect); + +/** + * Creates a new surface of the specified format, and then copies and maps + * the given surface to it so the blit of the converted surface will be as + * fast as possible. If this function fails, it returns NULL. + * + * The 'flags' parameter is passed to SDL_CreateRGBSurface() and has those + * semantics. You can also pass SDL_RLEACCEL in the flags parameter and + * SDL will try to RLE accelerate colorkey and alpha blits in the resulting + * surface. + * + * This function is used internally by SDL_DisplayFormat(). + */ +extern DECLSPEC SDL_Surface * SDLCALL SDL_ConvertSurface + (SDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags); + +/** + * This performs a fast blit from the source surface to the destination + * surface. It assumes that the source and destination rectangles are + * the same size. If either 'srcrect' or 'dstrect' are NULL, the entire + * surface (src or dst) is copied. The final blit rectangles are saved + * in 'srcrect' and 'dstrect' after all clipping is performed. + * If the blit is successful, it returns 0, otherwise it returns -1. + * + * The blit function should not be called on a locked surface. + * + * The blit semantics for surfaces with and without alpha and colorkey + * are defined as follows: + * + * RGBA->RGB: + * SDL_SRCALPHA set: + * alpha-blend (using alpha-channel). + * SDL_SRCCOLORKEY ignored. + * SDL_SRCALPHA not set: + * copy RGB. + * if SDL_SRCCOLORKEY set, only copy the pixels matching the + * RGB values of the source colour key, ignoring alpha in the + * comparison. + * + * RGB->RGBA: + * SDL_SRCALPHA set: + * alpha-blend (using the source per-surface alpha value); + * set destination alpha to opaque. + * SDL_SRCALPHA not set: + * copy RGB, set destination alpha to source per-surface alpha value. + * both: + * if SDL_SRCCOLORKEY set, only copy the pixels matching the + * source colour key. + * + * RGBA->RGBA: + * SDL_SRCALPHA set: + * alpha-blend (using the source alpha channel) the RGB values; + * leave destination alpha untouched. [Note: is this correct?] + * SDL_SRCCOLORKEY ignored. + * SDL_SRCALPHA not set: + * copy all of RGBA to the destination. + * if SDL_SRCCOLORKEY set, only copy the pixels matching the + * RGB values of the source colour key, ignoring alpha in the + * comparison. + * + * RGB->RGB: + * SDL_SRCALPHA set: + * alpha-blend (using the source per-surface alpha value). + * SDL_SRCALPHA not set: + * copy RGB. + * both: + * if SDL_SRCCOLORKEY set, only copy the pixels matching the + * source colour key. + * + * If either of the surfaces were in video memory, and the blit returns -2, + * the video memory was lost, so it should be reloaded with artwork and + * re-blitted: + * @code + * while ( SDL_BlitSurface(image, imgrect, screen, dstrect) == -2 ) { + * while ( SDL_LockSurface(image) < 0 ) + * Sleep(10); + * -- Write image pixels to image->pixels -- + * SDL_UnlockSurface(image); + * } + * @endcode + * + * This happens under DirectX 5.0 when the system switches away from your + * fullscreen application. The lock will also fail until you have access + * to the video memory again. + * + * You should call SDL_BlitSurface() unless you know exactly how SDL + * blitting works internally and how to use the other blit functions. + */ +#define SDL_BlitSurface SDL_UpperBlit + +/** This is the public blit function, SDL_BlitSurface(), and it performs + * rectangle validation and clipping before passing it to SDL_LowerBlit() + */ +extern DECLSPEC int SDLCALL SDL_UpperBlit + (SDL_Surface *src, SDL_Rect *srcrect, + SDL_Surface *dst, SDL_Rect *dstrect); +/** This is a semi-private blit function and it performs low-level surface + * blitting only. + */ +extern DECLSPEC int SDLCALL SDL_LowerBlit + (SDL_Surface *src, SDL_Rect *srcrect, + SDL_Surface *dst, SDL_Rect *dstrect); + +/** + * This function performs a fast fill of the given rectangle with 'color' + * The given rectangle is clipped to the destination surface clip area + * and the final fill rectangle is saved in the passed in pointer. + * If 'dstrect' is NULL, the whole surface will be filled with 'color' + * The color should be a pixel of the format used by the surface, and + * can be generated by the SDL_MapRGB() function. + * This function returns 0 on success, or -1 on error. + */ +extern DECLSPEC int SDLCALL SDL_FillRect + (SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color); + +/** + * This function takes a surface and copies it to a new surface of the + * pixel format and colors of the video framebuffer, suitable for fast + * blitting onto the display surface. It calls SDL_ConvertSurface() + * + * If you want to take advantage of hardware colorkey or alpha blit + * acceleration, you should set the colorkey and alpha value before + * calling this function. + * + * If the conversion fails or runs out of memory, it returns NULL + */ +extern DECLSPEC SDL_Surface * SDLCALL SDL_DisplayFormat(SDL_Surface *surface); + +/** + * This function takes a surface and copies it to a new surface of the + * pixel format and colors of the video framebuffer (if possible), + * suitable for fast alpha blitting onto the display surface. + * The new surface will always have an alpha channel. + * + * If you want to take advantage of hardware colorkey or alpha blit + * acceleration, you should set the colorkey and alpha value before + * calling this function. + * + * If the conversion fails or runs out of memory, it returns NULL + */ +extern DECLSPEC SDL_Surface * SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *surface); + + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/** @name YUV video surface overlay functions */ /*@{*/ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** This function creates a video output overlay + * Calling the returned surface an overlay is something of a misnomer because + * the contents of the display surface underneath the area where the overlay + * is shown is undefined - it may be overwritten with the converted YUV data. + */ +extern DECLSPEC SDL_Overlay * SDLCALL SDL_CreateYUVOverlay(int width, int height, + Uint32 format, SDL_Surface *display); + +/** Lock an overlay for direct access, and unlock it when you are done */ +extern DECLSPEC int SDLCALL SDL_LockYUVOverlay(SDL_Overlay *overlay); +extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay *overlay); + +/** Blit a video overlay to the display surface. + * The contents of the video surface underneath the blit destination are + * not defined. + * The width and height of the destination rectangle may be different from + * that of the overlay, but currently only 2x scaling is supported. + */ +extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect); + +/** Free a video overlay */ +extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay *overlay); + +/*@}*/ + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/** @name OpenGL support functions. */ /*@{*/ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Dynamically load an OpenGL library, or the default one if path is NULL + * + * If you do this, you need to retrieve all of the GL functions used in + * your program from the dynamic library using SDL_GL_GetProcAddress(). + */ +extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path); + +/** + * Get the address of a GL function + */ +extern DECLSPEC void * SDLCALL SDL_GL_GetProcAddress(const char* proc); + +/** + * Set an attribute of the OpenGL subsystem before intialization. + */ +extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value); + +/** + * Get an attribute of the OpenGL subsystem from the windowing + * interface, such as glX. This is of course different from getting + * the values from SDL's internal OpenGL subsystem, which only + * stores the values you request before initialization. + * + * Developers should track the values they pass into SDL_GL_SetAttribute + * themselves if they want to retrieve these values. + */ +extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int* value); + +/** + * Swap the OpenGL buffers, if double-buffering is supported. + */ +extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); + +/** @name OpenGL Internal Functions + * Internal functions that should not be called unless you have read + * and understood the source code for these functions. + */ +/*@{*/ +extern DECLSPEC void SDLCALL SDL_GL_UpdateRects(int numrects, SDL_Rect* rects); +extern DECLSPEC void SDLCALL SDL_GL_Lock(void); +extern DECLSPEC void SDLCALL SDL_GL_Unlock(void); +/*@}*/ + +/*@}*/ + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/** @name Window Manager Functions */ +/** These functions allow interaction with the window manager, if any. */ /*@{*/ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Sets the title and icon text of the display window (UTF-8 encoded) + */ +extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title, const char *icon); +/** + * Gets the title and icon text of the display window (UTF-8 encoded) + */ +extern DECLSPEC void SDLCALL SDL_WM_GetCaption(char **title, char **icon); + +/** + * Sets the icon for the display window. + * This function must be called before the first call to SDL_SetVideoMode(). + * It takes an icon surface, and a mask in MSB format. + * If 'mask' is NULL, the entire icon surface will be used as the icon. + */ +extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface *icon, Uint8 *mask); + +/** + * This function iconifies the window, and returns 1 if it succeeded. + * If the function succeeds, it generates an SDL_APPACTIVE loss event. + * This function is a noop and returns 0 in non-windowed environments. + */ +extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void); + +/** + * Toggle fullscreen mode without changing the contents of the screen. + * If the display surface does not require locking before accessing + * the pixel information, then the memory pointers will not change. + * + * If this function was able to toggle fullscreen mode (change from + * running in a window to fullscreen, or vice-versa), it will return 1. + * If it is not implemented, or fails, it returns 0. + * + * The next call to SDL_SetVideoMode() will set the mode fullscreen + * attribute based on the flags parameter - if SDL_FULLSCREEN is not + * set, then the display will be windowed by default where supported. + * + * This is currently only implemented in the X11 video driver. + */ +extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface *surface); + +typedef enum { + SDL_GRAB_QUERY = -1, + SDL_GRAB_OFF = 0, + SDL_GRAB_ON = 1, + SDL_GRAB_FULLSCREEN /**< Used internally */ +} SDL_GrabMode; +/** + * This function allows you to set and query the input grab state of + * the application. It returns the new input grab state. + * + * Grabbing means that the mouse is confined to the application window, + * and nearly all keyboard input is passed directly to the application, + * and not interpreted by a window manager, if any. + */ +extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode); + +/*@}*/ + +/** @internal Not in public API at the moment - do not use! */ +extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect, + SDL_Surface *dst, SDL_Rect *dstrect); + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_video_h */ diff --git a/lib/sdl/msvc/include/SDL/begin_code.h b/lib/sdl/msvc/include/SDL/begin_code.h new file mode 100644 index 0000000000000000000000000000000000000000..22748090c5d848e73b5d8af42747d91012d23205 --- /dev/null +++ b/lib/sdl/msvc/include/SDL/begin_code.h @@ -0,0 +1,191 @@ +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2009 Sam Lantinga + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + Sam Lantinga + slouken@libsdl.org +*/ + +/** + * @file begin_code.h + * This file sets things up for C dynamic library function definitions, + * static inlined functions, and structures aligned at 4-byte alignment. + * If you don't like ugly C preprocessor code, don't look at this file. :) + */ + +/** + * @file begin_code.h + * This shouldn't be nested -- included it around code only. + */ +#ifdef _begin_code_h +#error Nested inclusion of begin_code.h +#endif +#define _begin_code_h + +/** + * @def DECLSPEC + * Some compilers use a special export keyword + */ +#ifndef DECLSPEC +# if defined(__BEOS__) || defined(__HAIKU__) +# if defined(__GNUC__) +# define DECLSPEC __declspec(dllexport) +# else +# define DECLSPEC __declspec(export) +# endif +# elif defined(__WIN32__) +# ifdef __BORLANDC__ +# ifdef BUILD_SDL +# define DECLSPEC +# else +# define DECLSPEC __declspec(dllimport) +# endif +# else +# define DECLSPEC __declspec(dllexport) +# endif +# elif defined(__OS2__) +# ifdef __WATCOMC__ +# ifdef BUILD_SDL +# define DECLSPEC __declspec(dllexport) +# else +# define DECLSPEC +# endif +# elif defined (__GNUC__) && __GNUC__ < 4 +# /* Added support for GCC-EMX = 4 +# define DECLSPEC __attribute__ ((visibility("default"))) +# else +# define DECLSPEC +# endif +# endif +#endif + +/** + * @def SDLCALL + * By default SDL uses the C calling convention + */ +#ifndef SDLCALL +# if defined(__WIN32__) && !defined(__GNUC__) +# define SDLCALL __cdecl +# elif defined(__OS2__) +# if defined (__GNUC__) && __GNUC__ < 4 +# /* Added support for GCC-EMX images/mapproviders/openstreetmap.png images/mapproviders/google.png images/mapproviders/yahoo.png + images/earth.html + images/mapproviders/googleearth.svg + images/contrib/slugs.png images/Vera.ttf diff --git a/models/ascent-park-glider.skp b/models/ascent-park-glider.skp new file mode 100644 index 0000000000000000000000000000000000000000..1a791d7591c89f6c536f49bdfd651a859faf9f0f Binary files /dev/null and b/models/ascent-park-glider.skp differ diff --git a/models/cessna.osg b/models/cessna.osg new file mode 100644 index 0000000000000000000000000000000000000000..4cdb259ffe71ab045d6ed4becc95f15e4ee1d22c --- /dev/null +++ b/models/cessna.osg @@ -0,0 +1,20534 @@ +Group { + name "Cessna" + UniqueID Group_0 + DataVariance STATIC + cullingActive TRUE + num_children 1 + PositionAttitudeTransform { + UniqueID PositionAttitudeTransform_0 + nodeMask 0xffffffff + cullingActive TRUE + referenceFrame RELATIVE + position 0 0 1.5 + attitude 0 0 1 6.12303e-17 + scale 1 1 1 + pivotPoint 0 0 0 + num_children 1 + Geode { + DataVariance DYNAMIC + name "Cessna" + cullingActive TRUE + num_drawables 1 + Geometry { + DataVariance DYNAMIC + StateSet { + DataVariance STATIC + rendering_hint OPAQUE_BIN + renderBinMode INHERIT + GL_LIGHTING ON + Material { + DataVariance STATIC + ColorMode OFF + ambientColor 0.2 0.2 0.2 1 + diffuseColor 0.8 0.8 0.8 1 + specularColor 0 0 0 1 + emissionColor 0 0 0 1 + shininess 0 + } + ShadeModel { + DataVariance STATIC + mode SMOOTH + } + } + useDisplayList FALSE + Primitives 1117 + { + DrawArrays TRIANGLE_STRIP 0 3 + DrawArrays TRIANGLE_STRIP 3 3 + DrawArrays TRIANGLE_STRIP 6 3 + DrawArrays TRIANGLE_STRIP 9 3 + DrawArrays TRIANGLE_STRIP 12 3 + DrawArrays TRIANGLE_STRIP 15 3 + DrawArrays TRIANGLE_STRIP 18 3 + DrawArrays TRIANGLE_STRIP 21 3 + DrawArrays TRIANGLE_STRIP 24 3 + DrawArrays TRIANGLE_STRIP 27 3 + DrawArrays TRIANGLE_STRIP 30 3 + DrawArrays TRIANGLE_STRIP 33 3 + DrawArrays TRIANGLE_STRIP 36 3 + DrawArrays TRIANGLE_STRIP 39 3 + DrawArrays TRIANGLE_STRIP 42 3 + DrawArrays TRIANGLE_STRIP 45 3 + DrawArrays TRIANGLE_STRIP 48 3 + DrawArrays TRIANGLE_STRIP 51 3 + DrawArrays TRIANGLE_STRIP 54 3 + DrawArrays TRIANGLE_STRIP 57 3 + DrawArrays TRIANGLE_STRIP 60 3 + DrawArrays TRIANGLE_STRIP 63 3 + DrawArrays TRIANGLE_STRIP 66 3 + DrawArrays TRIANGLE_STRIP 69 3 + DrawArrays TRIANGLE_STRIP 72 3 + DrawArrays TRIANGLE_STRIP 75 3 + DrawArrays TRIANGLE_STRIP 78 3 + DrawArrays TRIANGLE_STRIP 81 3 + DrawArrays TRIANGLE_STRIP 84 3 + DrawArrays TRIANGLE_STRIP 87 3 + DrawArrays TRIANGLE_STRIP 90 3 + DrawArrays TRIANGLE_STRIP 93 3 + DrawArrays TRIANGLE_STRIP 96 3 + DrawArrays TRIANGLE_STRIP 99 3 + DrawArrays TRIANGLE_STRIP 102 3 + DrawArrays TRIANGLE_STRIP 105 3 + DrawArrays TRIANGLE_STRIP 108 3 + DrawArrays TRIANGLE_STRIP 111 3 + DrawArrays TRIANGLE_STRIP 114 3 + DrawArrays TRIANGLE_STRIP 117 3 + DrawArrays TRIANGLE_STRIP 120 3 + DrawArrays TRIANGLE_STRIP 123 3 + DrawArrays TRIANGLE_STRIP 126 3 + DrawArrays TRIANGLE_STRIP 129 3 + DrawArrays TRIANGLE_STRIP 132 3 + DrawArrays TRIANGLE_STRIP 135 3 + DrawArrays TRIANGLE_STRIP 138 3 + DrawArrays TRIANGLE_STRIP 141 3 + DrawArrays TRIANGLE_STRIP 144 3 + DrawArrays TRIANGLE_STRIP 147 3 + DrawArrays TRIANGLE_STRIP 150 3 + DrawArrays TRIANGLE_STRIP 153 3 + DrawArrays TRIANGLE_STRIP 156 3 + DrawArrays TRIANGLE_STRIP 159 3 + DrawArrays TRIANGLE_STRIP 162 3 + DrawArrays TRIANGLE_STRIP 165 3 + DrawArrays TRIANGLE_STRIP 168 3 + DrawArrays TRIANGLE_STRIP 171 3 + DrawArrays TRIANGLE_STRIP 174 3 + DrawArrays TRIANGLE_STRIP 177 3 + DrawArrays TRIANGLE_STRIP 180 3 + DrawArrays TRIANGLE_STRIP 183 3 + DrawArrays TRIANGLE_STRIP 186 3 + DrawArrays TRIANGLE_STRIP 189 3 + DrawArrays TRIANGLE_STRIP 192 3 + DrawArrays TRIANGLE_STRIP 195 3 + DrawArrays TRIANGLE_STRIP 198 3 + DrawArrays TRIANGLE_STRIP 201 3 + DrawArrays TRIANGLE_STRIP 204 3 + DrawArrays TRIANGLE_STRIP 207 3 + DrawArrays TRIANGLE_STRIP 210 3 + DrawArrays TRIANGLE_STRIP 213 3 + DrawArrays TRIANGLE_STRIP 216 3 + DrawArrays TRIANGLE_STRIP 219 3 + DrawArrays TRIANGLE_STRIP 222 3 + DrawArrays TRIANGLE_STRIP 225 3 + DrawArrays TRIANGLE_STRIP 228 3 + DrawArrays TRIANGLE_STRIP 231 3 + DrawArrays TRIANGLE_STRIP 234 3 + DrawArrays TRIANGLE_STRIP 237 3 + DrawArrays TRIANGLE_STRIP 240 3 + DrawArrays TRIANGLE_STRIP 243 3 + DrawArrays TRIANGLE_STRIP 246 3 + DrawArrays TRIANGLE_STRIP 249 3 + DrawArrays TRIANGLE_STRIP 252 3 + DrawArrays TRIANGLE_STRIP 255 3 + DrawArrays TRIANGLE_STRIP 258 3 + DrawArrays TRIANGLE_STRIP 261 3 + DrawArrays TRIANGLE_STRIP 264 3 + DrawArrays TRIANGLE_STRIP 267 3 + DrawArrays TRIANGLE_STRIP 270 3 + DrawArrays TRIANGLE_STRIP 273 3 + DrawArrays TRIANGLE_STRIP 276 3 + DrawArrays TRIANGLE_STRIP 279 3 + DrawArrays TRIANGLE_STRIP 282 3 + DrawArrays TRIANGLE_STRIP 285 3 + DrawArrays TRIANGLE_STRIP 288 3 + DrawArrays TRIANGLE_STRIP 291 3 + DrawArrays TRIANGLE_STRIP 294 3 + DrawArrays TRIANGLE_STRIP 297 3 + DrawArrays TRIANGLE_STRIP 300 3 + DrawArrays TRIANGLE_STRIP 303 3 + DrawArrays TRIANGLE_STRIP 306 3 + DrawArrays TRIANGLE_STRIP 309 3 + DrawArrays TRIANGLE_STRIP 312 3 + DrawArrays TRIANGLE_STRIP 315 3 + DrawArrays TRIANGLE_STRIP 318 3 + DrawArrays TRIANGLE_STRIP 321 3 + DrawArrays TRIANGLE_STRIP 324 3 + DrawArrays TRIANGLE_STRIP 327 3 + DrawArrays TRIANGLE_STRIP 330 3 + DrawArrays TRIANGLE_STRIP 333 3 + DrawArrays TRIANGLE_STRIP 336 3 + DrawArrays TRIANGLE_STRIP 339 3 + DrawArrays TRIANGLE_STRIP 342 3 + DrawArrays TRIANGLE_STRIP 345 3 + DrawArrays TRIANGLE_STRIP 348 3 + DrawArrays TRIANGLE_STRIP 351 3 + DrawArrays TRIANGLE_STRIP 354 3 + DrawArrays TRIANGLE_STRIP 357 3 + DrawArrays TRIANGLE_STRIP 360 3 + DrawArrays TRIANGLE_STRIP 363 3 + DrawArrays TRIANGLE_STRIP 366 3 + DrawArrays TRIANGLE_STRIP 369 3 + DrawArrays TRIANGLE_STRIP 372 3 + DrawArrays TRIANGLE_STRIP 375 3 + DrawArrays TRIANGLE_STRIP 378 3 + DrawArrays TRIANGLE_STRIP 381 3 + DrawArrays TRIANGLE_STRIP 384 3 + DrawArrays TRIANGLE_STRIP 387 3 + DrawArrays TRIANGLE_STRIP 390 4 + DrawArrays TRIANGLE_STRIP 394 4 + DrawArrays TRIANGLE_STRIP 398 4 + DrawArrays TRIANGLE_STRIP 402 4 + DrawArrays TRIANGLE_STRIP 406 4 + DrawArrays TRIANGLE_STRIP 410 4 + DrawArrays TRIANGLE_STRIP 414 4 + DrawArrays TRIANGLE_STRIP 418 4 + DrawArrays TRIANGLE_STRIP 422 4 + DrawArrays TRIANGLE_STRIP 426 4 + DrawArrays TRIANGLE_STRIP 430 4 + DrawArrays TRIANGLE_STRIP 434 4 + DrawArrays TRIANGLE_STRIP 438 4 + DrawArrays TRIANGLE_STRIP 442 4 + DrawArrays TRIANGLE_STRIP 446 4 + DrawArrays TRIANGLE_STRIP 450 4 + DrawArrays TRIANGLE_STRIP 454 4 + DrawArrays TRIANGLE_STRIP 458 4 + DrawArrays TRIANGLE_STRIP 462 4 + DrawArrays TRIANGLE_STRIP 466 4 + DrawArrays TRIANGLE_STRIP 470 4 + DrawArrays TRIANGLE_STRIP 474 4 + DrawArrays TRIANGLE_STRIP 478 4 + DrawArrays TRIANGLE_STRIP 482 4 + DrawArrays TRIANGLE_STRIP 486 4 + DrawArrays TRIANGLE_STRIP 490 4 + DrawArrays TRIANGLE_STRIP 494 4 + DrawArrays TRIANGLE_STRIP 498 4 + DrawArrays TRIANGLE_STRIP 502 4 + DrawArrays TRIANGLE_STRIP 506 4 + DrawArrays TRIANGLE_STRIP 510 4 + DrawArrays TRIANGLE_STRIP 514 4 + DrawArrays TRIANGLE_STRIP 518 4 + DrawArrays TRIANGLE_STRIP 522 4 + DrawArrays TRIANGLE_STRIP 526 4 + DrawArrays TRIANGLE_STRIP 530 4 + DrawArrays TRIANGLE_STRIP 534 4 + DrawArrays TRIANGLE_STRIP 538 4 + DrawArrays TRIANGLE_STRIP 542 4 + DrawArrays TRIANGLE_STRIP 546 4 + DrawArrays TRIANGLE_STRIP 550 4 + DrawArrays TRIANGLE_STRIP 554 4 + DrawArrays TRIANGLE_STRIP 558 4 + DrawArrays TRIANGLE_STRIP 562 4 + DrawArrays TRIANGLE_STRIP 566 4 + DrawArrays TRIANGLE_STRIP 570 4 + DrawArrays TRIANGLE_STRIP 574 4 + DrawArrays TRIANGLE_STRIP 578 4 + DrawArrays TRIANGLE_STRIP 582 4 + DrawArrays TRIANGLE_STRIP 586 4 + DrawArrays TRIANGLE_STRIP 590 4 + DrawArrays TRIANGLE_STRIP 594 4 + DrawArrays TRIANGLE_STRIP 598 4 + DrawArrays TRIANGLE_STRIP 602 4 + DrawArrays TRIANGLE_STRIP 606 4 + DrawArrays TRIANGLE_STRIP 610 4 + DrawArrays TRIANGLE_STRIP 614 4 + DrawArrays TRIANGLE_STRIP 618 4 + DrawArrays TRIANGLE_STRIP 622 4 + DrawArrays TRIANGLE_STRIP 626 4 + DrawArrays TRIANGLE_STRIP 630 4 + DrawArrays TRIANGLE_STRIP 634 4 + DrawArrays TRIANGLE_STRIP 638 4 + DrawArrays TRIANGLE_STRIP 642 4 + DrawArrays TRIANGLE_STRIP 646 4 + DrawArrays TRIANGLE_STRIP 650 4 + DrawArrays TRIANGLE_STRIP 654 4 + DrawArrays TRIANGLE_STRIP 658 4 + DrawArrays TRIANGLE_STRIP 662 4 + DrawArrays TRIANGLE_STRIP 666 4 + DrawArrays TRIANGLE_STRIP 670 4 + DrawArrays TRIANGLE_STRIP 674 4 + DrawArrays TRIANGLE_STRIP 678 4 + DrawArrays TRIANGLE_STRIP 682 4 + DrawArrays TRIANGLE_STRIP 686 4 + DrawArrays TRIANGLE_STRIP 690 4 + DrawArrays TRIANGLE_STRIP 694 4 + DrawArrays TRIANGLE_STRIP 698 4 + DrawArrays TRIANGLE_STRIP 702 4 + DrawArrays TRIANGLE_STRIP 706 4 + DrawArrays TRIANGLE_STRIP 710 4 + DrawArrays TRIANGLE_STRIP 714 4 + DrawArrays TRIANGLE_STRIP 718 4 + DrawArrays TRIANGLE_STRIP 722 4 + DrawArrays TRIANGLE_STRIP 726 4 + DrawArrays TRIANGLE_STRIP 730 4 + DrawArrays TRIANGLE_STRIP 734 4 + DrawArrays TRIANGLE_STRIP 738 4 + DrawArrays TRIANGLE_STRIP 742 4 + DrawArrays TRIANGLE_STRIP 746 4 + DrawArrays TRIANGLE_STRIP 750 4 + DrawArrays TRIANGLE_STRIP 754 4 + DrawArrays TRIANGLE_STRIP 758 4 + DrawArrays TRIANGLE_STRIP 762 4 + DrawArrays TRIANGLE_STRIP 766 4 + DrawArrays TRIANGLE_STRIP 770 4 + DrawArrays TRIANGLE_STRIP 774 4 + DrawArrays TRIANGLE_STRIP 778 4 + DrawArrays TRIANGLE_STRIP 782 4 + DrawArrays TRIANGLE_STRIP 786 4 + DrawArrays TRIANGLE_STRIP 790 4 + DrawArrays TRIANGLE_STRIP 794 4 + DrawArrays TRIANGLE_STRIP 798 4 + DrawArrays TRIANGLE_STRIP 802 4 + DrawArrays TRIANGLE_STRIP 806 4 + DrawArrays TRIANGLE_STRIP 810 4 + DrawArrays TRIANGLE_STRIP 814 4 + DrawArrays TRIANGLE_STRIP 818 4 + DrawArrays TRIANGLE_STRIP 822 4 + DrawArrays TRIANGLE_STRIP 826 4 + DrawArrays TRIANGLE_STRIP 830 4 + DrawArrays TRIANGLE_STRIP 834 4 + DrawArrays TRIANGLE_STRIP 838 4 + DrawArrays TRIANGLE_STRIP 842 4 + DrawArrays TRIANGLE_STRIP 846 4 + DrawArrays TRIANGLE_STRIP 850 4 + DrawArrays TRIANGLE_STRIP 854 4 + DrawArrays TRIANGLE_STRIP 858 4 + DrawArrays TRIANGLE_STRIP 862 4 + DrawArrays TRIANGLE_STRIP 866 4 + DrawArrays TRIANGLE_STRIP 870 4 + DrawArrays TRIANGLE_STRIP 874 4 + DrawArrays TRIANGLE_STRIP 878 4 + DrawArrays TRIANGLE_STRIP 882 4 + DrawArrays TRIANGLE_STRIP 886 4 + DrawArrays TRIANGLE_STRIP 890 4 + DrawArrays TRIANGLE_STRIP 894 4 + DrawArrays TRIANGLE_STRIP 898 4 + DrawArrays TRIANGLE_STRIP 902 4 + DrawArrays TRIANGLE_STRIP 906 4 + DrawArrays TRIANGLE_STRIP 910 4 + DrawArrays TRIANGLE_STRIP 914 4 + DrawArrays TRIANGLE_STRIP 918 4 + DrawArrays TRIANGLE_STRIP 922 4 + DrawArrays TRIANGLE_STRIP 926 4 + DrawArrays TRIANGLE_STRIP 930 4 + DrawArrays TRIANGLE_STRIP 934 4 + DrawArrays TRIANGLE_STRIP 938 4 + DrawArrays TRIANGLE_STRIP 942 4 + DrawArrays TRIANGLE_STRIP 946 4 + DrawArrays TRIANGLE_STRIP 950 4 + DrawArrays TRIANGLE_STRIP 954 4 + DrawArrays TRIANGLE_STRIP 958 4 + DrawArrays TRIANGLE_STRIP 962 4 + DrawArrays TRIANGLE_STRIP 966 4 + DrawArrays TRIANGLE_STRIP 970 4 + DrawArrays TRIANGLE_STRIP 974 4 + DrawArrays TRIANGLE_STRIP 978 4 + DrawArrays TRIANGLE_STRIP 982 4 + DrawArrays TRIANGLE_STRIP 986 4 + DrawArrays TRIANGLE_STRIP 990 4 + DrawArrays TRIANGLE_STRIP 994 4 + DrawArrays TRIANGLE_STRIP 998 4 + DrawArrays TRIANGLE_STRIP 1002 4 + DrawArrays TRIANGLE_STRIP 1006 4 + DrawArrays TRIANGLE_STRIP 1010 4 + DrawArrays TRIANGLE_STRIP 1014 4 + DrawArrays TRIANGLE_STRIP 1018 4 + DrawArrays TRIANGLE_STRIP 1022 4 + DrawArrays TRIANGLE_STRIP 1026 4 + DrawArrays TRIANGLE_STRIP 1030 4 + DrawArrays TRIANGLE_STRIP 1034 4 + DrawArrays TRIANGLE_STRIP 1038 4 + DrawArrays TRIANGLE_STRIP 1042 4 + DrawArrays TRIANGLE_STRIP 1046 4 + DrawArrays TRIANGLE_STRIP 1050 4 + DrawArrays TRIANGLE_STRIP 1054 4 + DrawArrays TRIANGLE_STRIP 1058 4 + DrawArrays TRIANGLE_STRIP 1062 4 + DrawArrays TRIANGLE_STRIP 1066 4 + DrawArrays TRIANGLE_STRIP 1070 4 + DrawArrays TRIANGLE_STRIP 1074 4 + DrawArrays TRIANGLE_STRIP 1078 4 + DrawArrays TRIANGLE_STRIP 1082 4 + DrawArrays TRIANGLE_STRIP 1086 4 + DrawArrays TRIANGLE_STRIP 1090 4 + DrawArrays TRIANGLE_STRIP 1094 4 + DrawArrays TRIANGLE_STRIP 1098 4 + DrawArrays TRIANGLE_STRIP 1102 4 + DrawArrays TRIANGLE_STRIP 1106 4 + DrawArrays TRIANGLE_STRIP 1110 4 + DrawArrays TRIANGLE_STRIP 1114 4 + DrawArrays TRIANGLE_STRIP 1118 4 + DrawArrays TRIANGLE_STRIP 1122 4 + DrawArrays TRIANGLE_STRIP 1126 4 + DrawArrays TRIANGLE_STRIP 1130 4 + DrawArrays TRIANGLE_STRIP 1134 4 + DrawArrays TRIANGLE_STRIP 1138 4 + DrawArrays TRIANGLE_STRIP 1142 4 + DrawArrays TRIANGLE_STRIP 1146 4 + DrawArrays TRIANGLE_STRIP 1150 4 + DrawArrays TRIANGLE_STRIP 1154 4 + DrawArrays TRIANGLE_STRIP 1158 4 + DrawArrays TRIANGLE_STRIP 1162 4 + DrawArrays TRIANGLE_STRIP 1166 4 + DrawArrays TRIANGLE_STRIP 1170 4 + DrawArrays TRIANGLE_STRIP 1174 4 + DrawArrays TRIANGLE_STRIP 1178 4 + DrawArrays TRIANGLE_STRIP 1182 4 + DrawArrays TRIANGLE_STRIP 1186 4 + DrawArrays TRIANGLE_STRIP 1190 4 + DrawArrays TRIANGLE_STRIP 1194 4 + DrawArrays TRIANGLE_STRIP 1198 4 + DrawArrays TRIANGLE_STRIP 1202 4 + DrawArrays TRIANGLE_STRIP 1206 4 + DrawArrays TRIANGLE_STRIP 1210 4 + DrawArrays TRIANGLE_STRIP 1214 4 + DrawArrays TRIANGLE_STRIP 1218 4 + DrawArrays TRIANGLE_STRIP 1222 4 + DrawArrays TRIANGLE_STRIP 1226 4 + DrawArrays TRIANGLE_STRIP 1230 4 + DrawArrays TRIANGLE_STRIP 1234 4 + DrawArrays TRIANGLE_STRIP 1238 4 + DrawArrays TRIANGLE_STRIP 1242 4 + DrawArrays TRIANGLE_STRIP 1246 4 + DrawArrays TRIANGLE_STRIP 1250 4 + DrawArrays TRIANGLE_STRIP 1254 4 + DrawArrays TRIANGLE_STRIP 1258 4 + DrawArrays TRIANGLE_STRIP 1262 4 + DrawArrays TRIANGLE_STRIP 1266 4 + DrawArrays TRIANGLE_STRIP 1270 4 + DrawArrays TRIANGLE_STRIP 1274 4 + DrawArrays TRIANGLE_STRIP 1278 4 + DrawArrays TRIANGLE_STRIP 1282 4 + DrawArrays TRIANGLE_STRIP 1286 4 + DrawArrays TRIANGLE_STRIP 1290 4 + DrawArrays TRIANGLE_STRIP 1294 4 + DrawArrays TRIANGLE_STRIP 1298 4 + DrawArrays TRIANGLE_STRIP 1302 4 + DrawArrays TRIANGLE_STRIP 1306 4 + DrawArrays TRIANGLE_STRIP 1310 4 + DrawArrays TRIANGLE_STRIP 1314 4 + DrawArrays TRIANGLE_STRIP 1318 4 + DrawArrays TRIANGLE_STRIP 1322 4 + DrawArrays TRIANGLE_STRIP 1326 4 + DrawArrays TRIANGLE_STRIP 1330 4 + DrawArrays TRIANGLE_STRIP 1334 4 + DrawArrays TRIANGLE_STRIP 1338 4 + DrawArrays TRIANGLE_STRIP 1342 4 + DrawArrays TRIANGLE_STRIP 1346 4 + DrawArrays TRIANGLE_STRIP 1350 4 + DrawArrays TRIANGLE_STRIP 1354 4 + DrawArrays TRIANGLE_STRIP 1358 4 + DrawArrays TRIANGLE_STRIP 1362 4 + DrawArrays TRIANGLE_STRIP 1366 4 + DrawArrays TRIANGLE_STRIP 1370 4 + DrawArrays TRIANGLE_STRIP 1374 4 + DrawArrays TRIANGLE_STRIP 1378 4 + DrawArrays TRIANGLE_STRIP 1382 4 + DrawArrays TRIANGLE_STRIP 1386 4 + DrawArrays TRIANGLE_STRIP 1390 4 + DrawArrays TRIANGLE_STRIP 1394 4 + DrawArrays TRIANGLE_STRIP 1398 4 + DrawArrays TRIANGLE_STRIP 1402 4 + DrawArrays TRIANGLE_STRIP 1406 4 + DrawArrays TRIANGLE_STRIP 1410 4 + DrawArrays TRIANGLE_STRIP 1414 4 + DrawArrays TRIANGLE_STRIP 1418 4 + DrawArrays TRIANGLE_STRIP 1422 4 + DrawArrays TRIANGLE_STRIP 1426 4 + DrawArrays TRIANGLE_STRIP 1430 4 + DrawArrays TRIANGLE_STRIP 1434 4 + DrawArrays TRIANGLE_STRIP 1438 4 + DrawArrays TRIANGLE_STRIP 1442 4 + DrawArrays TRIANGLE_STRIP 1446 4 + DrawArrays TRIANGLE_STRIP 1450 4 + DrawArrays TRIANGLE_STRIP 1454 4 + DrawArrays TRIANGLE_STRIP 1458 4 + DrawArrays TRIANGLE_STRIP 1462 4 + DrawArrays TRIANGLE_STRIP 1466 4 + DrawArrays TRIANGLE_STRIP 1470 4 + DrawArrays TRIANGLE_STRIP 1474 4 + DrawArrays TRIANGLE_STRIP 1478 4 + DrawArrays TRIANGLE_STRIP 1482 4 + DrawArrays TRIANGLE_STRIP 1486 4 + DrawArrays TRIANGLE_STRIP 1490 4 + DrawArrays TRIANGLE_STRIP 1494 4 + DrawArrays TRIANGLE_STRIP 1498 4 + DrawArrays TRIANGLE_STRIP 1502 4 + DrawArrays TRIANGLE_STRIP 1506 4 + DrawArrays TRIANGLE_STRIP 1510 4 + DrawArrays TRIANGLE_STRIP 1514 4 + DrawArrays TRIANGLE_STRIP 1518 4 + DrawArrays TRIANGLE_STRIP 1522 4 + DrawArrays TRIANGLE_STRIP 1526 4 + DrawArrays TRIANGLE_STRIP 1530 4 + DrawArrays TRIANGLE_STRIP 1534 4 + DrawArrays TRIANGLE_STRIP 1538 4 + DrawArrays TRIANGLE_STRIP 1542 4 + DrawArrays TRIANGLE_STRIP 1546 4 + DrawArrays TRIANGLE_STRIP 1550 4 + DrawArrays TRIANGLE_STRIP 1554 4 + DrawArrays TRIANGLE_STRIP 1558 4 + DrawArrays TRIANGLE_STRIP 1562 4 + DrawArrays TRIANGLE_STRIP 1566 4 + DrawArrays TRIANGLE_STRIP 1570 4 + DrawArrays TRIANGLE_STRIP 1574 4 + DrawArrays TRIANGLE_STRIP 1578 4 + DrawArrays TRIANGLE_STRIP 1582 4 + DrawArrays TRIANGLE_STRIP 1586 4 + DrawArrays TRIANGLE_STRIP 1590 4 + DrawArrays TRIANGLE_STRIP 1594 4 + DrawArrays TRIANGLE_STRIP 1598 4 + DrawArrays TRIANGLE_STRIP 1602 4 + DrawArrays TRIANGLE_STRIP 1606 4 + DrawArrays TRIANGLE_STRIP 1610 4 + DrawArrays TRIANGLE_STRIP 1614 4 + DrawArrays TRIANGLE_STRIP 1618 4 + DrawArrays TRIANGLE_STRIP 1622 4 + DrawArrays TRIANGLE_STRIP 1626 4 + DrawArrays TRIANGLE_STRIP 1630 4 + DrawArrays TRIANGLE_STRIP 1634 4 + DrawArrays TRIANGLE_STRIP 1638 4 + DrawArrays TRIANGLE_STRIP 1642 4 + DrawArrays TRIANGLE_STRIP 1646 4 + DrawArrays TRIANGLE_STRIP 1650 4 + DrawArrays TRIANGLE_STRIP 1654 4 + DrawArrays TRIANGLE_STRIP 1658 4 + DrawArrays TRIANGLE_STRIP 1662 4 + DrawArrays TRIANGLE_STRIP 1666 4 + DrawArrays TRIANGLE_STRIP 1670 4 + DrawArrays TRIANGLE_STRIP 1674 4 + DrawArrays TRIANGLE_STRIP 1678 4 + DrawArrays TRIANGLE_STRIP 1682 4 + DrawArrays TRIANGLE_STRIP 1686 4 + DrawArrays TRIANGLE_STRIP 1690 4 + DrawArrays TRIANGLE_STRIP 1694 4 + DrawArrays TRIANGLE_STRIP 1698 4 + DrawArrays TRIANGLE_STRIP 1702 4 + DrawArrays TRIANGLE_STRIP 1706 4 + DrawArrays TRIANGLE_STRIP 1710 4 + DrawArrays TRIANGLE_STRIP 1714 4 + DrawArrays TRIANGLE_STRIP 1718 4 + DrawArrays TRIANGLE_STRIP 1722 4 + DrawArrays TRIANGLE_STRIP 1726 4 + DrawArrays TRIANGLE_STRIP 1730 4 + DrawArrays TRIANGLE_STRIP 1734 4 + DrawArrays TRIANGLE_STRIP 1738 4 + DrawArrays TRIANGLE_STRIP 1742 4 + DrawArrays TRIANGLE_STRIP 1746 4 + DrawArrays TRIANGLE_STRIP 1750 4 + DrawArrays TRIANGLE_STRIP 1754 4 + DrawArrays TRIANGLE_STRIP 1758 4 + DrawArrays TRIANGLE_STRIP 1762 4 + DrawArrays TRIANGLE_STRIP 1766 4 + DrawArrays TRIANGLE_STRIP 1770 4 + DrawArrays TRIANGLE_STRIP 1774 4 + DrawArrays TRIANGLE_STRIP 1778 4 + DrawArrays TRIANGLE_STRIP 1782 4 + DrawArrays TRIANGLE_STRIP 1786 4 + DrawArrays TRIANGLE_STRIP 1790 4 + DrawArrays TRIANGLE_STRIP 1794 4 + DrawArrays TRIANGLE_STRIP 1798 4 + DrawArrays TRIANGLE_STRIP 1802 4 + DrawArrays TRIANGLE_STRIP 1806 4 + DrawArrays TRIANGLE_STRIP 1810 4 + DrawArrays TRIANGLE_STRIP 1814 4 + DrawArrays TRIANGLE_STRIP 1818 4 + DrawArrays TRIANGLE_STRIP 1822 4 + DrawArrays TRIANGLE_STRIP 1826 4 + DrawArrays TRIANGLE_STRIP 1830 4 + DrawArrays TRIANGLE_STRIP 1834 4 + DrawArrays TRIANGLE_STRIP 1838 4 + DrawArrays TRIANGLE_STRIP 1842 4 + DrawArrays TRIANGLE_STRIP 1846 4 + DrawArrays TRIANGLE_STRIP 1850 4 + DrawArrays TRIANGLE_STRIP 1854 4 + DrawArrays TRIANGLE_STRIP 1858 4 + DrawArrays TRIANGLE_STRIP 1862 4 + DrawArrays TRIANGLE_STRIP 1866 4 + DrawArrays TRIANGLE_STRIP 1870 4 + DrawArrays TRIANGLE_STRIP 1874 4 + DrawArrays TRIANGLE_STRIP 1878 4 + DrawArrays TRIANGLE_STRIP 1882 4 + DrawArrays TRIANGLE_STRIP 1886 4 + DrawArrays TRIANGLE_STRIP 1890 4 + DrawArrays TRIANGLE_STRIP 1894 4 + DrawArrays TRIANGLE_STRIP 1898 4 + DrawArrays TRIANGLE_STRIP 1902 4 + DrawArrays TRIANGLE_STRIP 1906 4 + DrawArrays TRIANGLE_STRIP 1910 4 + DrawArrays TRIANGLE_STRIP 1914 4 + DrawArrays TRIANGLE_STRIP 1918 4 + DrawArrays TRIANGLE_STRIP 1922 4 + DrawArrays TRIANGLE_STRIP 1926 4 + DrawArrays TRIANGLE_STRIP 1930 4 + DrawArrays TRIANGLE_STRIP 1934 4 + DrawArrays TRIANGLE_STRIP 1938 4 + DrawArrays TRIANGLE_STRIP 1942 4 + DrawArrays TRIANGLE_STRIP 1946 4 + DrawArrays TRIANGLE_STRIP 1950 4 + DrawArrays TRIANGLE_STRIP 1954 4 + DrawArrays TRIANGLE_STRIP 1958 4 + DrawArrays TRIANGLE_STRIP 1962 4 + DrawArrays TRIANGLE_STRIP 1966 7 + DrawArrays TRIANGLE_STRIP 1973 10 + DrawArrays TRIANGLE_STRIP 1983 7 + DrawArrays TRIANGLE_STRIP 1990 11 + DrawArrays TRIANGLE_STRIP 2001 11 + DrawArrays TRIANGLE_STRIP 2012 15 + DrawArrays TRIANGLE_STRIP 2027 5 + DrawArrays TRIANGLE_STRIP 2032 11 + DrawArrays TRIANGLE_STRIP 2043 17 + DrawArrays TRIANGLE_STRIP 2060 15 + DrawArrays TRIANGLE_STRIP 2075 21 + DrawArrays TRIANGLE_STRIP 2096 5 + DrawArrays TRIANGLE_STRIP 2101 6 + DrawArrays TRIANGLE_STRIP 2107 15 + DrawArrays TRIANGLE_STRIP 2122 23 + DrawArrays TRIANGLE_STRIP 2145 5 + DrawArrays TRIANGLE_STRIP 2150 7 + DrawArrays TRIANGLE_STRIP 2157 9 + DrawArrays TRIANGLE_STRIP 2166 11 + DrawArrays TRIANGLE_STRIP 2177 13 + DrawArrays TRIANGLE_STRIP 2190 15 + DrawArrays TRIANGLE_STRIP 2205 17 + DrawArrays TRIANGLE_STRIP 2222 51 + DrawArrays TRIANGLE_STRIP 2273 5 + DrawArrays TRIANGLE_STRIP 2278 7 + DrawArrays TRIANGLE_STRIP 2285 5 + DrawArrays TRIANGLE_STRIP 2290 5 + DrawArrays TRIANGLE_STRIP 2295 5 + DrawArrays TRIANGLE_STRIP 2300 5 + DrawArrays TRIANGLE_STRIP 2305 7 + DrawArrays TRIANGLE_STRIP 2312 7 + DrawArrays TRIANGLE_STRIP 2319 9 + DrawArrays TRIANGLE_STRIP 2328 11 + DrawArrays TRIANGLE_STRIP 2339 5 + DrawArrays TRIANGLE_STRIP 2344 10 + DrawArrays TRIANGLE_STRIP 2354 12 + DrawArrays TRIANGLE_STRIP 2366 6 + DrawArrays TRIANGLE_STRIP 2372 7 + DrawArrays TRIANGLE_STRIP 2379 19 + DrawArrays TRIANGLE_STRIP 2398 9 + DrawArrays TRIANGLE_STRIP 2407 7 + DrawArrays TRIANGLE_STRIP 2414 12 + DrawArrays TRIANGLE_STRIP 2426 5 + DrawArrays TRIANGLE_STRIP 2431 8 + DrawArrays TRIANGLE_STRIP 2439 5 + DrawArrays TRIANGLE_STRIP 2444 10 + DrawArrays TRIANGLE_STRIP 2454 6 + DrawArrays TRIANGLE_STRIP 2460 8 + DrawArrays TRIANGLE_STRIP 2468 22 + DrawArrays TRIANGLE_STRIP 2490 6 + DrawArrays TRIANGLE_STRIP 2496 6 + DrawArrays TRIANGLE_STRIP 2502 6 + DrawArrays TRIANGLE_STRIP 2508 6 + DrawArrays TRIANGLE_STRIP 2514 7 + DrawArrays TRIANGLE_STRIP 2521 7 + DrawArrays TRIANGLE_STRIP 2528 6 + DrawArrays TRIANGLE_STRIP 2534 17 + DrawArrays TRIANGLE_STRIP 2551 13 + DrawArrays TRIANGLE_STRIP 2564 10 + DrawArrays TRIANGLE_STRIP 2574 17 + DrawArrays TRIANGLE_STRIP 2591 17 + DrawArrays TRIANGLE_STRIP 2608 40 + DrawArrays TRIANGLE_STRIP 2648 6 + DrawArrays TRIANGLE_STRIP 2654 6 + DrawArrays TRIANGLE_STRIP 2660 6 + DrawArrays TRIANGLE_STRIP 2666 9 + DrawArrays TRIANGLE_STRIP 2675 5 + DrawArrays TRIANGLE_STRIP 2680 5 + DrawArrays TRIANGLE_STRIP 2685 11 + DrawArrays TRIANGLE_STRIP 2696 30 + DrawArrays TRIANGLE_STRIP 2726 10 + DrawArrays TRIANGLE_STRIP 2736 5 + DrawArrays TRIANGLE_STRIP 2741 15 + DrawArrays TRIANGLE_STRIP 2756 5 + DrawArrays TRIANGLE_STRIP 2761 14 + DrawArrays TRIANGLE_STRIP 2775 9 + DrawArrays TRIANGLE_STRIP 2784 17 + DrawArrays TRIANGLE_STRIP 2801 12 + DrawArrays TRIANGLE_STRIP 2813 5 + DrawArrays TRIANGLE_STRIP 2818 18 + DrawArrays TRIANGLE_STRIP 2836 14 + DrawArrays TRIANGLE_STRIP 2850 17 + DrawArrays TRIANGLE_STRIP 2867 6 + DrawArrays TRIANGLE_STRIP 2873 5 + DrawArrays TRIANGLE_STRIP 2878 14 + DrawArrays TRIANGLE_STRIP 2892 10 + DrawArrays TRIANGLE_STRIP 2902 16 + DrawArrays TRIANGLE_STRIP 2918 14 + DrawArrays TRIANGLE_STRIP 2932 136 + DrawArrays TRIANGLE_STRIP 3068 10 + DrawArrays TRIANGLE_STRIP 3078 10 + DrawArrays TRIANGLE_STRIP 3088 10 + DrawArrays TRIANGLE_STRIP 3098 5 + DrawArrays TRIANGLE_STRIP 3103 7 + DrawArrays TRIANGLE_STRIP 3110 10 + DrawArrays TRIANGLE_STRIP 3120 20 + DrawArrays TRIANGLE_STRIP 3140 6 + DrawArrays TRIANGLE_STRIP 3146 40 + DrawArrays TRIANGLE_STRIP 3186 12 + DrawArrays TRIANGLE_STRIP 3198 15 + DrawArrays TRIANGLE_STRIP 3213 8 + DrawArrays TRIANGLE_STRIP 3221 6 + DrawArrays TRIANGLE_STRIP 3227 9 + DrawArrays TRIANGLE_STRIP 3236 7 + DrawArrays TRIANGLE_STRIP 3243 18 + DrawArrays TRIANGLE_STRIP 3261 21 + DrawArrays TRIANGLE_STRIP 3282 29 + DrawArrays TRIANGLE_STRIP 3311 5 + DrawArrays TRIANGLE_STRIP 3316 6 + DrawArrays TRIANGLE_STRIP 3322 15 + DrawArrays TRIANGLE_STRIP 3337 21 + DrawArrays TRIANGLE_STRIP 3358 26 + DrawArrays TRIANGLE_STRIP 3384 6 + DrawArrays TRIANGLE_STRIP 3390 13 + DrawArrays TRIANGLE_STRIP 3403 18 + DrawArrays TRIANGLE_STRIP 3421 6 + DrawArrays TRIANGLE_STRIP 3427 13 + DrawArrays TRIANGLE_STRIP 3440 9 + DrawArrays TRIANGLE_STRIP 3449 5 + DrawArrays TRIANGLE_STRIP 3454 7 + DrawArrays TRIANGLE_STRIP 3461 15 + DrawArrays TRIANGLE_STRIP 3476 29 + DrawArrays TRIANGLE_STRIP 3505 10 + DrawArrays TRIANGLE_STRIP 3515 6 + DrawArrays TRIANGLE_STRIP 3521 6 + DrawArrays TRIANGLE_STRIP 3527 10 + DrawArrays TRIANGLE_STRIP 3537 5 + DrawArrays TRIANGLE_STRIP 3542 6 + DrawArrays TRIANGLE_STRIP 3548 12 + DrawArrays TRIANGLE_STRIP 3560 23 + DrawArrays TRIANGLE_STRIP 3583 6 + DrawArrays TRIANGLE_STRIP 3589 13 + DrawArrays TRIANGLE_STRIP 3602 9 + DrawArrays TRIANGLE_STRIP 3611 6 + DrawArrays TRIANGLE_STRIP 3617 6 + DrawArrays TRIANGLE_STRIP 3623 8 + DrawArrays TRIANGLE_STRIP 3631 6 + DrawArrays TRIANGLE_STRIP 3637 49 + DrawArrays TRIANGLE_STRIP 3686 16 + DrawArrays TRIANGLE_STRIP 3702 16 + DrawArrays TRIANGLE_STRIP 3718 6 + DrawArrays TRIANGLE_STRIP 3724 7 + DrawArrays TRIANGLE_STRIP 3731 7 + DrawArrays TRIANGLE_STRIP 3738 8 + DrawArrays TRIANGLE_STRIP 3746 6 + DrawArrays TRIANGLE_STRIP 3752 27 + DrawArrays TRIANGLE_STRIP 3779 10 + DrawArrays TRIANGLE_STRIP 3789 80 + DrawArrays TRIANGLE_STRIP 3869 141 + DrawArrays TRIANGLE_STRIP 4010 6 + DrawArrays TRIANGLE_STRIP 4016 8 + DrawArrays TRIANGLE_STRIP 4024 6 + DrawArrays TRIANGLE_STRIP 4030 10 + DrawArrays TRIANGLE_STRIP 4040 10 + DrawArrays TRIANGLE_STRIP 4050 10 + DrawArrays TRIANGLE_STRIP 4060 10 + DrawArrays TRIANGLE_STRIP 4070 6 + DrawArrays TRIANGLE_STRIP 4076 9 + DrawArrays TRIANGLE_STRIP 4085 13 + DrawArrays TRIANGLE_STRIP 4098 14 + DrawArrays TRIANGLE_STRIP 4112 8 + DrawArrays TRIANGLE_STRIP 4120 7 + DrawArrays TRIANGLE_STRIP 4127 6 + DrawArrays TRIANGLE_STRIP 4133 14 + DrawArrays TRIANGLE_STRIP 4147 15 + DrawArrays TRIANGLE_STRIP 4162 6 + DrawArrays TRIANGLE_STRIP 4168 7 + DrawArrays TRIANGLE_STRIP 4175 7 + DrawArrays TRIANGLE_STRIP 4182 11 + DrawArrays TRIANGLE_STRIP 4193 14 + DrawArrays TRIANGLE_STRIP 4207 6 + DrawArrays TRIANGLE_STRIP 4213 6 + DrawArrays TRIANGLE_STRIP 4219 6 + DrawArrays TRIANGLE_STRIP 4225 6 + DrawArrays TRIANGLE_STRIP 4231 6 + DrawArrays TRIANGLE_STRIP 4237 5 + DrawArrays TRIANGLE_STRIP 4242 7 + DrawArrays TRIANGLE_STRIP 4249 12 + DrawArrays TRIANGLE_STRIP 4261 11 + DrawArrays TRIANGLE_STRIP 4272 9 + DrawArrays TRIANGLE_STRIP 4281 9 + DrawArrays TRIANGLE_STRIP 4290 14 + DrawArrays TRIANGLE_STRIP 4304 9 + DrawArrays TRIANGLE_STRIP 4313 7 + DrawArrays TRIANGLE_STRIP 4320 11 + DrawArrays TRIANGLE_STRIP 4331 15 + DrawArrays TRIANGLE_STRIP 4346 6 + DrawArrays TRIANGLE_STRIP 4352 5 + DrawArrays TRIANGLE_STRIP 4357 7 + DrawArrays TRIANGLE_STRIP 4364 11 + DrawArrays TRIANGLE_STRIP 4375 6 + DrawArrays TRIANGLE_STRIP 4381 5 + DrawArrays TRIANGLE_STRIP 4386 7 + DrawArrays TRIANGLE_STRIP 4393 7 + DrawArrays TRIANGLE_STRIP 4400 22 + DrawArrays TRIANGLE_STRIP 4422 10 + DrawArrays TRIANGLE_STRIP 4432 14 + DrawArrays TRIANGLE_STRIP 4446 10 + DrawArrays TRIANGLE_STRIP 4456 13 + DrawArrays TRIANGLE_STRIP 4469 17 + DrawArrays TRIANGLE_STRIP 4486 5 + DrawArrays TRIANGLE_STRIP 4491 7 + DrawArrays TRIANGLE_STRIP 4498 33 + DrawArrays TRIANGLE_STRIP 4531 72 + DrawArrays TRIANGLE_STRIP 4603 16 + DrawArrays TRIANGLE_STRIP 4619 10 + DrawArrays TRIANGLE_STRIP 4629 13 + DrawArrays TRIANGLE_STRIP 4642 17 + DrawArrays TRIANGLE_STRIP 4659 6 + DrawArrays TRIANGLE_STRIP 4665 25 + DrawArrays TRIANGLE_STRIP 4690 8 + DrawArrays TRIANGLE_STRIP 4698 8 + DrawArrays TRIANGLE_STRIP 4706 20 + DrawArrays TRIANGLE_STRIP 4726 22 + DrawArrays TRIANGLE_STRIP 4748 15 + DrawArrays TRIANGLE_STRIP 4763 22 + DrawArrays TRIANGLE_STRIP 4785 28 + DrawArrays TRIANGLE_STRIP 4813 13 + DrawArrays TRIANGLE_STRIP 4826 9 + DrawArrays TRIANGLE_STRIP 4835 5 + DrawArrays TRIANGLE_STRIP 4840 6 + DrawArrays TRIANGLE_STRIP 4846 33 + DrawArrays TRIANGLE_STRIP 4879 5 + DrawArrays TRIANGLE_STRIP 4884 6 + DrawArrays TRIANGLE_STRIP 4890 9 + DrawArrays TRIANGLE_STRIP 4899 14 + DrawArrays TRIANGLE_STRIP 4913 5 + DrawArrays TRIANGLE_STRIP 4918 9 + DrawArrays TRIANGLE_STRIP 4927 10 + DrawArrays TRIANGLE_STRIP 4937 10 + DrawArrays TRIANGLE_STRIP 4947 10 + DrawArrays TRIANGLE_STRIP 4957 7 + DrawArrays TRIANGLE_STRIP 4964 17 + DrawArrays TRIANGLE_STRIP 4981 9 + DrawArrays TRIANGLE_STRIP 4990 14 + DrawArrays TRIANGLE_STRIP 5004 5 + DrawArrays TRIANGLE_STRIP 5009 12 + DrawArrays TRIANGLE_STRIP 5021 6 + DrawArrays TRIANGLE_STRIP 5027 6 + DrawArrays TRIANGLE_STRIP 5033 5 + DrawArrays TRIANGLE_STRIP 5038 6 + DrawArrays TRIANGLE_STRIP 5044 6 + DrawArrays TRIANGLE_STRIP 5050 22 + DrawArrays TRIANGLE_STRIP 5072 8 + DrawArrays TRIANGLE_STRIP 5080 15 + DrawArrays TRIANGLE_STRIP 5095 6 + DrawArrays TRIANGLE_STRIP 5101 12 + DrawArrays TRIANGLE_STRIP 5113 12 + DrawArrays TRIANGLE_STRIP 5125 6 + DrawArrays TRIANGLE_STRIP 5131 19 + DrawArrays TRIANGLE_STRIP 5150 5 + DrawArrays TRIANGLE_STRIP 5155 23 + DrawArrays TRIANGLE_STRIP 5178 8 + DrawArrays TRIANGLE_STRIP 5186 10 + DrawArrays TRIANGLE_STRIP 5196 13 + DrawArrays TRIANGLE_STRIP 5209 6 + DrawArrays TRIANGLE_STRIP 5215 6 + DrawArrays TRIANGLE_STRIP 5221 21 + DrawArrays TRIANGLE_STRIP 5242 8 + DrawArrays TRIANGLE_STRIP 5250 6 + DrawArrays TRIANGLE_STRIP 5256 7 + DrawArrays TRIANGLE_STRIP 5263 12 + DrawArrays TRIANGLE_STRIP 5275 5 + DrawArrays TRIANGLE_STRIP 5280 8 + DrawArrays TRIANGLE_STRIP 5288 13 + DrawArrays TRIANGLE_STRIP 5301 22 + DrawArrays TRIANGLE_STRIP 5323 125 + DrawArrays TRIANGLE_STRIP 5448 10 + DrawArrays TRIANGLE_STRIP 5458 10 + DrawArrays TRIANGLE_STRIP 5468 8 + DrawArrays TRIANGLE_STRIP 5476 34 + DrawArrays TRIANGLE_STRIP 5510 109 + DrawArrays TRIANGLE_STRIP 5619 5 + DrawArrays TRIANGLE_STRIP 5624 8 + DrawArrays TRIANGLE_STRIP 5632 16 + DrawArrays TRIANGLE_STRIP 5648 9 + DrawArrays TRIANGLE_STRIP 5657 29 + DrawArrays TRIANGLE_STRIP 5686 7 + DrawArrays TRIANGLE_STRIP 5693 10 + DrawArrays TRIANGLE_STRIP 5703 10 + DrawArrays TRIANGLE_STRIP 5713 61 + DrawArrays TRIANGLE_STRIP 5774 7 + DrawArrays TRIANGLE_STRIP 5781 10 + DrawArrays TRIANGLE_STRIP 5791 7 + DrawArrays TRIANGLE_STRIP 5798 11 + DrawArrays TRIANGLE_STRIP 5809 11 + DrawArrays TRIANGLE_STRIP 5820 15 + DrawArrays TRIANGLE_STRIP 5835 5 + DrawArrays TRIANGLE_STRIP 5840 11 + DrawArrays TRIANGLE_STRIP 5851 17 + DrawArrays TRIANGLE_STRIP 5868 15 + DrawArrays TRIANGLE_STRIP 5883 21 + DrawArrays TRIANGLE_STRIP 5904 5 + DrawArrays TRIANGLE_STRIP 5909 6 + DrawArrays TRIANGLE_STRIP 5915 15 + DrawArrays TRIANGLE_STRIP 5930 23 + DrawArrays TRIANGLE_STRIP 5953 5 + DrawArrays TRIANGLE_STRIP 5958 7 + DrawArrays TRIANGLE_STRIP 5965 9 + DrawArrays TRIANGLE_STRIP 5974 11 + DrawArrays TRIANGLE_STRIP 5985 13 + DrawArrays TRIANGLE_STRIP 5998 15 + DrawArrays TRIANGLE_STRIP 6013 17 + DrawArrays TRIANGLE_STRIP 6030 51 + DrawArrays TRIANGLE_STRIP 6081 6 + DrawArrays TRIANGLE_STRIP 6087 9 + DrawArrays TRIANGLE_STRIP 6096 24 + DrawArrays TRIANGLE_STRIP 6120 31 + DrawArrays TRIANGLE_STRIP 6151 13 + DrawArrays TRIANGLE_STRIP 6164 31 + DrawArrays TRIANGLE_STRIP 6195 11 + DrawArrays TRIANGLE_STRIP 6206 5 + DrawArrays TRIANGLE_STRIP 6211 24 + DrawArrays TRIANGLE_STRIP 6235 6 + DrawArrays TRIANGLE_STRIP 6241 19 + DrawArrays TRIANGLE_STRIP 6260 11 + DrawArrays TRIANGLE_STRIP 6271 30 + DrawArrays TRIANGLE_STRIP 6301 17 + DrawArrays TRIANGLE_STRIP 6318 6 + DrawArrays TRIANGLE_STRIP 6324 6 + DrawArrays TRIANGLE_STRIP 6330 10 + DrawArrays TRIANGLE_STRIP 6340 11 + DrawArrays TRIANGLE_STRIP 6351 6 + DrawArrays TRIANGLE_STRIP 6357 21 + DrawArrays TRIANGLE_STRIP 6378 9 + DrawArrays TRIANGLE_STRIP 6387 12 + DrawArrays TRIANGLE_STRIP 6399 12 + DrawArrays TRIANGLE_STRIP 6411 6 + DrawArrays TRIANGLE_STRIP 6417 8 + DrawArrays TRIANGLE_STRIP 6425 6 + DrawArrays TRIANGLE_STRIP 6431 12 + DrawArrays TRIANGLE_STRIP 6443 5 + DrawArrays TRIANGLE_STRIP 6448 8 + DrawArrays TRIANGLE_STRIP 6456 8 + DrawArrays TRIANGLE_STRIP 6464 6 + DrawArrays TRIANGLE_STRIP 6470 30 + DrawArrays TRIANGLE_STRIP 6500 6 + DrawArrays TRIANGLE_STRIP 6506 8 + DrawArrays TRIANGLE_STRIP 6514 15 + DrawArrays TRIANGLE_STRIP 6529 5 + DrawArrays TRIANGLE_STRIP 6534 8 + DrawArrays TRIANGLE_STRIP 6542 8 + DrawArrays TRIANGLE_STRIP 6550 6 + DrawArrays TRIANGLE_STRIP 6556 30 + DrawArrays TRIANGLE_STRIP 6586 5 + DrawArrays TRIANGLE_STRIP 6591 12 + DrawArrays TRIANGLE_STRIP 6603 5 + DrawArrays TRIANGLE_STRIP 6608 5 + DrawArrays TRIANGLE_STRIP 6613 6 + DrawArrays TRIANGLE_STRIP 6619 8 + DrawArrays TRIANGLE_STRIP 6627 17 + DrawArrays TRIANGLE_STRIP 6644 21 + DrawArrays TRIANGLE_STRIP 6665 7 + DrawArrays TRIANGLE_STRIP 6672 6 + DrawArrays TRIANGLE_STRIP 6678 5 + DrawArrays TRIANGLE_STRIP 6683 8 + DrawArrays TRIANGLE_STRIP 6691 5 + DrawArrays TRIANGLE_STRIP 6696 9 + DrawArrays TRIANGLE_STRIP 6705 6 + DrawArrays TRIANGLE_STRIP 6711 18 + DrawArrays TRIANGLE_STRIP 6729 5 + DrawArrays TRIANGLE_STRIP 6734 10 + DrawArrays TRIANGLE_STRIP 6744 5 + DrawArrays TRIANGLE_STRIP 6749 7 + DrawArrays TRIANGLE_STRIP 6756 5 + DrawArrays TRIANGLE_STRIP 6761 11 + DrawArrays TRIANGLE_STRIP 6772 13 + DrawArrays TRIANGLE_STRIP 6785 6 + DrawArrays TRIANGLE_STRIP 6791 14 + DrawArrays TRIANGLE_STRIP 6805 10 + DrawArrays TRIANGLE_STRIP 6815 8 + DrawArrays TRIANGLE_STRIP 6823 8 + DrawArrays TRIANGLE_STRIP 6831 12 + DrawArrays TRIANGLE_STRIP 6843 5 + DrawArrays TRIANGLE_STRIP 6848 5 + DrawArrays TRIANGLE_STRIP 6853 7 + DrawArrays TRIANGLE_STRIP 6860 6 + DrawArrays TRIANGLE_STRIP 6866 12 + DrawArrays TRIANGLE_STRIP 6878 5 + DrawArrays TRIANGLE_STRIP 6883 6 + DrawArrays TRIANGLE_STRIP 6889 17 + DrawArrays TRIANGLE_STRIP 6906 22 + DrawArrays TRIANGLE_STRIP 6928 5 + DrawArrays TRIANGLE_STRIP 6933 6 + DrawArrays TRIANGLE_STRIP 6939 10 + DrawArrays TRIANGLE_STRIP 6949 5 + DrawArrays TRIANGLE_STRIP 6954 9 + DrawArrays TRIANGLE_STRIP 6963 6 + DrawArrays TRIANGLE_STRIP 6969 5 + DrawArrays TRIANGLE_STRIP 6974 8 + DrawArrays TRIANGLE_STRIP 6982 9 + DrawArrays TRIANGLE_STRIP 6991 5 + DrawArrays TRIANGLE_STRIP 6996 5 + DrawArrays TRIANGLE_STRIP 7001 6 + DrawArrays TRIANGLE_STRIP 7007 8 + DrawArrays TRIANGLE_STRIP 7015 8 + DrawArrays TRIANGLE_STRIP 7023 6 + DrawArrays TRIANGLE_STRIP 7029 6 + DrawArrays TRIANGLE_STRIP 7035 6 + DrawArrays TRIANGLE_STRIP 7041 11 + DrawArrays TRIANGLE_STRIP 7052 8 + DrawArrays TRIANGLE_STRIP 7060 5 + DrawArrays TRIANGLE_STRIP 7065 12 + DrawArrays TRIANGLE_STRIP 7077 7 + DrawArrays TRIANGLE_STRIP 7084 5 + DrawArrays TRIANGLE_STRIP 7089 6 + DrawArrays TRIANGLE_STRIP 7095 6 + DrawArrays TRIANGLE_STRIP 7101 6 + DrawArrays TRIANGLE_STRIP 7107 9 + DrawArrays TRIANGLE_STRIP 7116 7 + DrawArrays TRIANGLE_STRIP 7123 10 + DrawArrays TRIANGLE_STRIP 7133 5 + DrawArrays TRIANGLE_STRIP 7138 10 + DrawArrays TRIANGLE_STRIP 7148 6 + DrawArrays TRIANGLE_STRIP 7154 10 + DrawArrays TRIANGLE_STRIP 7164 8 + DrawArrays TRIANGLE_STRIP 7172 10 + DrawArrays TRIANGLE_STRIP 7182 26 + DrawArrays TRIANGLE_STRIP 7208 19 + DrawArrays TRIANGLE_STRIP 7227 8 + DrawArrays TRIANGLE_STRIP 7235 5 + DrawArrays TRIANGLE_STRIP 7240 8 + DrawArrays TRIANGLE_STRIP 7248 12 + DrawArrays TRIANGLE_STRIP 7260 5 + DrawArrays TRIANGLE_STRIP 7265 6 + DrawArrays TRIANGLE_STRIP 7271 6 + DrawArrays TRIANGLE_STRIP 7277 6 + DrawArrays TRIANGLE_STRIP 7283 8 + DrawArrays TRIANGLE_STRIP 7291 12 + DrawArrays TRIANGLE_STRIP 7303 15 + DrawArrays TRIANGLE_STRIP 7318 11 + DrawArrays TRIANGLE_STRIP 7329 6 + DrawArrays TRIANGLE_STRIP 7335 6 + DrawArrays TRIANGLE_STRIP 7341 6 + DrawArrays TRIANGLE_STRIP 7347 31 + DrawArrays TRIANGLE_STRIP 7378 7 + DrawArrays TRIANGLE_STRIP 7385 8 + DrawArrays TRIANGLE_STRIP 7393 8 + DrawArrays TRIANGLE_STRIP 7401 7 + DrawArrays TRIANGLE_STRIP 7408 12 + DrawArrays TRIANGLE_STRIP 7420 34 + DrawArrays TRIANGLE_STRIP 7454 10 + DrawArrays TRIANGLE_STRIP 7464 6 + DrawArrays TRIANGLE_STRIP 7470 6 + DrawArrays TRIANGLE_STRIP 7476 23 + DrawArrays TRIANGLE_STRIP 7499 5 + DrawArrays TRIANGLE_STRIP 7504 5 + DrawArrays TRIANGLE_STRIP 7509 9 + DrawArrays TRIANGLE_STRIP 7518 6 + DrawArrays TRIANGLE_STRIP 7524 33 + DrawArrays TRIANGLE_STRIP 7557 48 + DrawArrays TRIANGLE_STRIP 7605 10 + DrawArrays TRIANGLE_STRIP 7615 6 + DrawArrays TRIANGLE_STRIP 7621 7 + DrawArrays TRIANGLE_STRIP 7628 14 + DrawArrays TRIANGLE_STRIP 7642 6 + DrawArrays TRIANGLE_STRIP 7648 6 + DrawArrays TRIANGLE_STRIP 7654 7 + DrawArrays TRIANGLE_STRIP 7661 11 + DrawArrays TRIANGLE_STRIP 7672 23 + DrawArrays TRIANGLE_STRIP 7695 10 + DrawArrays TRIANGLE_STRIP 7705 14 + DrawArrays TRIANGLE_STRIP 7719 6 + DrawArrays TRIANGLE_STRIP 7725 17 + DrawArrays TRIANGLE_STRIP 7742 8 + DrawArrays TRIANGLE_STRIP 7750 8 + DrawArrays TRIANGLE_STRIP 7758 14 + DrawArrays TRIANGLE_STRIP 7772 5 + DrawArrays TRIANGLE_STRIP 7777 40 + DrawArrays TRIANGLE_STRIP 7817 7 + DrawArrays TRIANGLE_STRIP 7824 10 + DrawArrays TRIANGLE_STRIP 7834 6 + DrawArrays TRIANGLE_STRIP 7840 6 + DrawArrays TRIANGLE_STRIP 7846 6 + DrawArrays TRIANGLE_STRIP 7852 6 + DrawArrays TRIANGLE_STRIP 7858 7 + DrawArrays TRIANGLE_STRIP 7865 29 + DrawArrays TRIANGLE_STRIP 7894 5 + DrawArrays TRIANGLE_STRIP 7899 28 + DrawArrays TRIANGLE_STRIP 7927 8 + DrawArrays TRIANGLE_STRIP 7935 7 + DrawArrays TRIANGLE_STRIP 7942 32 + DrawArrays TRIANGLE_STRIP 7974 12 + DrawArrays TRIANGLE_STRIP 7986 9 + DrawArrays TRIANGLE_STRIP 7995 27 + DrawArrays TRIANGLE_STRIP 8022 12 + DrawArrays TRIANGLE_STRIP 8034 81 + DrawArrays TRIANGLE_STRIP 8115 5 + DrawArrays TRIANGLE_STRIP 8120 7 + DrawArrays TRIANGLE_STRIP 8127 15 + DrawArrays TRIANGLE_STRIP 8142 13 + DrawArrays TRIANGLE_STRIP 8155 11 + DrawArrays TRIANGLE_STRIP 8166 6 + DrawArrays TRIANGLE_STRIP 8172 17 + DrawArrays TRIANGLE_STRIP 8189 6 + DrawArrays TRIANGLE_STRIP 8195 10 + DrawArrays TRIANGLE_STRIP 8205 51 + DrawArrays TRIANGLE_STRIP 8256 19 + DrawArrays TRIANGLE_STRIP 8275 164 + DrawArrays TRIANGLE_STRIP 8439 5 + DrawArrays TRIANGLE_STRIP 8444 5 + DrawArrays TRIANGLE_STRIP 8449 15 + DrawArrays TRIANGLE_STRIP 8464 7 + DrawArrays TRIANGLE_STRIP 8471 7 + DrawArrays TRIANGLE_STRIP 8478 6 + DrawArrays TRIANGLE_STRIP 8484 6 + DrawArrays TRIANGLE_STRIP 8490 52 + DrawArrays TRIANGLE_STRIP 8542 6 + DrawArrays TRIANGLE_STRIP 8548 6 + DrawArrays TRIANGLE_STRIP 8554 9 + DrawArrays TRIANGLE_STRIP 8563 7 + DrawArrays TRIANGLE_STRIP 8570 13 + DrawArrays TRIANGLE_STRIP 8583 6 + DrawArrays TRIANGLE_STRIP 8589 6 + DrawArrays TRIANGLE_STRIP 8595 5 + DrawArrays TRIANGLE_STRIP 8600 15 + DrawArrays TRIANGLE_STRIP 8615 11 + DrawArrays TRIANGLE_STRIP 8626 17 + DrawArrays TRIANGLE_STRIP 8643 8 + DrawArrays TRIANGLE_STRIP 8651 8 + DrawArrays TRIANGLE_STRIP 8659 8 + DrawArrays TRIANGLE_STRIP 8667 7 + DrawArrays TRIANGLE_STRIP 8674 6 + DrawArrays TRIANGLE_STRIP 8680 20 + DrawArrays TRIANGLE_STRIP 8700 5 + DrawArrays TRIANGLE_STRIP 8705 5 + DrawArrays TRIANGLE_STRIP 8710 7 + DrawArrays TRIANGLE_STRIP 8717 12 + DrawArrays TRIANGLE_STRIP 8729 14 + DrawArrays TRIANGLE_STRIP 8743 8 + DrawArrays TRIANGLE_STRIP 8751 18 + DrawArrays TRIANGLE_STRIP 8769 8 + DrawArrays TRIANGLE_STRIP 8777 5 + DrawArrays TRIANGLE_STRIP 8782 5 + DrawArrays TRIANGLE_STRIP 8787 7 + DrawArrays TRIANGLE_STRIP 8794 9 + DrawArrays TRIANGLE_STRIP 8803 10 + DrawArrays TRIANGLE_STRIP 8813 12 + DrawArrays TRIANGLE_STRIP 8825 7 + DrawArrays TRIANGLE_STRIP 8832 10 + DrawArrays TRIANGLE_STRIP 8842 12 + DrawArrays TRIANGLE_STRIP 8854 7 + DrawArrays TRIANGLE_STRIP 8861 9 + DrawArrays TRIANGLE_STRIP 8870 14 + DrawArrays TRIANGLE_STRIP 8884 19 + DrawArrays TRIANGLE_STRIP 8903 27 + DrawArrays TRIANGLE_STRIP 8930 28 + DrawArrays TRIANGLE_STRIP 8958 7 + DrawArrays TRIANGLE_STRIP 8965 7 + DrawArrays TRIANGLE_STRIP 8972 15 + DrawArrays TRIANGLE_STRIP 8987 5 + DrawArrays TRIANGLE_STRIP 8992 6 + DrawArrays TRIANGLE_STRIP 8998 6 + DrawArrays TRIANGLE_STRIP 9004 6 + DrawArrays TRIANGLE_STRIP 9010 6 + DrawArrays TRIANGLE_STRIP 9016 6 + DrawArrays TRIANGLE_STRIP 9022 5 + DrawArrays TRIANGLE_STRIP 9027 8 + DrawArrays TRIANGLE_STRIP 9035 8 + DrawArrays TRIANGLE_STRIP 9043 20 + DrawArrays TRIANGLE_STRIP 9063 10 + DrawArrays TRIANGLE_STRIP 9073 10 + DrawArrays TRIANGLE_STRIP 9083 15 + DrawArrays TRIANGLE_STRIP 9098 10 + DrawArrays TRIANGLE_STRIP 9108 43 + DrawArrays TRIANGLE_STRIP 9151 12 + DrawArrays TRIANGLE_STRIP 9163 12 + DrawArrays TRIANGLE_STRIP 9175 12 + DrawArrays TRIANGLE_STRIP 9187 6 + DrawArrays TRIANGLE_STRIP 9193 12 + DrawArrays TRIANGLE_STRIP 9205 14 + DrawArrays TRIANGLE_STRIP 9219 8 + DrawArrays TRIANGLE_STRIP 9227 6 + DrawArrays TRIANGLE_STRIP 9233 6 + DrawArrays TRIANGLE_STRIP 9239 27 + DrawArrays TRIANGLE_STRIP 9266 24 + DrawArrays TRIANGLE_STRIP 9290 5 + DrawArrays TRIANGLE_STRIP 9295 5 + DrawArrays TRIANGLE_STRIP 9300 11 + DrawArrays TRIANGLE_STRIP 9311 11 + DrawArrays TRIANGLE_STRIP 9322 18 + DrawArrays TRIANGLE_STRIP 9340 100 + DrawArrays TRIANGLE_STRIP 9440 15 + DrawArrays TRIANGLE_STRIP 9455 56 + DrawArrays TRIANGLE_STRIP 9511 5 + DrawArrays TRIANGLE_STRIP 9516 8 + DrawArrays TRIANGLE_STRIP 9524 14 + DrawArrays TRIANGLE_STRIP 9538 5 + DrawArrays TRIANGLE_STRIP 9543 6 + DrawArrays TRIANGLE_STRIP 9549 10 + DrawArrays TRIANGLE_STRIP 9559 6 + DrawArrays TRIANGLE_STRIP 9565 28 + DrawArrays TRIANGLE_STRIP 9593 87 + } + VertexArray 9680 + { + -7.94135 -11.1369 -3.44837 + -8.11402 -10.7549 -3.48527 + -8.02953 -10.7549 -3.56976 + 8.91083 0.111694 -4.50864 + 8.58945 -0.982559 -4.59966 + 8.56974 0.109708 -4.54396 + 6.36316 -3.41651 -4.3107 + 6.31667 -3.40614 -4.12696 + 6.40323 -2.1874 -4.36753 + 7.81022 -0.990645 -4.74326 + 7.56215 -2.20577 -4.69234 + 7.57314 -0.990135 -4.73431 + 7.39009 0.100518 -4.70728 + 7.2678 0.109642 -4.54575 + 7.81025 0.109611 -4.54605 + 7.28166 -0.985303 -4.64887 + 7.0708 0.109652 -4.54565 + 7.29737 0.104262 -4.64101 + 7.60728 -9.92529 -3.7082 + 7.59867 -9.86468 -3.75355 + 7.67484 -9.92614 -3.72192 + 7.94512 -9.92615 -3.72192 + 7.99612 -9.97892 -3.65035 + 7.93803 -9.97892 -3.67445 + 8.0213 -9.86469 -3.75355 + 8.08026 -9.92385 -3.68503 + 8.01269 -9.9253 -3.7082 + 8.6033 0.113857 -3.94007 + 6.99037 0.139576 -3.90409 + 7.0172 0.113898 -3.94007 + 9.31749 -7.9139 -3.1701 + 9.26646 -5.10675 -3.23363 + 9.26639 -7.9052 -3.03052 + 9.31262 -7.93091 -3.15594 + 9.23922 -8.52259 -3.13633 + 9.31532 -7.95016 -3.18345 + 8.63227 0.0318549 -3.8843 + 8.63013 0.139533 -3.90409 + 8.60537 0.0388709 -3.92628 + 6.98608 -0.0757791 -3.8645 + 6.98394 -0.183456 -3.84471 + 7.01305 -0.101456 -3.90048 + 7.01512 0.00622087 -3.92027 + 6.98608 -0.0757791 -3.8645 + 7.01305 -0.0687671 -3.90649 + 8.64509 -0.614208 -3.76553 + 8.64295 -0.506531 -3.78532 + 8.61777 -0.607194 -3.80751 + 8.33878 -0.98533 -4.64887 + 8.22988 -2.20485 -4.6758 + 8.24216 -0.988012 -4.6964 + 7.0951 -9.20942 -4.08657 + 7.32834 -9.21222 -4.14089 + 7.1039 -9.24945 -4.07661 + 8.41212 -9.97206 -3.58588 + 8.69166 -9.96894 -3.53577 + 8.40972 -9.97022 -3.55648 + 9.25842 -8.48866 -3.20057 + 9.23902 -8.48989 -3.32077 + 9.25842 -8.49613 -3.32038 + 8.22322 -9.71575 -3.36936 + 8.8757 -9.71346 -3.33234 + 8.24239 -9.71465 -3.35163 + 8.86466 -9.80051 -3.29789 + 8.24438 -9.71356 -3.33427 + 8.24438 -9.80241 -3.32873 + 8.86463 -9.79775 -3.25366 + 8.2418 -9.71015 -3.27953 + 8.2418 -9.799 -3.27398 + 8.86462 -9.79499 -3.2094 + 8.23268 -9.70664 -3.22336 + 8.23268 -9.7955 -3.21782 + 8.84788 -9.79202 -3.16186 + 8.21387 -9.70248 -3.15667 + 8.21387 -9.79133 -3.15112 + 6.4275 -8.53249 -3.01681 + 6.50836 -8.52642 -2.92212 + 6.43083 -8.49682 -3.0075 + 7.38729 -9.79547 -3.21782 + 6.75535 -9.70608 -3.21494 + 6.75535 -9.79493 -3.2094 + 7.40263 -9.71895 -3.42103 + 7.39676 -9.71573 -3.36936 + 7.38346 -9.71784 -3.40318 + 7.38147 -9.80561 -3.38028 + 6.75531 -9.71436 -3.34762 + 6.75531 -9.80321 -3.34208 + 7.42073 -9.9789 -3.30288 + 7.43309 -9.9789 -3.2103 + 7.39088 -9.95435 -3.30259 + 8.16525 -9.69728 -3.07334 + 8.76086 -9.69902 -3.10094 + 8.81011 -9.69875 -3.09661 + 7.3756 -9.80239 -3.32873 + 6.75532 -9.7116 -3.30343 + 6.75531 -9.80045 -3.29789 + 6.75534 -9.79861 -3.26836 + 7.37506 -9.71131 -3.29856 + 7.37506 -9.80016 -3.29302 + 6.75535 -9.707 -3.22964 + 7.38418 -9.70781 -3.24239 + 6.75535 -9.79585 -3.22409 + 7.37817 -9.71012 -3.27953 + 6.75535 -9.70884 -3.2592 + 7.37817 -9.79898 -3.27398 + 8.04111 -9.81249 -2.91695 + 7.95779 -9.87538 -2.90807 + 8.0317 -9.87675 -2.92995 + 7.4061 -9.79131 -3.15112 + 6.77209 -9.70311 -3.1674 + 6.77209 -9.79197 -3.16186 + 6.8947 -9.69704 -3.07006 + 6.82103 -9.69806 -3.08637 + 6.80986 -9.6987 -3.09661 + -7.74492 -9.9785 -3.6916 + -7.68196 -9.97851 -3.67445 + -7.81002 -9.9785 -3.69607 + -8.84791 -9.79156 -3.16186 + -8.21389 -9.7909 -3.15112 + -8.84791 -9.7027 -3.1674 + -7.46113 0.0991848 -4.73778 + -7.45034 -0.989072 -4.72251 + -7.58256 0.0983428 -4.75277 + -8.24172 -0.987578 -4.6964 + -8.22991 0.100928 -4.70728 + -8.16922 -0.989053 -4.72251 + -6.99602 -0.929815 -3.74813 + -8.62353 -0.929772 -3.74813 + -6.96849 -0.936829 -3.70614 + -8.65106 -0.936785 -3.70614 + -8.62146 -0.854784 -3.76191 + -8.64892 -0.829108 -3.72594 + -8.62146 -0.822095 -3.76792 + -8.61939 -0.747107 -3.78171 + -8.64892 -0.829108 -3.72594 + -6.36158 -8.49572 -3.32038 + -6.36158 -8.48825 -3.20057 + -6.38097 -8.48948 -3.32077 + -6.35361 -7.90479 -3.03052 + -6.34874 -7.92345 -3.04306 + -6.35354 -5.10634 -3.23363 + -7.08324 -9.20128 -4.09518 + -7.0432 -8.57717 -4.26722 + -7.02125 -8.57694 -4.26264 + -8.28879 -9.20424 -4.15337 + -8.5249 -9.20901 -4.08657 + -8.52544 -9.20392 -4.09413 + -6.92834 -9.96852 -3.53577 + -7.21028 -9.96981 -3.55648 + -7.20788 -9.97164 -3.58588 + -6.80988 -9.69834 -3.09661 + -6.85914 -9.69861 -3.10094 + -6.78772 -9.69901 -3.1074 + -7.50254 -9.97173 -3.58734 + -7.47795 -9.97019 -3.56272 + -7.57194 -9.97851 -3.61494 + -6.7856 -9.78956 -3.12898 + -7.42613 -9.78872 -3.11591 + -6.7856 -9.70071 -3.13452 + -7.40613 -9.79092 -3.15112 + -6.77211 -9.79161 -3.16186 + -7.40612 -9.70207 -3.15667 + -8.87572 -9.71299 -3.33234 + -8.86468 -9.71119 -3.30343 + -8.87572 -9.71024 -3.28825 + -8.24241 -9.80306 -3.34609 + -8.86468 -9.80096 -3.31258 + -8.24241 -9.71421 -3.35163 + -8.19927 -9.97849 -3.30288 + -7.46149 -9.97851 -3.13449 + -7.49775 -9.97851 -3.07557 + -8.23654 -9.80628 -3.39764 + -8.86469 -9.80371 -3.35677 + -8.23653 -9.71743 -3.40318 + -7.4042 -9.94776 -3.20309 + -7.40004 -9.7086 -3.26128 + -7.40917 -9.70508 -3.20488 + -6.76527 -9.70378 -3.18375 + -7.39549 -9.7927 -3.17956 + -7.39549 -9.70385 -3.1851 + -8.75216 -9.81041 -3.46407 + -8.20252 -9.81309 -3.50677 + -8.75215 -9.72156 -3.46961 + -8.85137 -9.80591 -3.39203 + -8.23137 -9.80859 -3.43461 + -8.85137 -9.71706 -3.39758 + -8.87572 -9.95759 -3.36133 + -8.87572 -9.95209 -3.27316 + -8.89787 -9.95802 -3.36827 + -8.79897 -9.9395 -3.07129 + -8.72752 -9.69569 -3.05502 + -8.72753 -9.93754 -3.03993 + 7.7333 -11.1373 -3.48131 + 7.58047 -10.7553 -3.56976 + 7.68694 -10.7553 -3.62401 + -7.62172 -10.2547 -3.3082 + -7.63834 -10.3742 -3.33699 + -7.61979 -10.3609 -3.30487 + -7.6079 -10.3245 -3.28427 + -7.6096 -10.3347 -3.2872 + -5.94721 -10.3806 -4.08387 + -9.44676 -10.3805 -4.45815 + -9.93847 -10.2142 -4.26771 + -9.64237 -10.2122 -4.11933 + -7.92394 -10.3245 -3.41974 + -7.92563 -10.3347 -3.41681 + -9.44676 -10.3805 -4.45815 + -8.01014 -10.4061 -1.24031 + -7.87986 -10.3347 -3.07831 + -7.86743 -10.3537 -3.07831 + 7.97523 -10.2578 -3.33082 + 7.97921 -10.265 -3.32392 + 9.64233 -10.2127 -4.11933 + 7.96515 -10.3543 -0.00749964 + 7.97088 -10.3271 -0.00749865 + 7.91199 -10.3378 0.166213 + 7.63829 -10.3746 -3.33699 + 7.60954 -10.3351 -3.2872 + 7.61974 -10.3613 -3.30487 + 4.90746 -10.3543 -4.7487 + 4.9046 -10.3271 -4.74374 + 4.78361 -10.3378 -4.88159 + -0.165801 -8.51695 -1.17268 + 0.160901 -8.51716 -1.17257 + -0.144225 -8.30717 -1.03392 + -0.953654 -7.90188 -0.918034 + -0.736053 -8.23087 -1.04881 + -0.687475 -8.02014 -0.910804 + -1.75736 -14.5522 -2.86378 + -1.2614 -15.338 -2.5994 + -1.47954 -14.5526 -2.50844 + -0.138706 -18.1655 -3.22157 + -0.094351 -18.1655 -3.19189 + -0.524496 -17.2718 -2.85424 + -2.64776 -6.71748 -4.59599 + -6.4294 -6.43437 -4.43077 + -2.65815 -6.43192 -4.69861 + -2.22119 -7.42875 -2.04183 + -2.20707 -7.40625 -2.00641 + -2.38388 -6.72317 -1.9805 + -2.38873 -9.25254 -2.83312 + -2.26852 -9.29269 -2.36208 + -2.26402 -9.25275 -2.34163 + -22.0993 -3.26608 -3.1603 + -22.0984 -2.44982 -3.35242 + -22.1477 -2.47673 -3.36437 + 13.2987 -2.64591 -3.66896 + 13.3002 -2.61961 -3.70219 + 13.2987 -2.58613 -3.67572 + 2.40429 -1.98222 -4.29145 + 2.38204 -1.98144 -4.26157 + 2.41868 -2.03194 -4.29893 + 6.42998 -2.14683 -4.11063 + 6.47979 -2.09996 -4.11274 + 6.42998 -2.04736 -4.12118 + -1.90468 0.126832 -0.891243 + -2.20042 -0.120667 -1.20844 + -1.92419 -0.120995 -0.891255 + -0.822866 -1.98134 -0.276537 + -1.51828 -2.31906 -0.539674 + -0.823298 -2.31994 -0.270133 + -1.93397 -1.66133 -0.837138 + -2.21422 -1.97958 -1.15672 + -1.93438 -1.97993 -0.832198 + 0.932314 -12.1414 -1.9983 + 0.790403 -13.8141 -2.05336 + 1.7797 -12.1414 -2.26192 + -1.75901 -7.44016 -1.1302 + -1.93977 -7.61157 -1.46438 + -1.91903 -7.64444 -1.45817 + -1.50136 -8.07692 -1.35692 + -1.54765 -8.26117 -1.58207 + -1.22359 -8.62789 -1.54796 + -1.03784 -8.06483 -1.06209 + -1.35273 -7.79935 -1.06238 + -1.09621 -8.24625 -1.20363 + -1.6969 -6.9833 -0.858311 + -1.50158 -6.83687 -0.652686 + -1.45977 -6.7692 -0.592049 + 0.479553 -6.9864 -0.300965 + 0.746792 -6.65115 -0.289447 + -0.001439 -6.48618 -0.23084 + 0.825778 -4.1094 -0.229735 + 0.099292 -5.18156 -0.211399 + 0.808862 -5.18158 -0.24379 + -2.29937 0.415056 -1.55178 + -2.16012 1.85623 -1.58945 + -2.31454 0.395152 -1.58894 + 2.53261 -0.143447 -3.45108 + 2.54436 -0.143447 -2.84356 + 2.54654 -1.64385 -3.45108 + 2.37989 -2.00244 -1.52466 + 2.38554 -2.32104 -1.54026 + 2.54386 -2.32105 -2.07657 + 2.37193 -2.34104 -1.50251 + 2.21775 -2.30104 -1.151 + 2.2151 -2.34104 -1.14434 + 14.2089 -4.44768 -3.5683 + 14.2124 -4.34785 -3.57154 + 14.2044 -4.4449 -3.48728 + -19.1063 -1.98748 -3.55442 + -19.1077 -2.9416 -3.3479 + -13.2923 -1.08908 -3.94695 + 1.67327 -7.01908 -0.84811 + 1.62497 -7.19081 -0.859486 + 1.86881 -7.20054 -1.16342 + -2.18984 -12.1583 -2.85855 + -1.93151 -12.1587 -2.39106 + -2.19378 -12.1186 -2.85868 + -2.39014 -1.62967 -4.3578 + -6.42464 -2.03906 -4.12527 + -2.40707 -1.92987 -4.31499 + -18.1554 -4.55396 -3.35255 + -18.1587 -4.45413 -3.35579 + -18.1509 -4.55118 -3.27153 + 0.000822 -5.39618 -5.11992 + 0.928624 -5.3462 -4.99395 + 0.879077 -5.3962 -5.00067 + 0.107761 -7.83569 -0.740008 + 0.367249 -7.84207 -0.744802 + -0.001991 -7.57286 -0.560327 + 0.595108 -7.79565 -0.746543 + 0.861444 -7.67774 -0.753603 + 0.397908 -7.53987 -0.567902 + 1.52098 -2.32102 -0.538705 + 0.825825 -2.321 -0.269608 + 1.52098 -4.10942 -0.503363 + 2.16888 1.85344 -1.58807 + 2.02749 1.89326 -1.25423 + 2.02842 1.85345 -1.24646 + -0.048391 16.2447 -0.480882 + -0.202036 15.2023 -0.480881 + -0.042757 17.8328 3.96874 + -8.52065 11.2343 -2.46403 + -8.5179 11.1394 -2.49356 + -7.00732 11.1643 -2.47164 + -8.51705 12.462 -2.40831 + -8.59345 11.2192 -2.48091 + -8.5435 11.2143 -2.43766 + 0.293509 14.8026 -2.14954 + 0.244319 14.8026 -2.14386 + 0.455212 10.979 -1.49467 + 0.816844 0.124398 -0.347626 + 0.10246 -0.143385 -0.300001 + 0.825542 -0.143402 -0.347626 + -1.8419 3.59871 -1.30484 + -2.01561 3.35492 -1.66419 + -1.88418 3.36293 -1.33755 + -0.206148 15.749 4.02363 + -0.205218 11.609 0.100072 + -0.214098 14.5545 3.98967 + -0.215011 15.6198 4.90112 + -0.129048 15.113 4.89438 + -0.217442 15.1137 4.89364 + -0.095486 2.40915 -0.414288 + -0.733898 2.40996 -0.449654 + -0.09575 1.87355 -0.365479 + 0.694182 3.8954 -0.585722 + 0.106005 5.21102 -0.685963 + 0.1051 3.89542 -0.54307 + 8.56488 11.2033 -2.43221 + 8.53892 11.4223 -2.40926 + 8.53991 11.1266 -2.42135 + 2.12085 3.89536 -3.44148 + 1.99669 5.19108 -2.83885 + 2.13018 3.89536 -2.88245 + -0.733885 14.8036 -2.28505 + -1.26338 10.9806 -2.03571 + -1.17843 10.9805 -1.87578 + -8.59189 12.4555 -2.46671 + -8.59028 13.6922 -2.53884 + -8.59419 10.5731 -2.5968 + -0.223058 14.5307 4.86038 + -0.190041 15.5659 5.07041 + -0.208998 15.333 4.94764 + -0.195211 17.5089 4.90112 + -0.030857 18.1656 5.07002 + -0.041576 18.1656 4.90112 + 0.163382 15.3701 4.90124 + 0.162316 14.7373 4.06558 + 0.251789 15.6197 4.90112 + -0.193898 14.9167 5.07043 + -0.064013 14.9038 5.11992 + -0.133101 15.5658 5.11992 + -0.048085 -1.64369 -0.233826 + 0.068186 -1.67711 -0.230904 + 0.051463 -1.64375 -0.233795 + 0.226209 15.7102 -2.65457 + 0.013668 15.7102 -2.66115 + 0.527643 15.7102 -2.63585 + -8.02953 -10.7549 -3.56976 + -7.87671 -11.1369 -3.48131 + -7.94135 -11.1369 -3.44837 + -7.80506 -11.587 -3.26078 + -7.80506 -11.587 -3.26078 + -7.99264 -11.1369 -3.39707 + -7.94135 -11.1369 -3.44837 + -8.11402 -10.7549 -3.48527 + -8.03693 -11.1369 -3.26078 + -8.18696 -10.7549 -3.26078 + -8.02558 -11.1369 -3.33243 + -8.16827 -10.7549 -3.3788 + -8.02558 -11.1369 -3.18912 + -8.16827 -10.7549 -3.14276 + -8.03693 -11.1369 -3.26078 + -8.18696 -10.7549 -3.26078 + -8.05357 -10.4958 -3.60286 + -7.92306 -10.7549 -3.62401 + -8.02953 -10.7549 -3.56976 + -7.87671 -11.1369 -3.48131 + -7.92306 -10.7549 -3.62401 + -7.80505 -11.1369 -3.49266 + -7.87671 -11.1369 -3.48131 + -7.80506 -11.587 -3.26078 + -7.94135 -11.1369 -3.07318 + -8.02953 -10.7549 -2.95179 + -7.99264 -11.1369 -3.12448 + -8.11402 -10.7549 -3.03629 + -8.02953 -10.7549 -2.95179 + -8.05357 -10.4958 -2.91869 + -8.11402 -10.7549 -3.03629 + -8.14712 -10.4958 -3.01223 + -8.05357 -10.4958 -2.91869 + -8.05357 -10.3185 -2.91869 + -8.14712 -10.4958 -3.01223 + -8.14712 -10.3184 -3.01223 + -7.87671 -11.1369 -3.04024 + -7.92306 -10.7549 -2.89755 + -7.94135 -11.1369 -3.07318 + -8.02953 -10.7549 -2.95179 + -7.92306 -10.7549 -2.89755 + -7.9357 -10.4958 -2.85863 + -8.02953 -10.7549 -2.95179 + -8.05357 -10.4958 -2.91869 + -7.9357 -10.4958 -2.85863 + -7.93569 -10.3185 -2.85863 + -8.05357 -10.4958 -2.91869 + -8.05357 -10.3185 -2.91869 + -7.93569 -10.3185 -3.66292 + -7.80503 -10.4958 -3.68362 + -7.9357 -10.4958 -3.66292 + -7.80504 -10.7549 -3.6427 + -7.80503 -10.4958 -3.68362 + -7.68702 -10.7549 -3.62401 + -7.80504 -10.7549 -3.6427 + -7.73339 -11.1369 -3.48131 + -7.68702 -10.7549 -3.62401 + -7.66875 -11.1369 -3.44837 + -7.73339 -11.1369 -3.48131 + -7.80506 -11.587 -3.26078 + -7.73339 -11.1369 -3.04024 + -7.68702 -10.7549 -2.89755 + -7.80505 -11.1369 -3.02889 + -7.80504 -10.7549 -2.87885 + -7.68702 -10.7549 -2.89755 + -7.67437 -10.4958 -2.85863 + -7.80504 -10.7549 -2.87885 + -7.80503 -10.4958 -2.83793 + -7.67437 -10.4958 -2.85863 + -7.67436 -10.3185 -2.85863 + -7.80503 -10.4958 -2.83793 + -7.80503 -10.3185 -2.83793 + -7.67436 -10.3185 -2.85863 + -7.69965 -10.3185 -2.93646 + -7.80503 -10.3185 -2.83793 + -7.80503 -10.3185 -2.91977 + -7.69965 -10.3185 -2.93646 + -7.69965 -10.2093 -2.93646 + -7.80503 -10.3185 -2.91977 + -7.80503 -10.2093 -2.91977 + -7.66875 -11.1369 -3.07318 + -7.58055 -10.7549 -2.95179 + -7.73339 -11.1369 -3.04024 + -7.68702 -10.7549 -2.89755 + -7.58055 -10.7549 -2.95179 + -7.55649 -10.4958 -2.91869 + -7.68702 -10.7549 -2.89755 + -7.67437 -10.4958 -2.85863 + -7.55649 -10.4958 -2.91869 + -7.55649 -10.3185 -2.91869 + -7.67437 -10.4958 -2.85863 + -7.67436 -10.3185 -2.85863 + -7.55649 -10.3185 -2.91869 + -7.60459 -10.3185 -2.9849 + -7.67436 -10.3185 -2.85863 + -7.69965 -10.3185 -2.93646 + -7.60459 -10.3185 -2.9849 + -7.60459 -10.2093 -2.9849 + -7.69965 -10.3185 -2.93646 + -7.69965 -10.2093 -2.93646 + -7.67436 -10.3185 -3.66292 + -7.55649 -10.4958 -3.60286 + -7.67437 -10.4958 -3.66292 + -7.58055 -10.7549 -3.56976 + -7.55649 -10.4958 -3.60286 + -7.49606 -10.7549 -3.48527 + -7.58055 -10.7549 -3.56976 + -7.61745 -11.1369 -3.39707 + -7.49606 -10.7549 -3.48527 + -7.58452 -11.1369 -3.33243 + -7.61745 -11.1369 -3.39707 + -7.80506 -11.587 -3.26078 + 8.18444 -9.78818 -3.10059 + 8.83439 -9.78997 -3.12898 + 8.82751 -9.78895 -3.11258 + 8.82751 -9.70009 -3.11812 + 8.82751 -9.70009 -3.11812 + 8.18444 -9.69933 -3.10613 + 8.82751 -9.78895 -3.11258 + 8.18444 -9.78818 -3.10059 + 6.62926 -9.19211 -2.9418 + 6.55625 -9.19737 -3.02615 + 6.55093 -9.18864 -3.01786 + 6.51243 -9.20474 -3.14425 + 8.58182 -9.1869 -2.85745 + 7.89174 -9.18688 -2.85745 + 8.58312 -9.17795 -2.84561 + 7.88553 -9.17793 -2.84561 + 8.87557 -9.93391 -3.09638 + 8.89783 -9.94658 -3.1773 + 8.88948 -9.8862 -3.08111 + 8.92736 -9.89185 -3.17161 + 8.86466 -9.80326 -3.34208 + 8.2385 -9.80563 -3.38028 + 8.86466 -9.80418 -3.35677 + 8.23651 -9.80671 -3.39764 + 8.91083 0.111694 -4.50864 + 8.93914 -0.978982 -4.53616 + 8.58945 -0.982559 -4.59966 + 8.61159 -2.20037 -4.59625 + 8.93914 -0.978982 -4.53616 + 8.97115 -2.19582 -4.51543 + 8.61159 -2.20037 -4.59625 + 8.63447 -3.43195 -4.58308 + 8.97115 -2.19582 -4.51543 + 9.00424 -3.42653 -4.48682 + 8.63447 -3.43195 -4.58308 + 8.63859 -5.1376 -4.51206 + 9.00424 -3.42653 -4.48682 + 9.01096 -5.1318 -4.40918 + 8.63859 -5.1376 -4.51206 + 8.63859 -5.17643 -4.50938 + 8.56889 -0.98273 -4.60269 + 8.32312 0.104235 -4.64101 + 8.5497 0.109613 -4.54565 + 8.3527 0.109613 -4.54575 + 8.52228 1.70536 -4.29687 + 8.17114 1.70509 -4.30128 + 9.09582 1.70653 -4.27785 + 9.13764 1.70732 -4.26523 + 9.2225 -0.965585 -4.29874 + 9.18757 0.119144 -4.37655 + 9.19118 0.131762 -4.02841 + 9.14092 1.70992 -4.22342 + 9.2225 -0.965585 -4.29874 + 9.26238 -2.17876 -4.21323 + 9.21714 -2.18747 -4.36753 + 9.25714 -3.41659 -4.3107 + 8.64295 -0.506531 -3.78532 + 8.64082 -0.398854 -3.80512 + 8.6157 -0.499517 -3.82731 + 8.61363 -0.42453 -3.84109 + 8.61363 -0.42453 -3.84109 + 7.00476 -0.499474 -3.82731 + 8.6157 -0.499517 -3.82731 + 8.64295 -0.506531 -3.78532 + 6.97536 -0.614164 -3.76553 + 7.00268 -0.607151 -3.80751 + 7.00476 -0.532164 -3.8213 + 8.6157 -0.532207 -3.8213 + 8.6157 -0.532207 -3.8213 + 6.97751 -0.506488 -3.78532 + 7.00476 -0.532164 -3.8213 + 6.97536 -0.614164 -3.76553 + 6.98394 -0.183456 -3.84471 + 6.98179 -0.291134 -3.82491 + 7.01097 -0.209133 -3.88068 + 7.0089 -0.28412 -3.8669 + 7.0089 -0.28412 -3.8669 + 8.6095 -0.209175 -3.88068 + 7.01097 -0.209133 -3.88068 + 6.98394 -0.183456 -3.84471 + 8.6344 -0.0758221 -3.8645 + 8.60743 -0.101498 -3.90048 + 8.6095 -0.176485 -3.88669 + 7.01097 -0.176443 -3.88669 + 7.01097 -0.176443 -3.88669 + 8.63654 -0.183499 -3.84471 + 8.6095 -0.176485 -3.88669 + 8.6344 -0.0758221 -3.8645 + 6.40323 -2.1874 -4.36753 + 6.64922 -2.19576 -4.51543 + 6.36316 -3.41651 -4.3107 + 6.61607 -3.42646 -4.48682 + 6.64922 -2.19576 -4.51543 + 7.00878 -2.20033 -4.59625 + 6.61607 -3.42646 -4.48682 + 6.98584 -3.43191 -4.58308 + 7.00878 -2.20033 -4.59625 + 7.02992 -2.20055 -4.60011 + 6.98584 -3.43191 -4.58308 + 7.00758 -3.43217 -4.58767 + 7.02992 -2.20055 -4.60011 + 7.26857 -2.20354 -4.65306 + 7.00758 -3.43217 -4.58767 + 7.4032 -3.43581 -4.65194 + 6.31125 -3.37679 -3.53439 + 6.35799 -2.17869 -4.21323 + 6.31667 -3.40614 -4.12696 + 6.40323 -2.1874 -4.36753 + 7.81022 -0.990645 -4.74326 + 7.81019 -2.20643 -4.70393 + 7.56215 -2.20577 -4.69234 + 7.4032 -3.43581 -4.65194 + 7.29737 0.104262 -4.64101 + 7.37828 -0.987989 -4.6964 + 7.28166 -0.985303 -4.64887 + 7.39049 -2.20483 -4.6758 + 8.05822 -2.20578 -4.69234 + 7.81015 -3.43706 -4.67395 + 7.81019 -2.20643 -4.70393 + 7.4032 -3.43581 -4.65194 + 7.81015 -3.43706 -4.67395 + 7.40131 -5.14173 -4.58566 + 7.4032 -3.43581 -4.65194 + 7.0035 -5.13784 -4.51697 + 7.59867 -9.86468 -3.75355 + 7.66911 -9.86503 -3.75912 + 7.67484 -9.92614 -3.72192 + 7.74241 -9.92686 -3.73326 + 9.31262 -7.93091 -3.15594 + 9.27125 -7.92386 -3.04306 + 9.23922 -8.52259 -3.13633 + 9.20034 -8.51597 -3.03021 + 6.43292 0.119217 -4.37655 + 6.39794 -0.96551 -4.29874 + 6.39354 -0.94634 -3.85296 + 6.35309 -2.15445 -3.69434 + 8.70429 -7.89275 -2.83114 + 8.71408 -7.92849 -2.83167 + 9.06018 -7.93069 -2.87023 + 9.00284 -8.48807 -2.86545 + 6.55816 -5.09729 -3.08326 + 6.55808 -7.89518 -2.87102 + 6.91578 -7.8927 -2.83114 + 6.90599 -7.92845 -2.83167 + 6.90599 -7.92845 -2.83167 + 6.92693 -7.91054 -2.83053 + 6.91578 -7.8927 -2.83114 + 8.69314 -7.91059 -2.83053 + 7.80998 -9.97891 -3.69607 + 7.80998 -9.92697 -3.73515 + 7.87508 -9.97892 -3.6916 + 7.87755 -9.92686 -3.73326 + 7.80998 -9.92697 -3.73515 + 7.80999 -9.86572 -3.77027 + 7.87755 -9.92686 -3.73326 + 7.88042 -9.86567 -3.76943 + 7.80999 -9.86572 -3.77027 + 7.81 -9.2456 -4.16084 + 7.88042 -9.86567 -3.76943 + 7.88204 -9.24545 -4.15806 + 9.12512 -9.155 -3.12355 + 9.12961 -9.15653 -3.15193 + 9.24409 -8.52434 -3.16439 + 9.12961 -9.18137 -3.70044 + 9.00069 -8.52361 -2.86619 + 8.67315 -8.48555 -2.82872 + 8.65883 -8.52109 -2.82776 + 8.64959 -8.5033 -2.82739 + 9.08287 -9.16112 -3.01785 + 9.00106 -9.15222 -2.93194 + 8.99074 -9.19217 -2.9418 + 8.90198 -9.14819 -2.88677 + 6.98822 0.0318979 -3.8843 + 8.60536 0.00617987 -3.92027 + 8.63227 0.0318549 -3.8843 + 8.60743 -0.0688091 -3.90649 + 6.97536 -0.614164 -3.76553 + 8.61777 -0.639885 -3.8015 + 8.64509 -0.614208 -3.76553 + 8.61984 -0.714871 -3.78772 + 7.00268 -0.639842 -3.8015 + 6.97322 -0.721842 -3.74573 + 7.00061 -0.714828 -3.78772 + 8.64723 -0.721886 -3.74573 + 6.97322 -0.721842 -3.74573 + 8.61984 -0.747561 -3.78171 + 8.64723 -0.721886 -3.74573 + 8.62191 -0.822549 -3.76792 + 6.99854 -0.855195 -3.76191 + 8.62191 -0.855238 -3.76191 + 6.97107 -0.829518 -3.72594 + 8.64937 -0.829562 -3.72594 + 8.64937 -0.829562 -3.72594 + 6.99854 -0.822506 -3.76792 + 6.97107 -0.829518 -3.72594 + 7.00061 -0.747518 -3.78171 + 9.21863 -2.14926 -3.61001 + 9.17937 -0.942641 -3.79251 + 9.09972 -0.939946 -3.74933 + 9.06702 0.137241 -3.94066 + 9.31385 -5.14892 -4.02188 + 9.31756 -5.1083 -3.99283 + 9.31756 -5.14713 -3.99015 + 9.31756 -5.07613 -3.36765 + 8.33878 -0.98533 -4.64887 + 8.3518 -2.20357 -4.65306 + 8.22988 -2.20485 -4.6758 + 8.2171 -3.43583 -4.65194 + 8.85135 -9.71753 -3.39758 + 8.84142 -9.80805 -3.41872 + 8.84142 -9.71919 -3.42426 + 8.21959 -9.81101 -3.46646 + 8.85135 -9.80638 -3.39203 + 8.23134 -9.72017 -3.44015 + 8.23134 -9.80902 -3.43461 + 8.21959 -9.72216 -3.472 + 7.53971 -9.92384 -3.68503 + 7.57191 -9.97891 -3.61494 + 7.40726 -9.97413 -3.61962 + 7.40808 -9.97229 -3.59002 + 7.41748 -9.8135 -3.50677 + 6.86784 -9.72197 -3.46961 + 6.86784 -9.81082 -3.46407 + 6.9366 -9.72402 -3.50248 + 6.86784 -9.72197 -3.46961 + 6.93357 -9.72524 -3.52197 + 6.9366 -9.72402 -3.50248 + 7.47792 -9.72874 -3.57781 + 8.21735 -9.71898 -3.42103 + 8.18419 -9.96643 -3.49582 + 8.19074 -9.72348 -3.49315 + 8.14205 -9.9706 -3.56272 + 8.87557 -9.93391 -3.09638 + 8.85517 -9.944 -3.13598 + 8.87569 -9.94706 -3.185 + 8.8757 -9.70521 -3.20009 + 8.19074 -9.72348 -3.49315 + 8.75213 -9.72202 -3.46961 + 8.8508 -9.72039 -3.44338 + 8.68337 -9.72407 -3.50248 + 8.75213 -9.72202 -3.46961 + 8.68337 -9.81292 -3.49694 + 8.68337 -9.72407 -3.50248 + 8.17754 -9.81623 -3.55015 + 8.75213 -9.81087 -3.46407 + 8.2025 -9.72467 -3.51231 + 8.2025 -9.81352 -3.50677 + 8.17755 -9.72738 -3.5557 + 8.2025 -9.72467 -3.51231 + 8.14205 -9.72875 -3.57781 + 8.17755 -9.72738 -3.5557 + 8.68641 -9.72528 -3.52197 + 6.43083 -8.49682 -3.0075 + 6.4197 -8.51589 -3.03021 + 6.4275 -8.53249 -3.01681 + 6.38082 -8.52251 -3.13633 + 6.49621 -9.16412 -3.14301 + 6.49233 -9.15839 -3.13909 + 6.49621 -9.18935 -3.69727 + 6.49039 -9.1813 -3.70044 + 7.56537 -9.97891 -3.00531 + 8.00185 -9.97892 -2.96992 + 7.61811 -9.97891 -2.96992 + 7.94436 -9.97892 -2.94291 + 6.64516 -9.82754 -3.15875 + 6.69261 -9.89179 -3.17161 + 6.73049 -9.88614 -3.08111 + 6.72213 -9.94652 -3.1773 + 7.42073 -9.9789 -3.30288 + 8.18687 -9.97892 -3.2103 + 7.43309 -9.9789 -3.2103 + 8.15851 -9.97892 -3.13449 + 8.18687 -9.97892 -3.2103 + 8.18526 -9.94307 -3.12146 + 8.15851 -9.97892 -3.13449 + 8.14582 -9.93908 -3.05738 + 8.18526 -9.94307 -3.12146 + 8.15699 -9.69836 -3.09061 + 8.14582 -9.93908 -3.05738 + 8.11814 -9.69543 -3.04371 + 8.15699 -9.69836 -3.09061 + 8.1523 -9.69631 -3.05771 + 8.11814 -9.69543 -3.04371 + 8.25513 -9.69581 -3.04971 + 8.1523 -9.69631 -3.05771 + 8.25513 -9.78466 -3.04416 + 8.25513 -9.69581 -3.04971 + 8.47034 -9.78467 -3.04416 + 6.74428 -9.71615 -3.37642 + 7.38863 -9.72015 -3.44015 + 7.40263 -9.71895 -3.42103 + 7.40038 -9.72213 -3.472 + 7.38863 -9.72015 -3.44015 + 7.40038 -9.81099 -3.46646 + 7.40038 -9.72213 -3.472 + 6.77855 -9.80799 -3.41872 + 6.9366 -9.81287 -3.49694 + 7.44243 -9.72736 -3.5557 + 7.44243 -9.81621 -3.55015 + 7.41748 -9.72465 -3.51231 + 6.77855 -9.71914 -3.42426 + 6.76863 -9.80633 -3.39203 + 6.76863 -9.71747 -3.39758 + 7.38863 -9.809 -3.43461 + 8.16525 -9.78613 -3.0678 + 8.76101 -9.69807 -3.08574 + 8.761 -9.78692 -3.08019 + 8.72528 -9.69709 -3.07006 + 8.79895 -9.69811 -3.08637 + 8.7275 -9.938 -3.03993 + 8.72751 -9.69615 -3.05502 + 8.47087 -9.93643 -3.01491 + 8.7275 -9.938 -3.03993 + 8.47168 -9.93459 -2.98534 + 8.47087 -9.93643 -3.01491 + 8.25263 -9.93458 -2.98534 + 8.04111 -9.81249 -2.91695 + 7.96407 -9.81109 -2.89448 + 7.95779 -9.87538 -2.90807 + 7.88389 -9.8742 -2.88931 + 7.43553 -9.78816 -3.10059 + 6.79247 -9.70004 -3.11812 + 6.79246 -9.78889 -3.11258 + 6.78558 -9.70106 -3.13452 + 7.46768 -9.78514 -3.05217 + 6.89469 -9.78589 -3.06451 + 7.45472 -9.78612 -3.0678 + 6.85897 -9.78687 -3.08019 + 7.36584 -9.69456 -3.03 + 7.14909 -9.9364 -3.01491 + 7.1491 -9.69455 -3.03 + 6.89246 -9.93795 -3.03993 + 7.43553 -9.69931 -3.10613 + 7.42611 -9.78912 -3.11591 + 7.42611 -9.70026 -3.12145 + 6.78557 -9.78991 -3.12898 + -8.82753 -9.69963 -3.11812 + -8.82753 -9.78848 -3.11258 + -8.18446 -9.78775 -3.10059 + -8.19389 -9.7887 -3.11591 + -8.19389 -9.7887 -3.11591 + -8.18446 -9.6989 -3.10613 + -8.18446 -9.78775 -3.10059 + -8.82753 -9.69963 -3.11812 + -7.88045 -9.86526 -3.76943 + -7.81001 -9.86531 -3.77027 + -7.81002 -9.92656 -3.73515 + -7.74244 -9.92645 -3.73326 + -7.81001 -9.86531 -3.77027 + -7.73957 -9.86526 -3.76943 + -7.74244 -9.92645 -3.73326 + -7.67488 -9.92574 -3.72192 + -7.53974 -9.92344 -3.68503 + -7.57194 -9.97851 -3.61494 + -7.62388 -9.97851 -3.65035 + -7.87511 -9.9785 -3.6916 + -8.86465 -9.7982 -3.26836 + -8.24494 -9.79975 -3.29302 + -8.86465 -9.79728 -3.25366 + -8.24183 -9.79857 -3.27398 + -6.75534 -9.8001 -3.29789 + -7.37562 -9.802 -3.32873 + -6.75534 -9.80101 -3.31258 + -7.37761 -9.80309 -3.34609 + -6.75537 -9.79458 -3.2094 + -7.38732 -9.79508 -3.21782 + -6.75537 -9.79549 -3.22409 + -7.3842 -9.79627 -3.23685 + -7.44245 -9.81582 -3.55015 + -6.93663 -9.81251 -3.49694 + -7.4175 -9.81311 -3.50677 + -6.86787 -9.81046 -3.46407 + -7.73447 -9.17752 -2.84561 + -7.57889 -9.81208 -2.91695 + -7.50184 -9.81245 -2.92286 + -7.5883 -9.87634 -2.92995 + -7.5883 -9.87634 -2.92995 + -7.5144 -9.87681 -2.93764 + -7.50184 -9.81245 -2.92286 + -7.34776 -9.81246 -2.92286 + -7.34776 -9.81246 -2.92286 + -7.03688 -9.17754 -2.84561 + -7.50184 -9.81245 -2.92286 + -7.73447 -9.17752 -2.84561 + -7.88828 -9.2526 -4.14542 + -7.81683 -9.21276 -4.159 + -7.81683 -9.25274 -4.14814 + -7.81 -9.24519 -4.16084 + -7.81 -9.24519 -4.16084 + -7.88204 -9.24504 -4.15806 + -7.81683 -9.25274 -4.14814 + -7.88828 -9.2526 -4.14542 + -8.21192 -9.97188 -3.59002 + -8.21274 -9.97372 -3.61962 + -8.04809 -9.9785 -3.61494 + -8.08029 -9.92343 -3.68503 + -8.70013 -9.91788 -3.59637 + -8.73792 -9.85737 -3.64337 + -8.44178 -9.86079 -3.69803 + -8.51684 -9.2414 -4.08781 + -8.29166 -9.21181 -4.14089 + -7.81 -9.20521 -4.17186 + -7.81683 -9.21276 -4.159 + -7.81 -9.24519 -4.16084 + -6.97041 -8.50289 -2.82739 + -8.59281 -9.13664 -2.84062 + -6.96116 -8.52068 -2.82776 + -7.02717 -9.13668 -2.84062 + -8.59281 -9.13664 -2.84062 + -8.59144 -9.1456 -2.85261 + -7.02717 -9.13668 -2.84062 + -7.02854 -9.14564 -2.85261 + -6.60726 -9.14101 -2.92054 + -6.42746 -8.53215 -3.01681 + -6.50831 -8.52608 -2.92212 + -6.50356 -8.49126 -2.9224 + -6.43877 -7.89857 -2.93084 + -6.43869 -5.10047 -3.13966 + -6.55801 -7.89484 -2.87102 + -6.55793 -5.09695 -3.08326 + -8.17056 1.70552 -4.30128 + -7.80971 1.70542 -4.3028 + -7.80975 0.110021 -4.54605 + -7.2673 0.110024 -4.54575 + -7.29687 0.104646 -4.64101 + -7.28122 -0.984919 -4.64887 + -7.38959 0.100906 -4.70728 + -7.37784 -0.987601 -4.6964 + -7.01463 0.0392809 -3.92628 + -6.98987 0.139944 -3.90409 + -7.0167 0.114268 -3.94007 + -8.62963 0.139987 -3.90409 + -9.09523 1.71106 -4.21283 + -9.14034 1.7104 -4.22342 + -9.14424 0.135439 -3.97722 + -9.19068 0.132246 -4.02841 + -9.14034 1.7104 -4.22342 + -9.13706 1.7078 -4.26523 + -9.19068 0.132246 -4.02841 + -9.18708 0.119628 -4.37655 + -8.61109 -0.283709 -3.8669 + -7.00843 -0.283752 -3.8669 + -7.0105 -0.208765 -3.88068 + -6.98346 -0.183088 -3.84471 + -8.6028 0.114309 -3.94007 + -8.63177 0.0323089 -3.8843 + -8.60487 0.0393229 -3.92628 + -6.98773 0.0322659 -3.8843 + -8.63177 0.0323089 -3.8843 + -7.01463 0.00658987 -3.92027 + -6.98773 0.0322659 -3.8843 + -7.01256 -0.0683991 -3.90649 + -8.60695 -0.101046 -3.90048 + -7.01256 -0.101088 -3.90048 + -8.63392 -0.0753681 -3.8645 + -6.98559 -0.0754111 -3.8645 + -6.98559 -0.0754111 -3.8645 + -8.60695 -0.0683571 -3.90649 + -8.63392 -0.0753681 -3.8645 + -8.60487 0.00663187 -3.92027 + -8.6382 -0.290723 -3.82491 + -7.00843 -0.316443 -3.86089 + -6.98132 -0.290766 -3.82491 + -7.00636 -0.391429 -3.8471 + -6.99809 -0.822138 -3.76792 + -6.97277 -0.721476 -3.74573 + -7.00016 -0.74715 -3.78171 + -8.64678 -0.721432 -3.74573 + -6.97277 -0.721476 -3.74573 + -8.61939 -0.714417 -3.78772 + -8.64678 -0.721432 -3.74573 + -8.61731 -0.639431 -3.8015 + -7.00222 -0.606783 -3.80751 + -8.61731 -0.60674 -3.80751 + -6.9749 -0.613798 -3.76553 + -8.64463 -0.613754 -3.76553 + -8.64463 -0.613754 -3.76553 + -7.00222 -0.639474 -3.8015 + -6.9749 -0.613798 -3.76553 + -7.00015 -0.71446 -3.78772 + -8.61109 -0.3164 -3.86089 + -8.64035 -0.3984 -3.80512 + -8.61317 -0.391386 -3.8471 + -6.97918 -0.398443 -3.80512 + -8.64035 -0.3984 -3.80512 + -7.00636 -0.424119 -3.84109 + -6.97918 -0.398443 -3.80512 + -7.00429 -0.499106 -3.82731 + -8.61524 -0.531753 -3.8213 + -7.00429 -0.531796 -3.8213 + -8.64249 -0.506077 -3.78532 + -6.97704 -0.506121 -3.78532 + -6.97704 -0.506121 -3.78532 + -8.61524 -0.499063 -3.82731 + -8.64249 -0.506077 -3.78532 + -8.61317 -0.424076 -3.84109 + -8.32263 0.104673 -4.64101 + -8.33834 -0.984892 -4.64887 + -8.5492 0.110063 -4.54565 + -8.56845 -0.98228 -4.60269 + -8.56845 -0.98228 -4.60269 + -8.58901 -0.982107 -4.59966 + -8.5492 0.110063 -4.54565 + -8.56925 0.110158 -4.54396 + -8.58901 -0.982107 -4.59966 + -8.9387 -0.978512 -4.53616 + -8.56925 0.110158 -4.54396 + -8.91033 0.112162 -4.50864 + -9.18108 -5.1004 -3.13966 + -9.18115 -7.8985 -2.93084 + -9.06191 -7.89477 -2.87102 + -9.06011 -7.93021 -2.87023 + -9.06011 -7.93021 -2.87023 + -8.71401 -7.92804 -2.83167 + -9.06191 -7.89477 -2.87102 + -8.70421 -7.89229 -2.83114 + -9.31524 -7.98152 -3.87471 + -9.31524 -7.94968 -3.18345 + -9.31742 -7.94535 -3.86022 + -9.31742 -7.91341 -3.1701 + -9.31524 -7.98152 -3.87471 + -9.31235 -7.97517 -3.21732 + -9.31524 -7.94968 -3.18345 + -9.24694 -8.50174 -3.18489 + -9.31235 -7.97517 -3.21732 + -9.23681 -8.49848 -3.1851 + -9.24694 -8.50174 -3.18489 + -9.23681 -8.5078 -3.33446 + -9.23681 -8.49848 -3.1851 + -9.23898 -8.48941 -3.32077 + -9.23681 -8.5078 -3.33446 + -9.30005 -7.99781 -3.35148 + -9.23898 -8.48941 -3.32077 + -9.31945 -8.00405 -3.35109 + -9.30005 -7.99781 -3.35148 + -9.31945 -7.99655 -3.23084 + -9.25838 -8.49565 -3.32038 + -9.23898 -8.48193 -3.20096 + -9.25838 -8.48817 -3.20057 + -9.30005 -7.99031 -3.23123 + -9.23898 -8.48193 -3.20096 + -9.30222 -7.97191 -3.21752 + -9.30005 -7.99031 -3.23123 + -9.30222 -7.98126 -3.36735 + -9.30222 -7.97191 -3.21752 + -9.31235 -7.98452 -3.36715 + -9.30222 -7.98126 -3.36735 + -9.24694 -8.51106 -3.33426 + -9.31235 -7.98452 -3.36715 + -9.24405 -8.55392 -3.81703 + -9.24694 -8.51106 -3.33426 + -9.24404 -8.52385 -3.16439 + -9.23918 -8.5221 -3.13633 + -9.19249 -8.53208 -3.01681 + -9.2003 -8.51548 -3.03021 + -9.18916 -8.49641 -3.0075 + -6.85899 -9.69766 -3.08574 + -7.45474 -9.78572 -3.0678 + -7.45474 -9.69687 -3.07334 + -7.4677 -9.78475 -3.05217 + -6.72216 -9.94617 -3.1773 + -6.74431 -9.95765 -3.36133 + -6.72216 -9.95808 -3.36827 + -6.76921 -9.96182 -3.42829 + -6.74431 -9.95765 -3.36133 + -6.7692 -9.71998 -3.44338 + -6.76921 -9.96182 -3.42829 + -6.93359 -9.72487 -3.52197 + -7.4004 -9.72174 -3.472 + -7.38866 -9.80861 -3.43461 + -7.38866 -9.71976 -3.44015 + -6.76865 -9.80597 -3.39203 + -7.46149 -9.97851 -3.13449 + -7.47417 -9.93866 -3.05738 + -7.49775 -9.97851 -3.07557 + -7.50186 -9.93687 -3.02862 + -7.47417 -9.93866 -3.05738 + -7.50186 -9.69502 -3.04371 + -7.50186 -9.93687 -3.02862 + -7.36586 -9.69417 -3.03 + -7.50186 -9.69502 -3.04371 + -7.36487 -9.6954 -3.04971 + -7.36586 -9.69417 -3.03 + -7.14965 -9.69541 -3.04971 + -7.36487 -9.6954 -3.04971 + -7.14966 -9.78426 -3.04416 + -7.14965 -9.69541 -3.04971 + -6.89472 -9.78553 -3.06451 + -6.75537 -9.70848 -3.2592 + -6.75537 -9.79825 -3.26836 + -6.75537 -9.7094 -3.2739 + -7.37508 -9.79978 -3.29302 + -6.75537 -9.79734 -3.25366 + -7.37819 -9.70974 -3.27953 + -7.37819 -9.79859 -3.27398 + -7.37508 -9.71092 -3.29856 + -7.37819 -9.70974 -3.27953 + -7.39091 -9.71212 -3.31768 + -7.37508 -9.71092 -3.29856 + -6.7443 -9.7103 -3.28825 + -6.75533 -9.714 -3.34762 + -6.75534 -9.80377 -3.35677 + -6.75533 -9.71492 -3.36232 + -7.38348 -9.8063 -3.39764 + -7.4004 -9.8106 -3.46646 + -6.77857 -9.71878 -3.42426 + -6.77857 -9.80763 -3.41872 + -6.76865 -9.71712 -3.39758 + -7.38348 -9.71745 -3.40318 + -7.38149 -9.80522 -3.38028 + -7.38149 -9.71637 -3.38582 + -6.75534 -9.80285 -3.34208 + -8.01272 -9.92488 -3.7082 + -7.99615 -9.9785 -3.65035 + -8.04809 -9.9785 -3.61494 + -7.46254 -9.97851 -3.48271 + -8.86465 -9.70658 -3.22964 + -8.86465 -9.79452 -3.2094 + -8.86465 -9.70567 -3.21494 + -8.2327 -9.79506 -3.21782 + -8.86465 -9.79544 -3.22409 + -8.23582 -9.7074 -3.24239 + -8.23582 -9.79625 -3.23685 + -8.2327 -9.70621 -3.22336 + -7.95782 -9.87496 -2.90807 + -7.9641 -9.81067 -2.89448 + -8.03172 -9.87632 -2.92995 + -8.04114 -9.81207 -2.91695 + -7.74198 -9.9785 -2.92624 + -7.73611 -9.87379 -2.88931 + -7.81001 -9.87364 -2.88692 + -7.73297 -9.80971 -2.87903 + -8.99073 -9.1917 -2.9418 + -9.00105 -9.15175 -2.93194 + -9.08286 -9.16064 -3.01785 + -9.01273 -9.14095 -2.92054 + -9.12767 -9.15798 -3.13909 + -9.12379 -9.16371 -3.14301 + -9.12511 -9.15452 -3.12355 + -9.08841 -9.14955 -3.01282 + -9.11164 -8.52601 -2.92212 + -9.00065 -8.52314 -2.86619 + -9.11639 -8.49119 -2.9224 + -9.00279 -8.4876 -2.86545 + -9.00065 -8.52314 -2.86619 + -8.65879 -8.52064 -2.82776 + -9.00279 -8.4876 -2.86545 + -8.67311 -8.48509 -2.82872 + -8.65879 -8.52064 -2.82776 + -8.64955 -8.50284 -2.82739 + -8.67311 -8.48509 -2.82872 + -8.69306 -7.91013 -2.83053 + -8.70414 -5.09455 -3.04567 + -9.06184 -5.05805 -3.08569 + -9.06184 -5.09688 -3.08326 + -9.18108 -5.06157 -3.14208 + -9.06184 -5.05805 -3.08569 + -9.17503 -3.36486 -3.34964 + -9.18108 -5.06157 -3.14208 + -9.25894 -3.36966 -3.42661 + -9.17503 -3.36486 -3.34964 + -9.21826 -2.14878 -3.61001 + -9.25894 -3.36966 -3.42661 + -9.2669 -2.15404 -3.69434 + 7.68694 -10.7553 -3.62401 + 7.80495 -11.1373 -3.49266 + 7.7333 -11.1373 -3.48131 + 7.80494 -11.5874 -3.26078 + 7.80494 -11.5874 -3.26078 + 7.66866 -11.1373 -3.44837 + 7.7333 -11.1373 -3.48131 + 7.58047 -10.7553 -3.56976 + 7.58442 -11.1373 -3.33243 + 7.44173 -10.7553 -3.3788 + 7.61736 -11.1373 -3.39707 + 7.49598 -10.7553 -3.48527 + 7.57307 -11.1373 -3.26078 + 7.42304 -10.7553 -3.26078 + 7.58442 -11.1373 -3.33243 + 7.44173 -10.7553 -3.3788 + 7.6743 -10.4962 -3.66292 + 7.80496 -10.7554 -3.6427 + 7.68694 -10.7553 -3.62401 + 7.80495 -11.1373 -3.49266 + 7.80496 -10.7554 -3.6427 + 7.87661 -11.1373 -3.48131 + 7.80495 -11.1373 -3.49266 + 7.80494 -11.5874 -3.26078 + 7.61736 -11.1373 -3.12448 + 7.49598 -10.7553 -3.03629 + 7.58442 -11.1373 -3.18912 + 7.44173 -10.7553 -3.14276 + 7.49598 -10.7553 -3.03629 + 7.46288 -10.4962 -3.01223 + 7.44173 -10.7553 -3.14276 + 7.40282 -10.4962 -3.13011 + 7.46288 -10.4962 -3.01223 + 7.46289 -10.3189 -3.01223 + 7.40282 -10.4962 -3.13011 + 7.40283 -10.3189 -3.13011 + 7.66866 -11.1373 -3.07318 + 7.58047 -10.7553 -2.95179 + 7.61736 -11.1373 -3.12448 + 7.49598 -10.7553 -3.03629 + 7.58047 -10.7553 -2.95179 + 7.55643 -10.4962 -2.91869 + 7.49598 -10.7553 -3.03629 + 7.46288 -10.4962 -3.01223 + 7.55643 -10.4962 -2.91869 + 7.55643 -10.3189 -2.91869 + 7.46288 -10.4962 -3.01223 + 7.46289 -10.3189 -3.01223 + 7.80498 -10.3189 -3.68362 + 7.93564 -10.4962 -3.66292 + 7.80497 -10.4962 -3.68362 + 7.92298 -10.7554 -3.62401 + 7.93564 -10.4962 -3.66292 + 8.02945 -10.7554 -3.56976 + 7.92298 -10.7554 -3.62401 + 7.94125 -11.1373 -3.44837 + 8.02945 -10.7554 -3.56976 + 7.99255 -11.1373 -3.39707 + 7.94125 -11.1373 -3.44837 + 7.80494 -11.5874 -3.26078 + 7.80495 -11.1373 -3.02889 + 7.80496 -10.7554 -2.87885 + 7.7333 -11.1373 -3.04024 + 7.68694 -10.7553 -2.89755 + 7.80496 -10.7554 -2.87885 + 7.80497 -10.4962 -2.83793 + 7.68694 -10.7553 -2.89755 + 7.6743 -10.4962 -2.85863 + 7.80497 -10.4962 -2.83793 + 7.80498 -10.3189 -2.83793 + 7.6743 -10.4962 -2.85863 + 7.67431 -10.3189 -2.85863 + 7.80498 -10.3189 -2.83793 + 7.80498 -10.3189 -2.91977 + 7.67431 -10.3189 -2.85863 + 7.6996 -10.3189 -2.93646 + 7.80498 -10.3189 -2.91977 + 7.80498 -10.2097 -2.91977 + 7.6996 -10.3189 -2.93646 + 7.6996 -10.2097 -2.93646 + 7.87661 -11.1373 -3.04024 + 7.92298 -10.7554 -2.89755 + 7.80495 -11.1373 -3.02889 + 7.80496 -10.7554 -2.87885 + 7.92298 -10.7554 -2.89755 + 7.93564 -10.4962 -2.85863 + 7.80496 -10.7554 -2.87885 + 7.80497 -10.4962 -2.83793 + 7.93564 -10.4962 -2.85863 + 7.93564 -10.3189 -2.85863 + 7.80497 -10.4962 -2.83793 + 7.80498 -10.3189 -2.83793 + 7.93564 -10.3189 -2.85863 + 7.91035 -10.3189 -2.93646 + 7.80498 -10.3189 -2.83793 + 7.80498 -10.3189 -2.91977 + 7.91035 -10.3189 -2.93646 + 7.91035 -10.2097 -2.93646 + 7.80498 -10.3189 -2.91977 + 7.80498 -10.2097 -2.91977 + 8.05352 -10.3189 -3.60286 + 8.14706 -10.4962 -3.50932 + 8.05351 -10.4962 -3.60286 + 8.11395 -10.7554 -3.48527 + 8.14706 -10.4962 -3.50932 + 8.16819 -10.7554 -3.3788 + 8.11395 -10.7554 -3.48527 + 8.02549 -11.1373 -3.33243 + 8.16819 -10.7554 -3.3788 + 8.03684 -11.1373 -3.26078 + 8.02549 -11.1373 -3.33243 + 7.80494 -11.5874 -3.26078 + -7.63834 -10.3742 -3.33699 + -5.9527 -10.4061 -4.09338 + -7.61979 -10.3609 -3.30487 + -7.61581 -10.3537 -3.29796 + -7.61581 -10.3537 -3.29796 + -7.60926 -10.2852 -3.28663 + -7.61979 -10.3609 -3.30487 + -7.62172 -10.2547 -3.3082 + -7.65732 -10.3636 -3.36986 + -7.6407 -10.2441 -3.34107 + -7.65924 -10.2574 -3.37319 + -6.14282 -10.2123 -4.42269 + -5.9527 -10.4061 -4.09338 + -5.6566 -10.4042 -4.24176 + -5.65164 -10.3782 -4.23317 + -5.22114 -10.3533 -4.50739 + -5.6566 -10.4042 -4.24176 + -5.22509 -10.3799 -4.51424 + -5.22114 -10.3533 -4.50739 + -4.90466 -10.3268 -4.74374 + -5.22509 -10.3799 -4.51424 + -4.90752 -10.354 -4.7487 + -4.90466 -10.3268 -4.74374 + -4.78154 -10.31 -4.87792 + -4.90752 -10.354 -4.7487 + -4.78366 -10.3375 -4.88159 + -4.78154 -10.31 -4.87792 + -4.72063 -10.3022 -4.95174 + -4.78366 -10.3375 -4.88159 + -4.72216 -10.3299 -4.9544 + -4.72063 -10.3022 -4.95174 + -4.69749 -10.2959 -5.01776 + -7.95438 -10.3742 -3.36702 + -9.45225 -10.406 -4.44864 + -7.93583 -10.3609 -3.39915 + -7.93184 -10.3537 -3.40605 + -7.98717 -10.2938 -3.31022 + -7.98581 -10.3331 -3.31258 + -7.97926 -10.2646 -3.32392 + -7.97528 -10.2574 -3.33082 + -7.78441 -10.3636 -3.07831 + -7.81765 -10.2441 -3.07831 + -7.78056 -10.2574 -3.07831 + -7.62988 -10.2123 -1.24031 + -7.88324 -10.3245 -3.07831 + -8.02112 -10.3805 -1.24031 + -7.88052 -10.2852 -3.07831 + -7.85561 -10.2547 -3.07831 + -7.86743 -10.3537 -3.07831 + -7.85946 -10.3609 -3.07831 + -8.01014 -10.4061 -1.24031 + -7.82237 -10.3742 -3.07831 + 7.9377 -10.2551 -3.39581 + 9.4467 -10.381 -4.45815 + 7.92525 -10.2856 -3.41738 + 7.92389 -10.3249 -3.41974 + 7.9733 -10.3641 -3.33415 + 9.64782 -10.2383 -4.10982 + 7.98575 -10.3335 -3.31258 + 7.98712 -10.2942 -3.31022 + 7.61885 -10.2382 -1.24031 + 7.75673 -10.2942 -3.07831 + 7.75945 -10.3335 -3.07831 + 7.85556 -10.2551 -3.07831 + 7.78436 -10.3641 -3.07831 + 7.88047 -10.2856 -3.07831 + 7.88319 -10.3249 -3.07831 + 8.02107 -10.3809 -1.24031 + 7.61885 -10.2382 -1.24031 + 7.60037 -10.2406 -0.909691 + 7.62984 -10.2127 -1.24031 + 7.61029 -10.2146 -0.909691 + 7.60037 -10.2406 -0.909691 + 7.6226 -10.2656 -0.399756 + 7.61029 -10.2146 -0.909691 + 7.63051 -10.2389 -0.399756 + 6.14826 -10.2382 -4.4322 + 7.67108 -10.2942 -3.39379 + 7.66972 -10.3335 -3.39143 + 7.62167 -10.2551 -3.3082 + 7.63829 -10.3746 -3.33699 + 7.60785 -10.3249 -3.28427 + 7.60954 -10.3351 -3.2872 + 5.94715 -10.3809 -4.08387 + 6.14826 -10.2382 -4.4322 + 5.87118 -10.2406 -4.61351 + 6.14277 -10.2126 -4.42269 + 5.86622 -10.2146 -4.60492 + 5.87118 -10.2406 -4.61351 + 5.41845 -10.2655 -4.84923 + 5.86622 -10.2146 -4.60492 + 5.4145 -10.2388 -4.84238 + -0.144126 -8.085 -0.897773 + -0.371535 -7.84159 -0.745037 + -0.403618 -8.09105 -0.902732 + -0.599347 -7.79488 -0.746924 + -0.473772 -8.51156 -1.1795 + -0.511309 -8.70985 -1.32129 + -0.165891 -8.72489 -1.31179 + -0.20541 -8.99562 -1.50621 + -0.20541 -8.99562 -1.50621 + 0.200029 -8.99587 -1.50608 + -0.165891 -8.72489 -1.31179 + 0.160812 -8.7251 -1.31169 + -0.79639 -13.8527 -4.78589 + -1.34658 -14.5527 -4.37724 + -1.46437 -13.8519 -4.45689 + -1.48115 -13.8322 -4.44427 + -0.799828 -13.8132 -4.7905 + -1.45289 -13.8123 -4.46848 + -1.77795 -12.1391 -4.59612 + -1.80827 -12.1391 -4.5725 + -0.001763 -9.29537 -5.11945 + 0.925829 -9.2954 -4.99613 + -0.003542 -12.1214 -5.05298 + 0.912336 -12.1214 -4.93478 + -22.1023 -5.92112 -3.33311 + -10.2582 -6.41524 -4.1801 + -10.2585 -6.64997 -4.0965 + -6.43013 -6.67989 -4.34749 + -6.42844 -6.00774 -4.51405 + -1.35956 -5.99541 -4.87739 + -6.4294 -6.43437 -4.43077 + -2.65815 -6.43192 -4.69861 + -6.42862 -2.43136 -4.16677 + -6.42815 -2.09951 -4.20299 + -6.42517 -2.42067 -4.08393 + -6.42586 -2.09239 -4.14776 + -10.2557 -4.25195 -3.72103 + -10.2572 -5.43113 -3.72103 + -6.42748 -4.14667 -3.97359 + -6.42902 -5.39162 -3.97359 + -6.42902 -5.39162 -3.97359 + -2.4955 -4.10643 -4.09827 + -6.42748 -4.14667 -3.97359 + -2.43306 -2.32244 -4.25611 + -6.42902 -5.39162 -3.97359 + -2.45153 -5.393 -4.09826 + -2.4955 -4.10643 -4.09827 + -2.45322 -4.10594 -4.05046 + -2.54422 -4.10616 -3.4666 + -2.54105 -5.39297 -3.4666 + -2.56316 -5.39294 -2.8333 + -2.49284 -6.72303 -2.83325 + -2.3896 -5.34132 -1.50372 + -2.48188 -5.36759 -1.9064 + -2.47159 -5.40196 -1.86999 + -2.40339 -6.59023 -2.00777 + -1.99519 -7.96453 -1.9715 + -2.01369 -7.92918 -1.97535 + -2.01367 -7.95418 -1.98133 + -2.14761 -7.50858 -1.93711 + -2.01369 -7.92918 -1.97535 + -2.10752 -7.50833 -1.83592 + -2.14761 -7.50858 -1.93711 + -2.15306 -7.47002 -1.92183 + -2.10752 -7.50833 -1.83592 + -2.1201 -7.4698 -1.83868 + -2.15306 -7.47002 -1.92183 + -2.38388 -6.72317 -1.9805 + -2.1201 -7.4698 -1.83868 + -2.19254 -6.7234 -1.5036 + -2.38388 -6.72317 -1.9805 + -2.39005 -5.39316 -1.50372 + -2.19254 -6.7234 -1.5036 + -2.00344 -6.72365 -1.12692 + -2.39005 -5.39316 -1.50372 + -2.20736 -5.39339 -1.12705 + -1.97416 -5.21273 -0.830558 + -1.9839 -5.25401 -0.838 + -1.71578 -5.22178 -0.636491 + -1.98264 -5.39367 -0.833062 + -1.93698 -4.12693 -0.796305 + -2.21678 -4.12657 -1.12705 + -2.20878 -5.25386 -1.12705 + -2.379 -4.12637 -1.50371 + -2.43209 -0.140299 -4.06015 + -2.27383 -0.140498 -4.62422 + -2.44242 -1.64069 -4.07292 + -2.35558 -1.61908 -4.31357 + -22.0984 -2.44982 -3.35242 + -22.0984 -2.44982 -3.40419 + -22.1477 -2.47673 -3.36437 + -22.1477 -2.47673 -3.3815 + -22.1477 -2.47673 -3.3815 + -22.1489 -3.28005 -3.20653 + -22.1477 -2.47673 -3.36437 + -22.0993 -3.26608 -3.1603 + 13.2987 -2.64591 -3.66896 + 13.2987 -2.89806 -3.63955 + 13.3002 -2.61961 -3.70219 + 13.3032 -2.6267 -3.7625 + 22.1023 -3.48664 -3.12438 + 22.1024 -3.29462 -3.14622 + 19.1113 -3.16091 -3.31393 + 19.1113 -2.96628 -3.33573 + 22.1024 -3.29462 -3.14622 + 22.1027 -2.47836 -3.33834 + 19.1113 -2.96628 -3.33573 + 19.1114 -2.01216 -3.54225 + 22.1027 -2.47836 -3.33834 + 22.1027 -2.47836 -3.39011 + 19.1114 -2.01216 -3.54225 + 19.1114 -2.01216 -3.61695 + 19.1113 -3.16091 -3.31393 + 19.1113 -3.22067 -3.30703 + 19.1411 -3.19383 -3.30872 + 19.1113 -3.41098 -3.28442 + 2.04335 -9.25544 -4.6352 + 2.09729 -6.776 -4.6352 + 2.05156 -9.27543 -4.61732 + 2.13513 -6.72624 -4.56153 + 1.93705 -0.163422 -0.893126 + 1.9431 -1.62384 -0.840731 + 2.2056 -0.16343 -1.2003 + 2.21495 -1.62385 -1.15441 + 2.39616 -1.63276 -4.35628 + 2.31828 -0.145581 -4.66874 + 2.36158 -1.62212 -4.31207 + 2.28194 -0.14344 -4.62276 + 2.31828 -0.145581 -4.66874 + 2.2637 -0.0944592 -4.66303 + 2.28194 -0.14344 -4.62276 + 2.40702 0.14407 -4.0781 + 2.40702 0.14407 -4.0781 + 2.43445 -0.143444 -4.07786 + 2.28194 -0.14344 -4.62276 + 2.36158 -1.62212 -4.31207 + 2.43445 -0.143444 -4.07786 + 2.4415 -1.64215 -4.09012 + 2.36158 -1.62212 -4.31207 + 2.38204 -1.98144 -4.26157 + -0.099685 -4.10925 -0.180127 + -0.032674 -3.13131 0.507804 + 0.03197 -3.13136 0.507825 + 0.031791 -3.47873 0.497674 + 0.031791 -3.47873 0.497674 + 0.099844 -4.10938 -0.180064 + 0.03197 -3.13136 0.507825 + -0.099685 -4.10925 -0.180127 + -1.92419 -0.120995 -0.891255 + -1.53001 -0.121454 -0.618111 + -1.90468 0.126832 -0.891243 + -1.51449 0.126339 -0.618102 + -1.53001 -0.121454 -0.618111 + -1.1628 0.125894 -0.483123 + -1.51449 0.126339 -0.618102 + -1.47905 0.394094 -0.610849 + -0.823298 -2.31994 -0.270133 + -0.822433 -1.64274 -0.28294 + -0.822866 -1.98134 -0.276537 + -1.16992 -1.6423 -0.41715 + -1.16992 -1.6423 -0.41715 + -1.17968 -1.98089 -0.414637 + -0.822866 -1.98134 -0.276537 + -1.51828 -2.31906 -0.539674 + -1.51741 -1.64186 -0.55136 + -1.55243 -1.62182 -0.570772 + -1.53609 -1.66183 -0.558222 + -1.93931 -1.62134 -0.841968 + -1.33071 -6.94824 -0.559683 + -1.67644 -7.01692 -0.849177 + -1.61186 -7.19967 -0.846967 + -1.78998 -7.37855 -1.1316 + 0.790403 -13.8141 -2.05336 + 0.807396 -13.834 -2.0612 + 1.7797 -12.1414 -2.26192 + 1.48814 -13.8341 -2.32296 + 0.807396 -13.834 -2.0612 + 1.29212 -14.5545 -2.37559 + 1.48814 -13.8341 -2.32296 + 1.65657 -13.8341 -2.4535 + 0.872664 -9.28554 -1.78424 + -0.002953 -9.40297 -1.74631 + -0.002974 -9.43947 -1.75666 + -0.873731 -9.24992 -1.77238 + -1.15943 -8.39997 -1.34594 + -0.89613 -8.8385 -1.53416 + -0.831967 -8.61058 -1.33214 + -0.550827 -8.98058 -1.51571 + -1.67644 -7.01692 -0.849177 + -1.84678 -7.16449 -1.10616 + -1.78998 -7.37855 -1.1316 + -2.00412 -7.37417 -1.47062 + -1.47927 -6.86883 -0.64203 + -1.39531 -6.77826 -0.524457 + -1.43891 -6.78804 -0.577416 + -1.41999 -6.69661 -0.540455 + -1.45489 -6.62017 -0.563424 + -1.45579 -6.4662 -0.545406 + -1.68446 -5.39405 -0.596837 + -1.55453 -5.17843 -0.495585 + -0.749845 -6.65019 -0.289924 + -0.001439 -6.48618 -0.23084 + -0.767427 -6.58601 -0.285656 + -0.000668 -5.28154 -0.208678 + -0.001439 -6.48618 -0.23084 + 0.230688 -7.05028 -0.319157 + 0.479553 -6.9864 -0.300965 + 0.822251 -7.37608 -0.539585 + 0.822251 -7.37608 -0.539585 + 1.28998 -6.94592 -0.541506 + 0.479553 -6.9864 -0.300965 + 0.746792 -6.65115 -0.289447 + -1.1628 0.125894 -0.483123 + -0.81111 0.125449 -0.348144 + -0.802066 0.393238 -0.348139 + -0.097103 -0.143256 -0.300065 + -1.51828 -2.31906 -0.539674 + -0.825586 -4.10833 -0.230261 + -0.823298 -2.31994 -0.270133 + -0.099685 -4.10925 -0.180127 + -2.29937 0.415056 -1.55178 + -2.14964 0.414861 -1.20288 + -2.16012 1.85623 -1.58945 + -2.01988 1.85606 -1.24775 + -2.14964 0.414861 -1.20288 + -1.77402 1.85575 -0.947035 + -2.01988 1.85606 -1.24775 + -1.76546 1.89556 -0.945017 + -1.77402 1.85575 -0.947035 + -1.42247 1.85529 -0.687214 + -1.76546 1.89556 -0.945017 + -1.4037 1.89512 -0.677634 + 10.258 -2.31544 -3.86172 + 10.258 -1.99443 -3.89666 + 6.42998 -2.04736 -4.12118 + 6.42997 -1.75862 -4.15092 + 10.258 -1.99443 -3.89666 + 10.2581 -0.632361 -4.14574 + 6.42997 -1.75862 -4.15092 + 6.42994 -0.321159 -4.39892 + 10.2581 -0.632361 -4.14574 + 10.2581 -0.632428 -4.28831 + 6.42994 -0.321159 -4.39892 + 6.42868 -0.328738 -4.54017 + 6.42868 -0.328738 -4.54017 + 0.928761 -0.143404 -4.91777 + 6.42994 -0.321159 -4.39892 + 2.21897 -0.143438 -4.68106 + 6.42998 -2.14683 -4.11063 + 6.43348 -2.43966 -4.16268 + 6.42999 -2.42897 -4.07984 + 2.44161 -2.33628 -4.3374 + 2.40382 -2.32345 -4.20926 + 2.44819 -3.64216 -4.09205 + 2.43812 -2.32559 -4.25456 + 2.49815 -4.10966 -4.09668 + 2.09729 -6.776 -4.6352 + 2.15203 -6.7258 -4.63184 + 2.13513 -6.72624 -4.56153 + 2.2512 -6.58068 -4.46256 + 2.34251 -6.72624 -4.0983 + 2.21571 -6.59778 -4.41799 + 2.31909 -6.14 -4.23321 + 2.35236 -6.12254 -4.27505 + 2.34251 -6.72624 -4.0983 + 2.54164 -5.39625 -3.46498 + 2.47201 -6.72625 -3.46498 + 2.56335 -5.39625 -2.83166 + 2.37193 -2.34104 -1.50251 + 2.37988 -2.30104 -1.5213 + 2.21775 -2.30104 -1.151 + 2.21775 -2.00244 -1.15504 + 6.42999 -2.42897 -4.07984 + 10.258 -2.62975 -3.82533 + 10.258 -2.31544 -3.86172 + 13.2689 -2.61317 -3.67429 + 6.42999 -2.42897 -4.07984 + 6.43001 -4.15498 -3.96949 + 10.258 -2.62975 -3.82533 + 10.258 -4.26519 -3.7145 + 6.43001 -4.15498 -3.96949 + 6.42993 -5.39992 -3.96949 + 10.258 -4.26519 -3.7145 + 10.2579 -5.44437 -3.7145 + 19.1113 -3.22067 -3.30703 + 19.1159 -3.42157 -3.37449 + 19.1113 -3.41098 -3.28442 + 13.3032 -2.90865 -3.72962 + -22.1489 -3.28005 -3.20653 + -22.1491 -3.46877 -3.18506 + -22.0993 -3.26608 -3.1603 + -22.0995 -3.4581 -3.13845 + -2.31014 -0.142592 -4.67022 + -6.42219 -0.312859 -4.40301 + -6.42424 -1.75032 -4.15501 + -10.2528 -1.98118 -3.90319 + -18.1542 -4.45135 -3.27477 + -14.2058 -4.32672 -3.49956 + -19.1083 -3.3863 -3.2966 + -13.2947 -2.88088 -3.64803 + -13.2646 -2.59603 -3.68274 + -13.2944 -2.62874 -3.67743 + -10.2532 -2.3022 -3.86825 + -13.2947 -2.88088 -3.64803 + -19.1128 -3.39689 -3.38666 + -13.2992 -2.89147 -3.73809 + -19.1125 -3.17679 -3.41282 + -13.2989 -2.60953 -3.77097 + -18.1542 -4.45135 -3.27477 + -14.2104 -4.3295 -3.58059 + -14.2058 -4.32672 -3.49956 + -14.207 -4.42933 -3.57735 + 0.662817 -17.2724 -2.97599 + 0.509361 -17.2724 -2.85391 + 0.12265 -18.1656 -3.22149 + 0.325353 -17.2724 -2.7561 + 0.509361 -17.2724 -2.85391 + 0.493276 -16.3096 -2.49465 + 0.325353 -17.2724 -2.7561 + -0.007084 -16.3096 -2.42159 + 0.493276 -16.3096 -2.49465 + -0.006552 -15.3589 -2.16498 + -0.007084 -16.3096 -2.42159 + -0.646006 -15.3581 -2.25798 + -0.006552 -15.3589 -2.16498 + -0.631106 -15.3191 -2.24723 + -0.646006 -15.3581 -2.25798 + -0.666776 -15.3388 -2.262 + 2.42666 -9.29541 -3.44509 + 2.38374 -9.2555 -2.83166 + 2.38134 -9.29543 -2.83184 + 2.2587 -9.25556 -2.34024 + 2.14449 -7.51135 -1.93574 + 2.11697 -7.47254 -1.83733 + 2.10434 -7.51105 -1.83458 + 2.0168 -7.34137 -1.47967 + 1.62497 -7.19081 -0.859486 + 1.77571 -7.40228 -1.12998 + 1.86881 -7.20054 -1.16342 + 1.93622 -7.61407 -1.46315 + 1.29212 -14.5545 -2.37559 + 1.46769 -14.5545 -2.5075 + 1.65657 -13.8341 -2.4535 + 1.74574 -14.5545 -2.86266 + 1.46769 -14.5545 -2.5075 + 1.53518 -15.3397 -2.91389 + 1.74574 -14.5545 -2.86266 + 1.66168 -15.3397 -3.38138 + 1.53518 -15.3397 -2.91389 + 1.28929 -16.3097 -3.38138 + 1.66168 -15.3397 -3.38138 + 1.19113 -16.3097 -3.74867 + 1.28929 -16.3097 -3.38138 + 0.785767 -17.2724 -3.64037 + 1.19113 -16.3097 -3.74867 + 0.601351 -17.2724 -3.85994 + 0.785767 -17.2724 -3.64037 + 0.144833 -18.1656 -3.52644 + 0.601351 -17.2724 -3.85994 + 0.078276 -18.1656 -3.57091 + -2.43129 -9.29239 -3.44657 + -2.26709 -12.1385 -3.48616 + -2.26897 -12.1185 -3.4465 + -2.268 -12.1584 -3.46544 + -2.34324 -6.72322 -4.09979 + -2.21606 -6.59492 -4.4194 + -2.13556 -6.72348 -4.56289 + -2.15242 -6.72302 -4.63321 + -6.42725 -5.40004 -4.59732 + -0.926995 -5.34501 -4.99454 + -0.985976 -5.39506 -4.99028 + -0.877508 -5.39507 -5.00123 + -3.7e-05 -6.72618 -5.11992 + 0.928621 -5.48807 -4.99395 + 0.928588 -6.7262 -4.99395 + 1.28189 -6.05753 -4.88595 + 1.28189 -6.05753 -4.88595 + 1.68017 -6.50892 -4.7642 + 0.928588 -6.7262 -4.99395 + 2.01205 -6.72623 -4.66274 + -0.949996 -9.25423 -4.99453 + -2.02533 -9.29292 -4.6432 + -2.04714 -9.25289 -4.63646 + -2.05539 -9.27288 -4.61858 + -1.68018 -6.50675 -4.76527 + -1.28125 -6.05587 -4.88677 + -0.928741 -6.72501 -4.99454 + -0.927174 -5.48687 -4.99454 + 1.43405 -7.92507 -1.21369 + 1.15479 -8.40146 -1.3452 + 1.49715 -8.07886 -1.35596 + 1.21875 -8.62946 -1.54719 + 0.107761 -7.83569 -0.740008 + 0.399095 -8.09156 -0.902476 + 0.367249 -7.84207 -0.744802 + 0.683048 -8.02102 -0.910367 + 0.139607 -8.08519 -0.897683 + 0.139508 -8.30735 -1.03383 + 0.447489 -8.30236 -1.04045 + 0.468882 -8.51217 -1.1792 + 0.468882 -8.51217 -1.1792 + 0.789675 -8.41331 -1.18984 + 0.447489 -8.30236 -1.04045 + 0.731441 -8.23182 -1.04834 + 0.595108 -7.79565 -0.746543 + 0.949384 -7.90311 -0.917428 + 0.861444 -7.67774 -0.753603 + 1.26462 -7.63803 -0.917523 + 1.55043 -7.21993 -0.830203 + 1.32745 -6.94996 -0.558836 + 1.30026 -6.97936 -0.560244 + 1.30804 -6.95999 -0.554255 + 1.19053 -0.143411 -0.485923 + 1.15475 -1.64381 -0.40921 + 1.19208 -1.64381 -0.423597 + 1.16463 -2.00241 -0.406523 + 1.53965 -1.66382 -0.557242 + 1.55605 -1.62383 -0.569782 + 1.52099 -1.64382 -0.550392 + 1.55326 -0.163413 -0.627789 + 1.55351 -5.18044 -0.494595 + 1.68322 -5.39622 -0.595765 + 1.68438 -5.18011 -0.613087 + 1.71479 -5.224 -0.635398 + 1.43523 -6.69574 -0.553796 + 1.45205 -6.62205 -0.562498 + 1.41704 -6.69844 -0.539551 + 1.42199 -6.67239 -0.541164 + 2.16888 1.85344 -1.58807 + 2.1729 1.89325 -1.60785 + 2.02749 1.89326 -1.25423 + 1.9835 2.38907 -1.27946 + 0.077934 16.2446 -0.480882 + 0.083568 17.8328 3.96874 + 0.243643 17.1092 3.96874 + 0.243526 17.5088 4.90112 + 0.243526 17.5088 4.90112 + 0.251789 15.6197 4.90112 + 0.243643 17.1092 3.96874 + 0.247036 16.2301 4.02379 + 0.247036 16.2301 4.02379 + 0.244202 15.2022 -0.480881 + 0.243643 17.1092 3.96874 + 0.077934 16.2446 -0.480882 + -0.048391 16.2447 -0.480882 + -0.203218 14.8027 -1.41326 + -0.202036 15.2023 -0.480881 + -0.203259 13.2454 -1.09116 + -0.203259 13.2454 -1.09116 + -0.196394 17.1093 3.96874 + -0.202036 15.2023 -0.480881 + -0.042757 17.8328 3.96874 + 0.244278 13.2453 -1.09116 + 0.155872 12.9956 -1.09103 + 0.155866 12.7858 -1.05364 + 0.159303 15.7542 4.03304 + 0.159303 15.7542 4.03304 + 0.244266 12.7859 -1.05377 + 0.155866 12.7858 -1.05364 + 0.244278 13.2453 -1.09116 + -0.507587 14.8033 -2.19222 + -0.267671 14.803 -2.14972 + -0.336295 15.7107 -2.4208 + -0.17592 15.7105 -2.40603 + -0.17592 15.7105 -2.40603 + 0.076748 15.7102 -2.40395 + -0.336295 15.7107 -2.4208 + 0.203093 15.7102 -2.40591 + 0.203093 15.7102 -2.40591 + -0.425725 15.7108 -2.4357 + -0.336295 15.7107 -2.4208 + -0.507587 14.8033 -2.19222 + 1.63211 3.89538 -1.09516 + 1.32952 3.89539 -0.864717 + 1.61874 3.73727 -1.06515 + 1.64142 3.64583 -1.06424 + -0.565714 15.7109 -2.54208 + 0.589117 15.7102 -2.50181 + -0.562434 15.7109 -2.57514 + 0.592974 15.7102 -2.54172 + 0.592974 15.7102 -2.54172 + -0.540327 15.7109 -2.60818 + -0.562434 15.7109 -2.57514 + -0.809805 14.8037 -2.73316 + -1.32124 10.9771 -2.36296 + -6.97969 12.5497 -2.39644 + -6.98901 11.3835 -2.40343 + -8.51728 11.4333 -2.41469 + -2.55508 14.1655 -2.48252 + -2.67572 13.0801 -2.38833 + -1.09598 12.8851 -2.351 + -2.70822 12.7932 -2.36345 + 0.244319 14.8026 -2.14386 + 0.244219 10.979 -1.47607 + 0.455212 10.979 -1.49467 + 0.552702 8.17061 -1.10168 + -0.214745 14.4937 4.07503 + -0.126351 14.4931 4.07576 + -0.125013 14.736 4.06521 + -0.126624 15.3695 4.90185 + -0.126624 15.3695 4.90185 + -0.213401 14.9862 4.06448 + -0.125013 14.736 4.06521 + -0.214745 14.4937 4.07503 + -1.88418 3.36293 -1.33755 + -1.62455 3.71957 -1.06918 + -1.8419 3.59871 -1.30484 + -1.65574 3.78155 -1.10752 + -1.62455 3.71957 -1.06918 + -1.29573 3.86705 -0.844064 + -1.65574 3.78155 -1.10752 + -1.31858 3.89709 -0.86556 + -1.29573 3.86705 -0.844064 + -1.27665 3.91692 -0.836339 + -1.31858 3.89709 -0.86556 + -1.19494 5.21254 -0.953728 + -0.203392 8.17075 -1.07373 + -0.203318 10.9791 -0.731665 + -0.203318 10.9791 -1.47613 + -0.203271 12.7861 -1.05377 + 0.694182 3.8954 -0.585722 + 0.651146 5.211 -0.724757 + 0.106005 5.21102 -0.685963 + 0.244145 8.17061 -1.07367 + 0.808146 0.392199 -0.347626 + 0.102796 0.392215 -0.300145 + 0.10246 -0.143385 -0.300001 + 0.10246 -0.143385 -0.238974 + 2.12907 2.40896 -1.64916 + 2.12568 2.38907 -1.62902 + 2.32205 1.87336 -2.13765 + 2.18014 1.87336 -1.62627 + 8.53999 10.7833 -2.47105 + 1.42903 10.3381 -2.45437 + 1.4916 9.89045 -2.58368 + 1.51586 9.70789 -2.58644 + 8.53991 11.1266 -2.42135 + 7.02865 11.1553 -2.46717 + 7.02935 11.1535 -2.4004 + 7.01373 11.1753 -2.44831 + -0.425725 15.7108 -2.4357 + -0.640664 14.8034 -2.23518 + -0.507587 14.8033 -2.19222 + -1.02987 10.9803 -1.73539 + -1.48959 9.70983 -2.31275 + -1.49632 9.70984 -2.5874 + -1.66761 8.17274 -2.68237 + -1.49645 9.71977 -2.63709 + -8.51944 10.5544 -2.62509 + -8.51599 13.7186 -2.55453 + -6.92497 13.9436 -2.55859 + -8.51602 13.7186 -2.50854 + -8.59189 12.4555 -2.46671 + -8.59064 13.4228 -2.51547 + -8.59028 13.6922 -2.53884 + -8.59029 13.6922 -2.52358 + -0.540327 15.7109 -2.60818 + -0.751449 14.8036 -2.81405 + -0.809805 14.8037 -2.73316 + -1.20611 10.9806 -3.36578 + 1.60958 8.17058 -3.50198 + 1.90805 5.21097 -3.88621 + 1.78035 5.21097 -4.30311 + 1.90134 3.89537 -4.47444 + 1.50271 8.17058 -3.82272 + 1.22779 10.979 -3.36501 + 1.32052 10.979 -3.13707 + 0.77771 14.8026 -2.81356 + 0.244202 15.2022 -0.480881 + 0.076754 15.9118 -1.41326 + 0.077934 16.2446 -0.480882 + -0.049571 15.9119 -1.41326 + 0.076754 15.9118 -1.41326 + -0.049577 15.7103 -2.40399 + -0.049571 15.9119 -1.41326 + -0.203218 14.8027 -2.14392 + 0.102918 14.9038 5.11992 + 0.234535 14.9165 5.07014 + 0.183851 15.5658 5.11992 + 0.238125 15.5658 5.07011 + 0.234535 14.9165 5.07014 + 0.251826 15.1136 4.89364 + 0.238125 15.5658 5.07011 + 0.248372 15.3331 4.94766 + 1.11947 12.8837 -2.35029 + 2.73159 12.7897 -2.36172 + 2.69948 13.0766 -2.38662 + 2.70252 12.8699 -2.43572 + 0.013668 15.7102 -2.66115 + -0.198878 15.7105 -2.65471 + 0.527643 15.7102 -2.63585 + 0.567629 15.7102 -2.60783 + -0.198878 15.7105 -2.65471 + -0.500323 15.7109 -2.63617 + 0.567629 15.7102 -2.60783 + 0.589715 15.7102 -2.57477 + -8.02558 -11.1369 -3.18912 + -8.03693 -11.1369 -3.26078 + -7.80506 -11.587 -3.26078 + -8.02558 -11.1369 -3.33243 + -7.99264 -11.1369 -3.39707 + -8.16827 -10.7549 -3.3788 + -8.11402 -10.7549 -3.48527 + -8.05357 -10.4958 -3.60286 + -8.02953 -10.7549 -3.56976 + -8.14712 -10.4958 -3.50932 + -8.11402 -10.7549 -3.48527 + -8.20718 -10.4958 -3.39144 + -8.16827 -10.7549 -3.3788 + -8.22788 -10.4958 -3.26078 + -8.18696 -10.7549 -3.26078 + -8.20718 -10.4958 -3.13011 + -8.16827 -10.7549 -3.14276 + -8.05357 -10.4958 -3.60286 + -7.9357 -10.4958 -3.66292 + -7.92306 -10.7549 -3.62401 + -7.80504 -10.7549 -3.6427 + -7.80505 -11.1369 -3.49266 + -7.73339 -11.1369 -3.48131 + -7.80506 -11.587 -3.26078 + -8.20718 -10.4958 -3.13011 + -8.20718 -10.3184 -3.13011 + -8.22788 -10.4958 -3.26078 + -8.22787 -10.3184 -3.26078 + -8.20718 -10.4958 -3.39144 + -8.20718 -10.3184 -3.39144 + -8.14712 -10.4958 -3.50932 + -8.14712 -10.3184 -3.50932 + -8.05357 -10.4958 -3.60286 + -8.05357 -10.3185 -3.60286 + -7.9357 -10.4958 -3.66292 + -7.87671 -11.1369 -3.04024 + -7.94135 -11.1369 -3.07318 + -7.80506 -11.587 -3.26078 + -7.99264 -11.1369 -3.12448 + -8.02558 -11.1369 -3.18912 + -8.11402 -10.7549 -3.03629 + -8.16827 -10.7549 -3.14276 + -8.14712 -10.4958 -3.01223 + -8.20718 -10.4958 -3.13011 + -8.14712 -10.3184 -3.01223 + -8.20718 -10.3184 -3.13011 + -8.05357 -10.3185 -3.60286 + -8.14712 -10.3184 -3.50932 + -8.0809 -10.3184 -3.46121 + -8.20718 -10.3184 -3.39144 + -8.12934 -10.3184 -3.36615 + -8.22787 -10.3184 -3.26078 + -8.14603 -10.3184 -3.26078 + -8.20718 -10.3184 -3.13011 + -8.12934 -10.3184 -3.1554 + -8.14712 -10.3184 -3.01223 + -8.0809 -10.3184 -3.06034 + -8.05357 -10.3185 -2.91869 + -8.00546 -10.3185 -2.9849 + -7.93569 -10.3185 -2.85863 + -7.9104 -10.3185 -2.93646 + -7.9357 -10.4958 -3.66292 + -8.05357 -10.3185 -3.60286 + -7.93569 -10.3185 -3.66292 + -8.0809 -10.3184 -3.46121 + -8.00546 -10.3185 -3.53665 + -8.00546 -10.3185 -3.53665 + -7.9104 -10.3185 -3.58509 + -7.93569 -10.3185 -3.66292 + -7.80503 -10.3185 -3.68362 + -7.80503 -10.4958 -3.68362 + -7.67437 -10.4958 -3.66292 + -7.68702 -10.7549 -3.62401 + -7.58055 -10.7549 -3.56976 + -7.66875 -11.1369 -3.44837 + -7.61745 -11.1369 -3.39707 + -7.80506 -11.587 -3.26078 + -7.9104 -10.3185 -2.93646 + -7.9104 -10.2093 -2.93646 + -8.00546 -10.3185 -2.9849 + -8.00546 -10.2093 -2.9849 + -8.0809 -10.3184 -3.06034 + -8.0809 -10.2093 -3.06034 + -8.12934 -10.3184 -3.1554 + -8.12934 -10.2093 -3.1554 + -8.14603 -10.3184 -3.26078 + -8.14603 -10.2093 -3.26078 + -8.12934 -10.3184 -3.36615 + -8.12934 -10.2093 -3.36615 + -8.0809 -10.3184 -3.46121 + -8.0809 -10.2093 -3.46121 + -8.00546 -10.3185 -3.53665 + -8.00546 -10.2093 -3.53665 + -7.9104 -10.3185 -3.58509 + -7.66875 -11.1369 -3.07318 + -7.73339 -11.1369 -3.04024 + -7.80506 -11.587 -3.26078 + -7.80505 -11.1369 -3.02889 + -7.87671 -11.1369 -3.04024 + -7.80504 -10.7549 -2.87885 + -7.92306 -10.7549 -2.89755 + -7.80503 -10.4958 -2.83793 + -7.9357 -10.4958 -2.85863 + -7.80503 -10.3185 -2.83793 + -7.93569 -10.3185 -2.85863 + -7.80503 -10.3185 -2.91977 + -7.9104 -10.3185 -2.93646 + -7.80503 -10.2093 -2.91977 + -7.9104 -10.2093 -2.93646 + -8.00546 -10.2093 -3.53665 + -8.0809 -10.2093 -3.46121 + -8.14711 -10.2093 -3.50932 + -8.12934 -10.2093 -3.36615 + -8.20717 -10.2093 -3.39144 + -8.14603 -10.2093 -3.26078 + -8.22787 -10.2093 -3.26078 + -8.12934 -10.2093 -3.1554 + -8.20717 -10.2093 -3.13011 + -8.0809 -10.2093 -3.06034 + -8.14711 -10.2093 -3.01223 + -8.00546 -10.2093 -2.9849 + -8.05357 -10.2093 -2.91869 + -7.9104 -10.2093 -2.93646 + -7.93569 -10.2093 -2.85863 + -7.80503 -10.2093 -2.91977 + -7.80503 -10.2093 -2.83793 + -7.69965 -10.2093 -2.93646 + -7.67436 -10.2093 -2.85863 + -7.60459 -10.2093 -2.9849 + -7.55648 -10.2093 -2.91869 + -7.9104 -10.3185 -3.58509 + -8.00546 -10.2093 -3.53665 + -7.9104 -10.2093 -3.58509 + -8.14711 -10.2093 -3.50932 + -8.05357 -10.2093 -3.60286 + -7.67437 -10.4958 -3.66292 + -7.80503 -10.3185 -3.68362 + -7.67436 -10.3185 -3.66292 + -7.9104 -10.3185 -3.58509 + -7.80503 -10.3185 -3.60178 + -7.9104 -10.2093 -3.58509 + -8.05357 -10.2093 -3.60286 + -7.93569 -10.2093 -3.66292 + -7.9104 -10.2093 -3.58509 + -7.80503 -10.2093 -3.60178 + -7.80503 -10.3185 -3.60178 + -7.69965 -10.3185 -3.58509 + -7.67436 -10.3185 -3.66292 + -7.55649 -10.3185 -3.60286 + -7.55649 -10.4958 -3.60286 + -7.46294 -10.4958 -3.50932 + -7.49606 -10.7549 -3.48527 + -7.44181 -10.755 -3.3788 + -7.58452 -11.1369 -3.33243 + -7.57317 -11.1369 -3.26078 + -7.80506 -11.587 -3.26078 + -7.55648 -10.2093 -2.91869 + -7.55648 -10.0184 -2.91869 + -7.67436 -10.2093 -2.85863 + -7.67435 -10.0184 -2.85863 + -7.80503 -10.2093 -2.83793 + -7.80502 -10.0184 -2.83793 + -7.93569 -10.2093 -2.85863 + -7.93569 -10.0184 -2.85863 + -8.05357 -10.2093 -2.91869 + -8.05356 -10.0184 -2.91869 + -8.14711 -10.2093 -3.01223 + -8.14711 -10.0184 -3.01223 + -8.20717 -10.2093 -3.13011 + -8.20717 -10.0184 -3.13011 + -8.22787 -10.2093 -3.26078 + -8.22786 -10.0184 -3.26078 + -8.20717 -10.2093 -3.39144 + -8.20717 -10.0184 -3.39144 + -8.14711 -10.2093 -3.50932 + -8.14711 -10.0184 -3.50932 + -8.05357 -10.2093 -3.60286 + -8.05356 -10.0184 -3.60286 + -7.93569 -10.2093 -3.66292 + -7.38218 -10.2093 -3.26078 + -7.40288 -10.2093 -3.13011 + -7.48071 -10.2093 -3.1554 + -7.46294 -10.2093 -3.01223 + -7.52915 -10.2093 -3.06034 + -7.40288 -10.2093 -3.39144 + -7.38218 -10.2093 -3.26078 + -7.46402 -10.2093 -3.26078 + -7.48071 -10.2093 -3.1554 + -7.48071 -10.3185 -3.1554 + -7.52915 -10.2093 -3.06034 + -7.52915 -10.3185 -3.06034 + -7.46294 -10.2093 -3.50932 + -7.40288 -10.2093 -3.39144 + -7.48071 -10.2093 -3.36615 + -7.46402 -10.2093 -3.26078 + -7.46403 -10.3185 -3.26078 + -7.48071 -10.3185 -3.1554 + -7.40288 -10.3185 -3.13011 + -7.52915 -10.3185 -3.06034 + -7.46294 -10.3185 -3.01223 + -7.55648 -10.2093 -3.60286 + -7.46294 -10.2093 -3.50932 + -7.52915 -10.2093 -3.46121 + -7.48071 -10.2093 -3.36615 + -7.48071 -10.3185 -3.36615 + -7.46403 -10.3185 -3.26078 + -7.38218 -10.3185 -3.26078 + -7.40288 -10.3185 -3.13011 + -7.40288 -10.4958 -3.13011 + -7.46294 -10.3185 -3.01223 + -7.46294 -10.4958 -3.01223 + -7.67436 -10.2093 -3.66292 + -7.55648 -10.2093 -3.60286 + -7.60459 -10.2093 -3.53665 + -7.52915 -10.2093 -3.46121 + -7.52915 -10.3185 -3.46121 + -7.48071 -10.3185 -3.36615 + -7.40288 -10.3185 -3.39144 + -7.38218 -10.3185 -3.26078 + -7.38219 -10.4958 -3.26078 + -7.40288 -10.4958 -3.13011 + -7.44181 -10.755 -3.14276 + -7.46294 -10.4958 -3.01223 + -7.49606 -10.7549 -3.03629 + -7.80503 -10.2093 -3.68362 + -7.67436 -10.2093 -3.66292 + -7.69965 -10.2093 -3.58509 + -7.60459 -10.2093 -3.53665 + -7.60459 -10.3185 -3.53665 + -7.52915 -10.3185 -3.46121 + -7.46294 -10.3185 -3.50932 + -7.40288 -10.3185 -3.39144 + -7.40288 -10.4958 -3.39144 + -7.38219 -10.4958 -3.26078 + -7.42312 -10.755 -3.26078 + -7.44181 -10.755 -3.14276 + -7.58452 -11.1369 -3.18912 + -7.49606 -10.7549 -3.03629 + -7.61745 -11.1369 -3.12448 + -7.46293 -10.0184 -3.01223 + -7.46294 -10.2093 -3.01223 + -7.40287 -10.0184 -3.13011 + -7.40288 -10.2093 -3.13011 + -7.38218 -10.0184 -3.26078 + -7.38218 -10.2093 -3.26078 + -7.40287 -10.0184 -3.39144 + -7.40288 -10.2093 -3.39144 + -7.46293 -10.0184 -3.50932 + -7.46294 -10.2093 -3.50932 + -7.55648 -10.0184 -3.60286 + -7.55648 -10.2093 -3.60286 + -7.67435 -10.0184 -3.66292 + -7.67436 -10.2093 -3.66292 + -7.80502 -10.0184 -3.68362 + -7.80503 -10.2093 -3.68362 + -7.93569 -10.0184 -3.66292 + -7.67435 -10.0184 -2.85863 + -7.55648 -10.0184 -2.91869 + -7.80502 -10.0184 -2.83793 + -7.46293 -10.0184 -3.01223 + -7.93569 -10.0184 -2.85863 + -7.40287 -10.0184 -3.13011 + -8.05356 -10.0184 -2.91869 + -7.38218 -10.0184 -3.26078 + -8.14711 -10.0184 -3.01223 + -7.40287 -10.0184 -3.39144 + -8.20717 -10.0184 -3.13011 + -7.46293 -10.0184 -3.50932 + -8.22786 -10.0184 -3.26078 + -7.55648 -10.0184 -3.60286 + -8.20717 -10.0184 -3.39144 + -7.67435 -10.0184 -3.66292 + -8.14711 -10.0184 -3.50932 + -7.80502 -10.0184 -3.68362 + -8.05356 -10.0184 -3.60286 + -7.93569 -10.0184 -3.66292 + -7.93569 -10.2093 -3.66292 + -7.80503 -10.2093 -3.68362 + -7.80503 -10.2093 -3.60178 + -7.69965 -10.2093 -3.58509 + -7.69965 -10.3185 -3.58509 + -7.60459 -10.3185 -3.53665 + -7.55649 -10.3185 -3.60286 + -7.46294 -10.3185 -3.50932 + -7.46294 -10.4958 -3.50932 + -7.40288 -10.4958 -3.39144 + -7.44181 -10.755 -3.3788 + -7.42312 -10.755 -3.26078 + -7.57317 -11.1369 -3.26078 + -7.58452 -11.1369 -3.18912 + -7.80506 -11.587 -3.26078 + -7.61745 -11.1369 -3.12448 + -7.66875 -11.1369 -3.07318 + -7.49606 -10.7549 -3.03629 + -7.58055 -10.7549 -2.95179 + -7.46294 -10.4958 -3.01223 + -7.55649 -10.4958 -2.91869 + -7.46294 -10.3185 -3.01223 + -7.55649 -10.3185 -2.91869 + -7.52915 -10.3185 -3.06034 + -7.60459 -10.3185 -2.9849 + -7.52915 -10.2093 -3.06034 + -7.60459 -10.2093 -2.9849 + -7.46294 -10.2093 -3.01223 + -7.55648 -10.2093 -2.91869 + -7.46293 -10.0184 -3.01223 + -7.55648 -10.0184 -2.91869 + 6.84259 -9.81456 -2.95061 + 6.72764 -9.18005 -2.88006 + 6.62455 -9.18327 -2.93174 + 6.62926 -9.19211 -2.9418 + 6.55093 -9.18864 -3.01786 + 6.51243 -9.20474 -3.14425 + 6.50675 -9.19616 -3.13844 + 6.55093 -9.18864 -3.01786 + 6.68465 -9.82148 -3.06161 + 6.62455 -9.18327 -2.93174 + 6.74784 -9.81166 -2.9851 + 6.84259 -9.81456 -2.95061 + 6.62926 -9.19211 -2.9418 + 6.53714 -9.16105 -3.01785 + 6.55625 -9.19737 -3.02615 + 6.49621 -9.16412 -3.14301 + 6.51243 -9.20474 -3.14425 + 6.72764 -9.18005 -2.88006 + 6.73149 -9.18896 -2.89119 + 6.62926 -9.19211 -2.9418 + 6.61895 -9.15216 -2.93194 + 6.53714 -9.16105 -3.01785 + 6.84259 -9.81456 -2.95061 + 7.11899 -9.81284 -2.92286 + 6.72764 -9.18005 -2.88006 + 7.03689 -9.17791 -2.84561 + 6.73149 -9.18896 -2.89119 + 6.74784 -9.81166 -2.9851 + 6.88199 -9.87969 -2.97769 + 6.84259 -9.81456 -2.95061 + 7.14713 -9.87809 -2.95183 + 7.11899 -9.81284 -2.92286 + 6.50675 -9.19616 -3.13844 + 6.64516 -9.82754 -3.15875 + 6.68465 -9.82148 -3.06161 + 6.73049 -9.88614 -3.08111 + 6.74784 -9.81166 -2.9851 + 6.78479 -9.8845 -3.01 + 6.88199 -9.87969 -2.97769 + 6.49621 -9.16412 -3.14301 + 6.49621 -9.18935 -3.69727 + 6.51243 -9.20474 -3.14425 + 6.51243 -9.22963 -3.69215 + 6.50675 -9.19616 -3.13844 + 6.50675 -9.22157 -3.69527 + 6.64516 -9.82754 -3.15875 + 8.58182 -9.1869 -2.85745 + 8.58312 -9.17795 -2.84561 + 8.89236 -9.18011 -2.88006 + 8.77738 -9.81461 -2.95061 + 8.87213 -9.81171 -2.9851 + 8.83517 -9.88456 -3.01 + 8.93532 -9.82154 -3.06161 + 8.88948 -9.8862 -3.08111 + 8.92736 -9.89185 -3.17161 + 8.87557 -9.93391 -3.09638 + 8.88948 -9.8862 -3.08111 + 8.81458 -9.92646 -3.02777 + 8.83517 -9.88456 -3.01 + 8.73797 -9.87974 -2.97769 + 8.77738 -9.81461 -2.95061 + 8.50098 -9.81287 -2.92286 + 8.58312 -9.17795 -2.84561 + 8.27224 -9.81287 -2.92286 + 7.88553 -9.17793 -2.84561 + 8.11815 -9.81286 -2.92286 + 8.87557 -9.93391 -3.09638 + 8.87569 -9.94706 -3.185 + 8.89783 -9.94658 -3.1773 + 8.89783 -9.95849 -3.36827 + 8.92736 -9.89185 -3.17161 + 8.86466 -9.71533 -3.36232 + 8.23651 -9.80671 -3.39764 + 8.23651 -9.71786 -3.40318 + 8.2385 -9.80563 -3.38028 + 8.23851 -9.71678 -3.38582 + 8.86466 -9.80326 -3.34208 + 8.86466 -9.71441 -3.34762 + 8.86466 -9.80418 -3.35677 + 8.86466 -9.71533 -3.36232 + 8.23651 -9.80671 -3.39764 + 8.5497 0.109613 -4.54565 + 8.56974 0.109708 -4.54396 + 8.56889 -0.98273 -4.60269 + 8.58945 -0.982559 -4.59966 + 8.59045 -2.20059 -4.60011 + 8.61159 -2.20037 -4.59625 + 8.61272 -3.43221 -4.58767 + 8.63447 -3.43195 -4.58308 + 8.61671 -5.13788 -4.51697 + 8.63859 -5.1376 -4.51206 + 8.61671 -5.17671 -4.51429 + 8.63859 -5.17643 -4.50938 + 8.5416 1.70538 -4.29656 + 8.52228 1.70536 -4.29687 + 8.87029 1.70578 -4.28995 + 9.09582 1.70653 -4.27785 + 9.1445 0.115337 -4.44399 + 9.13764 1.70732 -4.26523 + 9.21714 -2.18747 -4.36753 + 9.17846 -0.972427 -4.41996 + 9.2225 -0.965585 -4.29874 + 9.1445 0.115337 -4.44399 + 9.18757 0.119144 -4.37655 + 9.13764 1.70732 -4.26523 + 9.14092 1.70992 -4.22342 + 9.14092 1.70992 -4.22342 + 9.13764 1.70732 -4.26523 + 7.81029 1.70501 -4.3028 + 8.17114 1.70509 -4.30128 + 8.3527 0.109613 -4.54575 + 8.52228 1.70536 -4.29687 + 8.5497 0.109613 -4.54565 + 8.5416 1.70538 -4.29656 + 8.56974 0.109708 -4.54396 + 8.87029 1.70578 -4.28995 + 8.91083 0.111694 -4.50864 + 9.1445 0.115337 -4.44399 + 8.93914 -0.978982 -4.53616 + 9.17846 -0.972427 -4.41996 + 8.97115 -2.19582 -4.51543 + 9.21714 -2.18747 -4.36753 + 9.00424 -3.42653 -4.48682 + 9.25714 -3.41659 -4.3107 + 9.01096 -5.1318 -4.40918 + 9.26238 -2.17876 -4.21323 + 9.2225 -0.965585 -4.29874 + 9.2269 -0.946415 -3.85296 + 9.19118 0.131762 -4.02841 + 9.14474 0.134957 -3.97722 + 9.14092 1.70992 -4.22342 + 9.09581 1.71058 -4.21283 + 7.81029 1.70501 -4.3028 + 7.44944 1.70511 -4.30128 + 6.98162 -5.13756 -4.51206 + 6.60925 -5.17057 -4.4065 + 6.60925 -5.13174 -4.40918 + 6.35375 -5.15993 -4.21826 + 6.35375 -5.1211 -4.22094 + 6.30637 -5.14885 -4.02188 + 6.30637 -5.11001 -4.02456 + 6.31125 -3.37679 -3.53439 + 6.31667 -3.40614 -4.12696 + 6.30637 -5.11001 -4.02456 + 6.36316 -3.41651 -4.3107 + 6.35375 -5.1211 -4.22094 + 6.61607 -3.42646 -4.48682 + 6.60925 -5.13174 -4.40918 + 6.98584 -3.43191 -4.58308 + 6.98162 -5.13756 -4.51206 + 7.00758 -3.43217 -4.58767 + 7.0035 -5.13784 -4.51697 + 7.4032 -3.43581 -4.65194 + 8.95794 0.138611 -3.91872 + 8.91539 1.71134 -4.20074 + 8.59965 1.71154 -4.19771 + 6.75029 1.70584 -4.28995 + 6.52476 1.7066 -4.27785 + 6.47599 0.115408 -4.44399 + 6.52476 1.7066 -4.27785 + 6.70966 0.111752 -4.50864 + 6.75029 1.70584 -4.28995 + 7.07898 1.70542 -4.29656 + 8.91539 1.71134 -4.20074 + 9.02064 1.71106 -4.20527 + 8.95794 0.138611 -3.91872 + 7.45078 -0.989464 -4.72251 + 7.39009 0.100518 -4.70728 + 7.46162 0.0987928 -4.73778 + 7.81025 0.109611 -4.54605 + 7.81025 0.0976618 -4.75767 + 7.05075 0.109748 -4.54396 + 7.0983 1.70539 -4.29687 + 7.0708 0.109652 -4.54565 + 7.2678 0.109642 -4.54575 + 7.29737 0.104262 -4.64101 + 7.39009 0.100518 -4.70728 + 7.37828 -0.987989 -4.6964 + 7.45078 -0.989464 -4.72251 + 7.39049 -2.20483 -4.6758 + 7.43943 -2.2052 -4.68234 + 6.6813 -0.978923 -4.53616 + 7.05075 0.109748 -4.54396 + 7.03099 -0.982518 -4.59966 + 7.0708 0.109652 -4.54565 + 7.05155 -0.982691 -4.60269 + 7.28166 -0.985303 -4.64887 + 6.44198 -0.972355 -4.41996 + 6.47599 0.115408 -4.44399 + 6.6813 -0.978923 -4.53616 + 6.70966 0.111752 -4.50864 + 7.05075 0.109748 -4.54396 + 7.07898 1.70542 -4.29656 + 7.0983 1.70539 -4.29687 + 9.02064 1.71106 -4.20527 + 7.81022 -0.990645 -4.74326 + 7.57314 -0.990135 -4.73431 + 7.81025 0.0976618 -4.75767 + 7.58305 0.0979448 -4.75277 + 7.46162 0.0987928 -4.73778 + 7.57314 -0.990135 -4.73431 + 7.45078 -0.989464 -4.72251 + 7.56215 -2.20577 -4.69234 + 7.43943 -2.2052 -4.68234 + 7.4032 -3.43581 -4.65194 + 7.39049 -2.20483 -4.6758 + 7.26857 -2.20354 -4.65306 + 7.28166 -0.985303 -4.64887 + 7.02992 -2.20055 -4.60011 + 7.05155 -0.982691 -4.60269 + 7.00878 -2.20033 -4.59625 + 7.03099 -0.982518 -4.59966 + 6.64922 -2.19576 -4.51543 + 6.6813 -0.978923 -4.53616 + 6.40323 -2.1874 -4.36753 + 6.44198 -0.972355 -4.41996 + 6.35799 -2.17869 -4.21323 + 8.05822 -2.20578 -4.69234 + 7.81019 -2.20643 -4.70393 + 8.04729 -0.990148 -4.73431 + 7.81022 -0.990645 -4.74326 + 8.03744 0.0979328 -4.75277 + 7.81025 0.0976618 -4.75767 + 6.60925 -5.17057 -4.4065 + 6.98162 -5.13756 -4.51206 + 6.98162 -5.17639 -4.50938 + 7.0035 -5.13784 -4.51697 + 7.0035 -5.17667 -4.51429 + 7.40131 -5.14173 -4.58566 + 7.62385 -9.97891 -3.65035 + 7.60728 -9.92529 -3.7082 + 7.68193 -9.97891 -3.67445 + 7.67484 -9.92614 -3.72192 + 7.74488 -9.97891 -3.6916 + 7.74241 -9.92686 -3.73326 + 8.04806 -9.97892 -3.61494 + 7.62385 -9.97891 -3.65035 + 7.99612 -9.97892 -3.65035 + 7.68193 -9.97891 -3.67445 + 7.93803 -9.97892 -3.67445 + 7.74488 -9.97891 -3.6916 + 7.95086 -9.86503 -3.75912 + 8.0213 -9.86469 -3.75355 + 7.94512 -9.92615 -3.72192 + 8.01269 -9.9253 -3.7082 + 7.99612 -9.97892 -3.65035 + 8.08026 -9.92385 -3.68503 + 8.04806 -9.97892 -3.61494 + 6.70518 1.7114 -4.20074 + 6.66256 0.138672 -3.91872 + 6.99037 0.139576 -3.90409 + 6.98822 0.0318979 -3.8843 + 7.0172 0.113898 -3.94007 + 7.01512 0.0389119 -3.92628 + 8.6033 0.113857 -3.94007 + 6.47965 1.70999 -4.22342 + 6.59993 1.71112 -4.20527 + 6.70518 1.7114 -4.20074 + 6.55347 0.137307 -3.94066 + 6.66256 0.138672 -3.91872 + 6.6326 -0.938264 -3.72342 + 9.18123 -7.89898 -2.93084 + 9.1813 -5.10088 -3.13966 + 9.06206 -5.09736 -3.08326 + 9.06206 -5.05853 -3.08569 + 8.70436 -5.05617 -3.04809 + 8.70111 -3.36052 -3.27266 + 6.9192 -3.36048 -3.27266 + 6.94448 -2.14169 -3.48956 + 6.59847 -2.14318 -3.51365 + 6.6326 -0.938264 -3.72342 + 6.52072 -0.939878 -3.74933 + 6.55347 0.137307 -3.94066 + 6.47576 0.135028 -3.97722 + 6.59993 1.71112 -4.20527 + 6.52476 1.71065 -4.21283 + 6.47965 1.70999 -4.22342 + 6.47576 0.135028 -3.97722 + 9.2559 -7.94005 -3.01958 + 9.26639 -7.9052 -3.03052 + 9.18123 -7.89898 -2.93084 + 9.26646 -5.10675 -3.23363 + 9.1813 -5.10088 -3.13966 + 9.1813 -5.06205 -3.14208 + 9.06206 -5.05853 -3.08569 + 9.05713 -3.36245 -3.30345 + 8.70111 -3.36052 -3.27266 + 8.67589 -2.14173 -3.48956 + 6.94448 -2.14169 -3.48956 + 6.96893 -0.937195 -3.70614 + 6.6326 -0.938264 -3.72342 + 9.31242 -7.98501 -3.36715 + 9.31532 -7.98201 -3.87471 + 9.31532 -7.95016 -3.18345 + 9.31749 -7.9139 -3.1701 + 9.31262 -7.93091 -3.15594 + 9.26639 -7.9052 -3.03052 + 9.27125 -7.92386 -3.04306 + 9.2559 -7.94005 -3.01958 + 9.20034 -8.51597 -3.03021 + 9.1892 -8.4969 -3.0075 + 6.44107 -0.942569 -3.79251 + 6.40174 -2.14919 -3.61001 + 6.48348 -2.14543 -3.54979 + 6.44497 -3.36527 -3.34964 + 6.56318 -3.36239 -3.30345 + 6.55816 -5.05846 -3.08569 + 6.91586 -5.05613 -3.04809 + 6.91586 -5.09496 -3.04567 + 8.70436 -5.09501 -3.04567 + 8.70429 -7.89275 -2.83114 + 9.06199 -7.89525 -2.87102 + 9.06018 -7.93069 -2.87023 + 9.17925 -7.93437 -2.92992 + 9.00284 -8.48807 -2.86545 + 9.11644 -8.49167 -2.9224 + 9.11168 -8.52649 -2.92212 + 9.19253 -8.53256 -3.01681 + 6.48293 1.70739 -4.26523 + 6.43292 0.119217 -4.37655 + 6.42931 0.131835 -4.02841 + 6.39354 -0.94634 -3.85296 + 6.44107 -0.942569 -3.79251 + 6.35309 -2.15445 -3.69434 + 6.40174 -2.14919 -3.61001 + 6.36106 -3.37007 -3.42661 + 6.44497 -3.36527 -3.34964 + 6.43892 -5.06198 -3.14208 + 6.55816 -5.05846 -3.08569 + 6.55816 -5.09729 -3.08326 + 6.91586 -5.09496 -3.04567 + 6.91578 -7.8927 -2.83114 + 8.70429 -7.89275 -2.83114 + 8.69314 -7.91059 -2.83053 + 8.71408 -7.92849 -2.83167 + 9.30012 -7.9983 -3.35148 + 9.30229 -7.98175 -3.36735 + 9.30229 -7.9724 -3.21752 + 9.31242 -7.98501 -3.36715 + 9.31242 -7.97566 -3.21732 + 9.31532 -7.95016 -3.18345 + 9.24409 -8.52434 -3.16439 + 9.23922 -8.52259 -3.13633 + 9.12512 -9.155 -3.12355 + 9.20034 -8.51597 -3.03021 + 9.19253 -8.53256 -3.01681 + 9.1892 -8.4969 -3.0075 + 9.11644 -8.49167 -2.9224 + 9.2559 -7.94005 -3.01958 + 9.17925 -7.93437 -2.92992 + 9.18123 -7.89898 -2.93084 + 9.06199 -7.89525 -2.87102 + 9.06206 -5.09736 -3.08326 + 8.70436 -5.09501 -3.04567 + 8.70436 -5.05617 -3.04809 + 6.91586 -5.05613 -3.04809 + 6.9192 -3.36048 -3.27266 + 6.56318 -3.36239 -3.30345 + 6.59847 -2.14318 -3.51365 + 6.48348 -2.14543 -3.54979 + 6.52072 -0.939878 -3.74933 + 6.44107 -0.942569 -3.79251 + 6.47576 0.135028 -3.97722 + 6.42931 0.131835 -4.02841 + 6.47965 1.70999 -4.22342 + 6.48293 1.70739 -4.26523 + 6.70518 1.7114 -4.20074 + 7.02093 1.71158 -4.19771 + 6.99037 0.139576 -3.90409 + 8.63013 0.139533 -3.90409 + 8.6033 0.113857 -3.94007 + 8.60537 0.0388709 -3.92628 + 7.01512 0.0389119 -3.92628 + 8.63227 0.0318549 -3.8843 + 6.98822 0.0318979 -3.8843 + 8.5161 -9.24949 -4.07661 + 8.28286 -9.24467 -4.14259 + 8.28578 -9.25225 -4.13026 + 7.88204 -9.24545 -4.15806 + 7.88828 -9.25302 -4.14542 + 7.81 -9.2456 -4.16084 + 8.85762 -9.20527 -4.00509 + 8.5161 -9.24949 -4.07661 + 8.52491 -9.20946 -4.08657 + 8.28578 -9.25225 -4.13026 + 8.29167 -9.21225 -4.14089 + 7.88828 -9.25302 -4.14542 + 6.55989 -7.93062 -2.87023 + 6.6172 -8.48801 -2.86545 + 6.94689 -8.4855 -2.82872 + 6.96121 -8.52105 -2.82776 + 6.97045 -8.50325 -2.82739 + 8.64959 -8.5033 -2.82739 + 6.30475 -7.95009 -3.18345 + 6.30764 -7.97558 -3.21732 + 6.37306 -8.50216 -3.18489 + 6.38319 -8.49889 -3.1851 + 6.38319 -8.50821 -3.33446 + 6.38102 -8.48982 -3.32077 + 6.31995 -7.99822 -3.35148 + 6.30055 -8.00446 -3.35109 + 6.30055 -7.99696 -3.23084 + 6.30258 -7.91383 -3.1701 + 6.30258 -7.94576 -3.86022 + 6.30475 -7.95009 -3.18345 + 6.30475 -7.98194 -3.87471 + 6.30764 -7.97558 -3.21732 + 6.35376 -5.10667 -3.23363 + 6.30266 -5.07605 -3.36765 + 6.30266 -5.11488 -3.36522 + 6.30266 -5.10822 -3.99283 + 6.30265 -5.14706 -3.99015 + 6.60918 -7.9841 -4.25701 + 6.42456 -8.564 -4.00474 + 6.35368 -7.97487 -4.07793 + 6.30475 -7.98194 -3.87471 + 6.30678 -7.96534 -3.89303 + 6.30258 -7.94576 -3.86022 + 6.30265 -5.14706 -3.99015 + 6.30258 -7.91383 -3.1701 + 6.30266 -5.11488 -3.36522 + 6.35368 -7.90512 -3.03052 + 6.35376 -5.10667 -3.23363 + 9.01274 -9.14142 -2.92054 + 9.00069 -8.52361 -2.86619 + 8.90595 -9.13928 -2.8755 + 8.65883 -8.52109 -2.82776 + 8.59282 -9.13709 -2.84062 + 8.64959 -8.5033 -2.82739 + 7.02718 -9.13705 -2.84062 + 6.96121 -8.52105 -2.82776 + 6.61935 -8.52355 -2.86619 + 6.6172 -8.48801 -2.86545 + 6.5036 -8.4916 -2.9224 + 6.55989 -7.93062 -2.87023 + 6.44082 -7.9343 -2.92992 + 6.43884 -7.89891 -2.93084 + 6.35368 -7.90512 -3.03052 + 6.43892 -5.10081 -3.13966 + 6.35376 -5.10667 -3.23363 + 6.35376 -5.06784 -3.23606 + 6.30266 -5.07605 -3.36765 + 6.31125 -3.37679 -3.53439 + 6.30266 -5.10822 -3.99283 + 6.30637 -5.11001 -4.02456 + 6.30265 -5.14706 -3.99015 + 6.30637 -5.14885 -4.02188 + 6.30678 -7.96534 -3.89303 + 6.35375 -5.15993 -4.21826 + 6.35368 -7.97487 -4.07793 + 6.60925 -5.17057 -4.4065 + 6.60918 -7.9841 -4.25701 + 6.98162 -5.17639 -4.50938 + 9.12379 -9.18942 -3.69727 + 9.12767 -9.15846 -3.13909 + 9.12379 -9.16419 -3.14301 + 9.08842 -9.15003 -3.01282 + 9.08287 -9.16112 -3.01785 + 9.01274 -9.14142 -2.92054 + 9.00106 -9.15222 -2.93194 + 8.90595 -9.13928 -2.8755 + 8.90198 -9.14819 -2.88677 + 8.59282 -9.13709 -2.84062 + 8.61157 -0.284162 -3.8669 + 8.63868 -0.291177 -3.82491 + 8.63654 -0.183499 -3.84471 + 8.95794 0.138611 -3.91872 + 8.6344 -0.0758221 -3.8645 + 7.0089 -0.316811 -3.86089 + 8.61157 -0.316853 -3.86089 + 6.98179 -0.291134 -3.82491 + 8.63868 -0.291177 -3.82491 + 7.0089 -0.28412 -3.8669 + 8.61157 -0.284162 -3.8669 + 8.6095 -0.209175 -3.88068 + 8.63654 -0.183499 -3.84471 + 6.98394 -0.183456 -3.84471 + 7.01097 -0.176443 -3.88669 + 7.01305 -0.101456 -3.90048 + 8.60743 -0.101498 -3.90048 + 6.98608 -0.0757791 -3.8645 + 8.6344 -0.0758221 -3.8645 + 7.01305 -0.0687671 -3.90649 + 7.00683 -0.424487 -3.84109 + 6.97965 -0.398811 -3.80512 + 6.97751 -0.506488 -3.78532 + 6.6326 -0.938264 -3.72342 + 6.97536 -0.614164 -3.76553 + 8.61364 -0.39184 -3.8471 + 7.00683 -0.391797 -3.8471 + 8.64082 -0.398854 -3.80512 + 6.97965 -0.398811 -3.80512 + 8.61363 -0.42453 -3.84109 + 7.00683 -0.424487 -3.84109 + 7.00476 -0.499474 -3.82731 + 6.97751 -0.506488 -3.78532 + 8.64295 -0.506531 -3.78532 + 8.6157 -0.532207 -3.8213 + 8.61777 -0.607194 -3.80751 + 7.00268 -0.607151 -3.80751 + 8.64509 -0.614208 -3.76553 + 6.97536 -0.614164 -3.76553 + 8.98784 -0.938326 -3.72342 + 8.64723 -0.721886 -3.74573 + 8.64937 -0.829562 -3.72594 + 8.62191 -0.822549 -3.76792 + 6.99854 -0.822506 -3.76792 + 8.61984 -0.747561 -3.78171 + 7.00061 -0.747518 -3.78171 + 6.97322 -0.721842 -3.74573 + 6.97107 -0.829518 -3.72594 + 9.19547 -8.56408 -4.00474 + 9.31329 -7.96542 -3.89303 + 9.31532 -7.98201 -3.87471 + 9.31749 -7.94584 -3.86022 + 9.31749 -7.9139 -3.1701 + 9.31756 -5.11496 -3.36522 + 9.26646 -5.10675 -3.23363 + 9.26646 -5.06791 -3.23606 + 9.1813 -5.06205 -3.14208 + 9.17534 -3.36534 -3.34964 + 9.05713 -3.36245 -3.30345 + 9.0219 -2.14324 -3.51365 + 8.67589 -2.14173 -3.48956 + 8.65151 -0.93724 -3.70614 + 6.96893 -0.937195 -3.70614 + 8.62397 -0.930226 -3.74813 + 6.99646 -0.930183 -3.74813 + 8.61662 -7.98944 -4.35955 + 8.61671 -5.17671 -4.51429 + 8.63856 -7.9892 -4.35487 + 8.63859 -5.17643 -4.50938 + 9.01096 -5.17063 -4.4065 + 9.01096 -5.1318 -4.40918 + 9.26646 -5.12118 -4.22094 + 9.25714 -3.41659 -4.3107 + 9.30364 -3.40622 -4.12696 + 9.26238 -2.17876 -4.21323 + 9.26728 -2.15453 -3.69434 + 9.2269 -0.946415 -3.85296 + 9.09972 -0.939946 -3.74933 + 9.13689 -2.1455 -3.54979 + 9.21863 -2.14926 -3.61001 + 9.25925 -3.37014 -3.42661 + 9.30906 -3.37687 -3.53439 + 8.5768 -8.57758 -4.26722 + 8.61662 -7.98944 -4.35955 + 8.59875 -8.57735 -4.26264 + 8.63856 -7.9892 -4.35487 + 9.01089 -7.98416 -4.25701 + 9.01096 -5.17063 -4.4065 + 9.26646 -5.16001 -4.21826 + 9.26646 -5.12118 -4.22094 + 9.31385 -5.11009 -4.02456 + 9.30364 -3.40622 -4.12696 + 9.30906 -3.37687 -3.53439 + 9.26728 -2.15453 -3.69434 + 9.21863 -2.14926 -3.61001 + 9.2269 -0.946415 -3.85296 + 9.17937 -0.942641 -3.79251 + 9.14474 0.134957 -3.97722 + 9.06702 0.137241 -3.94066 + 9.09581 1.71058 -4.21283 + 8.5146 -9.20192 -4.09964 + 8.5768 -8.57758 -4.26722 + 8.53675 -9.20169 -4.09518 + 8.59875 -8.57735 -4.26264 + 8.95241 -8.57267 -4.17159 + 9.01089 -7.98416 -4.25701 + 9.26639 -7.97494 -4.07793 + 9.26646 -5.16001 -4.21826 + 9.31385 -5.14892 -4.02188 + 9.31385 -5.11009 -4.02456 + 9.31756 -5.1083 -3.99283 + 9.30906 -3.37687 -3.53439 + 9.31756 -5.07613 -3.36765 + 9.25925 -3.37014 -3.42661 + 8.23041 0.100496 -4.70728 + 8.03744 0.0979328 -4.75277 + 8.32312 0.104235 -4.64101 + 7.81025 0.0976618 -4.75767 + 8.3527 0.109613 -4.54575 + 7.81025 0.109611 -4.54605 + 7.81029 1.70501 -4.3028 + 7.2678 0.109642 -4.54575 + 7.44944 1.70511 -4.30128 + 7.0983 1.70539 -4.29687 + 9.09581 1.71058 -4.21283 + 9.02064 1.71106 -4.20527 + 9.06702 0.137241 -3.94066 + 8.95794 0.138611 -3.91872 + 9.09972 -0.939946 -3.74933 + 8.98784 -0.938326 -3.72342 + 9.13689 -2.1455 -3.54979 + 8.15887 0.0987738 -4.73778 + 8.24216 -0.988012 -4.6964 + 8.16966 -0.989483 -4.72251 + 8.22988 -2.20485 -4.6758 + 8.18094 -2.20522 -4.68234 + 8.2171 -3.43583 -4.65194 + 8.33034 -8.58071 -4.32802 + 8.28879 -9.20468 -4.15337 + 7.81 -9.20562 -4.17186 + 7.81684 -9.21317 -4.159 + 7.81684 -9.25316 -4.14814 + 8.35698 -7.9928 -4.4249 + 8.33034 -8.58071 -4.32802 + 7.81002 -8.58177 -4.34888 + 7.81 -9.20562 -4.17186 + 7.33121 -9.20465 -4.15337 + 7.32834 -9.21222 -4.14089 + 7.09455 -9.20433 -4.09413 + 7.0951 -9.20942 -4.08657 + 6.76238 -9.20522 -4.00509 + 7.1039 -9.24945 -4.07661 + 6.77531 -9.2453 -3.99614 + 6.77182 -9.23757 -4.00565 + 6.55093 -9.23004 -3.85959 + 6.68465 -9.85172 -3.5462 + 8.21891 -5.18058 -4.58298 + 8.35698 -7.9928 -4.4249 + 7.81003 -7.99394 -4.44728 + 7.81002 -8.58177 -4.34888 + 7.2897 -8.58068 -4.32802 + 7.33121 -9.20465 -4.15337 + 7.1054 -9.20188 -4.09964 + 7.09455 -9.20433 -4.09413 + 7.08325 -9.20165 -4.09518 + 6.76238 -9.20522 -4.00509 + 8.21891 -5.14175 -4.58566 + 8.21891 -5.18058 -4.58298 + 7.81011 -5.1819 -4.60651 + 7.81003 -7.99394 -4.44728 + 7.26309 -7.99277 -4.4249 + 7.2897 -8.58068 -4.32802 + 7.04323 -8.57754 -4.26722 + 7.1054 -9.20188 -4.09964 + 7.02129 -8.57731 -4.26264 + 7.08325 -9.20165 -4.09518 + 6.75878 -9.1975 -4.01472 + 6.76238 -9.20522 -4.00509 + 6.54057 -9.19774 -3.86023 + 6.77531 -9.2453 -3.99614 + 6.55625 -9.23792 -3.85309 + 6.55093 -9.23004 -3.85959 + 8.2171 -3.43583 -4.65194 + 8.21891 -5.14175 -4.58566 + 7.81011 -5.14306 -4.60919 + 7.81011 -5.1819 -4.60651 + 7.40131 -5.18055 -4.58298 + 7.26309 -7.99277 -4.4249 + 7.00345 -7.9894 -4.35955 + 7.04323 -8.57754 -4.26722 + 6.9815 -7.98915 -4.35487 + 7.02129 -8.57731 -4.26264 + 6.66762 -8.57261 -4.17159 + 6.75878 -9.1975 -4.01472 + 6.53512 -9.18987 -3.86682 + 6.54057 -9.19774 -3.86023 + 9.07943 -9.19781 -3.86023 + 9.12961 -9.18137 -3.70044 + 9.12379 -9.18942 -3.69727 + 9.12961 -9.15653 -3.15193 + 9.12767 -9.15846 -3.13909 + 9.12512 -9.155 -3.12355 + 9.08842 -9.15003 -3.01282 + 9.19253 -8.53256 -3.01681 + 9.01274 -9.14142 -2.92054 + 9.11168 -8.52649 -2.92212 + 9.00069 -8.52361 -2.86619 + 9.00284 -8.48807 -2.86545 + 8.67315 -8.48555 -2.82872 + 8.71408 -7.92849 -2.83167 + 8.64959 -8.5033 -2.82739 + 8.69314 -7.91059 -2.83053 + 6.97045 -8.50325 -2.82739 + 6.92693 -7.91054 -2.83053 + 6.94689 -8.4855 -2.82872 + 6.90599 -7.92845 -2.83167 + 6.55989 -7.93062 -2.87023 + 6.55808 -7.89518 -2.87102 + 6.43884 -7.89891 -2.93084 + 6.55816 -5.09729 -3.08326 + 6.43892 -5.10081 -3.13966 + 6.43892 -5.06198 -3.14208 + 6.35376 -5.06784 -3.23606 + 6.36106 -3.37007 -3.42661 + 6.31125 -3.37679 -3.53439 + 6.35309 -2.15445 -3.69434 + 6.35799 -2.17869 -4.21323 + 6.39794 -0.96551 -4.29874 + 6.44198 -0.972355 -4.41996 + 6.43292 0.119217 -4.37655 + 6.47599 0.115408 -4.44399 + 6.48293 1.70739 -4.26523 + 6.52476 1.7066 -4.27785 + 7.02093 1.71158 -4.19771 + 8.59965 1.71154 -4.19771 + 8.63013 0.139533 -3.90409 + 8.95794 0.138611 -3.91872 + 8.63227 0.0318549 -3.8843 + 8.6344 -0.0758221 -3.8645 + 8.60743 -0.0688091 -3.90649 + 7.01305 -0.0687671 -3.90649 + 8.60536 0.00617987 -3.92027 + 7.01512 0.00622087 -3.92027 + 6.98822 0.0318979 -3.8843 + 6.98608 -0.0757791 -3.8645 + 6.66256 0.138672 -3.91872 + 6.98394 -0.183456 -3.84471 + 6.6326 -0.938264 -3.72342 + 6.98179 -0.291134 -3.82491 + 6.97965 -0.398811 -3.80512 + 7.0089 -0.316811 -3.86089 + 7.00683 -0.391797 -3.8471 + 8.61157 -0.316853 -3.86089 + 8.61364 -0.39184 -3.8471 + 8.63868 -0.291177 -3.82491 + 8.64082 -0.398854 -3.80512 + 8.95794 0.138611 -3.91872 + 8.64295 -0.506531 -3.78532 + 8.98784 -0.938326 -3.72342 + 8.64509 -0.614208 -3.76553 + 8.64723 -0.721886 -3.74573 + 8.61984 -0.714871 -3.78772 + 7.00061 -0.714828 -3.78772 + 8.61777 -0.639885 -3.8015 + 7.00268 -0.639842 -3.8015 + 6.97536 -0.614164 -3.76553 + 6.97322 -0.721842 -3.74573 + 6.6326 -0.938264 -3.72342 + 6.97107 -0.829518 -3.72594 + 6.96893 -0.937195 -3.70614 + 6.99854 -0.855195 -3.76191 + 6.99646 -0.930183 -3.74813 + 8.62191 -0.855238 -3.76191 + 8.62397 -0.930226 -3.74813 + 8.64937 -0.829562 -3.72594 + 8.65151 -0.93724 -3.70614 + 8.98784 -0.938326 -3.72342 + 9.0219 -2.14324 -3.51365 + 9.13689 -2.1455 -3.54979 + 9.17534 -3.36534 -3.34964 + 9.25925 -3.37014 -3.42661 + 9.26646 -5.06791 -3.23606 + 9.31756 -5.07613 -3.36765 + 9.31756 -5.11496 -3.36522 + 9.31756 -5.14713 -3.99015 + 9.31749 -7.94584 -3.86022 + 9.31385 -5.14892 -4.02188 + 9.31329 -7.96542 -3.89303 + 9.26639 -7.97494 -4.07793 + 9.19547 -8.56408 -4.00474 + 8.95241 -8.57267 -4.17159 + 8.86122 -9.19755 -4.01472 + 8.53675 -9.20169 -4.09518 + 8.52545 -9.20437 -4.09413 + 8.5146 -9.20192 -4.09964 + 8.28879 -9.20468 -4.15337 + 8.5768 -8.57758 -4.26722 + 8.33034 -8.58071 -4.32802 + 8.61662 -7.98944 -4.35955 + 8.35698 -7.9928 -4.4249 + 8.61671 -5.17671 -4.51429 + 8.21891 -5.18058 -4.58298 + 8.61671 -5.13788 -4.51697 + 8.21891 -5.14175 -4.58566 + 8.61272 -3.43221 -4.58767 + 8.2171 -3.43583 -4.65194 + 8.59045 -2.20059 -4.60011 + 8.3518 -2.20357 -4.65306 + 8.56889 -0.98273 -4.60269 + 8.33878 -0.98533 -4.64887 + 8.32312 0.104235 -4.64101 + 8.24216 -0.988012 -4.6964 + 8.23041 0.100496 -4.70728 + 8.15887 0.0987738 -4.73778 + 8.03744 0.0979328 -4.75277 + 8.16966 -0.989483 -4.72251 + 8.04729 -0.990148 -4.73431 + 8.18094 -2.20522 -4.68234 + 8.05822 -2.20578 -4.69234 + 8.2171 -3.43583 -4.65194 + 7.81015 -3.43706 -4.67395 + 7.81011 -5.14306 -4.60919 + 7.40131 -5.14173 -4.58566 + 7.40131 -5.18055 -4.58298 + 7.0035 -5.17667 -4.51429 + 7.00345 -7.9894 -4.35955 + 6.98162 -5.17639 -4.50938 + 6.9815 -7.98915 -4.35487 + 6.60918 -7.9841 -4.25701 + 6.66762 -8.57261 -4.17159 + 6.42456 -8.564 -4.00474 + 6.53512 -9.18987 -3.86682 + 8.84469 -9.24535 -3.99614 + 9.07943 -9.19781 -3.86023 + 9.06375 -9.23799 -3.85309 + 9.12379 -9.18942 -3.69727 + 9.10757 -9.2297 -3.69215 + 9.12379 -9.16419 -3.14301 + 9.10757 -9.20481 -3.14425 + 9.08287 -9.16112 -3.01785 + 9.06375 -9.19744 -3.02615 + 8.99074 -9.19217 -2.9418 + 8.51685 -9.24185 -4.08781 + 8.84469 -9.24535 -3.99614 + 8.84818 -9.23763 -4.00565 + 9.06375 -9.23799 -3.85309 + 9.06907 -9.23011 -3.85959 + 9.10757 -9.2297 -3.69215 + 9.11325 -9.22164 -3.69527 + 9.10757 -9.20481 -3.14425 + 9.11325 -9.19623 -3.13844 + 9.06375 -9.19744 -3.02615 + 8.23262 -9.8635 -3.73447 + 8.51685 -9.24185 -4.08781 + 8.44175 -9.86123 -3.69803 + 8.84818 -9.23763 -4.00565 + 8.7379 -9.85783 -3.64337 + 9.06907 -9.23011 -3.85959 + 8.93532 -9.85177 -3.5462 + 9.11325 -9.22164 -3.69527 + 8.97481 -9.84496 -3.43688 + 9.11325 -9.19623 -3.13844 + 8.2127 -9.97416 -3.61962 + 8.41212 -9.97206 -3.58588 + 8.21189 -9.97231 -3.59002 + 8.40972 -9.97022 -3.55648 + 8.21189 -9.73046 -3.60511 + 8.88948 -9.9127 -3.50584 + 8.69166 -9.96894 -3.53577 + 8.70009 -9.91834 -3.59637 + 8.41212 -9.97206 -3.58588 + 8.41602 -9.92151 -3.6473 + 8.2127 -9.97416 -3.61962 + 8.2154 -9.92362 -3.68126 + 8.09174 -9.86375 -3.73852 + 8.23262 -9.8635 -3.73447 + 8.2154 -9.92362 -3.68126 + 8.44175 -9.86123 -3.69803 + 8.41602 -9.92151 -3.6473 + 8.7379 -9.85783 -3.64337 + 8.70009 -9.91834 -3.59637 + 8.93532 -9.85177 -3.5462 + 8.88948 -9.9127 -3.50584 + 8.97481 -9.84496 -3.43688 + 9.31951 -8.00454 -3.35109 + 9.30012 -7.9983 -3.35148 + 9.30012 -7.9908 -3.23123 + 9.30229 -7.9724 -3.21752 + 9.23685 -8.49897 -3.1851 + 9.31242 -7.97566 -3.21732 + 9.24698 -8.50223 -3.18489 + 9.24409 -8.52434 -3.16439 + 9.24409 -8.5544 -3.81703 + 9.12961 -9.18137 -3.70044 + 9.08488 -9.18994 -3.86682 + 9.07943 -9.19781 -3.86023 + 8.85762 -9.20527 -4.00509 + 8.84469 -9.24535 -3.99614 + 8.5161 -9.24949 -4.07661 + 8.51685 -9.24185 -4.08781 + 8.28286 -9.24467 -4.14259 + 8.23262 -9.8635 -3.73447 + 7.88204 -9.24545 -4.15806 + 8.09174 -9.86375 -3.73852 + 9.23685 -8.50829 -3.33446 + 9.23902 -8.48989 -3.32077 + 9.23902 -8.48242 -3.20096 + 9.25842 -8.48866 -3.20057 + 9.31951 -7.99704 -3.23084 + 9.25842 -8.49613 -3.32038 + 6.73048 -9.91264 -3.50584 + 6.68465 -9.85172 -3.5462 + 6.88207 -9.85778 -3.64337 + 6.77182 -9.23757 -4.00565 + 7.10315 -9.24182 -4.08781 + 7.1039 -9.24945 -4.07661 + 7.33422 -9.25222 -4.13026 + 7.32834 -9.21222 -4.14089 + 7.80316 -9.21317 -4.159 + 7.81 -9.20562 -4.17186 + 7.81 -9.2456 -4.16084 + 7.81684 -9.25316 -4.14814 + 7.88828 -9.25302 -4.14542 + 7.81684 -9.21317 -4.159 + 8.29167 -9.21225 -4.14089 + 8.28879 -9.20468 -4.15337 + 8.52491 -9.20946 -4.08657 + 8.52545 -9.20437 -4.09413 + 8.85762 -9.20527 -4.00509 + 8.86122 -9.19755 -4.01472 + 9.08488 -9.18994 -3.86682 + 9.19547 -8.56408 -4.00474 + 9.24409 -8.5544 -3.81703 + 9.31532 -7.98201 -3.87471 + 9.24698 -8.51155 -3.33426 + 9.31242 -7.98501 -3.36715 + 9.23685 -8.50829 -3.33446 + 9.30229 -7.98175 -3.36735 + 9.23902 -8.48989 -3.32077 + 9.30012 -7.9983 -3.35148 + 9.25842 -8.49613 -3.32038 + 9.31951 -8.00454 -3.35109 + 9.31951 -7.99704 -3.23084 + 9.30012 -7.9908 -3.23123 + 9.23902 -8.48242 -3.20096 + 9.23685 -8.49897 -3.1851 + 9.23685 -8.50829 -3.33446 + 9.24698 -8.50223 -3.18489 + 9.24698 -8.51155 -3.33426 + 9.24409 -8.5544 -3.81703 + 8.84142 -9.71919 -3.42426 + 8.8757 -9.71621 -3.37642 + 8.85135 -9.71753 -3.39758 + 8.23651 -9.71786 -3.40318 + 8.21735 -9.71898 -3.42103 + 8.23851 -9.71678 -3.38582 + 8.22322 -9.71575 -3.36936 + 8.86466 -9.71441 -3.34762 + 8.8757 -9.71346 -3.33234 + 8.86466 -9.71533 -3.36232 + 8.8757 -9.71621 -3.37642 + 8.23651 -9.71786 -3.40318 + 8.87569 -9.95806 -3.36133 + 8.8757 -9.71621 -3.37642 + 8.8508 -9.72039 -3.44338 + 8.84142 -9.71919 -3.42426 + 8.21959 -9.72216 -3.472 + 8.21959 -9.81101 -3.46646 + 8.23134 -9.80902 -3.43461 + 8.84142 -9.80805 -3.41872 + 8.85135 -9.80638 -3.39203 + 8.85135 -9.71753 -3.39758 + 8.23134 -9.72017 -3.44015 + 8.21735 -9.71898 -3.42103 + 8.21959 -9.72216 -3.472 + 8.19074 -9.72348 -3.49315 + 8.8508 -9.72039 -3.44338 + 8.24239 -9.8035 -3.34609 + 8.24239 -9.71465 -3.35163 + 8.86466 -9.71257 -3.31813 + 8.8757 -9.71346 -3.33234 + 8.8757 -9.71071 -3.28825 + 8.8757 -9.71621 -3.37642 + 8.87569 -9.95256 -3.27316 + 8.87569 -9.95806 -3.36133 + 8.22909 -9.71253 -3.31768 + 8.24438 -9.71356 -3.33427 + 8.86466 -9.71165 -3.30343 + 8.86466 -9.80051 -3.29789 + 8.86466 -9.80142 -3.31258 + 8.24438 -9.80241 -3.32873 + 7.40726 -9.97413 -3.61962 + 7.40457 -9.9236 -3.68126 + 7.53971 -9.92384 -3.68503 + 7.38735 -9.86348 -3.73447 + 7.52823 -9.86374 -3.73852 + 7.33714 -9.24464 -4.14259 + 7.73796 -9.24545 -4.15806 + 7.73172 -9.25301 -4.14542 + 7.80316 -9.25316 -4.14814 + 7.40808 -9.73044 -3.60511 + 7.40808 -9.97229 -3.59002 + 7.5025 -9.97212 -3.58734 + 7.57191 -9.97891 -3.61494 + 7.50123 -9.97891 -3.54418 + 8.11873 -9.97892 -3.54418 + 8.15746 -9.97892 -3.48271 + 7.17822 -9.8612 -3.69803 + 7.20395 -9.92148 -3.6473 + 6.91987 -9.91829 -3.59637 + 7.20784 -9.97202 -3.58588 + 6.9283 -9.96889 -3.53577 + 7.21024 -9.97019 -3.55648 + 6.93356 -9.96709 -3.50688 + 7.21025 -9.72834 -3.57157 + 6.93357 -9.72524 -3.52197 + 7.50251 -9.73027 -3.60243 + 7.47792 -9.72874 -3.57781 + 7.47792 -9.97058 -3.56272 + 7.43577 -9.96641 -3.49582 + 7.4625 -9.9789 -3.48271 + 7.43166 -9.9789 -3.39907 + 8.18831 -9.97892 -3.39907 + 8.19923 -9.97892 -3.30288 + 8.22908 -9.95438 -3.30259 + 8.22909 -9.71253 -3.31768 + 8.22908 -9.95438 -3.30259 + 8.21734 -9.96082 -3.40594 + 8.18831 -9.97892 -3.39907 + 8.15746 -9.97892 -3.48271 + 7.4625 -9.9789 -3.48271 + 7.50123 -9.97891 -3.54418 + 7.47792 -9.97058 -3.56272 + 7.5025 -9.97212 -3.58734 + 7.50251 -9.73027 -3.60243 + 7.40808 -9.73044 -3.60511 + 7.21025 -9.72834 -3.57157 + 7.40808 -9.97229 -3.59002 + 7.21024 -9.97019 -3.55648 + 7.40726 -9.97413 -3.61962 + 7.20784 -9.97202 -3.58588 + 7.40457 -9.9236 -3.68126 + 7.20395 -9.92148 -3.6473 + 7.38735 -9.86348 -3.73447 + 7.17822 -9.8612 -3.69803 + 7.33714 -9.24464 -4.14259 + 8.24492 -9.71133 -3.29856 + 8.22909 -9.71253 -3.31768 + 8.8757 -9.71071 -3.28825 + 8.86466 -9.71165 -3.30343 + 8.86466 -9.71257 -3.31813 + 8.86466 -9.80142 -3.31258 + 8.24239 -9.8035 -3.34609 + 8.24438 -9.80241 -3.32873 + 8.24239 -9.71465 -3.35163 + 8.24438 -9.71356 -3.33427 + 8.22322 -9.71575 -3.36936 + 8.22909 -9.71253 -3.31768 + 8.21735 -9.71898 -3.42103 + 8.21734 -9.96082 -3.40594 + 8.18419 -9.96643 -3.49582 + 8.15746 -9.97892 -3.48271 + 8.14205 -9.9706 -3.56272 + 8.11873 -9.97892 -3.54418 + 8.04806 -9.97892 -3.61494 + 7.57191 -9.97891 -3.61494 + 7.62385 -9.97891 -3.65035 + 7.53971 -9.92384 -3.68503 + 7.60728 -9.92529 -3.7082 + 7.52823 -9.86374 -3.73852 + 7.59867 -9.86468 -3.75355 + 7.73796 -9.24545 -4.15806 + 7.66911 -9.86503 -3.75912 + 7.73955 -9.86567 -3.76943 + 7.74241 -9.92686 -3.73326 + 8.24491 -9.80019 -3.29302 + 8.24492 -9.71133 -3.29856 + 8.86463 -9.70981 -3.2739 + 8.8757 -9.71071 -3.28825 + 8.8757 -9.70796 -3.24417 + 8.21996 -9.70901 -3.26128 + 8.2418 -9.71015 -3.27953 + 8.86463 -9.70889 -3.2592 + 8.86463 -9.79775 -3.25366 + 8.86463 -9.79866 -3.26836 + 8.2418 -9.799 -3.27398 + 8.23579 -9.70783 -3.24239 + 8.21996 -9.70901 -3.26128 + 8.8757 -9.70796 -3.24417 + 8.86463 -9.70889 -3.2592 + 8.86463 -9.70981 -3.2739 + 8.86463 -9.79866 -3.26836 + 8.24491 -9.80019 -3.29302 + 8.2418 -9.799 -3.27398 + 8.24492 -9.71133 -3.29856 + 8.2418 -9.71015 -3.27953 + 8.22909 -9.71253 -3.31768 + 8.21996 -9.70901 -3.26128 + 8.22908 -9.95438 -3.30259 + 8.21579 -9.94817 -3.20309 + 8.19923 -9.97892 -3.30288 + 8.11746 -9.97214 -3.58734 + 8.11747 -9.73029 -3.60243 + 8.14205 -9.72875 -3.57781 + 8.40972 -9.72837 -3.57157 + 8.68641 -9.72528 -3.52197 + 8.6864 -9.96713 -3.50688 + 8.85079 -9.96223 -3.42829 + 8.86665 -9.96372 -3.45211 + 8.89783 -9.95849 -3.36827 + 8.92736 -9.90634 -3.40398 + 8.92736 -9.89185 -3.17161 + 8.97481 -9.8276 -3.15875 + 8.93532 -9.82154 -3.06161 + 9.06907 -9.18871 -3.01786 + 8.87213 -9.81171 -2.9851 + 8.99545 -9.18333 -2.93174 + 8.89236 -9.18011 -2.88006 + 8.88851 -9.18901 -2.89119 + 8.58182 -9.1869 -2.85745 + 8.59145 -9.14605 -2.85261 + 7.89174 -9.18688 -2.85745 + 8.23579 -9.79668 -3.23685 + 8.23579 -9.70783 -3.24239 + 8.86463 -9.70705 -3.22964 + 8.8757 -9.70796 -3.24417 + 8.8757 -9.70521 -3.20009 + 8.8757 -9.71071 -3.28825 + 8.87569 -9.94706 -3.185 + 8.87569 -9.95256 -3.27316 + 8.89783 -9.95849 -3.36827 + 8.87569 -9.95806 -3.36133 + 8.85079 -9.96223 -3.42829 + 8.8508 -9.72039 -3.44338 + 8.68641 -9.72528 -3.52197 + 8.68337 -9.72407 -3.50248 + 8.17755 -9.72738 -3.5557 + 8.17754 -9.81623 -3.55015 + 8.2025 -9.81352 -3.50677 + 8.68337 -9.81292 -3.49694 + 8.75213 -9.81087 -3.46407 + 8.75213 -9.72202 -3.46961 + 8.2025 -9.72467 -3.51231 + 8.19074 -9.72348 -3.49315 + 8.14205 -9.72875 -3.57781 + 8.14205 -9.9706 -3.56272 + 8.11746 -9.97214 -3.58734 + 8.04806 -9.97892 -3.61494 + 8.21082 -9.70549 -3.20488 + 8.23268 -9.70664 -3.22336 + 8.86463 -9.70613 -3.21494 + 8.86462 -9.79499 -3.2094 + 8.86462 -9.7959 -3.22409 + 8.23268 -9.7955 -3.21782 + 8.22451 -9.70426 -3.1851 + 8.21082 -9.70549 -3.20488 + 8.8757 -9.70521 -3.20009 + 8.86463 -9.70613 -3.21494 + 8.86463 -9.70705 -3.22964 + 8.86462 -9.7959 -3.22409 + 8.23579 -9.79668 -3.23685 + 8.23268 -9.7955 -3.21782 + 8.23579 -9.70783 -3.24239 + 8.23268 -9.70664 -3.22336 + 8.21996 -9.70901 -3.26128 + 8.21082 -9.70549 -3.20488 + 8.21579 -9.94817 -3.20309 + 8.22451 -9.79311 -3.17956 + 8.22451 -9.70426 -3.1851 + 8.85472 -9.70419 -3.18375 + 8.8757 -9.70521 -3.20009 + 8.85518 -9.70215 -3.15107 + 8.85517 -9.944 -3.13598 + 8.84149 -9.94196 -3.1033 + 8.87557 -9.93391 -3.09638 + 8.79894 -9.93996 -3.07129 + 8.81458 -9.92646 -3.02777 + 8.73183 -9.93618 -3.01071 + 8.73797 -9.87974 -2.97769 + 8.47283 -9.87812 -2.95183 + 8.50098 -9.81287 -2.92286 + 8.25341 -9.87745 -2.94119 + 8.27224 -9.81287 -2.92286 + 8.1056 -9.87723 -2.93764 + 8.11815 -9.81286 -2.92286 + 8.18526 -9.70123 -3.13655 + 8.21387 -9.70248 -3.15667 + 8.84789 -9.70317 -3.1674 + 8.84788 -9.79202 -3.16186 + 8.85472 -9.79304 -3.1782 + 8.21387 -9.79133 -3.15112 + 8.19387 -9.70028 -3.12145 + 8.18526 -9.70123 -3.13655 + 8.85518 -9.70215 -3.15107 + 8.84789 -9.70317 -3.1674 + 8.85472 -9.70419 -3.18375 + 8.85472 -9.79304 -3.1782 + 8.22451 -9.79311 -3.17956 + 8.21387 -9.79133 -3.15112 + 8.22451 -9.70426 -3.1851 + 8.21387 -9.70248 -3.15667 + 8.21082 -9.70549 -3.20488 + 8.18526 -9.70123 -3.13655 + 8.21579 -9.94817 -3.20309 + 7.80998 -9.87405 -2.88692 + 7.88703 -9.81012 -2.87903 + 7.80999 -9.80983 -2.87431 + 7.88553 -9.17793 -2.84561 + 7.81 -9.17793 -2.84561 + 7.89174 -9.18688 -2.85745 + 7.72826 -9.18688 -2.85745 + 8.59145 -9.14605 -2.85261 + 7.02855 -9.14601 -2.85261 + 7.73447 -9.17793 -2.84561 + 7.6559 -9.81108 -2.89448 + 7.73294 -9.81012 -2.87903 + 7.66218 -9.87537 -2.90807 + 7.73608 -9.8742 -2.88931 + 6.37595 -8.52426 -3.16439 + 6.38082 -8.52251 -3.13633 + 6.30745 -7.93083 -3.15594 + 6.4197 -8.51589 -3.03021 + 6.34881 -7.92379 -3.04306 + 6.43083 -8.49682 -3.0075 + 6.36417 -7.93997 -3.01958 + 6.37595 -8.55433 -3.81703 + 6.49039 -9.1813 -3.70044 + 6.49039 -9.15646 -3.15193 + 6.49233 -9.15839 -3.13909 + 6.49489 -9.15493 -3.12355 + 6.49621 -9.16412 -3.14301 + 6.53159 -9.14996 -3.01282 + 6.53714 -9.16105 -3.01785 + 6.60727 -9.14136 -2.92054 + 6.61895 -9.15216 -2.93194 + 6.71802 -9.14814 -2.88677 + 6.73149 -9.18896 -2.89119 + 7.03818 -9.18686 -2.85745 + 7.03689 -9.17791 -2.84561 + 7.73447 -9.17793 -2.84561 + 7.80998 -9.97891 -2.91903 + 7.80998 -9.87405 -2.88692 + 7.73608 -9.8742 -2.88931 + 7.80999 -9.80983 -2.87431 + 7.73294 -9.81012 -2.87903 + 7.81 -9.17793 -2.84561 + 7.73447 -9.17793 -2.84561 + 7.72826 -9.18688 -2.85745 + 7.03818 -9.18686 -2.85745 + 7.02855 -9.14601 -2.85261 + 6.71802 -9.14814 -2.88677 + 6.71405 -9.13922 -2.8755 + 6.60727 -9.14136 -2.92054 + 6.50836 -8.52642 -2.92212 + 6.53159 -9.14996 -3.01282 + 6.4275 -8.53249 -3.01681 + 6.49489 -9.15493 -3.12355 + 6.38082 -8.52251 -3.13633 + 6.49039 -9.15646 -3.15193 + 6.37595 -8.52426 -3.16439 + 6.37595 -8.55433 -3.81703 + 6.37306 -8.51147 -3.33426 + 6.30764 -7.98493 -3.36715 + 6.31778 -7.98167 -3.36735 + 6.31778 -7.97232 -3.21752 + 6.31995 -7.99072 -3.23123 + 6.38102 -8.48234 -3.20096 + 6.36162 -8.48858 -3.20057 + 6.36162 -8.49606 -3.32038 + 7.36656 -9.87743 -2.94119 + 7.36733 -9.93456 -2.98534 + 7.51437 -9.87721 -2.93764 + 7.56537 -9.97891 -3.00531 + 7.58827 -9.87673 -2.92995 + 7.61811 -9.97891 -2.96992 + 7.67561 -9.97891 -2.94291 + 7.94436 -9.97892 -2.94291 + 7.74195 -9.97891 -2.92624 + 7.87801 -9.97892 -2.92624 + 7.34773 -9.81284 -2.92286 + 7.36656 -9.87743 -2.94119 + 7.50182 -9.81285 -2.92286 + 7.51437 -9.87721 -2.93764 + 7.57886 -9.81248 -2.91695 + 7.58827 -9.87673 -2.92995 + 6.74428 -9.70515 -3.20009 + 6.75535 -9.70608 -3.21494 + 7.3873 -9.70662 -3.22336 + 7.38729 -9.79547 -3.21782 + 7.38418 -9.79666 -3.23685 + 6.75535 -9.79493 -3.2094 + 6.74428 -9.70515 -3.20009 + 6.74427 -9.947 -3.185 + 6.74427 -9.9525 -3.27316 + 6.72213 -9.94652 -3.1773 + 6.72213 -9.95843 -3.36827 + 6.69261 -9.89179 -3.17161 + 6.69261 -9.90628 -3.40398 + 6.64516 -9.82754 -3.15875 + 6.64516 -9.84489 -3.43688 + 6.50675 -9.22157 -3.69527 + 6.74428 -9.71615 -3.37642 + 7.40263 -9.71895 -3.42103 + 6.75531 -9.71527 -3.36232 + 7.38346 -9.71784 -3.40318 + 6.75531 -9.80412 -3.35677 + 6.74428 -9.7134 -3.33234 + 6.75531 -9.71436 -3.34762 + 7.38147 -9.71676 -3.38582 + 7.38147 -9.80561 -3.38028 + 7.38346 -9.80669 -3.39764 + 6.75531 -9.80321 -3.34208 + 6.75532 -9.71252 -3.31813 + 6.74428 -9.7134 -3.33234 + 7.39676 -9.71573 -3.36936 + 7.38147 -9.71676 -3.38582 + 7.38346 -9.71784 -3.40318 + 7.38346 -9.80669 -3.39764 + 6.75531 -9.80412 -3.35677 + 6.75531 -9.80321 -3.34208 + 6.75531 -9.71527 -3.36232 + 6.75531 -9.71436 -3.34762 + 6.74428 -9.71615 -3.37642 + 6.74428 -9.7134 -3.33234 + 7.39089 -9.71251 -3.31768 + 7.39088 -9.95435 -3.30259 + 7.40417 -9.94815 -3.20309 + 7.43309 -9.9789 -3.2103 + 7.46145 -9.9789 -3.13449 + 8.15851 -9.97892 -3.13449 + 8.12225 -9.97892 -3.07557 + 8.14582 -9.93908 -3.05738 + 8.11814 -9.93728 -3.02862 + 8.11814 -9.69543 -3.04371 + 8.25413 -9.69458 -3.03 + 8.25513 -9.69581 -3.04971 + 8.47034 -9.69582 -3.04971 + 8.47034 -9.78467 -3.04416 + 8.72528 -9.78594 -3.06451 + 8.25513 -9.78466 -3.04416 + 8.1523 -9.78516 -3.05217 + 8.1523 -9.69631 -3.05771 + 8.16525 -9.69728 -3.07334 + 8.15699 -9.69836 -3.09061 + 8.76086 -9.69902 -3.10094 + 8.83228 -9.69942 -3.1074 + 8.81011 -9.69875 -3.09661 + 6.76863 -9.71747 -3.39758 + 6.76918 -9.72033 -3.44338 + 6.77855 -9.71914 -3.42426 + 7.41748 -9.72465 -3.51231 + 7.42923 -9.72345 -3.49315 + 7.44243 -9.72736 -3.5557 + 7.40262 -9.9608 -3.40594 + 7.40263 -9.71895 -3.42103 + 7.42923 -9.72345 -3.49315 + 7.40038 -9.72213 -3.472 + 6.77855 -9.71914 -3.42426 + 6.77855 -9.80799 -3.41872 + 6.76863 -9.80633 -3.39203 + 7.40038 -9.81099 -3.46646 + 7.38863 -9.809 -3.43461 + 7.38863 -9.72015 -3.44015 + 6.76863 -9.71747 -3.39758 + 6.74428 -9.71615 -3.37642 + 6.76918 -9.72033 -3.44338 + 6.75531 -9.80137 -3.31258 + 6.75532 -9.71252 -3.31813 + 7.37759 -9.71462 -3.35163 + 7.39676 -9.71573 -3.36936 + 7.39089 -9.71251 -3.31768 + 7.40263 -9.71895 -3.42103 + 7.39088 -9.95435 -3.30259 + 7.40262 -9.9608 -3.40594 + 7.42073 -9.9789 -3.30288 + 6.74428 -9.71065 -3.28825 + 6.75532 -9.7116 -3.30343 + 7.3756 -9.71354 -3.33427 + 7.3756 -9.80239 -3.32873 + 7.37759 -9.80347 -3.34609 + 6.75531 -9.80045 -3.29789 + 7.39089 -9.71251 -3.31768 + 7.37506 -9.71131 -3.29856 + 6.75535 -9.70976 -3.2739 + 6.75534 -9.79861 -3.26836 + 6.75534 -9.79769 -3.25366 + 7.37506 -9.80016 -3.29302 + 7.40915 -9.70547 -3.20488 + 7.38418 -9.70781 -3.24239 + 7.40002 -9.70899 -3.26128 + 6.75535 -9.707 -3.22964 + 7.37817 -9.71012 -3.27953 + 6.74428 -9.7079 -3.24417 + 6.75535 -9.70884 -3.2592 + 6.74428 -9.71065 -3.28825 + 8.72751 -9.69615 -3.05502 + 8.81011 -9.69875 -3.09661 + 8.79895 -9.69811 -3.08637 + 8.83228 -9.69942 -3.1074 + 8.8415 -9.70011 -3.11839 + 8.8344 -9.70112 -3.13452 + 6.74427 -9.958 -3.36133 + 6.74428 -9.71615 -3.37642 + 6.74428 -9.71065 -3.28825 + 6.74428 -9.7134 -3.33234 + 6.75532 -9.7116 -3.30343 + 6.75532 -9.71252 -3.31813 + 6.75531 -9.80045 -3.29789 + 6.75531 -9.80137 -3.31258 + 7.37759 -9.80347 -3.34609 + 7.37759 -9.71462 -3.35163 + 7.3756 -9.71354 -3.33427 + 7.39089 -9.71251 -3.31768 + 6.74428 -9.71065 -3.28825 + 6.75535 -9.70976 -3.2739 + 6.75535 -9.70884 -3.2592 + 6.75534 -9.79769 -3.25366 + 7.37817 -9.79898 -3.27398 + 7.37506 -9.80016 -3.29302 + 7.37817 -9.71012 -3.27953 + 7.37506 -9.71131 -3.29856 + 7.40002 -9.70899 -3.26128 + 7.39089 -9.71251 -3.31768 + 7.40915 -9.70547 -3.20488 + 7.40417 -9.94815 -3.20309 + 7.43471 -9.94305 -3.12146 + 7.46145 -9.9789 -3.13449 + 7.49771 -9.97891 -3.07557 + 8.12225 -9.97892 -3.07557 + 8.05459 -9.97892 -3.00531 + 8.11814 -9.93728 -3.02862 + 8.25413 -9.93643 -3.01491 + 8.25413 -9.69458 -3.03 + 8.47088 -9.69459 -3.03 + 8.47034 -9.69582 -3.04971 + 8.72528 -9.69709 -3.07006 + 8.72528 -9.78594 -3.06451 + 8.761 -9.78692 -3.08019 + 8.1523 -9.78516 -3.05217 + 8.16525 -9.78613 -3.0678 + 8.16525 -9.69728 -3.07334 + 8.76101 -9.69807 -3.08574 + 8.81011 -9.69875 -3.09661 + 8.72528 -9.69709 -3.07006 + 8.72751 -9.69615 -3.05502 + 8.47088 -9.69459 -3.03 + 8.47087 -9.93643 -3.01491 + 8.25413 -9.93643 -3.01491 + 8.25263 -9.93458 -2.98534 + 8.05459 -9.97892 -3.00531 + 6.76525 -9.70413 -3.18375 + 6.74428 -9.70515 -3.20009 + 7.40915 -9.70547 -3.20488 + 7.3873 -9.70662 -3.22336 + 7.38418 -9.70781 -3.24239 + 7.38418 -9.79666 -3.23685 + 6.75535 -9.79585 -3.22409 + 6.75535 -9.79493 -3.2094 + 6.75535 -9.707 -3.22964 + 6.75535 -9.70608 -3.21494 + 6.74428 -9.7079 -3.24417 + 6.74428 -9.70515 -3.20009 + 6.74428 -9.71065 -3.28825 + 6.74427 -9.9525 -3.27316 + 6.74427 -9.958 -3.36133 + 6.72213 -9.95843 -3.36827 + 6.76525 -9.79298 -3.1782 + 6.76525 -9.70413 -3.18375 + 7.39547 -9.70423 -3.1851 + 7.40915 -9.70547 -3.20488 + 7.43471 -9.70121 -3.13655 + 7.43471 -9.94305 -3.12146 + 7.47414 -9.93906 -3.05738 + 7.49771 -9.97891 -3.07557 + 7.56537 -9.97891 -3.00531 + 8.05459 -9.97892 -3.00531 + 8.00185 -9.97892 -2.96992 + 8.0317 -9.87675 -2.92995 + 7.94436 -9.97892 -2.94291 + 7.95779 -9.87538 -2.90807 + 7.87801 -9.97892 -2.92624 + 7.88389 -9.8742 -2.88931 + 6.7648 -9.70209 -3.15107 + 6.77209 -9.70311 -3.1674 + 7.4061 -9.70246 -3.15667 + 7.4061 -9.79131 -3.15112 + 7.39546 -9.79309 -3.17956 + 6.77209 -9.79197 -3.16186 + 6.82102 -9.93991 -3.07129 + 6.82103 -9.69806 -3.08637 + 6.89247 -9.69611 -3.05502 + 6.8947 -9.69704 -3.07006 + 7.14963 -9.69578 -3.04971 + 7.14963 -9.78463 -3.04416 + 7.36484 -9.78464 -3.04416 + 7.46298 -9.69834 -3.09061 + 6.80986 -9.6987 -3.09661 + 6.85912 -9.69897 -3.10094 + 6.82103 -9.69806 -3.08637 + 6.77848 -9.70006 -3.11839 + 6.82102 -9.93991 -3.07129 + 6.77847 -9.9419 -3.1033 + 7.36485 -9.69579 -3.04971 + 7.46768 -9.78514 -3.05217 + 7.46768 -9.69629 -3.05771 + 7.45472 -9.78612 -3.0678 + 7.45472 -9.69726 -3.07334 + 6.85897 -9.78687 -3.08019 + 6.85897 -9.69802 -3.08574 + 6.89469 -9.78589 -3.06451 + 7.1491 -9.69455 -3.03 + 7.36485 -9.69579 -3.04971 + 7.36584 -9.69456 -3.03 + 7.46768 -9.69629 -3.05771 + 7.50184 -9.69542 -3.04371 + 7.45472 -9.69726 -3.07334 + 6.74439 -9.93385 -3.09638 + 6.77847 -9.9419 -3.1033 + 6.80539 -9.92641 -3.02777 + 6.82102 -9.93991 -3.07129 + 6.89246 -9.93795 -3.03993 + 6.89247 -9.69611 -3.05502 + 7.1491 -9.69455 -3.03 + 7.14963 -9.69578 -3.04971 + 7.36485 -9.69579 -3.04971 + 7.36484 -9.78464 -3.04416 + 7.46768 -9.78514 -3.05217 + 7.14963 -9.78463 -3.04416 + 6.89469 -9.78589 -3.06451 + 6.8947 -9.69704 -3.07006 + 6.85897 -9.69802 -3.08574 + 6.80986 -9.6987 -3.09661 + 7.45472 -9.69726 -3.07334 + 7.46298 -9.69834 -3.09061 + 7.50184 -9.69542 -3.04371 + 7.50183 -9.93726 -3.02862 + 7.36584 -9.69456 -3.03 + 7.36584 -9.93641 -3.01491 + 7.14909 -9.9364 -3.01491 + 7.14828 -9.93455 -2.98534 + 6.89246 -9.93795 -3.03993 + 6.88814 -9.93613 -3.01071 + 6.80539 -9.92641 -3.02777 + 7.42611 -9.70026 -3.12145 + 7.46298 -9.69834 -3.09061 + 7.43553 -9.69931 -3.10613 + 6.85912 -9.69897 -3.10094 + 6.7877 -9.69937 -3.1074 + 6.77848 -9.70006 -3.11839 + 6.7648 -9.70209 -3.15107 + 6.77847 -9.9419 -3.1033 + 6.76479 -9.94394 -3.13598 + 6.74439 -9.93385 -3.09638 + 8.19386 -9.78914 -3.11591 + 8.19387 -9.70028 -3.12145 + 8.8344 -9.70112 -3.13452 + 8.85518 -9.70215 -3.15107 + 8.8415 -9.70011 -3.11839 + 8.84149 -9.94196 -3.1033 + 8.79895 -9.69811 -3.08637 + 8.79894 -9.93996 -3.07129 + 8.7275 -9.938 -3.03993 + 8.73183 -9.93618 -3.01071 + 8.47168 -9.93459 -2.98534 + 8.47283 -9.87812 -2.95183 + 8.25263 -9.93458 -2.98534 + 8.25341 -9.87745 -2.94119 + 8.05459 -9.97892 -3.00531 + 8.1056 -9.87723 -2.93764 + 8.0317 -9.87675 -2.92995 + 8.11815 -9.81286 -2.92286 + 8.04111 -9.81249 -2.91695 + 7.88553 -9.17793 -2.84561 + 7.96407 -9.81109 -2.89448 + 7.88703 -9.81012 -2.87903 + 7.88389 -9.8742 -2.88931 + 7.80998 -9.87405 -2.88692 + 7.87801 -9.97892 -2.92624 + 7.80998 -9.97891 -2.91903 + 7.74195 -9.97891 -2.92624 + 7.73608 -9.8742 -2.88931 + 7.67561 -9.97891 -2.94291 + 7.66218 -9.87537 -2.90807 + 7.58827 -9.87673 -2.92995 + 7.6559 -9.81108 -2.89448 + 7.57886 -9.81248 -2.91695 + 7.73447 -9.17793 -2.84561 + 7.50182 -9.81285 -2.92286 + 7.03689 -9.17791 -2.84561 + 7.34773 -9.81284 -2.92286 + 7.11899 -9.81284 -2.92286 + 7.36656 -9.87743 -2.94119 + 7.14713 -9.87809 -2.95183 + 7.14828 -9.93455 -2.98534 + 6.88199 -9.87969 -2.97769 + 6.88814 -9.93613 -3.01071 + 6.78479 -9.8845 -3.01 + 6.80539 -9.92641 -3.02777 + 6.73049 -9.88614 -3.08111 + 6.74439 -9.93385 -3.09638 + 6.72213 -9.94652 -3.1773 + 6.76479 -9.94394 -3.13598 + 6.74427 -9.947 -3.185 + 6.7648 -9.70209 -3.15107 + 6.74428 -9.70515 -3.20009 + 6.77209 -9.70311 -3.1674 + 6.76525 -9.70413 -3.18375 + 6.77209 -9.79197 -3.16186 + 6.76525 -9.79298 -3.1782 + 7.39546 -9.79309 -3.17956 + 7.39547 -9.70423 -3.1851 + 7.4061 -9.70246 -3.15667 + 7.43471 -9.70121 -3.13655 + 6.7648 -9.70209 -3.15107 + 6.78558 -9.70106 -3.13452 + 6.7877 -9.69937 -3.1074 + 6.79247 -9.70004 -3.11812 + 7.43553 -9.69931 -3.10613 + 7.43553 -9.78816 -3.10059 + 7.42611 -9.78912 -3.11591 + 6.79246 -9.78889 -3.11258 + 6.78557 -9.78991 -3.12898 + 6.78558 -9.70106 -3.13452 + 7.42611 -9.70026 -3.12145 + 7.43471 -9.70121 -3.13655 + 7.46298 -9.69834 -3.09061 + 7.47414 -9.93906 -3.05738 + 7.50183 -9.93726 -3.02862 + 7.56537 -9.97891 -3.00531 + 7.36584 -9.93641 -3.01491 + 7.36733 -9.93456 -2.98534 + 7.14828 -9.93455 -2.98534 + 7.36656 -9.87743 -2.94119 + 6.76918 -9.72033 -3.44338 + 6.74428 -9.71615 -3.37642 + 6.76917 -9.96218 -3.42829 + 6.74427 -9.958 -3.36133 + 6.75331 -9.96367 -3.45211 + 6.72213 -9.95843 -3.36827 + 6.73048 -9.91264 -3.50584 + 6.69261 -9.90628 -3.40398 + 6.68465 -9.85172 -3.5462 + 6.64516 -9.84489 -3.43688 + 6.55093 -9.23004 -3.85959 + 6.50675 -9.22157 -3.69527 + 6.55625 -9.23792 -3.85309 + 6.51243 -9.22963 -3.69215 + 6.54057 -9.19774 -3.86023 + 6.49621 -9.18935 -3.69727 + 6.53512 -9.18987 -3.86682 + 6.49039 -9.1813 -3.70044 + 6.42456 -8.564 -4.00474 + 6.37595 -8.55433 -3.81703 + 6.30475 -7.98194 -3.87471 + 6.30764 -7.98493 -3.36715 + 6.30764 -7.97558 -3.21732 + 6.31778 -7.97232 -3.21752 + 6.38319 -8.49889 -3.1851 + 6.38102 -8.48234 -3.20096 + 6.38102 -8.48982 -3.32077 + 6.36162 -8.49606 -3.32038 + 6.30055 -8.00446 -3.35109 + 6.36162 -8.48858 -3.20057 + 6.30055 -7.99696 -3.23084 + 6.31995 -7.99072 -3.23123 + 6.31995 -7.99822 -3.35148 + 6.31778 -7.98167 -3.36735 + 6.38319 -8.50821 -3.33446 + 6.37306 -8.51147 -3.33426 + 6.37306 -8.50216 -3.18489 + 6.37595 -8.52426 -3.16439 + 6.30475 -7.95009 -3.18345 + 6.30745 -7.93083 -3.15594 + 6.30258 -7.91383 -3.1701 + 6.34881 -7.92379 -3.04306 + 6.35368 -7.90512 -3.03052 + 6.36417 -7.93997 -3.01958 + 6.44082 -7.9343 -2.92992 + 6.43083 -8.49682 -3.0075 + 6.5036 -8.4916 -2.9224 + 6.50836 -8.52642 -2.92212 + 6.61935 -8.52355 -2.86619 + 6.71405 -9.13922 -2.8755 + 7.02718 -9.13705 -2.84062 + 7.02855 -9.14601 -2.85261 + 8.59282 -9.13709 -2.84062 + 8.59145 -9.14605 -2.85261 + 8.90198 -9.14819 -2.88677 + 8.88851 -9.18901 -2.89119 + 8.99074 -9.19217 -2.9418 + 8.99545 -9.18333 -2.93174 + 9.06375 -9.19744 -3.02615 + 9.06907 -9.18871 -3.01786 + 9.11325 -9.19623 -3.13844 + 8.97481 -9.8276 -3.15875 + 8.97481 -9.84496 -3.43688 + 8.92736 -9.90634 -3.40398 + 8.88948 -9.9127 -3.50584 + 8.86665 -9.96372 -3.45211 + 8.69166 -9.96894 -3.53577 + 8.6864 -9.96713 -3.50688 + 8.40972 -9.97022 -3.55648 + 8.40972 -9.72837 -3.57157 + 8.21189 -9.73046 -3.60511 + 8.11747 -9.73029 -3.60243 + 8.21189 -9.97231 -3.59002 + 8.11746 -9.97214 -3.58734 + 8.2127 -9.97416 -3.61962 + 8.04806 -9.97892 -3.61494 + 8.2154 -9.92362 -3.68126 + 8.08026 -9.92385 -3.68503 + 8.09174 -9.86375 -3.73852 + 8.0213 -9.86469 -3.75355 + 7.88204 -9.24545 -4.15806 + 7.95086 -9.86503 -3.75912 + 7.88042 -9.86567 -3.76943 + 7.94512 -9.92615 -3.72192 + 7.87755 -9.92686 -3.73326 + 7.93803 -9.97892 -3.67445 + 7.87508 -9.97892 -3.6916 + 7.74488 -9.97891 -3.6916 + 7.80998 -9.97891 -3.69607 + 7.74241 -9.92686 -3.73326 + 7.80998 -9.92697 -3.73515 + 7.73955 -9.86567 -3.76943 + 7.80999 -9.86572 -3.77027 + 7.73796 -9.24545 -4.15806 + 7.81 -9.2456 -4.16084 + 7.80316 -9.25316 -4.14814 + 7.80316 -9.21317 -4.159 + 7.73172 -9.25301 -4.14542 + 7.33422 -9.25222 -4.13026 + 7.33714 -9.24464 -4.14259 + 7.10315 -9.24182 -4.08781 + 7.17822 -9.8612 -3.69803 + 6.88207 -9.85778 -3.64337 + 6.91987 -9.91829 -3.59637 + 6.73048 -9.91264 -3.50584 + 6.9283 -9.96889 -3.53577 + 6.75331 -9.96367 -3.45211 + 6.93356 -9.96709 -3.50688 + 6.76917 -9.96218 -3.42829 + 6.93357 -9.72524 -3.52197 + 6.76918 -9.72033 -3.44338 + 6.86784 -9.72197 -3.46961 + 7.41748 -9.72465 -3.51231 + 7.41748 -9.8135 -3.50677 + 7.44243 -9.81621 -3.55015 + 6.86784 -9.81082 -3.46407 + 6.9366 -9.81287 -3.49694 + 6.9366 -9.72402 -3.50248 + 7.44243 -9.72736 -3.5557 + 7.47792 -9.72874 -3.57781 + 7.42923 -9.72345 -3.49315 + 7.43577 -9.96641 -3.49582 + 7.40262 -9.9608 -3.40594 + 7.43166 -9.9789 -3.39907 + 7.42073 -9.9789 -3.30288 + 8.19923 -9.97892 -3.30288 + 8.18687 -9.97892 -3.2103 + 8.21579 -9.94817 -3.20309 + 8.18526 -9.94307 -3.12146 + 8.18526 -9.70123 -3.13655 + 8.15699 -9.69836 -3.09061 + 8.18444 -9.69933 -3.10613 + 8.83228 -9.69942 -3.1074 + 8.82751 -9.70009 -3.11812 + 8.8344 -9.70112 -3.13452 + 8.83439 -9.78997 -3.12898 + 8.19386 -9.78914 -3.11591 + 8.18444 -9.78818 -3.10059 + 8.19387 -9.70028 -3.12145 + 8.18444 -9.69933 -3.10613 + 8.18526 -9.70123 -3.13655 + -7.67488 -9.92574 -3.72192 + -7.68196 -9.97851 -3.67445 + -7.74244 -9.92645 -3.73326 + -7.74492 -9.9785 -3.6916 + -7.81002 -9.92656 -3.73515 + -7.81002 -9.9785 -3.69607 + -7.88045 -9.86526 -3.76943 + -7.81002 -9.92656 -3.73515 + -7.87758 -9.92644 -3.73326 + -7.81002 -9.9785 -3.69607 + -7.87511 -9.9785 -3.6916 + -7.68196 -9.97851 -3.67445 + -7.62388 -9.97851 -3.65035 + -7.67488 -9.92574 -3.72192 + -7.53974 -9.92344 -3.68503 + -7.62388 -9.97851 -3.65035 + -7.60731 -9.92489 -3.7082 + -7.67488 -9.92574 -3.72192 + -7.66914 -9.86462 -3.75912 + -7.73957 -9.86526 -3.76943 + -8.86465 -9.70843 -3.2592 + -8.24183 -9.79857 -3.27398 + -8.24182 -9.70971 -3.27953 + -8.24494 -9.79975 -3.29302 + -8.24494 -9.7109 -3.29856 + -8.86465 -9.7982 -3.26836 + -8.86465 -9.70935 -3.2739 + -8.86465 -9.79728 -3.25366 + -8.86465 -9.70843 -3.2592 + -8.24183 -9.79857 -3.27398 + -6.75534 -9.71216 -3.31813 + -7.37761 -9.80309 -3.34609 + -7.37761 -9.71424 -3.35163 + -7.37562 -9.802 -3.32873 + -7.37562 -9.71315 -3.33427 + -6.75534 -9.8001 -3.29789 + -6.75534 -9.71124 -3.30343 + -6.75534 -9.80101 -3.31258 + -6.75534 -9.71216 -3.31813 + -7.37761 -9.80309 -3.34609 + -6.75537 -9.70664 -3.22964 + -7.3842 -9.79627 -3.23685 + -7.3842 -9.70742 -3.24239 + -7.38732 -9.79508 -3.21782 + -7.38732 -9.70623 -3.22336 + -6.75537 -9.79458 -3.2094 + -6.75537 -9.70572 -3.21494 + -6.75537 -9.79549 -3.22409 + -6.75537 -9.70664 -3.22964 + -7.3842 -9.79627 -3.23685 + -7.4175 -9.72426 -3.51231 + -6.86787 -9.81046 -3.46407 + -6.86786 -9.72161 -3.46961 + -6.93663 -9.81251 -3.49694 + -6.93663 -9.72366 -3.50248 + -7.44245 -9.81582 -3.55015 + -7.44245 -9.72696 -3.5557 + -7.4175 -9.81311 -3.50677 + -7.4175 -9.72426 -3.51231 + -6.86787 -9.81046 -3.46407 + -8.28285 -9.24423 -4.14259 + -8.09177 -9.86333 -3.73852 + -8.23264 -9.86307 -3.73447 + -8.08029 -9.92343 -3.68503 + -8.21543 -9.92319 -3.68126 + -8.21274 -9.97372 -3.61962 + -8.28577 -9.25181 -4.13026 + -7.88828 -9.2526 -4.14542 + -8.28285 -9.24423 -4.14259 + -7.88204 -9.24504 -4.15806 + -8.09177 -9.86333 -3.73852 + -8.02133 -9.86427 -3.75355 + -8.08029 -9.92343 -3.68503 + -8.01272 -9.92488 -3.7082 + -8.04809 -9.9785 -3.61494 + -8.21191 -9.73003 -3.60511 + -8.40975 -9.72793 -3.57157 + -8.21192 -9.97188 -3.59002 + -8.40975 -9.96978 -3.55648 + -8.21274 -9.97372 -3.61962 + -8.41215 -9.97161 -3.58588 + -8.21543 -9.92319 -3.68126 + -8.41605 -9.92107 -3.6473 + -8.23264 -9.86307 -3.73447 + -8.44178 -9.86079 -3.69803 + -8.28285 -9.24423 -4.14259 + -8.51684 -9.2414 -4.08781 + -8.28577 -9.25181 -4.13026 + -8.44178 -9.86079 -3.69803 + -8.41605 -9.92107 -3.6473 + -8.70013 -9.91788 -3.59637 + -8.41215 -9.97161 -3.58588 + -8.6917 -9.96848 -3.53577 + -8.40975 -9.96978 -3.55648 + -8.68643 -9.96668 -3.50688 + -8.40975 -9.72793 -3.57157 + -8.68643 -9.72483 -3.52197 + -8.21191 -9.73003 -3.60511 + -8.11749 -9.72986 -3.60243 + -8.21192 -9.97188 -3.59002 + -8.1175 -9.97171 -3.58734 + -8.04809 -9.9785 -3.61494 + -7.81683 -9.21276 -4.159 + -7.88828 -9.2526 -4.14542 + -8.29166 -9.21181 -4.14089 + -8.28577 -9.25181 -4.13026 + -8.5161 -9.24904 -4.07661 + -8.51684 -9.2414 -4.08781 + -8.84818 -9.23716 -4.00565 + -8.73792 -9.85737 -3.64337 + -6.96116 -8.52068 -2.82776 + -6.94685 -8.48514 -2.82872 + -6.97041 -8.50289 -2.82739 + -6.90591 -7.92808 -2.83167 + -6.92686 -7.91018 -2.83053 + -6.91571 -7.89234 -2.83114 + -6.91564 -5.09459 -3.04567 + -6.43877 -7.89857 -2.93084 + -6.44075 -7.93396 -2.92992 + -6.3641 -7.93964 -3.01958 + -6.50356 -8.49126 -2.9224 + -6.43079 -8.49649 -3.0075 + -6.42746 -8.53215 -3.01681 + -6.73149 -9.1886 -2.89119 + -6.62926 -9.19176 -2.9418 + -6.71801 -9.14778 -2.88677 + -6.61894 -9.15181 -2.93194 + -6.71404 -9.13887 -2.8755 + -6.60726 -9.14101 -2.92054 + -6.61931 -8.5232 -2.86619 + -6.50831 -8.52608 -2.92212 + -6.61716 -8.48766 -2.86545 + -6.50356 -8.49126 -2.9224 + -6.55982 -7.93027 -2.87023 + -6.44075 -7.93396 -2.92992 + -6.55801 -7.89484 -2.87102 + -6.43877 -7.89857 -2.93084 + -6.55793 -5.09695 -3.08326 + -6.91564 -5.09459 -3.04567 + -6.55801 -7.89484 -2.87102 + -6.91571 -7.89234 -2.83114 + -6.55982 -7.93027 -2.87023 + -6.90591 -7.92808 -2.83167 + -6.61716 -8.48766 -2.86545 + -6.94685 -8.48514 -2.82872 + -6.61931 -8.5232 -2.86619 + -6.96116 -8.52068 -2.82776 + -6.71404 -9.13887 -2.8755 + -7.02717 -9.13668 -2.84062 + -6.71801 -9.14778 -2.88677 + -7.02854 -9.14564 -2.85261 + -6.73149 -9.1886 -2.89119 + -8.8552 -9.70168 -3.15107 + -8.84791 -9.7027 -3.1674 + -8.21389 -9.70205 -3.15667 + -8.21389 -9.7909 -3.15112 + -8.22453 -9.79268 -3.17956 + -8.84791 -9.79156 -3.16186 + -7.80975 0.0980718 -4.75767 + -7.29687 0.104646 -4.64101 + -7.58256 0.0983428 -4.75277 + -7.38959 0.100906 -4.70728 + -7.46113 0.0991848 -4.73778 + -7.37784 -0.987601 -4.6964 + -7.45034 -0.989072 -4.72251 + -8.03694 0.0983548 -4.75277 + -7.80975 0.110021 -4.54605 + -7.80975 0.0980718 -4.75767 + -7.2673 0.110024 -4.54575 + -7.29687 0.104646 -4.64101 + -7.0703 0.110024 -4.54565 + -7.28122 -0.984919 -4.64887 + -7.43906 -2.20481 -4.68234 + -7.56177 -2.20537 -4.69234 + -7.5727 -0.989737 -4.73431 + -7.80981 -2.20602 -4.70393 + -7.80978 -0.990235 -4.74326 + -8.05785 -2.20536 -4.69234 + -8.04686 -0.989724 -4.73431 + -8.16922 -0.989053 -4.72251 + -8.15837 0.0992038 -4.73778 + -8.22991 0.100928 -4.70728 + -8.3522 0.110053 -4.54575 + -8.5217 1.70581 -4.29687 + -8.17056 1.70552 -4.30128 + -8.3522 0.110053 -4.54575 + -7.80975 0.110021 -4.54605 + -8.15837 0.0992038 -4.73778 + -8.03694 0.0983548 -4.75277 + -8.04686 -0.989724 -4.73431 + -7.80975 0.0980718 -4.75767 + -7.80978 -0.990235 -4.74326 + -7.58256 0.0983428 -4.75277 + -7.5727 -0.989737 -4.73431 + -7.45034 -0.989072 -4.72251 + -7.43906 -2.20481 -4.68234 + -7.37784 -0.987601 -4.6964 + -7.0784 1.70579 -4.29656 + -7.0703 0.110024 -4.54565 + -7.09771 1.70577 -4.29687 + -7.2673 0.110024 -4.54575 + -7.44886 1.7055 -4.30128 + -7.80971 1.70542 -4.3028 + -8.70414 -5.05572 -3.04809 + -6.91564 -5.09459 -3.04567 + -6.91563 -5.05576 -3.04809 + -6.55793 -5.09695 -3.08326 + -6.55793 -5.05812 -3.08569 + -6.43869 -5.10047 -3.13966 + -9.05682 -3.36198 -3.30345 + -8.70414 -5.05572 -3.04809 + -8.70079 -3.36007 -3.27266 + -6.91563 -5.05576 -3.04809 + -6.91889 -3.36011 -3.27266 + -6.55793 -5.05812 -3.08569 + -9.13652 -2.14502 -3.54979 + -9.05682 -3.36198 -3.30345 + -9.02152 -2.14277 -3.51365 + -8.70079 -3.36007 -3.27266 + -8.67551 -2.14128 -3.48956 + -6.91889 -3.36011 -3.27266 + -9.17893 -0.942159 -3.79251 + -9.13652 -2.14502 -3.54979 + -9.09928 -0.939468 -3.74933 + -9.02152 -2.14277 -3.51365 + -8.9874 -0.937854 -3.72342 + -8.67551 -2.14128 -3.48956 + -8.91481 1.71181 -4.20074 + -8.62963 0.139987 -3.90409 + -8.59907 1.71199 -4.19771 + -6.98987 0.139944 -3.90409 + -7.02035 1.71195 -4.19771 + -9.09523 1.71106 -4.21283 + -9.14424 0.135439 -3.97722 + -9.02006 1.71153 -4.20527 + -9.06653 0.137717 -3.94066 + -8.91481 1.71181 -4.20074 + -8.95744 0.139083 -3.91872 + -8.62963 0.139987 -3.90409 + -8.60902 -0.208723 -3.88068 + -8.63606 -0.183045 -3.84471 + -8.6382 -0.290723 -3.82491 + -8.95744 0.139083 -3.91872 + -8.9874 -0.937854 -3.72342 + -9.06653 0.137717 -3.94066 + -9.09928 -0.939468 -3.74933 + -9.14424 0.135439 -3.97722 + -9.17893 -0.942159 -3.79251 + -9.19068 0.132246 -4.02841 + -9.22646 -0.945929 -3.85296 + -9.18708 0.119628 -4.37655 + -7.0105 -0.176075 -3.88669 + -8.60902 -0.176033 -3.88669 + -6.98346 -0.183088 -3.84471 + -8.63606 -0.183045 -3.84471 + -7.0105 -0.208765 -3.88068 + -8.60902 -0.208723 -3.88068 + -8.61109 -0.283709 -3.8669 + -8.6382 -0.290723 -3.82491 + -7.00843 -0.283752 -3.8669 + -6.98132 -0.290766 -3.82491 + -6.98346 -0.183088 -3.84471 + -6.66206 0.139022 -3.91872 + -6.98773 0.0322659 -3.8843 + -6.98559 -0.0754111 -3.8645 + -7.01256 -0.0683991 -3.90649 + -8.60695 -0.0683571 -3.90649 + -7.01463 0.00658987 -3.92027 + -8.60487 0.00663187 -3.92027 + -8.63177 0.0323089 -3.8843 + -8.63392 -0.0753681 -3.8645 + -8.9874 -0.937854 -3.72342 + -8.64678 -0.721432 -3.74573 + -8.64463 -0.613754 -3.76553 + -8.61731 -0.639431 -3.8015 + -7.00222 -0.639474 -3.8015 + -8.61939 -0.714417 -3.78772 + -7.00015 -0.71446 -3.78772 + -6.97277 -0.721476 -3.74573 + -6.9749 -0.613798 -3.76553 + -7.73796 -9.24504 -4.15806 + -7.33714 -9.24426 -4.14259 + -7.38738 -9.86309 -3.73447 + -7.10315 -9.24144 -4.08781 + -7.17824 -9.86082 -3.69803 + -6.77181 -9.23722 -4.00565 + -6.8821 -9.85742 -3.64337 + -6.55092 -9.2297 -3.85959 + -6.68467 -9.85136 -3.5462 + -6.50675 -9.22123 -3.69527 + -6.64519 -9.84455 -3.43688 + -6.50675 -9.19582 -3.13844 + -6.64519 -9.82719 -3.15875 + -6.55093 -9.1883 -3.01786 + -6.63216 -0.937916 -3.72342 + -6.97918 -0.398443 -3.80512 + -6.97704 -0.506121 -3.78532 + -7.00429 -0.499106 -3.82731 + -8.61524 -0.499063 -3.82731 + -7.00636 -0.424119 -3.84109 + -8.61317 -0.424076 -3.84109 + -8.64035 -0.3984 -3.80512 + -8.64249 -0.506077 -3.78532 + -6.36075 -3.36973 -3.42661 + -6.40136 -2.14885 -3.61001 + -6.4831 -2.14509 -3.54979 + -6.52028 -0.939535 -3.74933 + -6.63216 -0.937916 -3.72342 + -6.66206 0.139022 -3.91872 + -6.97918 -0.398443 -3.80512 + -6.35354 -5.0675 -3.23606 + -6.36075 -3.36973 -3.42661 + -6.44466 -3.36493 -3.34964 + -6.4831 -2.14509 -3.54979 + -6.59809 -2.14283 -3.51365 + -6.63216 -0.937916 -3.72342 + -6.96849 -0.936829 -3.70614 + -6.97063 -0.829152 -3.72594 + -6.99602 -0.929815 -3.74813 + -6.99809 -0.854827 -3.76191 + -8.62353 -0.929772 -3.74813 + -6.35354 -5.10634 -3.23363 + -6.35354 -5.0675 -3.23606 + -6.43869 -5.06164 -3.14208 + -6.44466 -3.36493 -3.34964 + -6.56287 -3.36204 -3.30345 + -6.59809 -2.14283 -3.51365 + -6.94411 -2.14132 -3.48956 + -6.96849 -0.936829 -3.70614 + -8.65106 -0.936785 -3.70614 + -8.62353 -0.929772 -3.74813 + -8.62146 -0.854784 -3.76191 + -6.99809 -0.854827 -3.76191 + -8.64892 -0.829108 -3.72594 + -6.97063 -0.829152 -3.72594 + -8.62146 -0.822095 -3.76792 + -6.60911 -7.98375 -4.25701 + -6.60904 -5.17022 -4.4065 + -6.35354 -5.1596 -4.21826 + -6.35353 -5.12077 -4.22094 + -6.30615 -5.10968 -4.02456 + -6.31636 -3.40581 -4.12696 + -6.30243 -5.11455 -3.36522 + -6.30243 -5.14672 -3.99015 + -6.30243 -5.07572 -3.36765 + -6.30243 -5.10789 -3.99283 + -6.31094 -3.37646 -3.53439 + -6.30738 -7.9305 -3.15594 + -6.30251 -7.91349 -3.1701 + -6.30243 -5.11455 -3.36522 + -6.30251 -7.94543 -3.86022 + -6.30243 -5.14672 -3.99015 + -6.30615 -5.14851 -4.02188 + -6.30243 -5.10789 -3.99283 + -6.35361 -7.97453 -4.07793 + -6.30615 -5.14851 -4.02188 + -6.30671 -7.96501 -3.89303 + -6.30251 -7.94543 -3.86022 + -6.30468 -7.9816 -3.87471 + -6.30251 -7.91349 -3.1701 + -6.30468 -7.94975 -3.18345 + -6.30738 -7.9305 -3.15594 + -6.37591 -8.52393 -3.16439 + -6.38077 -8.52218 -3.13633 + -6.49488 -9.15458 -3.12355 + -6.38315 -8.50788 -3.33446 + -6.38097 -8.48948 -3.32077 + -6.38097 -8.48201 -3.20096 + -6.36158 -8.48825 -3.20057 + -6.30048 -7.99663 -3.23084 + -6.36158 -8.49572 -3.32038 + -6.31988 -7.99039 -3.23123 + -6.31771 -7.97199 -3.21752 + -6.38315 -8.49856 -3.1851 + -6.30758 -7.97525 -3.21732 + -6.37301 -8.50182 -3.18489 + -6.30758 -7.9846 -3.36715 + -6.30758 -7.97525 -3.21732 + -6.31771 -7.98134 -3.36735 + -6.31771 -7.97199 -3.21752 + -6.31988 -7.99789 -3.35148 + -6.31988 -7.99039 -3.23123 + -6.30048 -8.00413 -3.35109 + -6.37591 -8.55399 -3.81703 + -6.37301 -8.50182 -3.18489 + -6.37591 -8.52393 -3.16439 + -6.30758 -7.97525 -3.21732 + -6.30468 -7.94975 -3.18345 + -6.30758 -7.9846 -3.36715 + -6.30468 -7.9816 -3.87471 + -6.66758 -8.57225 -4.17159 + -6.35361 -7.97453 -4.07793 + -6.42452 -8.56366 -4.00474 + -6.30671 -7.96501 -3.89303 + -6.37591 -8.55399 -3.81703 + -6.30468 -7.9816 -3.87471 + -6.37301 -8.51114 -3.33426 + -6.30758 -7.9846 -3.36715 + -6.38315 -8.50788 -3.33446 + -6.31771 -7.98134 -3.36735 + -6.38097 -8.48948 -3.32077 + -6.31988 -7.99789 -3.35148 + -6.36158 -8.49572 -3.32038 + -6.30048 -8.00413 -3.35109 + -6.30048 -7.99663 -3.23084 + -6.31988 -7.99039 -3.23123 + -6.38097 -8.48201 -3.20096 + -6.38315 -8.49856 -3.1851 + -6.38315 -8.50788 -3.33446 + -6.37301 -8.50182 -3.18489 + -6.37301 -8.51114 -3.33426 + -6.37591 -8.55399 -3.81703 + -6.35272 -2.15411 -3.69434 + -6.31094 -3.37646 -3.53439 + -6.31636 -3.40581 -4.12696 + -6.30243 -5.10789 -3.99283 + -6.30615 -5.10968 -4.02456 + -6.30615 -5.14851 -4.02188 + -6.35354 -5.1596 -4.21826 + -6.35361 -7.97453 -4.07793 + -6.60911 -7.98375 -4.25701 + -6.66758 -8.57225 -4.17159 + -6.53158 -9.14962 -3.01282 + -6.49488 -9.15458 -3.12355 + -6.41965 -8.51555 -3.03021 + -6.38077 -8.52218 -3.13633 + -6.34874 -7.92345 -3.04306 + -6.30738 -7.9305 -3.15594 + -6.35354 -5.10634 -3.23363 + -6.30243 -5.11455 -3.36522 + -6.35354 -5.0675 -3.23606 + -6.30243 -5.07572 -3.36765 + -6.36075 -3.36973 -3.42661 + -6.31094 -3.37646 -3.53439 + -6.40136 -2.14885 -3.61001 + -6.35272 -2.15411 -3.69434 + -6.49232 -9.15805 -3.13909 + -6.4962 -9.16378 -3.14301 + -6.49038 -9.15612 -3.15193 + -6.4962 -9.189 -3.69727 + -6.49038 -9.18095 -3.70044 + -6.54056 -9.1974 -3.86023 + -6.53512 -9.18953 -3.86682 + -6.76237 -9.20486 -4.00509 + -6.75878 -9.19714 -4.01472 + -7.09509 -9.20905 -4.08657 + -6.53713 -9.1607 -3.01785 + -6.4962 -9.16378 -3.14301 + -6.53158 -9.14962 -3.01282 + -6.49232 -9.15805 -3.13909 + -6.49488 -9.15458 -3.12355 + -6.49038 -9.15612 -3.15193 + -6.37591 -8.52393 -3.16439 + -6.49038 -9.18095 -3.70044 + -6.37591 -8.55399 -3.81703 + -6.53512 -9.18953 -3.86682 + -6.42452 -8.56366 -4.00474 + -6.75878 -9.19714 -4.01472 + -6.66758 -8.57225 -4.17159 + -7.80316 -9.25275 -4.14814 + -7.80316 -9.21276 -4.159 + -7.73171 -9.25261 -4.14542 + -7.32833 -9.21184 -4.14089 + -7.33422 -9.25184 -4.13026 + -7.09509 -9.20905 -4.08657 + -7.10389 -9.24908 -4.07661 + -6.76237 -9.20486 -4.00509 + -6.7753 -9.24494 -3.99614 + -6.54056 -9.1974 -3.86023 + -6.55624 -9.23758 -3.85309 + -6.4962 -9.189 -3.69727 + -6.51243 -9.22928 -3.69215 + -6.4962 -9.16378 -3.14301 + -6.51243 -9.2044 -3.14425 + -6.53713 -9.1607 -3.01785 + -6.55624 -9.19703 -3.02615 + -7.3312 -9.20427 -4.15337 + -7.0432 -8.57717 -4.26722 + -7.1054 -9.20151 -4.09964 + -7.08324 -9.20128 -4.09518 + -7.09455 -9.20396 -4.09413 + -6.98143 -7.98878 -4.35487 + -7.02125 -8.57694 -4.26264 + -7.00338 -7.98903 -4.35955 + -7.0432 -8.57717 -4.26722 + -7.28966 -8.5803 -4.32802 + -7.3312 -9.20427 -4.15337 + -7.81 -9.20521 -4.17186 + -6.62455 -9.18292 -2.93174 + -6.55093 -9.1883 -3.01786 + -6.55624 -9.19703 -3.02615 + -6.50675 -9.19582 -3.13844 + -6.51243 -9.2044 -3.14425 + -6.50675 -9.22123 -3.69527 + -6.51243 -9.22928 -3.69215 + -6.55092 -9.2297 -3.85959 + -6.55624 -9.23758 -3.85309 + -6.77181 -9.23722 -4.00565 + -6.7753 -9.24494 -3.99614 + -7.10315 -9.24144 -4.08781 + -7.10389 -9.24908 -4.07661 + -7.33714 -9.24426 -4.14259 + -7.33422 -9.25184 -4.13026 + -7.73796 -9.24504 -4.15806 + -7.73171 -9.25261 -4.14542 + -7.81 -9.24519 -4.16084 + -7.80316 -9.25275 -4.14814 + -7.81 -9.20521 -4.17186 + -7.80316 -9.21276 -4.159 + -7.3312 -9.20427 -4.15337 + -7.32833 -9.21184 -4.14089 + -7.1054 -9.20151 -4.09964 + -7.09509 -9.20905 -4.08657 + -7.09455 -9.20396 -4.09413 + -6.75878 -9.19714 -4.01472 + -7.08324 -9.20128 -4.09518 + -6.66758 -8.57225 -4.17159 + -7.02125 -8.57694 -4.26264 + -6.60911 -7.98375 -4.25701 + -6.98143 -7.98878 -4.35487 + -6.60904 -5.17022 -4.4065 + -6.70461 1.71176 -4.20074 + -7.02035 1.71195 -4.19771 + -6.66206 0.139022 -3.91872 + -6.98987 0.139944 -3.90409 + -6.98773 0.0322659 -3.8843 + -7.01463 0.0392809 -3.92628 + -8.60487 0.0393229 -3.92628 + -7.0167 0.114268 -3.94007 + -8.6028 0.114309 -3.94007 + -8.62963 0.139987 -3.90409 + -8.63177 0.0323089 -3.8843 + -8.95744 0.139083 -3.91872 + -8.63392 -0.0753681 -3.8645 + -8.63606 -0.183045 -3.84471 + -8.60695 -0.101046 -3.90048 + -8.60902 -0.176033 -3.88669 + -7.01256 -0.101088 -3.90048 + -7.0105 -0.176075 -3.88669 + -6.98559 -0.0754111 -3.8645 + -6.98346 -0.183088 -3.84471 + -6.66206 0.139022 -3.91872 + -6.98132 -0.290766 -3.82491 + -6.97918 -0.398443 -3.80512 + -7.00636 -0.391429 -3.8471 + -8.61317 -0.391386 -3.8471 + -7.00843 -0.316443 -3.86089 + -8.61109 -0.3164 -3.86089 + -8.6382 -0.290723 -3.82491 + -8.64035 -0.3984 -3.80512 + -8.9874 -0.937854 -3.72342 + -8.64249 -0.506077 -3.78532 + -8.64463 -0.613754 -3.76553 + -8.61524 -0.531753 -3.8213 + -8.61731 -0.60674 -3.80751 + -7.00429 -0.531796 -3.8213 + -7.00222 -0.606783 -3.80751 + -6.97704 -0.506121 -3.78532 + -6.9749 -0.613798 -3.76553 + -6.63216 -0.937916 -3.72342 + -6.97277 -0.721476 -3.74573 + -6.97063 -0.829152 -3.72594 + -6.99809 -0.822138 -3.76792 + -8.62146 -0.822095 -3.76792 + -7.00016 -0.74715 -3.78171 + -8.61939 -0.747107 -3.78171 + -8.64678 -0.721432 -3.74573 + -8.64892 -0.829108 -3.72594 + -8.9874 -0.937854 -3.72342 + -8.65106 -0.936785 -3.70614 + -8.67551 -2.14128 -3.48956 + -6.94411 -2.14132 -3.48956 + -6.91889 -3.36011 -3.27266 + -6.56287 -3.36204 -3.30345 + -6.55793 -5.05812 -3.08569 + -6.43869 -5.06164 -3.14208 + -6.43869 -5.10047 -3.13966 + -6.35354 -5.10634 -3.23363 + -6.43877 -7.89857 -2.93084 + -6.35361 -7.90479 -3.03052 + -6.3641 -7.93964 -3.01958 + -6.34874 -7.92345 -3.04306 + -6.43079 -8.49649 -3.0075 + -6.41965 -8.51555 -3.03021 + -6.42746 -8.53215 -3.01681 + -6.53158 -9.14962 -3.01282 + -6.60726 -9.14101 -2.92054 + -6.53713 -9.1607 -3.01785 + -6.61894 -9.15181 -2.93194 + -6.55624 -9.19703 -3.02615 + -6.62926 -9.19176 -2.9418 + -6.62455 -9.18292 -2.93174 + -6.73149 -9.1886 -2.89119 + -8.86971 1.70625 -4.28995 + -9.13706 1.7078 -4.26523 + -8.54101 1.70583 -4.29656 + -9.14034 1.7104 -4.22342 + -8.5217 1.70581 -4.29687 + -9.09523 1.71106 -4.21283 + -8.17056 1.70552 -4.30128 + -9.02006 1.71153 -4.20527 + -7.80971 1.70542 -4.3028 + -8.91481 1.71181 -4.20074 + -7.44886 1.7055 -4.30128 + -8.59907 1.71199 -4.19771 + -7.09771 1.70577 -4.29687 + -7.02035 1.71195 -4.19771 + -7.0784 1.70579 -4.29656 + -6.70461 1.71176 -4.20074 + -8.22951 -2.20442 -4.6758 + -8.35143 -2.20313 -4.65306 + -8.33834 -0.984892 -4.64887 + -8.59007 -2.20014 -4.60011 + -8.56845 -0.98228 -4.60269 + -8.61122 -2.19992 -4.59625 + -8.58901 -0.982107 -4.59966 + -8.97078 -2.19534 -4.51543 + -8.9387 -0.978512 -4.53616 + -9.21676 -2.18699 -4.36753 + -9.30333 -3.40573 -4.12696 + -9.21676 -2.18699 -4.36753 + -9.25683 -3.4161 -4.3107 + -8.97078 -2.19534 -4.51543 + -9.00393 -3.42605 -4.48682 + -8.61122 -2.19992 -4.59625 + -8.63416 -3.4315 -4.58308 + -8.59007 -2.20014 -4.60011 + -8.61241 -3.43176 -4.58767 + -8.35143 -2.20313 -4.65306 + -8.21679 -3.4354 -4.65194 + -8.22951 -2.20442 -4.6758 + -8.18056 -2.20479 -4.68234 + -9.09524 1.70701 -4.27785 + -8.91033 0.112162 -4.50864 + -9.14401 0.115819 -4.44399 + -8.9387 -0.978512 -4.53616 + -9.17802 -0.971945 -4.41996 + -9.21676 -2.18699 -4.36753 + -9.26201 -2.17828 -4.21323 + -9.30333 -3.40573 -4.12696 + -9.30875 -3.37638 -3.53439 + -9.31734 -5.07564 -3.36765 + -9.26624 -5.06743 -3.23606 + -9.26624 -5.10626 -3.23363 + -9.18108 -5.1004 -3.13966 + -9.26631 -7.90471 -3.03052 + -9.18115 -7.8985 -2.93084 + -9.17918 -7.93389 -2.92992 + -9.06011 -7.93021 -2.87023 + -9.26632 -7.97445 -4.07793 + -9.31524 -7.98152 -3.87471 + -9.31322 -7.96493 -3.89303 + -9.31742 -7.94535 -3.86022 + -9.31734 -5.14664 -3.99015 + -9.31742 -7.91341 -3.1701 + -9.01082 -7.98369 -4.25701 + -9.19543 -8.56359 -4.00474 + -9.26632 -7.97445 -4.07793 + -9.24405 -8.55392 -3.81703 + -9.31524 -7.98152 -3.87471 + -9.31235 -7.98452 -3.36715 + -9.31235 -7.97517 -3.21732 + -9.30222 -7.97191 -3.21752 + -9.23681 -8.49848 -3.1851 + -9.23898 -8.48193 -3.20096 + -9.23898 -8.48941 -3.32077 + -9.25838 -8.49565 -3.32038 + -9.31945 -8.00405 -3.35109 + -9.25838 -8.48817 -3.20057 + -9.31945 -7.99655 -3.23084 + -9.30005 -7.99031 -3.23123 + -9.30005 -7.99781 -3.35148 + -9.30222 -7.98126 -3.36735 + -9.23681 -8.5078 -3.33446 + -9.24694 -8.51106 -3.33426 + -9.24694 -8.50174 -3.18489 + -9.24404 -8.52385 -3.16439 + -9.31524 -7.94968 -3.18345 + -9.31254 -7.93042 -3.15594 + -9.31742 -7.91341 -3.1701 + -8.63837 -5.17598 -4.50938 + -9.01082 -7.98369 -4.25701 + -9.01074 -5.17016 -4.4065 + -9.26632 -7.97445 -4.07793 + -9.26624 -5.15952 -4.21826 + -9.31322 -7.96493 -3.89303 + -9.31363 -5.14844 -4.02188 + -9.31734 -5.14664 -3.99015 + -9.2003 -8.51548 -3.03021 + -9.31254 -7.93042 -3.15594 + -9.23918 -8.5221 -3.13633 + -9.24404 -8.52385 -3.16439 + -9.12961 -9.15605 -3.15193 + -9.24405 -8.55392 -3.81703 + -9.12961 -9.18088 -3.70044 + -9.19543 -8.56359 -4.00474 + -8.21869 -5.14131 -4.58566 + -8.61649 -5.17626 -4.51429 + -8.61649 -5.13742 -4.51697 + -8.63837 -5.17598 -4.50938 + -8.63837 -5.13715 -4.51206 + -9.01074 -5.17016 -4.4065 + -9.01074 -5.13133 -4.40918 + -9.26624 -5.15952 -4.21826 + -9.26624 -5.12069 -4.22094 + -9.31363 -5.14844 -4.02188 + -9.31363 -5.1096 -4.02456 + -9.31734 -5.14664 -3.99015 + -9.31734 -5.10781 -3.99283 + -9.31742 -7.91341 -3.1701 + -9.31734 -5.11447 -3.36522 + -9.31254 -7.93042 -3.15594 + -9.27118 -7.92338 -3.04306 + -9.2003 -8.51548 -3.03021 + -9.25582 -7.93956 -3.01958 + -9.18916 -8.49641 -3.0075 + -7.80984 -3.43665 -4.67395 + -8.21869 -5.14131 -4.58566 + -8.21679 -3.4354 -4.65194 + -8.61649 -5.13742 -4.51697 + -8.61241 -3.43176 -4.58767 + -8.63837 -5.13715 -4.51206 + -8.63416 -3.4315 -4.58308 + -9.01074 -5.13133 -4.40918 + -9.00393 -3.42605 -4.48682 + -9.26624 -5.12069 -4.22094 + -9.25683 -3.4161 -4.3107 + -9.31363 -5.1096 -4.02456 + -9.30333 -3.40573 -4.12696 + -9.31734 -5.10781 -3.99283 + -9.31734 -5.07564 -3.36765 + -9.31734 -5.11447 -3.36522 + -9.26624 -5.10626 -3.23363 + -9.27118 -7.92338 -3.04306 + -9.26631 -7.90471 -3.03052 + -9.25582 -7.93956 -3.01958 + -9.17918 -7.93389 -2.92992 + -9.18916 -8.49641 -3.0075 + -9.12379 -9.18894 -3.69727 + -9.12961 -9.18088 -3.70044 + -9.08487 -9.18946 -3.86682 + -9.19543 -8.56359 -4.00474 + -8.95237 -8.57219 -4.17159 + -9.01082 -7.98369 -4.25701 + -8.63849 -7.98874 -4.35487 + -8.63837 -5.17598 -4.50938 + -8.61655 -7.98899 -4.35955 + -8.61649 -5.17626 -4.51429 + -8.21869 -5.18014 -4.58298 + -8.21869 -5.14131 -4.58566 + -7.80989 -5.14265 -4.60919 + -7.80984 -3.43665 -4.67395 + -7.40289 -3.43542 -4.65194 + -9.06375 -9.23751 -3.85309 + -9.07943 -9.19733 -3.86023 + -8.85762 -9.2048 -4.00509 + -8.86121 -9.19708 -4.01472 + -8.53675 -9.20124 -4.09518 + -8.59871 -8.57689 -4.26264 + -8.51459 -9.20147 -4.09964 + -8.57676 -8.57713 -4.26722 + -8.3303 -8.58027 -4.32802 + -8.35691 -7.99236 -4.4249 + -7.80996 -7.99353 -4.44728 + -7.80989 -5.18149 -4.60651 + -7.40109 -5.18017 -4.58298 + -7.40109 -5.14134 -4.58566 + -7.00328 -5.13747 -4.51697 + -7.00727 -3.4318 -4.58767 + -6.98553 -3.43154 -4.58308 + -7.00841 -2.19996 -4.59625 + -6.64884 -2.19541 -4.51543 + -6.68086 -0.978571 -4.53616 + -6.44154 -0.972017 -4.41996 + -6.47549 0.115748 -4.44399 + -6.52418 1.711 -4.21283 + -6.48235 1.70773 -4.26523 + -6.52418 1.70694 -4.27785 + -6.47549 0.115748 -4.44399 + -6.70917 0.112104 -4.50864 + -6.68086 -0.978571 -4.53616 + -7.03055 -0.982148 -4.59966 + -7.00841 -2.19996 -4.59625 + -7.02955 -2.20018 -4.60011 + -7.00727 -3.4318 -4.58767 + -7.40289 -3.43542 -4.65194 + -7.40109 -5.14134 -4.58566 + -7.80989 -5.14265 -4.60919 + -7.80989 -5.18149 -4.60651 + -8.21869 -5.18014 -4.58298 + -8.35691 -7.99236 -4.4249 + -8.61655 -7.98899 -4.35955 + -8.57676 -8.57713 -4.26722 + -8.63849 -7.98874 -4.35487 + -8.59871 -8.57689 -4.26264 + -8.95237 -8.57219 -4.17159 + -8.86121 -9.19708 -4.01472 + -9.08487 -9.18946 -3.86682 + -9.07943 -9.19733 -3.86023 + -9.12379 -9.18894 -3.69727 + -9.06375 -9.23751 -3.85309 + -9.10756 -9.22922 -3.69215 + -9.11325 -9.22116 -3.69527 + -6.55297 0.137651 -3.94066 + -6.52418 1.711 -4.21283 + -6.59935 1.71147 -4.20527 + -6.52418 1.70694 -4.27785 + -6.74971 1.70619 -4.28995 + -6.70917 0.112104 -4.50864 + -7.05025 0.110118 -4.54396 + -7.03055 -0.982148 -4.59966 + -7.05111 -0.98232 -4.60269 + -7.02955 -2.20018 -4.60011 + -7.2682 -2.20316 -4.65306 + -7.40289 -3.43542 -4.65194 + -7.39012 -2.20444 -4.6758 + -6.3975 -0.965174 -4.29874 + -6.35761 -2.17835 -4.21323 + -6.40286 -2.18706 -4.36753 + -6.36285 -3.41618 -4.3107 + -6.61576 -3.42612 -4.48682 + -6.60904 -5.13139 -4.40918 + -6.9814 -5.13719 -4.51206 + -6.9814 -5.17602 -4.50938 + -7.00328 -5.1763 -4.51429 + -6.43242 0.119555 -4.37655 + -6.42881 0.132173 -4.02841 + -6.3975 -0.965174 -4.29874 + -6.3931 -0.946004 -3.85296 + -6.35761 -2.17835 -4.21323 + -6.44063 -0.942231 -3.79251 + -6.3931 -0.946004 -3.85296 + -6.47526 0.135368 -3.97722 + -6.42881 0.132173 -4.02841 + -6.47907 1.71033 -4.22342 + -6.43242 0.119555 -4.37655 + -8.97484 -9.84448 -3.43688 + -9.11325 -9.22116 -3.69527 + -9.06907 -9.22963 -3.85959 + -9.06375 -9.23751 -3.85309 + -8.84469 -9.24489 -3.99614 + -8.85762 -9.2048 -4.00509 + -8.5249 -9.20901 -4.08657 + -8.53675 -9.20124 -4.09518 + -8.52544 -9.20392 -4.09413 + -8.51459 -9.20147 -4.09964 + -8.28879 -9.20424 -4.15337 + -8.3303 -8.58027 -4.32802 + -7.80998 -8.58136 -4.34888 + -7.80996 -7.99353 -4.44728 + -7.26302 -7.99239 -4.4249 + -7.40109 -5.18017 -4.58298 + -7.00328 -5.1763 -4.51429 + -7.00328 -5.13747 -4.51697 + -6.9814 -5.13719 -4.51206 + -6.98553 -3.43154 -4.58308 + -6.61576 -3.42612 -4.48682 + -6.64884 -2.19541 -4.51543 + -6.40286 -2.18706 -4.36753 + -6.44154 -0.972017 -4.41996 + -6.3975 -0.965174 -4.29874 + -6.47549 0.115748 -4.44399 + -6.43242 0.119555 -4.37655 + -6.48235 1.70773 -4.26523 + -6.47907 1.71033 -4.22342 + -6.52418 1.711 -4.21283 + -6.47526 0.135368 -3.97722 + -6.55297 0.137651 -3.94066 + -6.44063 -0.942231 -3.79251 + -7.21027 -9.72796 -3.57157 + -7.21028 -9.96981 -3.55648 + -6.9336 -9.96672 -3.50688 + -6.92834 -9.96852 -3.53577 + -6.75334 -9.96331 -3.45211 + -7.40729 -9.97374 -3.61962 + -7.20788 -9.97164 -3.58588 + -7.40811 -9.9719 -3.59002 + -7.21028 -9.96981 -3.55648 + -7.4081 -9.73005 -3.60511 + -7.21027 -9.72796 -3.57157 + -6.69264 -9.90593 -3.40398 + -6.75334 -9.96331 -3.45211 + -6.73052 -9.91228 -3.50584 + -6.92834 -9.96852 -3.53577 + -6.9199 -9.91793 -3.59637 + -7.20788 -9.97164 -3.58588 + -7.20398 -9.9211 -3.6473 + -7.40729 -9.97374 -3.61962 + -7.4046 -9.92321 -3.68126 + -7.5987 -9.86428 -3.75355 + -7.73796 -9.24504 -4.15806 + -7.52826 -9.86334 -3.73852 + -7.38738 -9.86309 -3.73447 + -7.4046 -9.92321 -3.68126 + -7.17824 -9.86082 -3.69803 + -7.20398 -9.9211 -3.6473 + -6.8821 -9.85742 -3.64337 + -6.9199 -9.91793 -3.59637 + -6.68467 -9.85136 -3.5462 + -6.73052 -9.91228 -3.50584 + -6.64519 -9.84455 -3.43688 + -6.69264 -9.90593 -3.40398 + -6.64519 -9.82719 -3.15875 + -7.88705 -9.80971 -2.87903 + -7.81 -9.17752 -2.84561 + -7.88552 -9.17752 -2.84561 + -7.72825 -9.18647 -2.85745 + -7.89174 -9.18647 -2.85745 + -6.72763 -9.17969 -2.88006 + -7.03817 -9.18649 -2.85745 + -7.03688 -9.17754 -2.84561 + -7.72825 -9.18647 -2.85745 + -7.73447 -9.17752 -2.84561 + -7.81 -9.17752 -2.84561 + -7.81001 -9.80942 -2.87431 + -7.88705 -9.80971 -2.87903 + -7.88392 -9.87379 -2.88931 + -6.74787 -9.8113 -2.9851 + -6.72763 -9.17969 -2.88006 + -6.84261 -9.8142 -2.95061 + -7.03688 -9.17754 -2.84561 + -7.11901 -9.81246 -2.92286 + -7.34776 -9.81246 -2.92286 + -7.36659 -9.87704 -2.94119 + -7.5144 -9.87681 -2.93764 + -7.5654 -9.97851 -3.00531 + -7.5883 -9.87634 -2.92995 + -6.68467 -9.82113 -3.06161 + -6.74787 -9.8113 -2.9851 + -6.78482 -9.88414 -3.01 + -6.84261 -9.8142 -2.95061 + -6.88202 -9.87933 -2.97769 + -7.11901 -9.81246 -2.92286 + -7.14716 -9.87771 -2.95183 + -7.36659 -9.87704 -2.94119 + -7.36736 -9.93417 -2.98534 + -7.5654 -9.97851 -3.00531 + -6.69264 -9.89143 -3.17161 + -6.68467 -9.82113 -3.06161 + -6.73052 -9.88579 -3.08111 + -6.78482 -9.88414 -3.01 + -6.80542 -9.92605 -3.02777 + -6.88202 -9.87933 -2.97769 + -6.88817 -9.93577 -3.01071 + -7.14716 -9.87771 -2.95183 + -7.14831 -9.93418 -2.98534 + -7.36736 -9.93417 -2.98534 + -7.45474 -9.69687 -3.07334 + -6.85914 -9.69861 -3.10094 + -6.85899 -9.69766 -3.08574 + -6.80988 -9.69834 -3.09661 + -6.89249 -9.69574 -3.05502 + -6.78772 -9.69901 -3.1074 + -6.82105 -9.6977 -3.08637 + -6.7785 -9.94155 -3.1033 + -6.82105 -9.6977 -3.08637 + -6.7785 -9.6997 -3.11839 + -6.78772 -9.69901 -3.1074 + -6.79249 -9.69968 -3.11812 + -6.85914 -9.69861 -3.10094 + -7.463 -9.69795 -3.09061 + -7.45474 -9.69687 -3.07334 + -7.4677 -9.6959 -3.05771 + -7.4677 -9.78475 -3.05217 + -7.36487 -9.78425 -3.04416 + -7.45474 -9.78572 -3.0678 + -6.85899 -9.78651 -3.08019 + -6.85899 -9.69766 -3.08574 + -6.89472 -9.69668 -3.07006 + -6.89249 -9.69574 -3.05502 + -7.14912 -9.69417 -3.03 + -7.36587 -9.93602 -3.01491 + -7.14912 -9.69417 -3.03 + -7.14912 -9.93602 -3.01491 + -6.89249 -9.69574 -3.05502 + -6.8925 -9.93759 -3.03993 + -6.82105 -9.6977 -3.08637 + -6.82105 -9.93955 -3.07129 + -6.7785 -9.94155 -3.1033 + -6.74442 -9.9335 -3.09638 + -6.72216 -9.95808 -3.36827 + -6.69264 -9.89143 -3.17161 + -6.72216 -9.94617 -3.1773 + -6.73052 -9.88579 -3.08111 + -6.74442 -9.9335 -3.09638 + -6.80542 -9.92605 -3.02777 + -6.82105 -9.93955 -3.07129 + -6.88817 -9.93577 -3.01071 + -6.8925 -9.93759 -3.03993 + -7.14831 -9.93418 -2.98534 + -7.14912 -9.93602 -3.01491 + -7.36736 -9.93417 -2.98534 + -7.36587 -9.93602 -3.01491 + -7.5654 -9.97851 -3.00531 + -7.42925 -9.72306 -3.49315 + -7.47795 -9.97019 -3.56272 + -7.47794 -9.72834 -3.57781 + -7.50254 -9.97173 -3.58734 + -7.50253 -9.72988 -3.60243 + -7.38866 -9.71976 -3.44015 + -7.42925 -9.72306 -3.49315 + -7.4004 -9.72174 -3.472 + -6.86786 -9.72161 -3.46961 + -6.7692 -9.71998 -3.44338 + -6.93663 -9.72366 -3.50248 + -6.93359 -9.72487 -3.52197 + -7.44245 -9.72696 -3.5557 + -7.47794 -9.72834 -3.57781 + -7.4175 -9.72426 -3.51231 + -7.42925 -9.72306 -3.49315 + -6.86786 -9.72161 -3.46961 + -6.76482 -9.70174 -3.15107 + -6.7856 -9.70071 -3.13452 + -7.42613 -9.69987 -3.12145 + -7.42613 -9.78872 -3.11591 + -7.43556 -9.78777 -3.10059 + -6.7856 -9.78956 -3.12898 + -7.43473 -9.70081 -3.13655 + -7.40612 -9.70207 -3.15667 + -6.77211 -9.70276 -3.1674 + -6.77211 -9.79161 -3.16186 + -6.76527 -9.79263 -3.1782 + -7.40613 -9.79092 -3.15112 + -8.22911 -9.71209 -3.31768 + -8.87572 -9.71024 -3.28825 + -8.2444 -9.71313 -3.33427 + -8.86468 -9.71119 -3.30343 + -8.2444 -9.80198 -3.32873 + -8.22324 -9.71532 -3.36936 + -8.24241 -9.71421 -3.35163 + -8.86468 -9.71211 -3.31813 + -8.86468 -9.80096 -3.31258 + -8.86468 -9.80004 -3.29789 + -8.24241 -9.80306 -3.34609 + -7.43474 -9.94266 -3.12146 + -7.43473 -9.70081 -3.13655 + -7.463 -9.69795 -3.09061 + -7.43555 -9.69892 -3.10613 + -6.79249 -9.69968 -3.11812 + -6.79249 -9.78854 -3.11258 + -8.22911 -9.95394 -3.30259 + -8.19927 -9.97849 -3.30288 + -8.1869 -9.97849 -3.2103 + -7.49775 -9.97851 -3.07557 + -7.5654 -9.97851 -3.00531 + -7.50186 -9.93687 -3.02862 + -7.36587 -9.93602 -3.01491 + -7.36586 -9.69417 -3.03 + -7.14912 -9.69417 -3.03 + -7.14965 -9.69541 -3.04971 + -6.89472 -9.69668 -3.07006 + -6.89472 -9.78553 -3.06451 + -6.85899 -9.78651 -3.08019 + -7.14966 -9.78426 -3.04416 + -7.36487 -9.78425 -3.04416 + -7.36487 -9.6954 -3.04971 + -7.4677 -9.6959 -3.05771 + -7.50186 -9.69502 -3.04371 + -7.463 -9.69795 -3.09061 + -7.47417 -9.93866 -3.05738 + -7.43474 -9.94266 -3.12146 + -7.46149 -9.97851 -3.13449 + -8.22911 -9.71209 -3.31768 + -8.22911 -9.95394 -3.30259 + -8.21583 -9.94773 -3.20309 + -8.1869 -9.97849 -3.2103 + -8.15854 -9.97849 -3.13449 + -7.5654 -9.97851 -3.00531 + -7.61814 -9.97851 -2.96992 + -7.5883 -9.87634 -2.92995 + -8.23853 -9.8052 -3.38028 + -8.23853 -9.71635 -3.38582 + -8.86468 -9.71395 -3.34762 + -8.22324 -9.71532 -3.36936 + -8.87572 -9.71299 -3.33234 + -8.86468 -9.71211 -3.31813 + -8.86468 -9.71119 -3.30343 + -8.86468 -9.80004 -3.29789 + -8.2444 -9.80198 -3.32873 + -8.24241 -9.80306 -3.34609 + -8.2444 -9.71313 -3.33427 + -8.24241 -9.71421 -3.35163 + -8.22911 -9.71209 -3.31768 + -8.22324 -9.71532 -3.36936 + -8.22911 -9.95394 -3.30259 + -8.21737 -9.71854 -3.42103 + -8.23653 -9.71743 -3.40318 + -8.86468 -9.71486 -3.36232 + -8.86469 -9.80371 -3.35677 + -8.86469 -9.8028 -3.34208 + -8.23654 -9.80628 -3.39764 + -6.75537 -9.7094 -3.2739 + -6.7443 -9.70755 -3.24417 + -6.75537 -9.70848 -3.2592 + -7.3842 -9.70742 -3.24239 + -7.40004 -9.7086 -3.26128 + -7.38732 -9.70623 -3.22336 + -7.40917 -9.70508 -3.20488 + -6.75537 -9.70572 -3.21494 + -6.7443 -9.7048 -3.20009 + -6.75537 -9.70664 -3.22964 + -6.7443 -9.70755 -3.24417 + -7.3842 -9.70742 -3.24239 + -6.75533 -9.71492 -3.36232 + -6.7443 -9.71305 -3.33234 + -6.75533 -9.714 -3.34762 + -7.37761 -9.71424 -3.35163 + -7.39678 -9.71534 -3.36936 + -7.37562 -9.71315 -3.33427 + -7.39091 -9.71212 -3.31768 + -6.75534 -9.71124 -3.30343 + -6.7443 -9.7103 -3.28825 + -6.75534 -9.71216 -3.31813 + -6.7443 -9.71305 -3.33234 + -7.37761 -9.71424 -3.35163 + -7.38149 -9.71637 -3.38582 + -7.40265 -9.71856 -3.42103 + -7.38348 -9.71745 -3.40318 + -6.76865 -9.71712 -3.39758 + -6.7443 -9.7158 -3.37642 + -6.77857 -9.71878 -3.42426 + -6.74431 -9.94665 -3.185 + -6.7443 -9.7103 -3.28825 + -6.74431 -9.95215 -3.27316 + -6.7443 -9.71305 -3.33234 + -6.7443 -9.7158 -3.37642 + -6.75533 -9.71492 -3.36232 + -7.38348 -9.71745 -3.40318 + -7.38348 -9.8063 -3.39764 + -7.38149 -9.80522 -3.38028 + -6.75534 -9.80377 -3.35677 + -6.75534 -9.80285 -3.34208 + -6.75533 -9.714 -3.34762 + -7.38149 -9.71637 -3.38582 + -7.39678 -9.71534 -3.36936 + -7.40265 -9.71856 -3.42103 + -7.39091 -9.71212 -3.31768 + -7.40266 -9.96041 -3.40594 + -7.39092 -9.95397 -3.30259 + -7.43169 -9.97851 -3.39907 + -6.76482 -9.70174 -3.15107 + -6.76527 -9.70378 -3.18375 + -6.7443 -9.7048 -3.20009 + -7.39549 -9.70385 -3.1851 + -7.40917 -9.70508 -3.20488 + -8.14208 -9.97017 -3.56272 + -8.11876 -9.97849 -3.54418 + -8.15749 -9.97849 -3.48271 + -7.43169 -9.97851 -3.39907 + -7.42076 -9.97851 -3.30288 + -7.39092 -9.95397 -3.30259 + -7.4042 -9.94776 -3.20309 + -7.39091 -9.71212 -3.31768 + -7.40004 -9.7086 -3.26128 + -7.37819 -9.70974 -3.27953 + -6.75537 -9.70848 -3.2592 + -6.75537 -9.79734 -3.25366 + -6.75537 -9.79825 -3.26836 + -7.37819 -9.79859 -3.27398 + -7.37508 -9.79978 -3.29302 + -7.37508 -9.71092 -3.29856 + -6.75537 -9.7094 -3.2739 + -6.7443 -9.7103 -3.28825 + -6.7443 -9.70755 -3.24417 + -6.74431 -9.94665 -3.185 + -6.7443 -9.7048 -3.20009 + -6.76482 -9.94359 -3.13598 + -6.76482 -9.70174 -3.15107 + -8.14207 -9.72832 -3.57781 + -8.14208 -9.97017 -3.56272 + -8.18422 -9.966 -3.49582 + -8.15749 -9.97849 -3.48271 + -8.18834 -9.97849 -3.39907 + -7.42076 -9.97851 -3.30288 + -7.43313 -9.97851 -3.2103 + -7.4042 -9.94776 -3.20309 + -7.43581 -9.96602 -3.49582 + -7.46254 -9.97851 -3.48271 + -7.50127 -9.97851 -3.54418 + -7.99615 -9.9785 -3.65035 + -7.93807 -9.9785 -3.67445 + -8.01272 -9.92488 -3.7082 + -7.94515 -9.92573 -3.72192 + -8.02133 -9.86427 -3.75355 + -7.95089 -9.86461 -3.75912 + -7.88204 -9.24504 -4.15806 + -8.68339 -9.72361 -3.50248 + -8.68643 -9.72483 -3.52197 + -8.14207 -9.72832 -3.57781 + -8.11749 -9.72986 -3.60243 + -8.14208 -9.97017 -3.56272 + -8.1175 -9.97171 -3.58734 + -8.11876 -9.97849 -3.54418 + -8.04809 -9.9785 -3.61494 + -7.43169 -9.97851 -3.39907 + -7.46254 -9.97851 -3.48271 + -7.40266 -9.96041 -3.40594 + -7.43581 -9.96602 -3.49582 + -7.40265 -9.71856 -3.42103 + -8.68339 -9.81246 -3.49694 + -8.68339 -9.72361 -3.50248 + -8.17757 -9.72694 -3.5557 + -8.14207 -9.72832 -3.57781 + -8.19077 -9.72304 -3.49315 + -8.18422 -9.966 -3.49582 + -8.85082 -9.71992 -3.44338 + -8.75215 -9.72156 -3.46961 + -8.20252 -9.72424 -3.51231 + -8.20252 -9.81309 -3.50677 + -8.17757 -9.8158 -3.55015 + -8.75216 -9.81041 -3.46407 + -8.84144 -9.71873 -3.42426 + -8.85082 -9.71992 -3.44338 + -8.19077 -9.72304 -3.49315 + -8.20252 -9.72424 -3.51231 + -8.17757 -9.72694 -3.5557 + -8.17757 -9.8158 -3.55015 + -8.68339 -9.81246 -3.49694 + -8.75216 -9.81041 -3.46407 + -8.68339 -9.72361 -3.50248 + -8.75215 -9.72156 -3.46961 + -8.68643 -9.72483 -3.52197 + -8.85082 -9.71992 -3.44338 + -8.68643 -9.96668 -3.50688 + -8.85082 -9.96177 -3.42829 + -8.6917 -9.96848 -3.53577 + -8.86669 -9.96325 -3.45211 + -8.70013 -9.91788 -3.59637 + -8.88951 -9.91223 -3.50584 + -8.73792 -9.85737 -3.64337 + -8.93535 -9.85131 -3.5462 + -8.84818 -9.23716 -4.00565 + -8.84145 -9.80758 -3.41872 + -8.84144 -9.71873 -3.42426 + -8.21961 -9.72172 -3.472 + -8.19077 -9.72304 -3.49315 + -8.21737 -9.71854 -3.42103 + -8.18422 -9.966 -3.49582 + -8.21737 -9.96039 -3.40594 + -8.18834 -9.97849 -3.39907 + -8.87572 -9.71574 -3.37642 + -8.85137 -9.71706 -3.39758 + -8.23136 -9.71974 -3.44015 + -8.23137 -9.80859 -3.43461 + -8.21962 -9.81057 -3.46646 + -8.85137 -9.80591 -3.39203 + -8.87572 -9.70749 -3.24417 + -8.87572 -9.95209 -3.27316 + -8.87572 -9.71024 -3.28825 + -8.87572 -9.95759 -3.36133 + -8.87572 -9.71299 -3.33234 + -8.87572 -9.71574 -3.37642 + -8.86468 -9.71395 -3.34762 + -8.86465 -9.70567 -3.21494 + -8.87572 -9.70749 -3.24417 + -8.86465 -9.70658 -3.22964 + -8.24182 -9.70971 -3.27953 + -8.21998 -9.70858 -3.26128 + -8.24494 -9.7109 -3.29856 + -8.22911 -9.71209 -3.31768 + -8.86465 -9.70935 -3.2739 + -8.87572 -9.71024 -3.28825 + -8.86465 -9.70843 -3.2592 + -8.87572 -9.70749 -3.24417 + -8.24182 -9.70971 -3.27953 + -7.95782 -9.87496 -2.90807 + -8.03172 -9.87632 -2.92995 + -7.94439 -9.9785 -2.94291 + -8.00189 -9.9785 -2.96992 + -7.81002 -9.9785 -2.91903 + -7.81001 -9.87364 -2.88692 + -7.81002 -9.9785 -2.91903 + -7.74198 -9.9785 -2.92624 + -8.00189 -9.9785 -2.96992 + -8.05463 -9.9785 -3.00531 + -8.03172 -9.87632 -2.92995 + -8.10563 -9.8768 -2.93764 + -8.04114 -9.81207 -2.91695 + -8.22453 -9.70382 -3.1851 + -8.21085 -9.70506 -3.20488 + -8.18528 -9.70079 -3.13655 + -8.18529 -9.94264 -3.12146 + -8.14586 -9.93865 -3.05738 + -8.12228 -9.97849 -3.07557 + -8.05463 -9.9785 -3.00531 + -7.67564 -9.97851 -2.94291 + -7.74198 -9.9785 -2.92624 + -7.66221 -9.87497 -2.90807 + -7.73611 -9.87379 -2.88931 + -7.65593 -9.81068 -2.89448 + -7.73297 -9.80971 -2.87903 + -8.92739 -9.90587 -3.40398 + -8.89787 -9.95802 -3.36827 + -8.89787 -9.94611 -3.1773 + -8.87572 -9.95209 -3.27316 + -8.87572 -9.94659 -3.185 + -8.87572 -9.70749 -3.24417 + -8.87572 -9.70474 -3.20009 + -8.86465 -9.70567 -3.21494 + -8.2327 -9.70621 -3.22336 + -8.2327 -9.79506 -3.21782 + -8.23582 -9.79625 -3.23685 + -8.86465 -9.79452 -3.2094 + -8.86465 -9.79544 -3.22409 + -8.86465 -9.70658 -3.22964 + -8.23582 -9.7074 -3.24239 + -8.21998 -9.70858 -3.26128 + -8.2327 -9.70621 -3.22336 + -8.21085 -9.70506 -3.20488 + -8.87572 -9.70474 -3.20009 + -8.22453 -9.70382 -3.1851 + -8.85475 -9.70372 -3.18375 + -8.85475 -9.79257 -3.1782 + -8.58311 -9.1775 -2.84561 + -7.88552 -9.17752 -2.84561 + -8.58182 -9.18645 -2.85745 + -7.89174 -9.18647 -2.85745 + -8.59144 -9.1456 -2.85261 + -7.72825 -9.18647 -2.85745 + -7.02854 -9.14564 -2.85261 + -7.03817 -9.18649 -2.85745 + -6.73149 -9.1886 -2.89119 + -6.72763 -9.17969 -2.88006 + -6.62455 -9.18292 -2.93174 + -6.74787 -9.8113 -2.9851 + -6.55093 -9.1883 -3.01786 + -6.68467 -9.82113 -3.06161 + -6.64519 -9.82719 -3.15875 + -6.69264 -9.89143 -3.17161 + -6.69264 -9.90593 -3.40398 + -6.72216 -9.95808 -3.36827 + -6.75334 -9.96331 -3.45211 + -6.76921 -9.96182 -3.42829 + -6.9336 -9.96672 -3.50688 + -6.93359 -9.72487 -3.52197 + -7.21027 -9.72796 -3.57157 + -7.47794 -9.72834 -3.57781 + -7.4081 -9.73005 -3.60511 + -7.50253 -9.72988 -3.60243 + -7.40811 -9.9719 -3.59002 + -7.50254 -9.97173 -3.58734 + -7.40729 -9.97374 -3.61962 + -7.57194 -9.97851 -3.61494 + -7.4046 -9.92321 -3.68126 + -7.53974 -9.92344 -3.68503 + -7.52826 -9.86334 -3.73852 + -7.60731 -9.92489 -3.7082 + -7.5987 -9.86428 -3.75355 + -7.66914 -9.86462 -3.75912 + -7.73796 -9.24504 -4.15806 + -7.73957 -9.86526 -3.76943 + -7.81 -9.24519 -4.16084 + -7.81001 -9.86531 -3.77027 + -7.88204 -9.24504 -4.15806 + -7.88045 -9.86526 -3.76943 + -7.95089 -9.86461 -3.75912 + -7.87758 -9.92644 -3.73326 + -7.94515 -9.92573 -3.72192 + -7.87511 -9.9785 -3.6916 + -7.93807 -9.9785 -3.67445 + -7.57194 -9.97851 -3.61494 + -7.50127 -9.97851 -3.54418 + -7.47795 -9.97019 -3.56272 + -7.43581 -9.96602 -3.49582 + -7.42925 -9.72306 -3.49315 + -7.40265 -9.71856 -3.42103 + -7.38866 -9.71976 -3.44015 + -6.76865 -9.71712 -3.39758 + -6.76865 -9.80597 -3.39203 + -6.77857 -9.80763 -3.41872 + -7.38866 -9.80861 -3.43461 + -7.4004 -9.8106 -3.46646 + -7.4004 -9.72174 -3.472 + -6.77857 -9.71878 -3.42426 + -6.7692 -9.71998 -3.44338 + -6.7443 -9.7158 -3.37642 + -6.74431 -9.95765 -3.36133 + -6.74431 -9.95215 -3.27316 + -6.72216 -9.94617 -3.1773 + -6.74431 -9.94665 -3.185 + -6.74442 -9.9335 -3.09638 + -6.76482 -9.94359 -3.13598 + -6.7785 -9.94155 -3.1033 + -6.76482 -9.70174 -3.15107 + -6.7785 -9.6997 -3.11839 + -6.7856 -9.70071 -3.13452 + -6.79249 -9.69968 -3.11812 + -6.7856 -9.78956 -3.12898 + -6.79249 -9.78854 -3.11258 + -7.43556 -9.78777 -3.10059 + -7.43555 -9.69892 -3.10613 + -7.42613 -9.69987 -3.12145 + -7.43473 -9.70081 -3.13655 + -6.76482 -9.70174 -3.15107 + -6.77211 -9.70276 -3.1674 + -6.76527 -9.70378 -3.18375 + -6.76527 -9.79263 -3.1782 + -7.39549 -9.7927 -3.17956 + -7.40613 -9.79092 -3.15112 + -7.39549 -9.70385 -3.1851 + -7.40612 -9.70207 -3.15667 + -7.40917 -9.70508 -3.20488 + -7.43473 -9.70081 -3.13655 + -7.4042 -9.94776 -3.20309 + -7.43474 -9.94266 -3.12146 + -7.43313 -9.97851 -3.2103 + -7.46149 -9.97851 -3.13449 + -8.18834 -9.97849 -3.39907 + -8.19927 -9.97849 -3.30288 + -8.21737 -9.96039 -3.40594 + -8.22911 -9.95394 -3.30259 + -8.21737 -9.71854 -3.42103 + -8.22324 -9.71532 -3.36936 + -8.23653 -9.71743 -3.40318 + -8.23853 -9.71635 -3.38582 + -8.23654 -9.80628 -3.39764 + -8.23853 -9.8052 -3.38028 + -8.86469 -9.8028 -3.34208 + -8.86468 -9.71395 -3.34762 + -8.86468 -9.71486 -3.36232 + -8.87572 -9.71574 -3.37642 + -8.21737 -9.71854 -3.42103 + -8.23136 -9.71974 -3.44015 + -8.21961 -9.72172 -3.472 + -8.21962 -9.81057 -3.46646 + -8.84145 -9.80758 -3.41872 + -8.85137 -9.80591 -3.39203 + -8.84144 -9.71873 -3.42426 + -8.85137 -9.71706 -3.39758 + -8.85082 -9.71992 -3.44338 + -8.87572 -9.71574 -3.37642 + -8.85082 -9.96177 -3.42829 + -8.87572 -9.95759 -3.36133 + -8.86669 -9.96325 -3.45211 + -8.89787 -9.95802 -3.36827 + -8.88951 -9.91223 -3.50584 + -8.92739 -9.90587 -3.40398 + -8.93535 -9.85131 -3.5462 + -8.77741 -9.81415 -2.95061 + -8.50101 -9.81243 -2.92286 + -8.89235 -9.17964 -2.88006 + -8.58311 -9.1775 -2.84561 + -8.8885 -9.18855 -2.89119 + -8.58182 -9.18645 -2.85745 + -8.90198 -9.14773 -2.88677 + -8.59144 -9.1456 -2.85261 + -8.90594 -9.13881 -2.8755 + -8.59281 -9.13664 -2.84062 + -8.87215 -9.81124 -2.9851 + -8.77741 -9.81415 -2.95061 + -8.99544 -9.18286 -2.93174 + -8.89235 -9.17964 -2.88006 + -8.99073 -9.1917 -2.9418 + -8.8885 -9.18855 -2.89119 + -9.00105 -9.15175 -2.93194 + -8.90198 -9.14773 -2.88677 + -9.01273 -9.14095 -2.92054 + -8.90594 -9.13881 -2.8755 + -8.88951 -9.88573 -3.08111 + -8.87215 -9.81124 -2.9851 + -8.93535 -9.82107 -3.06161 + -8.99544 -9.18286 -2.93174 + -9.06906 -9.18823 -3.01786 + -8.99073 -9.1917 -2.9418 + -9.06375 -9.19696 -3.02615 + -9.08286 -9.16064 -3.01785 + -8.92739 -9.89138 -3.17161 + -8.88951 -9.88573 -3.08111 + -8.97484 -9.82713 -3.15875 + -8.93535 -9.82107 -3.06161 + -9.11325 -9.19575 -3.13844 + -9.06906 -9.18823 -3.01786 + -9.10756 -9.20433 -3.14425 + -9.06375 -9.19696 -3.02615 + -9.12379 -9.16371 -3.14301 + -9.08286 -9.16064 -3.01785 + -9.08841 -9.14955 -3.01282 + -9.01273 -9.14095 -2.92054 + -9.11164 -8.52601 -2.92212 + -8.90594 -9.13881 -2.8755 + -9.00065 -8.52314 -2.86619 + -8.59281 -9.13664 -2.84062 + -8.65879 -8.52064 -2.82776 + -6.97041 -8.50289 -2.82739 + -8.64955 -8.50284 -2.82739 + -6.92686 -7.91018 -2.83053 + -8.69306 -7.91013 -2.83053 + -6.91564 -5.09459 -3.04567 + -8.70414 -5.09455 -3.04567 + -8.70414 -5.05572 -3.04809 + -9.06184 -5.05805 -3.08569 + -9.05682 -3.36198 -3.30345 + -9.17503 -3.36486 -3.34964 + -9.13652 -2.14502 -3.54979 + -9.21826 -2.14878 -3.61001 + -9.17893 -0.942159 -3.79251 + -9.2669 -2.15404 -3.69434 + -9.22646 -0.945929 -3.85296 + -9.22206 -0.965099 -4.29874 + -9.18708 0.119628 -4.37655 + -8.87561 -9.93344 -3.09638 + -8.88951 -9.88573 -3.08111 + -8.89787 -9.94611 -3.1773 + -8.92739 -9.89138 -3.17161 + -8.92739 -9.90587 -3.40398 + -8.97484 -9.84448 -3.43688 + -8.93535 -9.85131 -3.5462 + -9.06907 -9.22963 -3.85959 + -8.84818 -9.23716 -4.00565 + -8.84469 -9.24489 -3.99614 + -8.5161 -9.24904 -4.07661 + -8.5249 -9.20901 -4.08657 + -8.29166 -9.21181 -4.14089 + -8.28879 -9.20424 -4.15337 + -7.81 -9.20521 -4.17186 + -7.80998 -8.58136 -4.34888 + -7.28966 -8.5803 -4.32802 + -7.26302 -7.99239 -4.4249 + -7.00338 -7.98903 -4.35955 + -7.00328 -5.1763 -4.51429 + -6.98143 -7.98878 -4.35487 + -6.9814 -5.17602 -4.50938 + -6.60904 -5.17022 -4.4065 + -6.60904 -5.13139 -4.40918 + -6.35353 -5.12077 -4.22094 + -6.36285 -3.41618 -4.3107 + -6.31636 -3.40581 -4.12696 + -6.35761 -2.17835 -4.21323 + -6.35272 -2.15411 -3.69434 + -6.3931 -0.946004 -3.85296 + -6.40136 -2.14885 -3.61001 + -6.44063 -0.942231 -3.79251 + -6.52028 -0.939535 -3.74933 + -6.55297 0.137651 -3.94066 + -6.66206 0.139022 -3.91872 + -6.59935 1.71147 -4.20527 + -6.70461 1.71176 -4.20074 + -6.74971 1.70619 -4.28995 + -7.0784 1.70579 -4.29656 + -7.05025 0.110118 -4.54396 + -7.0703 0.110024 -4.54565 + -7.05111 -0.98232 -4.60269 + -7.28122 -0.984919 -4.64887 + -7.2682 -2.20316 -4.65306 + -7.37784 -0.987601 -4.6964 + -7.39012 -2.20444 -4.6758 + -7.43906 -2.20481 -4.68234 + -7.40289 -3.43542 -4.65194 + -7.56177 -2.20537 -4.69234 + -7.80984 -3.43665 -4.67395 + -7.80981 -2.20602 -4.70393 + -8.21679 -3.4354 -4.65194 + -8.05785 -2.20536 -4.69234 + -8.18056 -2.20479 -4.68234 + -8.16922 -0.989053 -4.72251 + -8.22951 -2.20442 -4.6758 + -8.24172 -0.987578 -4.6964 + -8.33834 -0.984892 -4.64887 + -8.22991 0.100928 -4.70728 + -8.32263 0.104673 -4.64101 + -8.3522 0.110053 -4.54575 + -8.5492 0.110063 -4.54565 + -8.5217 1.70581 -4.29687 + -8.56925 0.110158 -4.54396 + -8.54101 1.70583 -4.29656 + -8.91033 0.112162 -4.50864 + -8.86971 1.70625 -4.28995 + -9.09524 1.70701 -4.27785 + -9.13706 1.7078 -4.26523 + -9.14401 0.115819 -4.44399 + -9.18708 0.119628 -4.37655 + -9.17802 -0.971945 -4.41996 + -9.22206 -0.965099 -4.29874 + -9.26201 -2.17828 -4.21323 + -9.2669 -2.15404 -3.69434 + -9.30875 -3.37638 -3.53439 + -9.25894 -3.36966 -3.42661 + -9.26624 -5.06743 -3.23606 + -9.18108 -5.06157 -3.14208 + -9.18108 -5.1004 -3.13966 + -9.06184 -5.09688 -3.08326 + -9.06191 -7.89477 -2.87102 + -8.70414 -5.09455 -3.04567 + -8.70421 -7.89229 -2.83114 + -8.69306 -7.91013 -2.83053 + -8.71401 -7.92804 -2.83167 + -8.67311 -8.48509 -2.82872 + -9.06011 -7.93021 -2.87023 + -9.00279 -8.4876 -2.86545 + -9.17918 -7.93389 -2.92992 + -9.11639 -8.49119 -2.9224 + -9.18916 -8.49641 -3.0075 + -9.11164 -8.52601 -2.92212 + -9.19249 -8.53208 -3.01681 + -9.08841 -9.14955 -3.01282 + -9.23918 -8.5221 -3.13633 + -9.12511 -9.15452 -3.12355 + -9.12961 -9.15605 -3.15193 + -9.12767 -9.15798 -3.13909 + -9.12961 -9.18088 -3.70044 + -9.12379 -9.16371 -3.14301 + -9.12379 -9.18894 -3.69727 + -9.10756 -9.20433 -3.14425 + -9.10756 -9.22922 -3.69215 + -9.11325 -9.19575 -3.13844 + -9.11325 -9.22116 -3.69527 + -8.97484 -9.82713 -3.15875 + -8.97484 -9.84448 -3.43688 + -8.92739 -9.89138 -3.17161 + -8.84153 -9.94149 -3.1033 + -8.79897 -9.9395 -3.07129 + -8.81461 -9.926 -3.02777 + -8.72753 -9.93754 -3.03993 + -8.73186 -9.93572 -3.01071 + -8.7253 -9.69663 -3.07006 + -8.72752 -9.69569 -3.05502 + -8.79897 -9.69765 -3.08637 + -8.79897 -9.9395 -3.07129 + -8.84152 -9.69964 -3.11839 + -8.84153 -9.94149 -3.1033 + -8.8552 -9.70168 -3.15107 + -8.85521 -9.94353 -3.13598 + -8.47171 -9.93414 -2.98534 + -8.73186 -9.93572 -3.01071 + -8.47091 -9.93599 -3.01491 + -8.72753 -9.93754 -3.03993 + -8.4709 -9.69414 -3.03 + -8.72752 -9.69569 -3.05502 + -8.47036 -9.69537 -3.04971 + -8.7253 -9.69663 -3.07006 + -8.47036 -9.78422 -3.04416 + -8.7253 -9.78548 -3.06451 + -8.76103 -9.78646 -3.08019 + -8.7253 -9.69663 -3.07006 + -8.76103 -9.69761 -3.08574 + -8.79897 -9.69765 -3.08637 + -8.81013 -9.69829 -3.09661 + -8.84152 -9.69964 -3.11839 + -8.11818 -9.81244 -2.92286 + -8.27226 -9.81243 -2.92286 + -8.25344 -9.87702 -2.94119 + -8.47286 -9.87768 -2.95183 + -8.47171 -9.93414 -2.98534 + -8.738 -9.87928 -2.97769 + -8.73186 -9.93572 -3.01071 + -8.8352 -9.88409 -3.01 + -8.81461 -9.926 -3.02777 + -8.83442 -9.70065 -3.13452 + -8.8552 -9.70168 -3.15107 + -8.18528 -9.70079 -3.13655 + -8.21389 -9.70205 -3.15667 + -8.22453 -9.70382 -3.1851 + -8.22453 -9.79268 -3.17956 + -8.85475 -9.79257 -3.1782 + -8.84791 -9.79156 -3.16186 + -8.85475 -9.70372 -3.18375 + -8.84791 -9.7027 -3.1674 + -8.87572 -9.70474 -3.20009 + -8.8552 -9.70168 -3.15107 + -8.87572 -9.94659 -3.185 + -8.85521 -9.94353 -3.13598 + -8.89787 -9.94611 -3.1773 + -8.84153 -9.94149 -3.1033 + -8.87561 -9.93344 -3.09638 + -8.81461 -9.926 -3.02777 + -8.88951 -9.88573 -3.08111 + -8.8352 -9.88409 -3.01 + -8.87215 -9.81124 -2.9851 + -8.738 -9.87928 -2.97769 + -8.77741 -9.81415 -2.95061 + -8.47286 -9.87768 -2.95183 + -8.50101 -9.81243 -2.92286 + -8.27226 -9.81243 -2.92286 + -8.58311 -9.1775 -2.84561 + -8.11818 -9.81244 -2.92286 + -7.88552 -9.17752 -2.84561 + -8.25515 -9.78423 -3.04416 + -8.15232 -9.78473 -3.05217 + -8.25515 -9.69538 -3.04971 + -8.15232 -9.69588 -3.05771 + -8.25415 -9.69415 -3.03 + -8.11816 -9.69501 -3.04371 + -8.25416 -9.93599 -3.01491 + -8.25267 -9.93415 -2.98534 + -8.25416 -9.93599 -3.01491 + -8.11817 -9.93685 -3.02862 + -8.11816 -9.69501 -3.04371 + -8.15701 -9.69793 -3.09061 + -8.15232 -9.69588 -3.05771 + -8.16527 -9.69685 -3.07334 + -8.15232 -9.78473 -3.05217 + -8.16528 -9.7857 -3.0678 + -8.25515 -9.78423 -3.04416 + -8.83442 -9.7895 -3.12898 + -8.83442 -9.70065 -3.13452 + -8.19389 -9.69985 -3.12145 + -8.18528 -9.70079 -3.13655 + -8.15701 -9.69793 -3.09061 + -8.14586 -9.93865 -3.05738 + -8.11817 -9.93685 -3.02862 + -8.05463 -9.9785 -3.00531 + -8.25267 -9.93415 -2.98534 + -8.10563 -9.8768 -2.93764 + -8.21998 -9.70858 -3.26128 + -8.22911 -9.71209 -3.31768 + -8.21085 -9.70506 -3.20488 + -8.21583 -9.94773 -3.20309 + -8.18529 -9.94264 -3.12146 + -8.15854 -9.97849 -3.13449 + -8.12228 -9.97849 -3.07557 + -7.61814 -9.97851 -2.96992 + -7.67564 -9.97851 -2.94291 + -7.5883 -9.87634 -2.92995 + -7.66221 -9.87497 -2.90807 + -7.57889 -9.81208 -2.91695 + -7.65593 -9.81068 -2.89448 + -7.73447 -9.17752 -2.84561 + -7.73297 -9.80971 -2.87903 + -7.81001 -9.80942 -2.87431 + -7.81001 -9.87364 -2.88692 + -7.88392 -9.87379 -2.88931 + -7.81002 -9.9785 -2.91903 + -7.87805 -9.9785 -2.92624 + -7.94439 -9.9785 -2.94291 + -7.88392 -9.87379 -2.88931 + -7.95782 -9.87496 -2.90807 + -7.88705 -9.80971 -2.87903 + -7.9641 -9.81067 -2.89448 + -7.88552 -9.17752 -2.84561 + -8.04114 -9.81207 -2.91695 + -8.11818 -9.81244 -2.92286 + -8.10563 -9.8768 -2.93764 + -8.25344 -9.87702 -2.94119 + -8.25267 -9.93415 -2.98534 + -8.47171 -9.93414 -2.98534 + -8.25416 -9.93599 -3.01491 + -8.47091 -9.93599 -3.01491 + -8.25415 -9.69415 -3.03 + -8.4709 -9.69414 -3.03 + -8.25515 -9.69538 -3.04971 + -8.47036 -9.69537 -3.04971 + -8.25515 -9.78423 -3.04416 + -8.47036 -9.78422 -3.04416 + -8.16528 -9.7857 -3.0678 + -8.76103 -9.78646 -3.08019 + -8.16527 -9.69685 -3.07334 + -8.76103 -9.69761 -3.08574 + -8.15701 -9.69793 -3.09061 + -8.81013 -9.69829 -3.09661 + -8.76088 -9.69856 -3.10094 + -8.84152 -9.69964 -3.11839 + -8.8323 -9.69896 -3.1074 + -8.8552 -9.70168 -3.15107 + -8.82753 -9.69963 -3.11812 + -8.83442 -9.70065 -3.13452 + -8.82753 -9.78848 -3.11258 + -8.83442 -9.7895 -3.12898 + -8.19389 -9.7887 -3.11591 + -8.19389 -9.69985 -3.12145 + -8.18446 -9.6989 -3.10613 + -8.15701 -9.69793 -3.09061 + -8.82753 -9.69963 -3.11812 + -8.76088 -9.69856 -3.10094 + -8.8323 -9.69896 -3.1074 + 7.57307 -11.1373 -3.26078 + 7.58442 -11.1373 -3.33243 + 7.80494 -11.5874 -3.26078 + 7.61736 -11.1373 -3.39707 + 7.66866 -11.1373 -3.44837 + 7.49598 -10.7553 -3.48527 + 7.58047 -10.7553 -3.56976 + 7.6743 -10.4962 -3.66292 + 7.68694 -10.7553 -3.62401 + 7.55643 -10.4962 -3.60286 + 7.58047 -10.7553 -3.56976 + 7.46288 -10.4962 -3.50932 + 7.49598 -10.7553 -3.48527 + 7.40282 -10.4962 -3.39144 + 7.44173 -10.7553 -3.3788 + 7.38213 -10.4962 -3.26078 + 7.42304 -10.7553 -3.26078 + 7.6743 -10.4962 -3.66292 + 7.80497 -10.4962 -3.68362 + 7.80496 -10.7554 -3.6427 + 7.92298 -10.7554 -3.62401 + 7.87661 -11.1373 -3.48131 + 7.94125 -11.1373 -3.44837 + 7.80494 -11.5874 -3.26078 + 7.38213 -10.4962 -3.26078 + 7.38213 -10.3189 -3.26078 + 7.40282 -10.4962 -3.39144 + 7.40283 -10.3189 -3.39144 + 7.46288 -10.4962 -3.50932 + 7.46289 -10.3189 -3.50932 + 7.55643 -10.4962 -3.60286 + 7.55643 -10.3189 -3.60286 + 7.6743 -10.4962 -3.66292 + 7.67431 -10.3189 -3.66292 + 7.80497 -10.4962 -3.68362 + 7.66866 -11.1373 -3.07318 + 7.61736 -11.1373 -3.12448 + 7.80494 -11.5874 -3.26078 + 7.58442 -11.1373 -3.18912 + 7.57307 -11.1373 -3.26078 + 7.44173 -10.7553 -3.14276 + 7.42304 -10.7553 -3.26078 + 7.40282 -10.4962 -3.13011 + 7.38213 -10.4962 -3.26078 + 7.40283 -10.3189 -3.13011 + 7.38213 -10.3189 -3.26078 + 7.67431 -10.3189 -3.66292 + 7.55643 -10.3189 -3.60286 + 7.60454 -10.3189 -3.53665 + 7.46289 -10.3189 -3.50932 + 7.5291 -10.3189 -3.46121 + 7.40283 -10.3189 -3.39144 + 7.48066 -10.3189 -3.36615 + 7.38213 -10.3189 -3.26078 + 7.46397 -10.3189 -3.26078 + 7.40283 -10.3189 -3.13011 + 7.48066 -10.3189 -3.1554 + 7.46289 -10.3189 -3.01223 + 7.5291 -10.3189 -3.06034 + 7.55643 -10.3189 -2.91869 + 7.60454 -10.3189 -2.9849 + 7.80497 -10.4962 -3.68362 + 7.67431 -10.3189 -3.66292 + 7.80498 -10.3189 -3.68362 + 7.60454 -10.3189 -3.53665 + 7.6996 -10.3189 -3.58509 + 7.6996 -10.3189 -3.58509 + 7.80498 -10.3189 -3.60178 + 7.80498 -10.3189 -3.68362 + 7.93564 -10.3189 -3.66292 + 7.93564 -10.4962 -3.66292 + 8.05351 -10.4962 -3.60286 + 8.02945 -10.7554 -3.56976 + 8.11395 -10.7554 -3.48527 + 7.99255 -11.1373 -3.39707 + 8.02549 -11.1373 -3.33243 + 7.80494 -11.5874 -3.26078 + 7.60454 -10.3189 -2.9849 + 7.60454 -10.2097 -2.9849 + 7.5291 -10.3189 -3.06034 + 7.5291 -10.2097 -3.06034 + 7.48066 -10.3189 -3.1554 + 7.48067 -10.2097 -3.1554 + 7.46397 -10.3189 -3.26078 + 7.46397 -10.2097 -3.26078 + 7.48066 -10.3189 -3.36615 + 7.48067 -10.2097 -3.36615 + 7.5291 -10.3189 -3.46121 + 7.5291 -10.2097 -3.46121 + 7.60454 -10.3189 -3.53665 + 7.60454 -10.2097 -3.53665 + 7.6996 -10.3189 -3.58509 + 7.6996 -10.2097 -3.58509 + 7.80498 -10.3189 -3.60178 + 7.87661 -11.1373 -3.04024 + 7.80495 -11.1373 -3.02889 + 7.80494 -11.5874 -3.26078 + 7.7333 -11.1373 -3.04024 + 7.66866 -11.1373 -3.07318 + 7.68694 -10.7553 -2.89755 + 7.58047 -10.7553 -2.95179 + 7.6743 -10.4962 -2.85863 + 7.55643 -10.4962 -2.91869 + 7.67431 -10.3189 -2.85863 + 7.55643 -10.3189 -2.91869 + 7.6996 -10.3189 -2.93646 + 7.60454 -10.3189 -2.9849 + 7.6996 -10.2097 -2.93646 + 7.60454 -10.2097 -2.9849 + 7.6996 -10.2097 -3.58509 + 7.60454 -10.2097 -3.53665 + 7.55644 -10.2097 -3.60286 + 7.5291 -10.2097 -3.46121 + 7.46289 -10.2097 -3.50932 + 7.48067 -10.2097 -3.36615 + 7.40283 -10.2097 -3.39144 + 7.46397 -10.2097 -3.26078 + 7.38213 -10.2097 -3.26078 + 7.48067 -10.2097 -3.1554 + 7.40283 -10.2097 -3.13011 + 7.5291 -10.2097 -3.06034 + 7.46289 -10.2097 -3.01223 + 7.60454 -10.2097 -2.9849 + 7.55644 -10.2097 -2.91869 + 7.6996 -10.2097 -2.93646 + 7.67431 -10.2097 -2.85863 + 7.80498 -10.2097 -2.91977 + 7.80498 -10.2097 -2.83793 + 7.91035 -10.2097 -2.93646 + 7.93564 -10.2098 -2.85863 + 7.80498 -10.3189 -3.60178 + 7.6996 -10.2097 -3.58509 + 7.80498 -10.2097 -3.60178 + 7.55644 -10.2097 -3.60286 + 7.67431 -10.2097 -3.66292 + 8.05351 -10.4962 -3.60286 + 7.93564 -10.3189 -3.66292 + 8.05352 -10.3189 -3.60286 + 7.80498 -10.3189 -3.60178 + 7.91035 -10.3189 -3.58509 + 7.80498 -10.2097 -3.60178 + 7.67431 -10.2097 -3.66292 + 7.80498 -10.2097 -3.68362 + 7.80498 -10.2097 -3.60178 + 7.91035 -10.2097 -3.58509 + 7.91035 -10.3189 -3.58509 + 8.00541 -10.3189 -3.53665 + 8.05352 -10.3189 -3.60286 + 8.14706 -10.3189 -3.50932 + 8.14706 -10.4962 -3.50932 + 8.20712 -10.4962 -3.39144 + 8.16819 -10.7554 -3.3788 + 8.18689 -10.7554 -3.26078 + 8.03684 -11.1373 -3.26078 + 8.02549 -11.1373 -3.18912 + 7.80494 -11.5874 -3.26078 + 7.93564 -10.2098 -2.85863 + 7.93565 -10.0188 -2.85863 + 7.80498 -10.2097 -2.83793 + 7.80498 -10.0188 -2.83793 + 7.67431 -10.2097 -2.85863 + 7.67432 -10.0188 -2.85863 + 7.55644 -10.2097 -2.91869 + 7.55644 -10.0188 -2.91869 + 7.46289 -10.2097 -3.01223 + 7.46289 -10.0188 -3.01223 + 7.40283 -10.2097 -3.13011 + 7.40283 -10.0188 -3.13011 + 7.38213 -10.2097 -3.26078 + 7.38214 -10.0188 -3.26078 + 7.40283 -10.2097 -3.39144 + 7.40283 -10.0188 -3.39144 + 7.46289 -10.2097 -3.50932 + 7.46289 -10.0188 -3.50932 + 7.55644 -10.2097 -3.60286 + 7.55644 -10.0188 -3.60286 + 7.67431 -10.2097 -3.66292 + 7.67432 -10.0188 -3.66292 + 7.80498 -10.2097 -3.68362 + 8.20713 -10.2098 -3.13011 + 8.14707 -10.2098 -3.01223 + 8.08085 -10.2098 -3.06034 + 8.05352 -10.2098 -2.91869 + 8.00541 -10.2098 -2.9849 + 8.22782 -10.2098 -3.26078 + 8.20713 -10.2098 -3.13011 + 8.12929 -10.2098 -3.1554 + 8.08085 -10.2098 -3.06034 + 8.08085 -10.3189 -3.06034 + 8.00541 -10.2098 -2.9849 + 8.00541 -10.3189 -2.9849 + 8.20713 -10.2098 -3.39144 + 8.22782 -10.2098 -3.26078 + 8.14598 -10.2098 -3.26078 + 8.12929 -10.2098 -3.1554 + 8.12929 -10.3189 -3.1554 + 8.08085 -10.3189 -3.06034 + 8.14706 -10.3189 -3.01223 + 8.00541 -10.3189 -2.9849 + 8.05352 -10.3189 -2.91869 + 8.14707 -10.2098 -3.50932 + 8.20713 -10.2098 -3.39144 + 8.12929 -10.2098 -3.36615 + 8.14598 -10.2098 -3.26078 + 8.14598 -10.3189 -3.26078 + 8.12929 -10.3189 -3.1554 + 8.20712 -10.3189 -3.13011 + 8.14706 -10.3189 -3.01223 + 8.14706 -10.4962 -3.01223 + 8.05352 -10.3189 -2.91869 + 8.05351 -10.4962 -2.91869 + 8.05352 -10.2098 -3.60286 + 8.14707 -10.2098 -3.50932 + 8.08085 -10.2098 -3.46121 + 8.12929 -10.2098 -3.36615 + 8.12929 -10.3189 -3.36615 + 8.14598 -10.3189 -3.26078 + 8.22782 -10.3189 -3.26078 + 8.20712 -10.3189 -3.13011 + 8.20712 -10.4962 -3.13011 + 8.14706 -10.4962 -3.01223 + 8.11395 -10.7554 -3.03629 + 8.05351 -10.4962 -2.91869 + 8.02945 -10.7554 -2.95179 + 7.93564 -10.2098 -3.66292 + 8.05352 -10.2098 -3.60286 + 8.00541 -10.2098 -3.53665 + 8.08085 -10.2098 -3.46121 + 8.08085 -10.3189 -3.46121 + 8.12929 -10.3189 -3.36615 + 8.20712 -10.3189 -3.39144 + 8.22782 -10.3189 -3.26078 + 8.22781 -10.4962 -3.26078 + 8.20712 -10.4962 -3.13011 + 8.16819 -10.7554 -3.14276 + 8.11395 -10.7554 -3.03629 + 7.99255 -11.1373 -3.12448 + 8.02945 -10.7554 -2.95179 + 7.94125 -11.1373 -3.07318 + 8.05352 -10.0188 -2.91869 + 8.05352 -10.2098 -2.91869 + 8.14707 -10.0188 -3.01223 + 8.14707 -10.2098 -3.01223 + 8.20713 -10.0188 -3.13011 + 8.20713 -10.2098 -3.13011 + 8.22783 -10.0188 -3.26078 + 8.22782 -10.2098 -3.26078 + 8.20713 -10.0188 -3.39144 + 8.20713 -10.2098 -3.39144 + 8.14707 -10.0188 -3.50932 + 8.14707 -10.2098 -3.50932 + 8.05352 -10.0188 -3.60286 + 8.05352 -10.2098 -3.60286 + 7.93565 -10.0188 -3.66292 + 7.93564 -10.2098 -3.66292 + 7.80498 -10.0188 -3.68362 + 7.80498 -10.0188 -2.83793 + 7.93565 -10.0188 -2.85863 + 7.67432 -10.0188 -2.85863 + 8.05352 -10.0188 -2.91869 + 7.55644 -10.0188 -2.91869 + 8.14707 -10.0188 -3.01223 + 7.46289 -10.0188 -3.01223 + 8.20713 -10.0188 -3.13011 + 7.40283 -10.0188 -3.13011 + 8.22783 -10.0188 -3.26078 + 7.38214 -10.0188 -3.26078 + 8.20713 -10.0188 -3.39144 + 7.40283 -10.0188 -3.39144 + 8.14707 -10.0188 -3.50932 + 7.46289 -10.0188 -3.50932 + 8.05352 -10.0188 -3.60286 + 7.55644 -10.0188 -3.60286 + 7.93565 -10.0188 -3.66292 + 7.67432 -10.0188 -3.66292 + 7.80498 -10.0188 -3.68362 + 7.80498 -10.2097 -3.68362 + 7.93564 -10.2098 -3.66292 + 7.91035 -10.2097 -3.58509 + 8.00541 -10.2098 -3.53665 + 8.00541 -10.3189 -3.53665 + 8.08085 -10.3189 -3.46121 + 8.14706 -10.3189 -3.50932 + 8.20712 -10.3189 -3.39144 + 8.20712 -10.4962 -3.39144 + 8.22781 -10.4962 -3.26078 + 8.18689 -10.7554 -3.26078 + 8.16819 -10.7554 -3.14276 + 8.02549 -11.1373 -3.18912 + 7.99255 -11.1373 -3.12448 + 7.80494 -11.5874 -3.26078 + 7.94125 -11.1373 -3.07318 + 7.87661 -11.1373 -3.04024 + 8.02945 -10.7554 -2.95179 + 7.92298 -10.7554 -2.89755 + 8.05351 -10.4962 -2.91869 + 7.93564 -10.4962 -2.85863 + 8.05352 -10.3189 -2.91869 + 7.93564 -10.3189 -2.85863 + 8.00541 -10.3189 -2.9849 + 7.91035 -10.3189 -2.93646 + 8.00541 -10.2098 -2.9849 + 7.91035 -10.2097 -2.93646 + 8.05352 -10.2098 -2.91869 + 7.93564 -10.2098 -2.85863 + 8.05352 -10.0188 -2.91869 + 7.93565 -10.0188 -2.85863 + -6.14831 -10.2379 -4.4322 + -7.65732 -10.3636 -3.36986 + -7.66977 -10.3331 -3.39143 + -7.65924 -10.2574 -3.37319 + -7.66323 -10.2646 -3.3801 + -6.14282 -10.2123 -4.42269 + -5.65164 -10.3782 -4.23317 + -5.94721 -10.3806 -4.08387 + -5.9527 -10.4061 -4.09338 + -7.6096 -10.3347 -3.2872 + -7.61581 -10.3537 -3.29796 + -7.6079 -10.3245 -3.28427 + -7.60926 -10.2852 -3.28663 + -5.94721 -10.3806 -4.08387 + -7.62172 -10.2547 -3.3082 + -5.87123 -10.2402 -4.61351 + -5.6566 -10.4042 -4.24176 + -6.14831 -10.2379 -4.4322 + -5.9527 -10.4061 -4.09338 + -7.65732 -10.3636 -3.36986 + -7.63834 -10.3742 -3.33699 + -7.6407 -10.2441 -3.34107 + -7.62172 -10.2547 -3.3082 + -6.14282 -10.2123 -4.42269 + -5.94721 -10.3806 -4.08387 + -5.86627 -10.2143 -4.60492 + -5.65164 -10.3782 -4.23317 + -5.41455 -10.2386 -4.84238 + -5.22114 -10.3533 -4.50739 + -5.05271 -10.2645 -5.00018 + -4.90466 -10.3268 -4.74374 + -4.87569 -10.281 -5.041 + -4.78154 -10.31 -4.87792 + -4.78189 -10.2886 -5.05785 + -4.72063 -10.3022 -4.95174 + -4.71423 -10.2948 -5.04676 + -4.69749 -10.2959 -5.01776 + -4.69794 -10.3237 -5.01854 + -4.72216 -10.3299 -4.9544 + -5.6566 -10.4042 -4.24176 + -5.87123 -10.2402 -4.61351 + -5.22509 -10.3799 -4.51424 + -5.4185 -10.2652 -4.84923 + -4.90752 -10.354 -4.7487 + -5.05557 -10.2917 -5.00514 + -4.78366 -10.3375 -4.88159 + -4.87781 -10.3085 -5.04466 + -4.72216 -10.3299 -4.9544 + -4.78343 -10.3163 -5.06051 + -4.69794 -10.3237 -5.01854 + -4.71468 -10.3226 -5.04754 + -4.71423 -10.2948 -5.04676 + -4.78343 -10.3163 -5.06051 + -4.78189 -10.2886 -5.05785 + -4.87781 -10.3085 -5.04466 + -4.87569 -10.281 -5.041 + -5.05557 -10.2917 -5.00514 + -5.05271 -10.2645 -5.00018 + -5.4185 -10.2652 -4.84923 + -5.41455 -10.2386 -4.84238 + -5.87123 -10.2402 -4.61351 + -5.86627 -10.2143 -4.60492 + -6.14831 -10.2379 -4.4322 + -6.14282 -10.2123 -4.42269 + -7.66944 -10.2836 -3.39086 + -7.66323 -10.2646 -3.3801 + -7.67113 -10.2938 -3.39379 + -7.66977 -10.3331 -3.39143 + -7.66944 -10.2836 -3.39086 + -6.14831 -10.2379 -4.4322 + -9.94343 -10.2401 -4.25912 + -10.3739 -10.2651 -4.53334 + -10.1805 -10.3798 -4.86834 + -10.5424 -10.3539 -5.02613 + -10.5395 -10.3266 -5.03109 + -10.7173 -10.3099 -5.07062 + -10.8114 -10.2808 -4.90755 + -10.8729 -10.2885 -4.98035 + -10.8135 -10.3083 -4.90388 + -10.8744 -10.3161 -4.97769 + -10.8132 -10.3297 -5.08381 + -10.8808 -10.3235 -5.07271 + -10.8804 -10.2957 -5.07349 + -9.45225 -10.406 -4.44864 + -9.7288 -10.4041 -4.63088 + -9.72384 -10.3781 -4.63947 + -10.1766 -10.3531 -4.87518 + -10.37 -10.2384 -4.54019 + -10.6876 -10.2643 -4.77465 + -10.3739 -10.2651 -4.53334 + -10.6904 -10.2915 -4.76969 + -10.5424 -10.3539 -5.02613 + -10.7194 -10.3374 -5.06695 + -10.7173 -10.3099 -5.07062 + -10.8116 -10.3021 -5.08646 + -10.8729 -10.2885 -4.98035 + -10.8971 -10.2947 -5.04449 + -10.8744 -10.3161 -4.97769 + -10.8976 -10.3224 -5.04371 + -10.8808 -10.3235 -5.07271 + -10.8971 -10.2947 -5.04449 + -10.8804 -10.2957 -5.07349 + -10.8116 -10.3021 -5.08646 + -10.8132 -10.3297 -5.08381 + -10.7194 -10.3374 -5.06695 + -10.8135 -10.3083 -4.90388 + -10.6904 -10.2915 -4.76969 + -10.8114 -10.2808 -4.90755 + -10.6876 -10.2643 -4.77465 + -10.5395 -10.3266 -5.03109 + -10.1766 -10.3531 -4.87518 + -10.1805 -10.3798 -4.86834 + -9.7288 -10.4041 -4.63088 + -9.94343 -10.2401 -4.25912 + -9.94343 -10.2401 -4.25912 + -9.7288 -10.4041 -4.63088 + -9.64787 -10.2378 -4.10982 + -9.45225 -10.406 -4.44864 + -7.97335 -10.3636 -3.33415 + -7.95438 -10.3742 -3.36702 + -7.95673 -10.2441 -3.36294 + -7.93583 -10.3609 -3.39915 + -7.93775 -10.2547 -3.39581 + -7.93184 -10.3537 -3.40605 + -7.9253 -10.2852 -3.41738 + -7.98548 -10.2836 -3.31316 + -9.64237 -10.2122 -4.11933 + -9.64787 -10.2378 -4.10982 + -9.93847 -10.2142 -4.26771 + -9.94343 -10.2401 -4.25912 + -10.3739 -10.2651 -4.53334 + -9.94343 -10.2401 -4.25912 + -10.37 -10.2384 -4.54019 + -9.93847 -10.2142 -4.26771 + -9.72384 -10.3781 -4.63947 + -9.44676 -10.3805 -4.45815 + -9.45225 -10.406 -4.44864 + -7.92563 -10.3347 -3.41681 + -7.93184 -10.3537 -3.40605 + -7.92394 -10.3245 -3.41974 + -7.9253 -10.2852 -3.41738 + -9.44676 -10.3805 -4.45815 + -7.93775 -10.2547 -3.39581 + -9.64237 -10.2122 -4.11933 + -7.95673 -10.2441 -3.36294 + -7.97528 -10.2574 -3.33082 + -7.97335 -10.3636 -3.33415 + -7.98581 -10.3331 -3.31258 + -9.64787 -10.2378 -4.10982 + -7.98717 -10.2938 -3.31022 + -7.98548 -10.2836 -3.31316 + -7.97926 -10.2646 -3.32392 + -9.64237 -10.2122 -4.11933 + -7.97528 -10.2574 -3.33082 + -7.6189 -10.2378 -1.24031 + -7.78441 -10.3636 -3.07831 + -7.75951 -10.3331 -3.07831 + -7.78056 -10.2574 -3.07831 + -7.77259 -10.2646 -3.07831 + -7.62988 -10.2123 -1.24031 + -7.80372 -10.2947 0.308923 + -7.75721 -10.3162 0.255872 + -7.76028 -10.2886 0.255872 + -7.72374 -10.3084 0.166213 + -7.72798 -10.2809 0.166213 + -7.66909 -10.2916 -0.00749865 + -7.67481 -10.2644 -0.00749865 + -7.62265 -10.2652 -0.399756 + -7.63055 -10.2385 -0.399756 + -7.60042 -10.2402 -0.909691 + -7.61034 -10.2142 -0.909691 + -7.6189 -10.2378 -1.24031 + -7.62988 -10.2123 -1.24031 + -7.76017 -10.2836 -3.07831 + -7.77259 -10.2646 -3.07831 + -7.75678 -10.2938 -3.07831 + -7.75951 -10.3331 -3.07831 + -7.76017 -10.2836 -3.07831 + -7.6189 -10.2378 -1.24031 + -8.02969 -10.4041 -0.909691 + -8.0396 -10.3781 -0.909692 + -8.01014 -10.4061 -1.24031 + -8.02112 -10.3805 -1.24031 + -7.87986 -10.3347 -3.07831 + -7.88324 -10.3245 -3.07831 + -7.86743 -10.3537 -3.07831 + -7.88052 -10.2852 -3.07831 + -7.85946 -10.3609 -3.07831 + -7.85561 -10.2547 -3.07831 + -7.82237 -10.3742 -3.07831 + -7.8372 -10.2958 0.308922 + -7.80372 -10.2947 0.308923 + -7.88281 -10.3022 0.255872 + -7.76028 -10.2886 0.255872 + -7.91628 -10.3099 0.166213 + -7.72798 -10.2809 0.166213 + -7.97093 -10.3267 -0.00749865 + -7.67481 -10.2644 -0.00749865 + -8.01737 -10.3532 -0.399757 + -7.63055 -10.2385 -0.399756 + -8.0396 -10.3781 -0.909692 + -7.61034 -10.2142 -0.909691 + -8.02112 -10.3805 -1.24031 + -7.62988 -10.2123 -1.24031 + -7.85561 -10.2547 -3.07831 + -7.81765 -10.2441 -3.07831 + -7.82237 -10.3742 -3.07831 + -7.78441 -10.3636 -3.07831 + -8.01014 -10.4061 -1.24031 + -7.6189 -10.2378 -1.24031 + -8.02969 -10.4041 -0.909691 + -7.60042 -10.2402 -0.909691 + -8.00947 -10.3798 -0.399756 + -7.62265 -10.2652 -0.399756 + -7.96521 -10.3539 -0.00749964 + -7.66909 -10.2916 -0.00749865 + -7.91204 -10.3374 0.166213 + -7.72374 -10.3084 0.166213 + -7.87974 -10.3298 0.255873 + -7.75721 -10.3162 0.255872 + -8.0396 -10.3781 -0.909692 + -8.02969 -10.4041 -0.909691 + -8.01737 -10.3532 -0.399757 + -8.00947 -10.3798 -0.399756 + -7.97093 -10.3267 -0.00749865 + -7.96521 -10.3539 -0.00749964 + -7.91628 -10.3099 0.166213 + -7.91204 -10.3374 0.166213 + -7.88281 -10.3022 0.255872 + -7.87974 -10.3298 0.255873 + -7.8372 -10.2958 0.308922 + -7.83631 -10.3236 0.308924 + -7.80372 -10.2947 0.308923 + -7.80282 -10.3225 0.308922 + -7.75721 -10.3162 0.255872 + -7.83631 -10.3236 0.308924 + -7.87974 -10.3298 0.255873 + 7.98712 -10.2942 -3.31022 + 7.9377 -10.2551 -3.39581 + 7.98575 -10.3335 -3.31258 + 7.92525 -10.2856 -3.41738 + 7.9733 -10.3641 -3.33415 + 7.92389 -10.3249 -3.41974 + 9.64233 -10.2127 -4.11933 + 7.97921 -10.265 -3.32392 + 7.98542 -10.284 -3.31316 + 7.97523 -10.2578 -3.33082 + 7.95668 -10.2446 -3.36294 + 9.64233 -10.2127 -4.11933 + 10.8131 -10.3303 -5.08381 + 10.7193 -10.3379 -5.06695 + 10.7172 -10.3104 -5.07062 + 10.5394 -10.3272 -5.03109 + 10.6875 -10.2649 -4.77465 + 10.3699 -10.239 -4.54019 + 10.6904 -10.2921 -4.76969 + 10.3739 -10.2656 -4.53334 + 10.1805 -10.3803 -4.86834 + 9.72874 -10.4046 -4.63088 + 10.8808 -10.3241 -5.07271 + 10.8131 -10.3303 -5.08381 + 10.8116 -10.3026 -5.08646 + 10.7172 -10.3104 -5.07062 + 10.8114 -10.2814 -4.90755 + 10.6875 -10.2649 -4.77465 + 10.8135 -10.3089 -4.90388 + 10.6904 -10.2921 -4.76969 + 10.5423 -10.3544 -5.02613 + 10.1805 -10.3803 -4.86834 + 10.1765 -10.3537 -4.87518 + 10.8744 -10.3167 -4.97769 + 10.8975 -10.323 -5.04371 + 10.8729 -10.289 -4.98035 + 10.8971 -10.2952 -5.04449 + 10.8803 -10.2963 -5.07349 + 10.8975 -10.323 -5.04371 + 9.45219 -10.4065 -4.44864 + 9.72874 -10.4046 -4.63088 + 9.94338 -10.2407 -4.25912 + 10.3739 -10.2656 -4.53334 + 9.93842 -10.2147 -4.26771 + 10.3699 -10.239 -4.54019 + 10.1765 -10.3537 -4.87518 + 10.5394 -10.3272 -5.03109 + 10.5423 -10.3544 -5.02613 + 10.7193 -10.3379 -5.06695 + 10.8135 -10.3089 -4.90388 + 10.8744 -10.3167 -4.97769 + 10.8114 -10.2814 -4.90755 + 10.8729 -10.289 -4.98035 + 10.8116 -10.3026 -5.08646 + 10.8803 -10.2963 -5.07349 + 10.8808 -10.3241 -5.07271 + 10.8975 -10.323 -5.04371 + 10.8131 -10.3303 -5.08381 + 10.8744 -10.3167 -4.97769 + 10.7193 -10.3379 -5.06695 + 9.72378 -10.3786 -4.63947 + 9.4467 -10.381 -4.45815 + 9.64233 -10.2127 -4.11933 + 7.9377 -10.2551 -3.39581 + 7.95668 -10.2446 -3.36294 + 7.98712 -10.2942 -3.31022 + 7.98542 -10.284 -3.31316 + 9.64782 -10.2383 -4.10982 + 9.64233 -10.2127 -4.11933 + 9.4467 -10.381 -4.45815 + 7.92558 -10.3351 -3.41681 + 7.92389 -10.3249 -3.41974 + 7.95432 -10.3746 -3.36702 + 7.9733 -10.3641 -3.33415 + 9.45219 -10.4065 -4.44864 + 9.64782 -10.2383 -4.10982 + 9.94338 -10.2407 -4.25912 + 9.64233 -10.2127 -4.11933 + 9.93842 -10.2147 -4.26771 + 9.72378 -10.3786 -4.63947 + 10.1765 -10.3537 -4.87518 + 10.1765 -10.3537 -4.87518 + 10.1805 -10.3803 -4.86834 + 9.72378 -10.3786 -4.63947 + 9.72874 -10.4046 -4.63088 + 9.4467 -10.381 -4.45815 + 9.45219 -10.4065 -4.44864 + 7.93179 -10.3541 -3.40605 + 7.95432 -10.3746 -3.36702 + 7.93577 -10.3613 -3.39915 + 7.92558 -10.3351 -3.41681 + 7.93179 -10.3541 -3.40605 + 9.4467 -10.381 -4.45815 + 7.62984 -10.2127 -1.24031 + 7.8176 -10.2446 -3.07831 + 7.77254 -10.265 -3.07831 + 7.78051 -10.2578 -3.07831 + 7.76012 -10.284 -3.07831 + 7.8176 -10.2446 -3.07831 + 7.62984 -10.2127 -1.24031 + 7.77254 -10.265 -3.07831 + 7.61885 -10.2382 -1.24031 + 7.76012 -10.284 -3.07831 + 7.75673 -10.2942 -3.07831 + 7.8176 -10.2446 -3.07831 + 7.85556 -10.2551 -3.07831 + 7.62984 -10.2127 -1.24031 + 8.01008 -10.4065 -1.24031 + 7.78436 -10.3641 -3.07831 + 7.82231 -10.3746 -3.07831 + 7.88319 -10.3249 -3.07831 + 7.8798 -10.3351 -3.07831 + 8.02107 -10.3809 -1.24031 + 8.01732 -10.3536 -0.399757 + 8.00941 -10.3803 -0.399756 + 8.03955 -10.3786 -0.909692 + 8.02963 -10.4045 -0.909691 + 8.02107 -10.3809 -1.24031 + 8.01008 -10.4065 -1.24031 + 7.86738 -10.3541 -3.07831 + 7.82231 -10.3746 -3.07831 + 7.85941 -10.3613 -3.07831 + 7.8798 -10.3351 -3.07831 + 7.86738 -10.3541 -3.07831 + 8.02107 -10.3809 -1.24031 + 7.63051 -10.2389 -0.399756 + 7.97088 -10.3271 -0.00749865 + 8.01732 -10.3536 -0.399757 + 7.96515 -10.3543 -0.00749964 + 8.00941 -10.3803 -0.399756 + 7.87969 -10.3302 0.255873 + 7.91199 -10.3378 0.166213 + 7.91623 -10.3104 0.166213 + 7.97088 -10.3271 -0.00749865 + 7.67476 -10.2648 -0.00749865 + 7.63051 -10.2389 -0.399756 + 7.66904 -10.292 -0.00749865 + 7.6226 -10.2656 -0.399756 + 7.83625 -10.324 0.308924 + 7.87969 -10.3302 0.255873 + 7.88276 -10.3026 0.255872 + 7.91623 -10.3104 0.166213 + 7.72793 -10.2813 0.166213 + 7.67476 -10.2648 -0.00749865 + 7.72369 -10.3088 0.166213 + 7.66904 -10.292 -0.00749865 + 7.75716 -10.3166 0.255872 + 7.80277 -10.3229 0.308922 + 7.76023 -10.289 0.255872 + 7.80366 -10.2951 0.308923 + 7.83715 -10.2962 0.308922 + 7.80277 -10.3229 0.308922 + 7.63051 -10.2389 -0.399756 + 8.01732 -10.3536 -0.399757 + 7.61029 -10.2146 -0.909691 + 8.03955 -10.3786 -0.909692 + 7.62984 -10.2127 -1.24031 + 8.02107 -10.3809 -1.24031 + 7.85556 -10.2551 -3.07831 + 7.88047 -10.2856 -3.07831 + 7.75945 -10.3335 -3.07831 + 7.78436 -10.3641 -3.07831 + 7.61885 -10.2382 -1.24031 + 8.01008 -10.4065 -1.24031 + 7.60037 -10.2406 -0.909691 + 8.02963 -10.4045 -0.909691 + 7.6226 -10.2656 -0.399756 + 8.00941 -10.3803 -0.399756 + 7.66904 -10.292 -0.00749865 + 7.96515 -10.3543 -0.00749964 + 7.72369 -10.3088 0.166213 + 7.91199 -10.3378 0.166213 + 7.75716 -10.3166 0.255872 + 7.87969 -10.3302 0.255873 + 7.80277 -10.3229 0.308922 + 7.83625 -10.324 0.308924 + 7.83715 -10.2962 0.308922 + 7.88276 -10.3026 0.255872 + 7.76023 -10.289 0.255872 + 7.72793 -10.2813 0.166213 + 7.75716 -10.3166 0.255872 + 7.72369 -10.3088 0.166213 + 6.14277 -10.2126 -4.42269 + 7.64065 -10.2445 -3.34107 + 7.66318 -10.265 -3.3801 + 7.65919 -10.2578 -3.37319 + 7.66939 -10.284 -3.39086 + 7.64065 -10.2445 -3.34107 + 6.14277 -10.2126 -4.42269 + 7.66318 -10.265 -3.3801 + 6.14826 -10.2382 -4.4322 + 7.66939 -10.284 -3.39086 + 7.67108 -10.2942 -3.39379 + 7.64065 -10.2445 -3.34107 + 7.62167 -10.2551 -3.3082 + 6.14277 -10.2126 -4.42269 + 5.22109 -10.3535 -4.50739 + 5.22504 -10.3802 -4.51424 + 5.65159 -10.3785 -4.23317 + 5.65655 -10.4045 -4.24176 + 5.94715 -10.3809 -4.08387 + 5.95264 -10.4064 -4.09338 + 7.60954 -10.3351 -3.2872 + 7.61575 -10.3541 -3.29796 + 7.61974 -10.3613 -3.30487 + 5.95264 -10.4064 -4.09338 + 7.63829 -10.3746 -3.33699 + 7.65726 -10.364 -3.36986 + 7.60785 -10.3249 -3.28427 + 7.60921 -10.2856 -3.28663 + 5.94715 -10.3809 -4.08387 + 5.4145 -10.2388 -4.84238 + 4.9046 -10.3271 -4.74374 + 5.22109 -10.3535 -4.50739 + 4.90746 -10.3543 -4.7487 + 5.22504 -10.3802 -4.51424 + 4.72211 -10.3301 -4.9544 + 4.78361 -10.3378 -4.88159 + 4.78149 -10.3103 -4.87792 + 4.9046 -10.3271 -4.74374 + 5.05266 -10.2648 -5.00018 + 5.4145 -10.2388 -4.84238 + 5.05552 -10.292 -5.00514 + 5.41845 -10.2655 -4.84923 + 4.69788 -10.3239 -5.01854 + 4.72211 -10.3301 -4.9544 + 4.72058 -10.3025 -4.95174 + 4.78149 -10.3103 -4.87792 + 4.87564 -10.2812 -5.041 + 5.05266 -10.2648 -5.00018 + 4.87776 -10.3087 -5.04466 + 5.05552 -10.292 -5.00514 + 4.78337 -10.3165 -5.06051 + 4.71463 -10.3229 -5.04754 + 4.78184 -10.2889 -5.05785 + 4.71418 -10.2951 -5.04676 + 4.69744 -10.2961 -5.01776 + 4.71463 -10.3229 -5.04754 + 5.4145 -10.2388 -4.84238 + 5.22109 -10.3535 -4.50739 + 5.86622 -10.2146 -4.60492 + 5.65159 -10.3785 -4.23317 + 6.14277 -10.2126 -4.42269 + 5.94715 -10.3809 -4.08387 + 7.62167 -10.2551 -3.3082 + 7.60921 -10.2856 -3.28663 + 7.66972 -10.3335 -3.39143 + 7.65726 -10.364 -3.36986 + 6.14826 -10.2382 -4.4322 + 5.95264 -10.4064 -4.09338 + 5.87118 -10.2406 -4.61351 + 5.65655 -10.4045 -4.24176 + 5.41845 -10.2655 -4.84923 + 5.22504 -10.3802 -4.51424 + 5.05552 -10.292 -5.00514 + 4.90746 -10.3543 -4.7487 + 4.87776 -10.3087 -5.04466 + 4.78361 -10.3378 -4.88159 + 4.78337 -10.3165 -5.06051 + 4.72211 -10.3301 -4.9544 + 4.71463 -10.3229 -5.04754 + 4.69788 -10.3239 -5.01854 + 4.69744 -10.2961 -5.01776 + 4.72058 -10.3025 -4.95174 + 4.78184 -10.2889 -5.05785 + 4.87564 -10.2812 -5.041 + 4.78337 -10.3165 -5.06051 + 4.87776 -10.3087 -5.04466 + -0.144126 -8.085 -0.897773 + -0.403618 -8.09105 -0.902732 + -0.144225 -8.30717 -1.03392 + -0.452195 -8.30178 -1.04074 + -0.165801 -8.51695 -1.17268 + 0.160812 -8.7251 -1.31169 + 0.160901 -8.51716 -1.17257 + -0.165891 -8.72489 -1.31179 + -0.165801 -8.51695 -1.17268 + -0.473772 -8.51156 -1.1795 + -0.452195 -8.30178 -1.04074 + -0.736053 -8.23087 -1.04881 + -0.403618 -8.09105 -0.902732 + -0.687475 -8.02014 -0.910804 + -0.599347 -7.79488 -0.746924 + -0.953654 -7.90188 -0.918034 + -0.865526 -7.67662 -0.754154 + 0.160901 -8.51716 -1.17257 + 0.160812 -8.7251 -1.31169 + 0.506254 -8.7105 -1.32096 + 0.200029 -8.99587 -1.50608 + 0.545472 -8.98128 -1.51536 + -1.49917 -13.8321 -2.32391 + -1.47954 -14.5526 -2.50844 + -1.30405 -14.5528 -2.37642 + -1.2614 -15.338 -2.5994 + -1.08087 -15.3383 -2.46572 + -2.07262 -13.8314 -3.38269 + -1.75736 -14.5522 -2.86378 + -1.91593 -13.8316 -2.83278 + -1.47954 -14.5526 -2.50844 + -1.66752 -13.8319 -2.45456 + -1.49917 -13.8321 -2.32391 + -0.175688 -18.1654 -3.2586 + -0.677874 -17.2716 -2.97642 + -0.800731 -17.2714 -3.12288 + -1.20492 -16.3081 -3.01484 + -1.30284 -16.308 -3.3822 + -1.67398 -15.3375 -3.38244 + -1.54718 -15.3377 -3.84985 + -1.75669 -14.5522 -3.92099 + -1.91521 -13.8316 -3.96537 + -1.75669 -14.5522 -3.92099 + -1.90094 -14.552 -3.38258 + -1.67398 -15.3375 -3.38244 + -1.54778 -15.3377 -2.91487 + -1.20492 -16.3081 -3.01484 + -0.998601 -16.3084 -2.78471 + -0.677874 -17.2716 -2.97642 + -0.819047 -16.3086 -2.65021 + -0.524496 -17.2718 -2.85424 + -0.340551 -17.272 -2.75631 + -0.094351 -18.1655 -3.19189 + -0.008043 -18.1656 -3.17622 + -0.138706 -18.1655 -3.22157 + -0.175688 -18.1654 -3.2586 + -0.524496 -17.2718 -2.85424 + -0.677874 -17.2716 -2.97642 + -1.54718 -15.3377 -3.84985 + -1.20446 -16.3081 -3.74943 + -1.30284 -16.308 -3.3822 + -0.865325 -17.2713 -3.38192 + -0.800731 -17.2714 -3.12288 + -0.205309 -18.1654 -3.30299 + -0.175688 -18.1654 -3.2586 + 0.078276 -18.1656 -3.19184 + -0.008043 -18.1656 -3.17622 + -0.007616 -17.2724 -2.70459 + -0.340551 -17.272 -2.75631 + -0.507397 -16.309 -2.49497 + -0.819047 -16.3086 -2.65021 + -1.08087 -15.3383 -2.46572 + -0.998601 -16.3084 -2.78471 + -1.2614 -15.338 -2.5994 + -1.54778 -15.3377 -2.91487 + -1.75736 -14.5522 -2.86378 + -1.90094 -14.552 -3.38258 + -2.07262 -13.8314 -3.38269 + -1.91521 -13.8316 -3.96537 + -0.004681 -13.8141 -4.90598 + -0.79639 -13.8527 -4.78589 + -0.799828 -13.8132 -4.7905 + -1.46437 -13.8519 -4.45689 + -1.45289 -13.8123 -4.46848 + -1.48115 -13.8322 -4.44427 + -1.80827 -12.1391 -4.5725 + -0.003568 -12.1613 -5.05076 + -0.004681 -13.8141 -4.90598 + -0.937838 -12.1601 -4.93057 + -0.799828 -13.8132 -4.7905 + -0.958065 -12.1402 -4.92482 + -1.77795 -12.1391 -4.59612 + -0.969525 -9.29418 -4.98702 + -0.929436 -9.29424 -4.9967 + -0.919494 -12.1202 -4.93536 + -0.001763 -9.29537 -5.11945 + -0.003542 -12.1214 -5.05298 + 0.912336 -12.1214 -4.93478 + -0.003568 -12.1613 -5.05076 + -0.003542 -12.1214 -5.05298 + -0.937838 -12.1601 -4.93057 + -0.919494 -12.1202 -4.93536 + -0.958065 -12.1402 -4.92482 + -0.969525 -9.29418 -4.98702 + -1.77795 -12.1391 -4.59612 + -22.1522 -5.97966 -3.26256 + -22.1521 -5.90503 -3.28141 + -22.1025 -6.06166 -3.28092 + -22.1023 -5.92112 -3.33311 + -10.2585 -6.64997 -4.0965 + -6.43013 -6.67989 -4.34749 + -6.4301 -6.52437 -4.22286 + -10.2585 -6.64997 -4.0965 + -10.2584 -6.50316 -3.97131 + -22.1025 -6.06166 -3.28092 + -22.1024 -5.9738 -3.20283 + -22.1522 -5.97966 -3.26256 + -22.1522 -5.95045 -3.23659 + -22.1521 -5.90503 -3.28141 + -2.64618 -6.57272 -4.44122 + -6.4301 -6.52437 -4.22286 + -2.64776 -6.71748 -4.59599 + -6.43013 -6.67989 -4.34749 + -6.4294 -6.43437 -4.43077 + -10.2582 -6.41524 -4.1801 + -6.42844 -6.00774 -4.51405 + -6.4294 -6.43437 -4.43077 + -10.2576 -6.00898 -4.26371 + -10.2582 -6.41524 -4.1801 + -22.1019 -5.67787 -3.38529 + -22.1023 -5.92112 -3.33311 + -22.1518 -5.66749 -3.33239 + -22.1521 -5.90503 -3.28141 + -22.152 -5.71651 -3.1702 + -22.1522 -5.95045 -3.23659 + -22.1021 -5.73055 -3.12473 + -22.1024 -5.9738 -3.20283 + -10.258 -6.09688 -3.84615 + -10.2584 -6.50316 -3.97131 + -6.42973 -6.09495 -4.09822 + -6.4301 -6.52437 -4.22286 + -2.64612 -6.11765 -4.26296 + -2.64618 -6.57272 -4.44122 + -2.41102 -1.98305 -4.33553 + -2.41332 -1.99018 -4.39076 + -2.41321 -2.02882 -4.30047 + -2.43651 -2.33313 -4.33895 + -2.43306 -2.32244 -4.25611 + -10.2557 -4.25195 -3.72103 + -6.42748 -4.14667 -3.97359 + -6.42517 -2.42067 -4.08393 + -2.43306 -2.32244 -4.25611 + -6.42862 -2.43136 -4.16677 + -2.43651 -2.33313 -4.33895 + -6.42815 -2.09951 -4.20299 + -2.41332 -1.99018 -4.39076 + -6.42586 -2.09239 -4.14776 + -2.41102 -1.98305 -4.33553 + -2.45322 -4.10594 -4.05046 + -2.44494 -3.639 -4.0936 + -2.4955 -4.10643 -4.09827 + -2.39878 -2.32035 -4.21079 + -2.43306 -2.32244 -4.25611 + -2.02727 -7.96546 -1.99557 + -2.01367 -7.95418 -1.98133 + -2.22119 -7.42875 -2.04183 + -2.14761 -7.50858 -1.93711 + -2.20707 -7.40625 -2.00641 + -2.15306 -7.47002 -1.92183 + -2.38388 -6.72317 -1.9805 + -2.51205 -5.393 -2.08624 + -2.40848 -6.72313 -2.13998 + -2.39374 -6.72315 -2.01891 + -2.26387 -9.25288 -2.34055 + -2.38264 -6.82561 -2.01289 + -2.35558 -1.61908 -4.31357 + -2.37653 -1.97836 -4.26308 + -2.44285 -1.97929 -4.07442 + -2.44328 -2.31789 -4.07591 + -2.54197 -2.31776 -3.4531 + -2.54422 -4.10616 -3.4666 + -2.55913 -4.10614 -2.83329 + -2.56316 -5.39294 -2.8333 + -2.51205 -5.393 -2.08624 + -2.49284 -6.72303 -2.83325 + -2.40848 -6.72313 -2.13998 + -2.20849 -5.29385 -1.12705 + -2.20878 -5.25386 -1.12705 + -2.38926 -5.30132 -1.50372 + -2.379 -4.12637 -1.50371 + -2.51205 -5.393 -2.08624 + -2.51821 -4.10619 -2.06485 + -2.55913 -4.10614 -2.83329 + -2.55687 -2.31774 -2.83024 + -2.54197 -2.31776 -3.4531 + -2.54154 -1.97916 -3.4529 + -2.44285 -1.97929 -4.07442 + -2.44242 -1.64069 -4.07292 + -2.35558 -1.61908 -4.31357 + -2.20736 -5.39339 -1.12705 + -2.3896 -5.34132 -1.50372 + -2.39005 -5.39316 -1.50372 + -2.47159 -5.40196 -1.86999 + -2.38388 -6.72317 -1.9805 + -2.40339 -6.59023 -2.00777 + -2.24733 -9.27256 -2.32913 + -2.02727 -7.96546 -1.99557 + -2.26387 -9.25288 -2.34055 + -2.22119 -7.42875 -2.04183 + -2.38264 -6.82561 -2.01289 + -2.38388 -6.72317 -1.9805 + -2.39374 -6.72315 -2.01891 + -2.40339 -6.59023 -2.00777 + -2.51205 -5.393 -2.08624 + -2.48188 -5.36759 -1.9064 + -2.38926 -5.30132 -1.50372 + -2.3896 -5.34132 -1.50372 + -2.20849 -5.29385 -1.12705 + -2.20736 -5.39339 -1.12705 + -1.94326 -12.1189 -2.40886 + -2.24733 -9.27256 -2.32913 + -2.26852 -9.29269 -2.36208 + -2.26387 -9.25288 -2.34055 + -2.26402 -9.25275 -2.34163 + -2.40848 -6.72313 -2.13998 + -2.38873 -9.25254 -2.83312 + -2.49284 -6.72303 -2.83325 + -2.47313 -6.72305 -3.46656 + -2.54105 -5.39297 -3.4666 + -1.99519 -7.96453 -1.9715 + -2.01367 -7.95418 -1.98133 + -1.42402 -8.7969 -1.85344 + -2.02727 -7.96546 -1.99557 + -2.13515 -9.27201 -2.2223 + -2.24733 -9.27256 -2.32913 + -1.91953 -12.139 -2.37715 + -1.94326 -12.1189 -2.40886 + -1.93698 -4.12693 -0.796305 + -2.20878 -5.25386 -1.12705 + -1.97416 -5.21273 -0.830558 + -2.20849 -5.29385 -1.12705 + -1.9839 -5.25401 -0.838 + -2.20736 -5.39339 -1.12705 + -1.98264 -5.39367 -0.833062 + -2.00344 -6.72365 -1.12692 + -2.43209 -0.140299 -4.06015 + -2.44242 -1.64069 -4.07292 + -2.54111 -1.64056 -3.4527 + -2.54154 -1.97916 -3.4529 + -2.55644 -1.97914 -2.83133 + -2.55687 -2.31774 -2.83024 + -2.54018 -2.31776 -2.07819 + -2.51821 -4.10619 -2.06485 + -2.38365 -4.10636 -1.52312 + -2.379 -4.12637 -1.50371 + -2.37083 -4.08638 -1.48558 + -2.21678 -4.12657 -1.12705 + 13.2987 -2.58613 -3.67572 + 13.3002 -2.61961 -3.70219 + 19.1128 -3.19439 -3.34033 + 13.3032 -2.6267 -3.7625 + 19.1159 -3.20148 -3.40064 + 22.1021 -4.65439 -3.42339 + 19.1113 -3.40888 -3.63561 + 22.1023 -3.67312 -3.40648 + 19.1113 -2.97441 -3.63226 + 22.1024 -3.30156 -3.40358 + 22.152 -2.50534 -3.36739 + 22.152 -3.30758 -3.34979 + 22.1024 -3.30156 -3.40358 + 22.152 -3.67813 -3.35268 + 22.1023 -3.67312 -3.40648 + 22.152 -4.65645 -3.36953 + 22.1021 -4.65439 -3.42339 + 22.152 -3.49737 -3.17094 + 22.152 -3.67813 -3.35268 + 22.152 -3.30866 -3.19242 + 22.152 -3.30758 -3.34979 + 22.152 -2.50534 -3.35026 + 22.152 -2.50534 -3.36739 + 22.1023 -3.6749 -3.10169 + 22.152 -3.49737 -3.17094 + 22.1023 -3.48664 -3.12438 + 22.152 -3.30866 -3.19242 + 22.1024 -3.29462 -3.14622 + 22.152 -2.50534 -3.35026 + 22.1027 -2.47836 -3.33834 + 22.152 -2.50534 -3.36739 + 22.1027 -2.47836 -3.39011 + 22.1024 -3.30156 -3.40358 + 19.1114 -2.01216 -3.61695 + 19.1113 -2.97441 -3.63226 + 19.1113 -3.16091 -3.31393 + 19.1411 -3.19383 -3.30872 + 22.1023 -3.48664 -3.12438 + 19.1113 -3.41098 -3.28442 + 22.1023 -3.6749 -3.10169 + 1.90522 -13.8341 -3.96415 + 1.80085 -12.1414 -4.57135 + 2.16296 -12.1414 -4.0725 + 2.05156 -9.27543 -4.61732 + 2.3222 -9.27544 -4.0983 + 2.13513 -6.72624 -4.56153 + 0.662817 -17.2724 -2.97599 + 0.159656 -18.1656 -3.25849 + 0.189305 -18.1656 -3.30287 + -0.205209 -18.1654 -3.46001 + -0.160695 -18.1654 -3.52654 + -0.615846 -17.2717 -3.86033 + -0.339754 -17.272 -4.00686 + -0.506267 -16.309 -4.26842 + -0.006473 -16.3096 -4.34116 + -0.005763 -15.3396 -4.60299 + 0.6358 -15.3396 -4.50999 + 0.7226 -14.5544 -4.68142 + 1.33593 -14.5545 -4.37639 + 1.45467 -13.8538 -4.45596 + 1.90522 -13.8341 -3.96415 + 1.47147 -13.8341 -4.44333 + 1.80085 -12.1414 -4.57135 + 2.04335 -9.25544 -4.6352 + 2.05156 -9.27543 -4.61732 + 2.02149 -9.29544 -4.64196 + 1.80085 -12.1414 -4.57135 + 1.77055 -12.1414 -4.59499 + 1.47147 -13.8341 -4.44333 + 1.44325 -13.8141 -4.46756 + 1.45467 -13.8538 -4.45596 + 0.7869 -13.8537 -4.78539 + 0.7226 -14.5544 -4.68142 + -0.005197 -14.5544 -4.78853 + -0.005763 -15.3396 -4.60299 + -0.647384 -15.3388 -4.5104 + -0.506267 -16.309 -4.26842 + -0.924735 -16.3085 -4.06063 + -0.615846 -17.2717 -3.86033 + -0.800401 -17.2714 -3.64088 + -0.205209 -18.1654 -3.46001 + -0.220876 -18.1654 -3.38151 + 0.159656 -18.1656 -3.25849 + 0.12265 -18.1656 -3.22149 + 0.662817 -17.2724 -2.97599 + 2.2056 -0.16343 -1.2003 + 2.37167 -1.62385 -1.5109 + 2.35901 -0.16344 -1.54941 + 2.38558 -1.64384 -1.54787 + 2.37257 -0.143442 -1.58743 + 2.53819 -1.96245 -2.0602 + 2.38558 -1.64384 -1.54787 + 2.37989 -1.66384 -1.52847 + 2.37167 -1.62385 -1.5109 + 2.21495 -1.62385 -1.15441 + 2.2056 -0.16343 -1.2003 + 1.93705 -0.163422 -0.893126 + 2.2056 -0.16343 -1.2003 + 2.20639 -0.123513 -1.20703 + 2.35901 -0.16344 -1.54941 + 2.36499 -0.123519 -1.56825 + 2.37257 -0.143442 -1.58743 + 2.52179 -0.143446 -2.09088 + 2.38558 -1.64384 -1.54787 + 2.5382 -1.64385 -2.0627 + 2.53819 -1.96245 -2.0602 + 2.4189 -1.9933 -4.38922 + 6.43347 -2.10781 -4.19889 + 2.41657 -1.98617 -4.33399 + 6.43114 -2.10068 -4.14366 + 2.41268 -1.93298 -4.31346 + 2.36158 -1.62212 -4.31207 + 2.38204 -1.98144 -4.26157 + 2.39616 -1.63276 -4.35628 + 2.40429 -1.98222 -4.29145 + 2.41268 -1.93298 -4.31346 + 2.41868 -2.03194 -4.29893 + 2.41657 -1.98617 -4.33399 + 2.43812 -2.32559 -4.25456 + 2.4189 -1.9933 -4.38922 + 2.43812 -2.32559 -4.25456 + 2.41868 -2.03194 -4.29893 + 2.40382 -2.32345 -4.20926 + 2.38204 -1.98144 -4.26157 + 2.44162 -1.98234 -4.09173 + 2.4415 -1.64215 -4.09012 + 6.42998 -2.04736 -4.12118 + 6.47979 -2.09996 -4.11274 + 10.258 -2.31544 -3.86172 + 6.42998 -2.14683 -4.11063 + 6.42999 -2.42897 -4.07984 + -2.33485 0.127377 -1.56974 + -2.20042 -0.120667 -1.20844 + -2.17811 0.127179 -1.20843 + -1.90468 0.126832 -0.891243 + -1.88517 0.374661 -0.891231 + -1.51449 0.126339 -0.618102 + -1.49897 0.374132 -0.618092 + -1.47905 0.394094 -0.610849 + -1.47905 0.394094 -0.610849 + -1.51262 0.414072 -0.630673 + -1.49897 0.374132 -0.618092 + -1.88742 0.414533 -0.89587 + -1.88517 0.374661 -0.891231 + -2.15579 0.375026 -1.20841 + -2.17811 0.127179 -1.20843 + -2.31091 0.375224 -1.56973 + -2.33485 0.127377 -1.56974 + -1.1628 0.125894 -0.483123 + -0.802066 0.393238 -0.348139 + -1.47905 0.394094 -0.610849 + -1.38639 1.87518 -0.668841 + -1.51262 0.414072 -0.630673 + -1.53609 -1.66183 -0.558222 + -1.93397 -1.66133 -0.837138 + -1.5365 -1.98044 -0.552736 + -1.93438 -1.97993 -0.832198 + -1.5369 -2.29903 -0.54725 + -2.37572 -1.66077 -1.52998 + -2.21422 -1.97958 -1.15672 + -2.21382 -1.66098 -1.16103 + -1.93397 -1.66133 -0.837138 + -1.93931 -1.62134 -0.841968 + -1.53609 -1.66183 -0.558222 + -1.55325 -2.33901 -0.558114 + -1.5369 -2.29903 -0.54725 + -1.93478 -2.29853 -0.827259 + -1.93438 -1.97993 -0.832198 + -2.21463 -2.29818 -1.15242 + -2.21422 -1.97958 -1.15672 + -2.37612 -1.97937 -1.5264 + -2.37572 -1.66077 -1.52998 + -1.51741 -1.64186 -0.55136 + -1.53609 -1.66183 -0.558222 + -1.16992 -1.6423 -0.41715 + -1.5365 -1.98044 -0.552736 + -1.17968 -1.98089 -0.414637 + -1.5369 -2.29903 -0.54725 + -1.51828 -2.31906 -0.539674 + -1.55325 -2.33901 -0.558114 + -1.61186 -7.19967 -0.846967 + -1.30357 -6.97768 -0.561074 + -1.33071 -6.94824 -0.559683 + -1.31133 -6.9583 -0.555089 + -1.29326 -6.94425 -0.542328 + -1.30357 -6.97768 -0.561074 + 2.24198 -9.27535 -2.32775 + 1.7797 -12.1414 -2.26192 + 1.91072 -12.1414 -2.37593 + 1.48814 -13.8341 -2.32296 + 1.92268 -12.1612 -2.38983 + 1.65657 -13.8341 -2.4535 + -0.002974 -9.43947 -1.75666 + 0.932314 -12.1414 -1.9983 + 0.872664 -9.28554 -1.78424 + 1.7797 -12.1414 -2.26192 + 2.12973 -9.27467 -2.22099 + 2.24198 -9.27535 -2.32775 + -1.40189 -8.77616 -1.83374 + -0.909463 -9.26429 -1.79079 + -0.873731 -9.24992 -1.77238 + -0.878386 -9.28445 -1.78477 + -0.002974 -9.43947 -1.75666 + -0.004566 -12.1414 -1.87746 + 0.932314 -12.1414 -1.9983 + -0.005625 -13.814 -1.94386 + 0.790403 -13.8141 -2.05336 + 0.767025 -13.8539 -2.05328 + 0.807396 -13.834 -2.0612 + -1.43815 -7.92321 -1.21461 + -1.75901 -7.44016 -1.1302 + -1.50136 -8.07692 -1.35692 + -1.91903 -7.64444 -1.45817 + -1.54765 -8.26117 -1.58207 + -1.40189 -8.77616 -1.83374 + -1.22359 -8.62789 -1.54796 + -0.873731 -9.24992 -1.77238 + -1.15943 -8.39997 -1.34594 + -0.831967 -8.61058 -1.33214 + -1.09621 -8.24625 -1.20363 + -0.794429 -8.41229 -1.19035 + -1.03784 -8.06483 -1.06209 + -1.55387 -7.21792 -0.831192 + -1.75901 -7.44016 -1.1302 + -1.35273 -7.79935 -1.06238 + -1.43815 -7.92321 -1.21461 + -1.09621 -8.24625 -1.20363 + -1.50136 -8.07692 -1.35692 + -1.15943 -8.39997 -1.34594 + -1.22359 -8.62789 -1.54796 + -0.89613 -8.8385 -1.53416 + -0.873731 -9.24992 -1.77238 + -0.550827 -8.98058 -1.51571 + -0.002953 -9.40297 -1.74631 + -2.00412 -7.37417 -1.47062 + -1.93977 -7.61157 -1.46438 + -1.78998 -7.37855 -1.1316 + -1.75901 -7.44016 -1.1302 + -1.61186 -7.19967 -0.846967 + -1.55387 -7.21792 -0.831192 + -1.30357 -6.97768 -0.561074 + -1.67644 -7.01692 -0.849177 + -1.88025 -7.10899 -1.13647 + -1.84678 -7.16449 -1.10616 + -2.01998 -7.33876 -1.48095 + -2.00412 -7.37417 -1.47062 + -1.41999 -6.69661 -0.540455 + -1.45977 -6.7692 -0.592049 + -1.43891 -6.78804 -0.577416 + -1.50158 -6.83687 -0.652686 + -1.47927 -6.86883 -0.64203 + -1.6969 -6.9833 -0.858311 + -1.6969 -6.9833 -0.858311 + -1.45977 -6.7692 -0.592049 + -1.43817 -6.69388 -0.554712 + -1.41999 -6.69661 -0.540455 + -1.42491 -6.67055 -0.542071 + -1.39531 -6.77826 -0.524457 + -1.75759 -6.68924 -0.813558 + -1.45489 -6.62017 -0.563424 + -1.71581 -5.39401 -0.621676 + -1.68446 -5.39405 -0.596837 + -1.68533 -5.17793 -0.61416 + -1.55453 -5.17843 -0.495585 + -0.767427 -6.58601 -0.285656 + -1.55453 -5.17843 -0.495585 + -1.39531 -6.77826 -0.524457 + -1.45579 -6.4662 -0.545406 + -1.42491 -6.67055 -0.542071 + -1.45489 -6.62017 -0.563424 + -1.43817 -6.69388 -0.554712 + -1.75759 -6.68924 -0.813558 + -1.6969 -6.9833 -0.858311 + -0.000668 -5.28154 -0.208678 + -0.100497 -5.18143 -0.211462 + -0.767427 -6.58601 -0.285656 + -0.810045 -5.18053 -0.244307 + -1.55453 -5.17843 -0.495585 + -1.5395 -4.12743 -0.511368 + -1.68533 -5.17793 -0.61416 + -0.749845 -6.65019 -0.289924 + -0.767427 -6.58601 -0.285656 + -1.29326 -6.94425 -0.542328 + -1.39531 -6.77826 -0.524457 + -1.33071 -6.94824 -0.559683 + -1.47927 -6.86883 -0.64203 + -1.67644 -7.01692 -0.849177 + -1.6969 -6.9833 -0.858311 + -1.88025 -7.10899 -1.13647 + -1.75759 -6.68924 -0.813558 + 0.764455 -6.587 -0.285168 + 1.39224 -6.78006 -0.52357 + 0.808862 -5.18158 -0.24379 + 1.55351 -5.18044 -0.494595 + 0.825778 -4.1094 -0.229735 + -0.032937 -3.47868 0.497653 + -0.100497 -5.18143 -0.211462 + 0.099292 -5.18156 -0.211399 + -0.000668 -5.28154 -0.208678 + 0.808862 -5.18158 -0.24379 + -0.001439 -6.48618 -0.23084 + 0.764455 -6.587 -0.285168 + 0.746792 -6.65115 -0.289447 + 1.39224 -6.78006 -0.52357 + 1.28998 -6.94592 -0.541506 + -1.93134 -0.160923 -0.894359 + -2.1997 -0.160585 -1.20171 + -2.21096 -1.62099 -1.15582 + -2.35288 -0.160397 -1.55091 + -2.36746 -1.62079 -1.51241 + -2.38137 -1.64077 -1.54939 + -2.53932 -1.64057 -2.08349 + -2.37612 -1.97937 -1.5264 + -2.38137 -1.64077 -1.54939 + -2.37572 -1.66077 -1.52998 + -2.36746 -1.62079 -1.51241 + -2.21382 -1.66098 -1.16103 + -2.21096 -1.62099 -1.15582 + -1.93931 -1.62134 -0.841968 + -1.93134 -0.160923 -0.894359 + -1.55243 -1.62182 -0.570772 + -2.53738 -0.140165 -2.84518 + -2.53932 -1.64057 -2.08349 + -2.52096 -0.140187 -2.11166 + -2.38137 -1.64077 -1.54939 + -2.36639 -0.140383 -1.58894 + -2.35288 -0.160397 -1.55091 + -2.35879 -0.120469 -1.56976 + -2.1997 -0.160585 -1.20171 + -0.14797 -1.64359 -0.237224 + -0.097103 -0.143256 -0.300065 + -0.820153 -0.142339 -0.34815 + -0.81111 0.125449 -0.348144 + -1.16636 -0.141901 -0.479581 + -1.1628 0.125894 -0.483123 + -1.51256 -0.141462 -0.611013 + -1.53001 -0.121454 -0.618111 + -1.54772 -0.161409 -0.628776 + -1.92419 -0.120995 -0.891255 + -2.49758 0.127585 -3.45267 + -2.53738 -0.140165 -2.84518 + -2.50955 0.127599 -2.84516 + -2.52096 -0.140187 -2.11166 + -2.49332 0.127578 -2.11164 + -2.36639 -0.140383 -1.58894 + -2.33485 0.127377 -1.56974 + -2.35879 -0.120469 -1.56976 + -2.20042 -0.120667 -1.20844 + -2.1997 -0.160585 -1.20171 + -1.92419 -0.120995 -0.891255 + -1.93134 -0.160923 -0.894359 + -1.54772 -0.161409 -0.628776 + -1.55243 -1.62182 -0.570772 + -1.51256 -0.141462 -0.611013 + -1.51741 -1.64186 -0.55136 + -1.16636 -0.141901 -0.479581 + -1.16992 -1.6423 -0.41715 + -0.820153 -0.142339 -0.34815 + -0.822433 -1.64274 -0.28294 + -0.14797 -1.64359 -0.237224 + -0.823298 -2.31994 -0.270133 + 0.001245 -2.32098 -0.214042 + -0.099685 -4.10925 -0.180127 + 0.000143 -4.00941 -0.175518 + 0.099844 -4.10938 -0.180064 + -2.37887 0.395235 -4.06012 + -2.49758 0.127585 -3.45267 + -2.4699 0.395349 -3.45266 + -2.50955 0.127599 -2.84516 + -2.48172 0.395364 -2.84514 + -2.49332 0.127578 -2.11164 + -2.46568 0.395344 -2.11163 + -2.33485 0.127377 -1.56974 + -2.31454 0.395152 -1.58894 + -2.31091 0.375224 -1.56973 + -2.29937 0.415056 -1.55178 + -2.15579 0.375026 -1.20841 + -2.14964 0.414861 -1.20288 + -1.88742 0.414533 -0.89587 + -1.77402 1.85575 -0.947035 + -1.51262 0.414072 -0.630673 + -1.42247 1.85529 -0.687214 + -1.38639 1.87518 -0.668841 + -1.4037 1.89512 -0.677634 + 6.42962 -6.68819 -4.3434 + 6.42926 -6.44268 -4.42667 + 10.2579 -6.66322 -4.08996 + 10.2579 -6.42849 -4.17357 + 22.1021 -6.09021 -3.26684 + 22.1021 -5.94967 -3.31903 + 22.1519 -6.00827 -3.24845 + 22.1519 -5.93363 -3.2673 + 2.64587 -6.57614 -4.43953 + 2.64736 -6.7209 -4.59431 + 6.42962 -6.68819 -4.3434 + 2.65818 -6.43536 -4.69691 + 6.42926 -6.44268 -4.42667 + 22.1519 -5.97906 -3.22248 + 22.1519 -5.74512 -3.15608 + 22.1021 -6.00234 -3.18875 + 22.102 -5.75909 -3.11065 + 10.2579 -6.51641 -3.96477 + 10.2579 -6.11013 -3.83962 + 6.42971 -6.53268 -4.21876 + 6.42982 -6.10325 -4.09413 + 2.45252 -5.39616 -4.0967 + 2.64629 -6.12107 -4.26127 + 6.42982 -6.10325 -4.09413 + 2.64587 -6.57614 -4.43953 + 6.42971 -6.53268 -4.21876 + 6.42962 -6.68819 -4.3434 + 10.2579 -6.51641 -3.96477 + 10.2579 -6.66322 -4.08996 + 22.1021 -6.00234 -3.18875 + 22.1021 -6.09021 -3.26684 + 22.1519 -5.97906 -3.22248 + 22.1519 -6.00827 -3.24845 + 2.50267 0.104458 -2.13005 + 2.54436 -0.143447 -2.84356 + 2.51892 0.104458 -2.84356 + 2.53261 -0.143447 -3.45108 + 2.50732 0.104457 -3.45108 + 2.54653 -1.96245 -3.45127 + 2.54654 -1.64385 -3.45108 + 2.56105 -1.64385 -2.8308 + 2.54436 -0.143447 -2.84356 + 2.52793 -0.143446 -2.13005 + 2.50267 0.104458 -2.13005 + 2.54653 -2.00245 -3.45129 + 2.54653 -1.96245 -3.45127 + 2.56104 -1.96245 -2.82977 + 2.56105 -1.64385 -2.8308 + 2.54434 -1.64385 -2.10187 + 2.52793 -0.143446 -2.13005 + 2.54652 -2.32105 -3.45148 + 2.54653 -2.00245 -3.45129 + 2.56104 -2.00245 -2.82964 + 2.56104 -1.96245 -2.82977 + 2.54433 -1.96245 -2.09937 + 2.54434 -1.64385 -2.10187 + 2.54387 -2.00245 -2.07906 + 2.53819 -1.96245 -2.0602 + 2.37989 -1.96245 -1.52511 + 2.37989 -1.66384 -1.52847 + 2.21776 -1.66384 -1.15961 + 2.21495 -1.62385 -1.15441 + 1.93771 -1.66383 -0.835904 + 1.9431 -1.62384 -0.840731 + 2.54648 -4.10945 -3.46498 + 2.54652 -2.32105 -3.45148 + 2.56103 -2.32105 -2.82861 + 2.56104 -2.00245 -2.82964 + 2.54387 -2.00245 -2.07906 + 2.54433 -1.96245 -2.09937 + 2.53819 -1.96245 -2.0602 + 2.54434 -1.64385 -2.10187 + 2.5382 -1.64385 -2.0627 + 2.52793 -0.143446 -2.13005 + 2.52179 -0.143446 -2.09088 + 2.50267 0.104458 -2.13005 + 2.41857 0.104454 -4.03883 + 2.50732 0.104457 -3.45108 + 2.44286 -0.143444 -4.03883 + 2.53261 -0.143447 -3.45108 + 2.45138 -1.64385 -4.05161 + 2.54654 -1.64385 -3.45108 + 2.45137 -1.96245 -4.05302 + 2.54653 -1.96245 -3.45127 + 2.44824 -2.00244 -4.07295 + 2.54653 -2.00245 -3.45129 + 2.44823 -2.32104 -4.07435 + 2.54652 -2.32105 -3.45148 + 2.45585 -4.10911 -4.04889 + 2.54648 -4.10945 -3.46498 + 2.41327 -5.39612 -4.04946 + 2.32141 0.392159 -1.58746 + 2.49815 0.14425 -2.11005 + 2.47288 0.392155 -2.11005 + 2.51484 0.144249 -2.84356 + 2.4894 0.392155 -2.84356 + 2.50326 0.14425 -3.45108 + 2.47796 0.392155 -3.45108 + 2.40702 0.14407 -4.0781 + 2.38732 0.392157 -4.0586 + 2.2637 -0.0944592 -4.66303 + 2.21947 0.392162 -4.57363 + 2.34326 0.104448 -1.56825 + 2.49649 0.104439 -2.09088 + 2.33946 0.144268 -1.56825 + 2.49815 0.14425 -2.11005 + 2.31774 0.372235 -1.56825 + 2.32141 0.392159 -1.58746 + 2.18616 0.104441 -1.20703 + 2.34326 0.104448 -1.56825 + 2.18262 0.144284 -1.20703 + 2.33946 0.144268 -1.56825 + 2.16239 0.372236 -1.20703 + 2.31774 0.372235 -1.56825 + 1.92995 -0.123485 -0.890028 + 2.18616 0.104441 -1.20703 + 1.9123 0.104431 -0.890028 + 2.18262 0.144284 -1.20703 + 1.90922 0.144308 -0.890028 + 2.16239 0.372236 -1.20703 + 2.39365 -5.59337 -4.0983 + 2.45252 -5.39616 -4.0967 + 2.41327 -5.39612 -4.04946 + 2.49815 -4.10966 -4.09668 + 2.45585 -4.10911 -4.04889 + 2.44819 -3.64216 -4.09205 + 2.44823 -2.32104 -4.07435 + 2.40382 -2.32345 -4.20926 + 2.44824 -2.00244 -4.07295 + 2.44162 -1.98234 -4.09173 + 2.45137 -1.96245 -4.05302 + 2.4415 -1.64215 -4.09012 + 2.45138 -1.64385 -4.05161 + 2.43445 -0.143444 -4.07786 + 2.44286 -0.143444 -4.03883 + 2.40702 0.14407 -4.0781 + 2.41857 0.104454 -4.03883 + 2.50326 0.14425 -3.45108 + 2.50732 0.104457 -3.45108 + 2.51484 0.144249 -2.84356 + 2.51892 0.104458 -2.84356 + 2.49815 0.14425 -2.11005 + 2.50267 0.104458 -2.13005 + 2.49649 0.104439 -2.09088 + 2.52179 -0.143446 -2.09088 + 2.34326 0.104448 -1.56825 + 2.36499 -0.123519 -1.56825 + 2.18616 0.104441 -1.20703 + 2.20639 -0.123513 -1.20703 + 1.92995 -0.123485 -0.890028 + 1.93705 -0.163422 -0.893126 + 2.47201 -6.72625 -3.46498 + 2.3222 -9.27544 -4.0983 + 2.34251 -6.72624 -4.0983 + 2.13513 -6.72624 -4.56153 + 2.21571 -6.59778 -4.41799 + 2.2512 -6.58068 -4.46256 + 2.35236 -6.12254 -4.27505 + 2.37998 -4.12944 -1.5022 + 2.48151 -5.37079 -1.90482 + 2.38467 -4.10944 -1.52161 + 2.51177 -5.39625 -2.08464 + 2.51958 -4.10945 -2.06324 + 2.56335 -5.39625 -2.83166 + 2.56098 -4.10945 -2.83166 + 2.54164 -5.39625 -3.46498 + 2.21504 -4.08944 -1.11981 + 2.37998 -4.12944 -1.5022 + 2.37185 -4.08944 -1.48407 + 2.38467 -4.10944 -1.52161 + 2.38554 -2.32104 -1.54026 + 2.51958 -4.10945 -2.06324 + 2.54386 -2.32105 -2.07657 + 2.56098 -4.10945 -2.83166 + 1.94309 -4.08943 -0.799359 + 2.2151 -2.34104 -1.14434 + 1.94312 -2.34103 -0.829237 + 2.21775 -2.30104 -1.151 + 1.93769 -2.30103 -0.826025 + 2.21775 -2.00244 -1.15504 + 1.9377 -2.00243 -0.830655 + 1.9377 -1.96243 -0.831275 + 1.9377 -2.00243 -0.830655 + 2.21776 -1.96244 -1.15558 + 2.21775 -2.00244 -1.15504 + 2.37989 -2.00244 -1.52466 + 2.37988 -2.30104 -1.5213 + 2.38554 -2.32104 -1.54026 + 2.37193 -2.34104 -1.50251 + 2.37185 -4.08944 -1.48407 + 2.2151 -2.34104 -1.14434 + 2.21504 -4.08944 -1.11981 + 1.94309 -4.08943 -0.799359 + 22.1519 -5.6961 -3.31827 + 22.1519 -5.93363 -3.2673 + 22.1021 -5.70641 -3.37121 + 22.1021 -5.94967 -3.31903 + 10.2579 -6.02223 -4.25718 + 10.2579 -6.42849 -4.17357 + 6.4289 -6.01605 -4.50995 + 6.42926 -6.44268 -4.42667 + 1.36027 -5.99717 -4.87652 + 2.65818 -6.43536 -4.69691 + 1.74495 -6.43359 -4.76236 + 2.64736 -6.7209 -4.59431 + 2.15203 -6.7258 -4.63184 + 2.64587 -6.57614 -4.43953 + 2.2512 -6.58068 -4.46256 + 2.64629 -6.12107 -4.26127 + 2.35236 -6.12254 -4.27505 + 2.45252 -5.39616 -4.0967 + 2.31909 -6.14 -4.23321 + 2.39365 -5.59337 -4.0983 + 2.34251 -6.72624 -4.0983 + 2.41327 -5.39612 -4.04946 + 2.54164 -5.39625 -3.46498 + 2.54648 -4.10945 -3.46498 + 2.56098 -4.10945 -2.83166 + 2.56103 -2.32105 -2.82861 + 2.54386 -2.32105 -2.07657 + 2.54387 -2.00245 -2.07906 + 2.37989 -2.00244 -1.52466 + 2.37989 -1.96245 -1.52511 + 2.21776 -1.96244 -1.15558 + 2.21776 -1.66384 -1.15961 + 1.9377 -1.96243 -0.831275 + 1.93771 -1.66383 -0.835904 + 22.1519 -5.35634 -3.36953 + 22.1519 -5.6961 -3.31827 + 22.1021 -5.36045 -3.4234 + 22.1021 -5.70641 -3.37121 + 10.2579 -5.44445 -4.34079 + 10.2579 -6.02223 -4.25718 + 6.42855 -5.40835 -4.59323 + 6.4289 -6.01605 -4.50995 + 0.987538 -5.39633 -4.98966 + 1.36027 -5.99717 -4.87652 + 0.928722 -1.64381 -4.94858 + 0.928761 -0.143404 -4.91777 + 6.42865 -1.77893 -4.56164 + 6.42868 -0.328738 -4.54017 + 10.258 -2.00608 -4.30912 + 10.2581 -0.632428 -4.28831 + 0.928704 -2.321 -4.95522 + 0.928722 -1.64381 -4.94858 + 6.42863 -2.43404 -4.56626 + 6.42865 -1.77893 -4.56164 + 10.258 -2.62673 -4.31382 + 10.258 -2.00608 -4.30912 + 18.1559 -4.4748 -3.2632 + 19.1113 -3.41098 -3.28442 + 13.2987 -2.89806 -3.63955 + 13.3032 -2.90865 -3.72962 + 13.3032 -2.6267 -3.7625 + 19.1159 -3.42157 -3.37449 + 19.1159 -3.20148 -3.40064 + 19.1113 -3.22067 -3.30703 + 19.1128 -3.19439 -3.34033 + 19.1113 -3.16091 -3.31393 + 13.2987 -2.58613 -3.67572 + 19.1113 -2.96628 -3.33573 + 13.2987 -2.32821 -3.70401 + 19.1114 -2.01216 -3.54225 + 13.2987 -1.10625 -3.93848 + 19.1114 -2.01216 -3.61695 + 13.2987 -1.10631 -4.05773 + 19.1113 -2.97441 -3.63226 + 13.2987 -2.33865 -4.07665 + 19.1113 -3.40888 -3.63561 + 13.2987 -2.89536 -4.08089 + 22.1021 -4.65439 -3.42339 + 10.258 -4.26529 -4.34083 + 22.1021 -4.65438 -3.03255 + 18.2039 -4.52629 -3.257 + 22.102 -5.36045 -3.03256 + 18.1524 -4.57463 -3.25996 + 10.2579 -5.44437 -3.7145 + 22.152 -3.68404 -3.14844 + 22.1021 -4.65438 -3.03255 + 22.152 -4.65779 -3.07968 + 22.102 -5.36045 -3.03256 + 22.1519 -5.35524 -3.07968 + 18.157 -4.57741 -3.34099 + 18.1524 -4.57463 -3.25996 + 18.1559 -4.4748 -3.2632 + 18.2039 -4.52629 -3.257 + 19.1113 -3.41098 -3.28442 + 22.1021 -4.65438 -3.03255 + 22.1023 -3.6749 -3.10169 + 22.152 -3.68404 -3.14844 + 22.152 -3.49737 -3.17094 + 14.1561 -4.39328 -3.49006 + 14.2044 -4.4449 -3.48728 + 14.2078 -4.34507 -3.49052 + 14.2124 -4.34785 -3.57154 + 18.1604 -4.47758 -3.34422 + 14.2089 -4.44768 -3.5683 + 0.928657 -4.1094 -4.99395 + 0.928704 -2.321 -4.95522 + 6.42858 -4.16367 -4.59323 + 6.42863 -2.43404 -4.56626 + 10.258 -4.26529 -4.34083 + 10.258 -2.62673 -4.31382 + 13.2987 -2.89536 -4.08089 + 10.258 -2.00608 -4.30912 + 13.2987 -2.33865 -4.07665 + 10.2581 -0.632428 -4.28831 + 13.2987 -1.10631 -4.05773 + 10.2581 -0.632361 -4.14574 + 13.2987 -1.10625 -3.93848 + 10.258 -1.99443 -3.89666 + 13.2987 -2.32821 -3.70401 + 10.258 -2.31544 -3.86172 + 13.2987 -2.58613 -3.67572 + 13.2689 -2.61317 -3.67429 + 13.2987 -2.64591 -3.66896 + 10.258 -2.62975 -3.82533 + 13.2987 -2.89806 -3.63955 + 10.258 -4.26519 -3.7145 + 14.1561 -4.39328 -3.49006 + 10.2579 -5.44437 -3.7145 + 14.2044 -4.4449 -3.48728 + 18.1524 -4.57463 -3.25996 + 14.2089 -4.44768 -3.5683 + 18.157 -4.57741 -3.34099 + 18.1604 -4.47758 -3.34422 + 18.1559 -4.4748 -3.2632 + 14.2078 -4.34507 -3.49052 + 13.2987 -2.89806 -3.63955 + 14.1561 -4.39328 -3.49006 + 0.910136 0.392196 -4.91777 + 2.21947 0.392162 -4.57363 + 0.928761 -0.143404 -4.91777 + 2.2637 -0.0944592 -4.66303 + 2.21897 -0.143438 -4.68106 + 2.31828 -0.145581 -4.66874 + 6.42994 -0.321159 -4.39892 + 2.39616 -1.63276 -4.35628 + 6.42997 -1.75862 -4.15092 + 2.41268 -1.93298 -4.31346 + 6.42998 -2.04736 -4.12118 + 6.43114 -2.10068 -4.14366 + 6.42998 -2.14683 -4.11063 + 6.43347 -2.10781 -4.19889 + 6.43348 -2.43966 -4.16268 + 2.4189 -1.9933 -4.38922 + 2.44161 -2.33628 -4.3374 + 2.43812 -2.32559 -4.25456 + 6.42999 -2.42897 -4.07984 + 2.49815 -4.10966 -4.09668 + 6.43001 -4.15498 -3.96949 + 2.45252 -5.39616 -4.0967 + 6.42993 -5.39992 -3.96949 + 6.42982 -6.10325 -4.09413 + 10.2579 -5.44437 -3.7145 + 10.2579 -6.11013 -3.83962 + 22.102 -5.36045 -3.03256 + 22.102 -5.75909 -3.11065 + 22.1519 -5.35524 -3.07968 + 22.1519 -5.74512 -3.15608 + 22.152 -4.65779 -3.07968 + 22.1519 -5.97906 -3.22248 + 22.152 -3.68404 -3.14844 + 22.1519 -6.00827 -3.24845 + 22.152 -3.49737 -3.17094 + 22.1519 -5.93363 -3.2673 + 22.152 -3.67813 -3.35268 + 22.1519 -5.6961 -3.31827 + 22.152 -4.65645 -3.36953 + 22.1519 -5.35634 -3.36953 + 22.1021 -4.65439 -3.42339 + 22.1021 -5.36045 -3.4234 + 10.258 -4.26529 -4.34083 + 10.2579 -5.44445 -4.34079 + 6.42858 -4.16367 -4.59323 + 6.42855 -5.40835 -4.59323 + 0.928657 -4.1094 -4.99395 + 0.987538 -5.39633 -4.98966 + 0.004534 0.392218 -5.03861 + 0.910136 0.392196 -4.91777 + 0.004188 -0.143382 -5.03861 + 0.928761 -0.143404 -4.91777 + 0.00323 -1.64378 -5.07196 + 0.928722 -1.64381 -4.94858 + 0.002795 -2.32098 -5.07912 + 0.928704 -2.321 -4.95522 + 0.001653 -4.10938 -5.11992 + 0.928657 -4.1094 -4.99395 + -10.2553 -4.25205 -4.34736 + -10.2533 -2.61349 -4.32035 + -6.42568 -4.15537 -4.59732 + -6.42351 -2.42574 -4.57035 + -0.92543 -4.10821 -4.99454 + -0.923192 -2.31981 -4.95581 + -22.1492 -3.64953 -3.36679 + -22.0995 -3.64458 -3.42056 + -22.1006 -4.62584 -3.43747 + -19.108 -3.3842 -3.64778 + -10.2553 -4.25205 -4.34736 + -13.2944 -2.87819 -4.08936 + -10.2533 -2.61349 -4.32035 + -0.92234 -1.64261 -4.94917 + -0.923192 -2.31981 -4.95581 + -6.42268 -1.77063 -4.56573 + -6.42351 -2.42574 -4.57035 + -10.2525 -1.99284 -4.31565 + -10.2533 -2.61349 -4.32035 + -13.2937 -2.32148 -4.08512 + -13.2944 -2.87819 -4.08936 + -19.1075 -2.94973 -3.64443 + -19.108 -3.3842 -3.64778 + -22.0992 -3.27302 -3.41766 + -22.0995 -3.64458 -3.42056 + -22.1488 -3.27898 -3.3639 + -22.1492 -3.64953 -3.36679 + -22.0997 -3.64636 -3.11577 + -22.1494 -3.65544 -3.16255 + -22.1506 -4.62918 -3.09379 + -22.1492 -3.64953 -3.36679 + -22.1505 -4.62785 -3.38365 + -22.1006 -4.62584 -3.43747 + -10.2509 -0.619118 -4.15227 + -13.2923 -1.08908 -3.94695 + -13.294 -2.31103 -3.71248 + -19.1077 -2.9416 -3.3479 + -19.1079 -3.13623 -3.32611 + -19.1378 -3.16912 -3.32091 + -19.1063 -1.98749 -3.62912 + -19.1063 -1.98748 -3.55442 + -13.2922 -1.08914 -4.0662 + -13.2923 -1.08908 -3.94695 + -10.2508 -0.619184 -4.29484 + -10.2509 -0.619118 -4.15227 + -6.42086 -0.32044 -4.54427 + -19.1095 -3.1697 -3.3525 + -19.1079 -3.13623 -3.32611 + -19.108 -3.196 -3.31921 + -19.1378 -3.16912 -3.32091 + -22.0995 -3.4581 -3.13845 + -19.1077 -2.9416 -3.3479 + -22.0993 -3.26608 -3.1603 + -19.1063 -1.98748 -3.55442 + -22.0984 -2.44982 -3.35242 + -19.1063 -1.98749 -3.62912 + -22.0984 -2.44982 -3.40419 + -0.920461 -0.14221 -4.91835 + -0.92234 -1.64261 -4.94917 + -6.42086 -0.32044 -4.54427 + -6.42268 -1.77063 -4.56573 + -10.2508 -0.619184 -4.29484 + -10.2525 -1.99284 -4.31565 + -13.2922 -1.08914 -4.0662 + -13.2937 -2.32148 -4.08512 + -19.1063 -1.98749 -3.62912 + -19.1075 -2.94973 -3.64443 + -22.0984 -2.44982 -3.40419 + -22.0992 -3.27302 -3.41766 + -22.1477 -2.47673 -3.3815 + -22.1488 -3.27898 -3.3639 + -22.1489 -3.28005 -3.20653 + -22.1492 -3.64953 -3.36679 + -22.1491 -3.46877 -3.18506 + -22.1494 -3.65544 -3.16255 + -22.0995 -3.4581 -3.13845 + -22.0997 -3.64636 -3.11577 + -19.108 -3.196 -3.31921 + -19.1083 -3.3863 -3.2966 + -19.1095 -3.1697 -3.3525 + -0.901145 0.393366 -4.91834 + 0.004534 0.392218 -5.03861 + -0.920461 -0.14221 -4.91835 + 0.004188 -0.143382 -5.03861 + -0.92234 -1.64261 -4.94917 + 0.00323 -1.64378 -5.07196 + -0.923192 -2.31981 -4.95581 + 0.002795 -2.32098 -5.07912 + -0.92543 -4.10821 -4.99454 + 0.001653 -4.10938 -5.11992 + -2.2107 0.395021 -4.57504 + -0.901145 0.393366 -4.91834 + -2.21082 -0.140577 -4.68247 + -0.920461 -0.14221 -4.91835 + -2.31014 -0.142592 -4.67022 + -6.42086 -0.32044 -4.54427 + -6.42219 -0.312859 -4.40301 + -10.2509 -0.619118 -4.15227 + -10.2528 -1.98118 -3.90319 + -13.294 -2.31103 -3.71248 + -13.2943 -2.56895 -3.68419 + -19.1079 -3.13623 -3.32611 + -13.2958 -2.60244 -3.71066 + -19.1095 -3.1697 -3.3525 + -18.1542 -4.45135 -3.27477 + -19.1083 -3.3863 -3.2966 + -18.2023 -4.50278 -3.26859 + -22.0997 -3.64636 -3.11577 + -22.1008 -4.62584 -3.04663 + -22.1506 -4.62918 -3.09379 + -6.47452 -2.0916 -4.11687 + -6.42424 -1.75032 -4.15501 + -10.2532 -2.3022 -3.86825 + -10.2528 -1.98118 -3.90319 + -13.2646 -2.59603 -3.68274 + -13.2943 -2.56895 -3.68419 + -13.2944 -2.62874 -3.67743 + -13.2958 -2.60244 -3.71066 + -13.2989 -2.60953 -3.77097 + -19.1095 -3.1697 -3.3525 + -19.1125 -3.17679 -3.41282 + -19.1083 -3.3863 -3.2966 + -19.1128 -3.39689 -3.38666 + -13.2947 -2.88088 -3.64803 + -13.2992 -2.89147 -3.73809 + -13.2944 -2.62874 -3.67743 + -13.2989 -2.60953 -3.77097 + -0.753037 -14.5535 -2.13751 + -0.666776 -15.3388 -2.262 + -0.714887 -14.5535 -2.12674 + -0.631106 -15.3191 -2.24723 + -0.00653 -15.3199 -2.15641 + -0.006552 -15.3589 -2.16498 + 0.632961 -15.359 -2.25757 + 0.493276 -16.3096 -2.49465 + 2.47115 -5.40515 -1.86842 + 2.48151 -5.37079 -1.90482 + 2.38872 -5.30441 -1.5022 + 2.37998 -4.12944 -1.5022 + 2.21752 -4.12944 -1.12564 + 2.21504 -4.08944 -1.11981 + 1.93751 -4.12943 -0.795071 + 1.94309 -4.08943 -0.799359 + 2.25898 -12.1414 -3.48472 + 2.16296 -12.1414 -4.0725 + 2.42603 -9.27544 -3.48472 + 2.3222 -9.27544 -4.0983 + 2.43048 -9.25547 -3.46498 + 2.47201 -6.72625 -3.46498 + 2.49131 -6.72625 -2.83166 + 2.56335 -5.39625 -2.83166 + 2.40651 -6.72624 -2.13845 + 2.51177 -5.39625 -2.08464 + 2.40151 -6.59333 -2.00624 + 2.48151 -5.37079 -1.90482 + 2.38181 -6.72624 -1.97898 + 2.47115 -5.40515 -1.86842 + 2.42666 -9.29541 -3.44509 + 2.38134 -9.29543 -2.83184 + 2.26087 -12.1215 -3.44506 + 2.1853 -12.1215 -2.85728 + 2.25986 -12.1613 -3.464 + -0.818597 -13.833 -2.06172 + -0.753037 -14.5535 -2.13751 + -0.778255 -13.8529 -2.05377 + -0.714887 -14.5535 -2.12674 + -0.006077 -14.5544 -2.02592 + -0.00653 -15.3199 -2.15641 + 0.618104 -15.3199 -2.24683 + 0.632961 -15.359 -2.25757 + 0.653759 -15.3396 -2.26158 + 0.493276 -16.3096 -2.49465 + 0.805024 -16.3096 -2.64969 + 0.509361 -17.2724 -2.85391 + 0.984664 -16.3097 -2.78408 + 0.662817 -17.2724 -2.97599 + 0.785767 -17.2724 -3.12238 + 0.189305 -18.1656 -3.30287 + 0.204921 -18.1656 -3.38138 + -0.160695 -18.1654 -3.52654 + -0.09411 -18.1655 -3.57097 + -0.339754 -17.272 -4.00686 + -0.007184 -17.2724 -4.05817 + -0.006473 -16.3096 -4.34116 + 0.493276 -16.3096 -4.2681 + 0.6358 -15.3396 -4.50999 + 1.17494 -15.3397 -4.24518 + 1.33593 -14.5545 -4.37639 + 1.74574 -14.5545 -3.91987 + 1.90522 -13.8341 -3.96415 + 2.06226 -13.8341 -3.38138 + 2.16296 -12.1414 -4.0725 + 2.25986 -12.1613 -3.464 + 2.25898 -12.1414 -3.48472 + 2.26087 -12.1215 -3.44506 + 2.42603 -9.27544 -3.48472 + 2.42666 -9.29541 -3.44509 + 2.43048 -9.25547 -3.46498 + 2.38374 -9.2555 -2.83166 + 2.49131 -6.72625 -2.83166 + 2.2587 -9.25556 -2.34024 + 2.40651 -6.72624 -2.13845 + 2.01001 -7.95678 -1.98005 + 2.14449 -7.51135 -1.93574 + 2.01006 -7.93178 -1.97406 + 2.10434 -7.51105 -1.83458 + 2.00089 -7.37676 -1.46934 + 2.0168 -7.34137 -1.47967 + 1.86247 -7.15711 -1.13642 + 1.69377 -6.98549 -0.857232 + 1.86247 -7.15711 -1.13642 + 2.00083 -6.72623 -1.12564 + 2.0168 -7.34137 -1.47967 + 2.19016 -6.72623 -1.5022 + 2.11697 -7.47254 -1.83733 + 2.14999 -7.4728 -1.92046 + 2.14449 -7.51135 -1.93574 + 2.21825 -7.43161 -2.04041 + 2.01001 -7.95678 -1.98005 + 1.99151 -7.9671 -1.97023 + 1.93622 -7.61407 -1.46315 + 1.91543 -7.64692 -1.45695 + 1.77571 -7.40228 -1.12998 + 1.75547 -7.44242 -1.12908 + 1.62497 -7.19081 -0.859486 + -2.38638 -9.29246 -2.8333 + -2.43129 -9.29239 -3.44657 + -2.19378 -12.1186 -2.85868 + -2.26897 -12.1185 -3.4465 + -2.18984 -12.1583 -2.85855 + -2.268 -12.1584 -3.46544 + -2.32638 -9.27255 -4.09972 + -2.26709 -12.1385 -3.48616 + -2.43061 -9.27242 -3.48621 + -2.43129 -9.29239 -3.44657 + -2.43505 -9.25245 -3.46647 + -2.38638 -9.29246 -2.8333 + -2.39876 -1.97912 -4.29298 + -2.37653 -1.97836 -4.26308 + -2.40707 -1.92987 -4.31499 + -2.35558 -1.61908 -4.31357 + -2.39014 -1.62967 -4.3578 + -2.27383 -0.140498 -4.62422 + -2.2515 -6.57777 -4.46399 + -2.31897 -6.137 -4.23469 + -2.35219 -6.1195 -4.27655 + -2.3929 -5.59028 -4.09982 + -2.45153 -5.393 -4.09826 + -2.41231 -5.39301 -4.051 + -2.45322 -4.10594 -4.05046 + -14.2025 -4.42656 -3.49633 + -10.2572 -5.43113 -3.72103 + -14.1542 -4.375 -3.49907 + -10.2557 -4.25195 -3.72103 + -10.2536 -2.61651 -3.83186 + -6.42517 -2.42067 -4.08393 + -6.42478 -2.13853 -4.11472 + -6.42586 -2.09239 -4.14776 + -6.42464 -2.03906 -4.12527 + -2.41102 -1.98305 -4.33553 + -2.40707 -1.92987 -4.31499 + -2.41321 -2.02882 -4.30047 + -2.39876 -1.97912 -4.29298 + -2.43306 -2.32244 -4.25611 + -2.37653 -1.97836 -4.26308 + -2.39878 -2.32035 -4.21079 + -2.44328 -2.31789 -4.07591 + -2.44494 -3.639 -4.0936 + -2.54422 -4.10616 -3.4666 + -2.45322 -4.10594 -4.05046 + -2.54105 -5.39297 -3.4666 + -2.41231 -5.39301 -4.051 + -2.47313 -6.72305 -3.46656 + -2.3929 -5.59028 -4.09982 + -2.34324 -6.72322 -4.09979 + -2.31897 -6.137 -4.23469 + -2.21606 -6.59492 -4.4194 + -2.2515 -6.57777 -4.46399 + -2.15242 -6.72302 -4.63321 + -22.1016 -5.3319 -3.04663 + -10.2572 -5.43113 -3.72103 + -18.1509 -4.55118 -3.27153 + -14.2025 -4.42656 -3.49633 + -18.1554 -4.55396 -3.35255 + -0.985976 -5.39506 -4.99028 + -1.35956 -5.99541 -4.87739 + -6.42725 -5.40004 -4.59732 + -6.42844 -6.00774 -4.51405 + -10.2568 -5.4312 -4.34732 + -10.2576 -6.00898 -4.26371 + -22.1015 -5.33191 -3.43747 + -22.1019 -5.67787 -3.38529 + -22.1513 -5.32774 -3.38365 + -22.1518 -5.66749 -3.33239 + -22.1515 -5.32663 -3.09379 + -22.152 -5.71651 -3.1702 + -22.1016 -5.3319 -3.04663 + -22.1021 -5.73055 -3.12473 + -10.2572 -5.43113 -3.72103 + -10.258 -6.09688 -3.84615 + -6.42902 -5.39162 -3.97359 + -6.42973 -6.09495 -4.09822 + -2.45153 -5.393 -4.09826 + -2.64612 -6.11765 -4.26296 + -2.35219 -6.1195 -4.27655 + -2.64618 -6.57272 -4.44122 + -2.2515 -6.57777 -4.46399 + -2.64776 -6.71748 -4.59599 + -2.15242 -6.72302 -4.63321 + -2.65815 -6.43192 -4.69861 + -1.74487 -6.43133 -4.76347 + -1.35956 -5.99541 -4.87739 + -2.04714 -9.25289 -4.63646 + -0.928741 -6.72501 -4.99454 + -0.949996 -9.25423 -4.99453 + -3.7e-05 -6.72618 -5.11992 + -0.001736 -9.25538 -5.11992 + 0.928588 -6.7262 -4.99395 + 0.946441 -9.25541 -4.99395 + 2.01205 -6.72623 -4.66274 + -1.68018 -6.50675 -4.76527 + -0.928741 -6.72501 -4.99454 + -2.01241 -6.72364 -4.66403 + -2.04714 -9.25289 -4.63646 + -2.09773 -6.77329 -4.63654 + -2.05539 -9.27288 -4.61858 + -2.32638 -9.27255 -4.09972 + -0.941368 -12.1402 -1.9989 + -2.13515 -9.27201 -2.2223 + -1.78858 -12.1391 -2.26306 + -1.91953 -12.139 -2.37715 + -1.93151 -12.1587 -2.39106 + -1.94326 -12.1189 -2.40886 + -2.19378 -12.1186 -2.85868 + -2.26852 -9.29269 -2.36208 + -2.38638 -9.29246 -2.8333 + -2.38873 -9.25254 -2.83312 + -2.43505 -9.25245 -3.46647 + -2.47313 -6.72305 -3.46656 + -2.43061 -9.27242 -3.48621 + -2.34324 -6.72322 -4.09979 + -2.32638 -9.27255 -4.09972 + -2.13556 -6.72348 -4.56289 + -2.09773 -6.77329 -4.63654 + -2.15242 -6.72302 -4.63321 + -2.01241 -6.72364 -4.66403 + -1.74487 -6.43133 -4.76347 + -1.68018 -6.50675 -4.76527 + -1.35956 -5.99541 -4.87739 + -1.28125 -6.05587 -4.88677 + -0.985976 -5.39506 -4.99028 + -0.927174 -5.48687 -4.99454 + -0.877508 -5.39507 -5.00123 + -0.928741 -6.72501 -4.99454 + 0.000822 -5.39618 -5.11992 + -3.7e-05 -6.72618 -5.11992 + 0.879077 -5.3962 -5.00067 + 0.928621 -5.48807 -4.99395 + 0.928624 -5.3462 -4.99395 + -1.18669 -15.3381 -4.24594 + -1.34658 -14.5527 -4.37724 + -0.733062 -14.5535 -4.68188 + -0.79639 -13.8527 -4.78589 + -0.004708 -13.8538 -4.90106 + -0.004681 -13.8141 -4.90598 + 0.790393 -13.8142 -4.79 + -0.003568 -12.1613 -5.05076 + 0.930625 -12.1613 -4.92998 + 0.912336 -12.1214 -4.93478 + 0.950876 -12.1414 -4.92421 + 0.925829 -9.2954 -4.99613 + -2.17069 -12.1386 -4.07388 + -1.80827 -12.1391 -4.5725 + -1.91521 -13.8316 -3.96537 + -1.48115 -13.8322 -4.44427 + -1.75669 -14.5522 -3.92099 + -1.34658 -14.5527 -4.37724 + -1.54718 -15.3377 -3.84985 + -1.18669 -15.3381 -4.24594 + -1.20446 -16.3081 -3.74943 + -0.801582 -13.813 -2.05386 + -0.941368 -12.1402 -1.9989 + -1.49917 -13.8321 -2.32391 + -1.78858 -12.1391 -2.26306 + -1.66752 -13.8319 -2.45456 + -1.93151 -12.1587 -2.39106 + -1.91593 -13.8316 -2.83278 + -2.18984 -12.1583 -2.85855 + -2.07262 -13.8314 -3.38269 + -2.268 -12.1584 -3.46544 + -1.91521 -13.8316 -3.96537 + -2.26709 -12.1385 -3.48616 + -2.17069 -12.1386 -4.07388 + -2.32638 -9.27255 -4.09972 + -1.80827 -12.1391 -4.5725 + -2.05539 -9.27288 -4.61858 + -1.77795 -12.1391 -4.59612 + -2.02533 -9.29292 -4.6432 + -0.969525 -9.29418 -4.98702 + -0.949996 -9.25423 -4.99453 + -0.929436 -9.29424 -4.9967 + -0.001736 -9.25538 -5.11992 + -0.001763 -9.29537 -5.11945 + 0.946441 -9.25541 -4.99395 + 0.925829 -9.2954 -4.99613 + 0.965912 -9.29538 -4.98643 + 0.950876 -12.1414 -4.92421 + -2.53976 -1.97916 -2.08084 + -2.3822 -2.31796 -1.54178 + -2.37653 -2.29797 -1.52282 + -2.36864 -2.33798 -1.50402 + -2.21204 -2.33818 -1.14575 + -2.21425 -4.08658 -1.12122 + -1.94026 -2.33852 -0.830474 + -1.94251 -4.08692 -0.800596 + -1.55552 -4.08741 -0.523613 + -1.5395 -4.12743 -0.511368 + -1.52061 -4.10746 -0.504332 + -0.810045 -5.18053 -0.244307 + 2.0236 -7.96808 -1.99428 + 2.12973 -9.27467 -2.22099 + 2.25855 -9.25569 -2.33916 + 2.24198 -9.27535 -2.32775 + 2.26317 -9.29551 -2.3607 + 1.91072 -12.1414 -2.37593 + 1.93449 -12.1214 -2.40762 + 1.92268 -12.1612 -2.38983 + 2.18131 -12.1612 -2.85716 + 1.65657 -13.8341 -2.4535 + 1.90522 -13.8341 -2.83156 + 1.74574 -14.5545 -2.86266 + 1.88965 -14.5545 -3.38138 + 1.66168 -15.3397 -3.38138 + 1.53518 -15.3397 -3.84887 + 1.19113 -16.3097 -3.74867 + 0.911611 -16.3097 -4.06004 + 0.601351 -17.2724 -3.85994 + 0.325353 -17.2724 -4.00665 + 0.078276 -18.1656 -3.57091 + -0.007912 -18.1656 -3.58653 + 0.144833 -18.1656 -3.52644 + 0.189305 -18.1656 -3.45988 + 0.785767 -17.2724 -3.64037 + 0.850526 -17.2724 -3.38138 + 1.28929 -16.3097 -3.38138 + 1.19113 -16.3097 -3.01408 + 1.53518 -15.3397 -2.91389 + 1.2486 -15.3397 -2.5986 + 1.46769 -14.5545 -2.5075 + 1.06798 -15.3397 -2.46503 + 1.29212 -14.5545 -2.37559 + 0.740955 -14.5544 -2.13704 + 0.807396 -13.834 -2.0612 + 0.702797 -14.5544 -2.12629 + 0.767025 -13.8539 -2.05328 + -0.005649 -13.8539 -1.9469 + -0.005625 -13.814 -1.94386 + -0.801582 -13.813 -2.05386 + -0.004566 -12.1414 -1.87746 + -0.941368 -12.1402 -1.9989 + -0.878386 -9.28445 -1.78477 + -2.13515 -9.27201 -2.2223 + -0.909463 -9.26429 -1.79079 + -1.42402 -8.7969 -1.85344 + -1.40189 -8.77616 -1.83374 + -1.99519 -7.96453 -1.9715 + -1.91903 -7.64444 -1.45817 + -2.01369 -7.92918 -1.97535 + -1.93977 -7.61157 -1.46438 + -2.10752 -7.50833 -1.83592 + -2.00412 -7.37417 -1.47062 + -2.1201 -7.4698 -1.83868 + -2.01998 -7.33876 -1.48095 + -2.19254 -6.7234 -1.5036 + -1.88025 -7.10899 -1.13647 + -2.00344 -6.72365 -1.12692 + -1.75759 -6.68924 -0.813558 + -1.98264 -5.39367 -0.833062 + -1.71581 -5.39401 -0.621676 + -1.71578 -5.22178 -0.636491 + -1.68533 -5.17793 -0.61416 + -1.97416 -5.21273 -0.830558 + -1.5395 -4.12743 -0.511368 + -1.93698 -4.12693 -0.796305 + -1.94251 -4.08692 -0.800596 + -2.21678 -4.12657 -1.12705 + -2.21425 -4.08658 -1.12122 + -2.37083 -4.08638 -1.48558 + -2.36864 -2.33798 -1.50402 + -2.38365 -4.10636 -1.52312 + -2.3822 -2.31796 -1.54178 + -2.54018 -2.31776 -2.07819 + -2.53976 -1.97916 -2.08084 + -2.55644 -1.97914 -2.83133 + -2.55601 -1.64055 -2.83243 + -2.54111 -1.64056 -3.4527 + -2.52525 -0.140181 -3.45269 + -2.43209 -0.140299 -4.06015 + -2.40548 0.127467 -4.06014 + -2.27383 -0.140498 -4.62422 + 0.868047 -9.251 -1.77185 + 1.21875 -8.62946 -1.54719 + 0.891007 -8.83965 -1.5336 + 1.15479 -8.40146 -1.3452 + 0.827047 -8.61165 -1.33161 + 0.903769 -9.26541 -1.79023 + 1.41919 -8.79873 -1.85253 + 0.868047 -9.251 -1.77185 + 1.39708 -8.77797 -1.83285 + 1.21875 -8.62946 -1.54719 + 1.54334 -8.26317 -1.58108 + 1.49715 -8.07886 -1.35596 + 1.34868 -7.80109 -1.06152 + 1.43405 -7.92507 -1.21369 + 1.75547 -7.44242 -1.12908 + 1.49715 -8.07886 -1.35596 + 1.91543 -7.64692 -1.45695 + 1.54334 -8.26317 -1.58108 + 1.99151 -7.9671 -1.97023 + 1.39708 -8.77797 -1.83285 + 2.0236 -7.96808 -1.99428 + 1.41919 -8.79873 -1.85253 + 2.12973 -9.27467 -2.22099 + 0.903769 -9.26541 -1.79023 + 0.872664 -9.28554 -1.78424 + 0.868047 -9.251 -1.77185 + -0.002953 -9.40297 -1.74631 + -0.39002 -7.50641 -0.549798 + -0.401931 -7.53935 -0.568157 + -0.001991 -7.57286 -0.560327 + -0.112042 -7.83555 -0.740079 + 0.107761 -7.83569 -0.740008 + 0.139607 -8.08519 -0.897683 + 0.399095 -8.09156 -0.902476 + 0.447489 -8.30236 -1.04045 + 0.683048 -8.02102 -0.910367 + 0.731441 -8.23182 -1.04834 + 1.03345 -8.06617 -1.06143 + 0.789675 -8.41331 -1.18984 + 1.09168 -8.24767 -1.20293 + -0.234237 -7.04998 -0.319305 + -0.39002 -7.50641 -0.549798 + -0.001974 -7.53792 -0.541209 + -0.001991 -7.57286 -0.560327 + 0.397908 -7.53987 -0.567902 + 0.367249 -7.84207 -0.744802 + 0.595108 -7.79565 -0.746543 + 0.683048 -8.02102 -0.910367 + 0.949384 -7.90311 -0.917428 + 1.03345 -8.06617 -1.06143 + 1.26462 -7.63803 -0.917523 + -0.843194 -7.40483 -0.559455 + -0.401931 -7.53935 -0.568157 + -0.82608 -7.37501 -0.54011 + -0.39002 -7.50641 -0.549798 + -0.483033 -6.98578 -0.301272 + -0.234237 -7.04998 -0.319305 + -1.26855 -7.63639 -0.91833 + -0.953654 -7.90188 -0.918034 + -1.13668 -7.49515 -0.757796 + -0.865526 -7.67662 -0.754154 + -0.843194 -7.40483 -0.559455 + -0.599347 -7.79488 -0.746924 + -0.401931 -7.53935 -0.568157 + -0.371535 -7.84159 -0.745037 + -0.112042 -7.83555 -0.740079 + -0.144126 -8.085 -0.897773 + 0.139607 -8.08519 -0.897683 + -0.144225 -8.30717 -1.03392 + 0.139508 -8.30735 -1.03383 + 0.160901 -8.51716 -1.17257 + 0.468882 -8.51217 -1.1792 + 0.506254 -8.7105 -1.32096 + 0.789675 -8.41331 -1.18984 + 0.839338 -7.40591 -0.558919 + 0.822251 -7.37608 -0.539585 + 0.386028 -7.50691 -0.54955 + 0.230688 -7.05028 -0.319157 + -0.001774 -7.05392 -0.329901 + -0.001439 -6.48618 -0.23084 + 1.13283 -7.49662 -0.757073 + 1.55043 -7.21993 -0.830203 + 0.839338 -7.40591 -0.558919 + 1.30026 -6.97936 -0.560244 + 0.822251 -7.37608 -0.539585 + 1.30804 -6.95999 -0.554255 + 1.28998 -6.94592 -0.541506 + 1.32745 -6.94996 -0.558836 + 1.39224 -6.78006 -0.52357 + 1.47616 -6.87074 -0.641089 + 1.49852 -6.83881 -0.651731 + 1.47616 -6.87074 -0.641089 + 1.67327 -7.01908 -0.84811 + 1.32745 -6.94996 -0.558836 + 1.62497 -7.19081 -0.859486 + 1.55043 -7.21993 -0.830203 + 1.75547 -7.44242 -1.12908 + 1.26462 -7.63803 -0.917523 + 1.34868 -7.80109 -1.06152 + 1.03345 -8.06617 -1.06143 + 1.43405 -7.92507 -1.21369 + 1.09168 -8.24767 -1.20293 + 1.15479 -8.40146 -1.3452 + 0.789675 -8.41331 -1.18984 + 0.827047 -8.61165 -1.33161 + 0.506254 -8.7105 -1.32096 + 0.891007 -8.83965 -1.5336 + 0.545472 -8.98128 -1.51536 + 0.868047 -9.251 -1.77185 + 0.200029 -8.99587 -1.50608 + -0.002953 -9.40297 -1.74631 + -0.20541 -8.99562 -1.50621 + -0.550827 -8.98058 -1.51571 + -0.511309 -8.70985 -1.32129 + -0.831967 -8.61058 -1.33214 + -0.473772 -8.51156 -1.1795 + -0.794429 -8.41229 -1.19035 + -0.736053 -8.23087 -1.04881 + -1.03784 -8.06483 -1.06209 + -0.953654 -7.90188 -0.918034 + -1.35273 -7.79935 -1.06238 + -1.26855 -7.63639 -0.91833 + -1.55387 -7.21792 -0.831192 + -1.13668 -7.49515 -0.757796 + -1.30357 -6.97768 -0.561074 + -0.843194 -7.40483 -0.559455 + -1.29326 -6.94425 -0.542328 + -0.82608 -7.37501 -0.54011 + -0.749845 -6.65019 -0.289924 + -0.483033 -6.98578 -0.301272 + -0.001439 -6.48618 -0.23084 + -0.234237 -7.04998 -0.319305 + -0.001774 -7.05392 -0.329901 + -0.001974 -7.53792 -0.541209 + 0.386028 -7.50691 -0.54955 + 0.397908 -7.53987 -0.567902 + 0.839338 -7.40591 -0.558919 + 0.861444 -7.67774 -0.753603 + 1.13283 -7.49662 -0.757073 + 1.26462 -7.63803 -0.917523 + 1.55043 -7.21993 -0.830203 + 2.3917 -6.72624 -2.01739 + 2.38045 -6.82869 -2.01137 + 2.25855 -9.25569 -2.33916 + 2.21825 -7.43161 -2.04041 + 2.0236 -7.96808 -1.99428 + 2.01001 -7.95678 -1.98005 + 1.99151 -7.9671 -1.97023 + 2.01006 -7.93178 -1.97406 + 1.93622 -7.61407 -1.46315 + 2.00089 -7.37676 -1.46934 + 1.86881 -7.20054 -1.16342 + 1.86247 -7.15711 -1.13642 + 1.67327 -7.01908 -0.84811 + 1.69377 -6.98549 -0.857232 + 1.49852 -6.83881 -0.651731 + 1.45675 -6.77109 -0.59112 + 1.47616 -6.87074 -0.641089 + 1.43586 -6.7899 -0.5765 + 1.39224 -6.78006 -0.52357 + 0.001245 -2.32098 -0.214042 + 0.000143 -4.00941 -0.175518 + 0.825778 -4.1094 -0.229735 + 0.099844 -4.10938 -0.180064 + 0.099292 -5.18156 -0.211399 + 0.031791 -3.47873 0.497674 + -0.032937 -3.47868 0.497653 + -0.032674 -3.13131 0.507804 + -0.100497 -5.18143 -0.211462 + -0.099685 -4.10925 -0.180127 + -0.810045 -5.18053 -0.244307 + -0.825586 -4.10833 -0.230261 + -1.52061 -4.10746 -0.504332 + -1.51828 -2.31906 -0.539674 + -1.55552 -4.08741 -0.523613 + -1.55325 -2.33901 -0.558114 + -1.94026 -2.33852 -0.830474 + -1.93478 -2.29853 -0.827259 + -2.21204 -2.33818 -1.14575 + -2.21463 -2.29818 -1.15242 + -2.37653 -2.29797 -1.52282 + -2.37612 -1.97937 -1.5264 + -2.53976 -1.97916 -2.08084 + -2.53932 -1.64057 -2.08349 + -2.55601 -1.64055 -2.83243 + -2.53738 -0.140165 -2.84518 + -2.52525 -0.140181 -3.45269 + -2.49758 0.127585 -3.45267 + -2.40548 0.127467 -4.06014 + -2.37887 0.395235 -4.06012 + -2.27383 -0.140498 -4.62422 + -2.2107 0.395021 -4.57504 + -2.2555 -0.0915412 -4.66447 + -2.21082 -0.140577 -4.68247 + -2.27383 -0.140498 -4.62422 + -2.31014 -0.142592 -4.67022 + -2.39014 -1.62967 -4.3578 + -6.42424 -1.75032 -4.15501 + -6.42464 -2.03906 -4.12527 + -6.47452 -2.0916 -4.11687 + -6.42478 -2.13853 -4.11472 + -10.2532 -2.3022 -3.86825 + -10.2536 -2.61651 -3.83186 + -13.2947 -2.88088 -3.64803 + -14.1542 -4.375 -3.49907 + -14.2058 -4.32672 -3.49956 + -14.2025 -4.42656 -3.49633 + -14.207 -4.42933 -3.57735 + -18.1554 -4.55396 -3.35255 + -14.2104 -4.3295 -3.58059 + -18.1587 -4.45413 -3.35579 + -18.1542 -4.45135 -3.27477 + -18.1509 -4.55118 -3.27153 + -18.2023 -4.50278 -3.26859 + -22.1016 -5.3319 -3.04663 + -22.1008 -4.62584 -3.04663 + -22.1515 -5.32663 -3.09379 + -22.1506 -4.62918 -3.09379 + -22.1513 -5.32774 -3.38365 + -22.1505 -4.62785 -3.38365 + -22.1015 -5.33191 -3.43747 + -22.1006 -4.62584 -3.43747 + -10.2568 -5.4312 -4.34732 + -10.2553 -4.25205 -4.34736 + -6.42725 -5.40004 -4.59732 + -6.42568 -4.15537 -4.59732 + -0.926995 -5.34501 -4.99454 + -0.92543 -4.10821 -4.99454 + -0.877508 -5.39507 -5.00123 + 0.001653 -4.10938 -5.11992 + 0.000822 -5.39618 -5.11992 + 0.928657 -4.1094 -4.99395 + 0.928624 -5.3462 -4.99395 + 0.987538 -5.39633 -4.98966 + 0.928621 -5.48807 -4.99395 + 1.36027 -5.99717 -4.87652 + 1.28189 -6.05753 -4.88595 + 1.74495 -6.43359 -4.76236 + 1.68017 -6.50892 -4.7642 + 2.15203 -6.7258 -4.63184 + 2.01205 -6.72623 -4.66274 + 2.09729 -6.776 -4.6352 + 0.946441 -9.25541 -4.99395 + 2.04335 -9.25544 -4.6352 + 0.965912 -9.29538 -4.98643 + 2.02149 -9.29544 -4.64196 + 0.950876 -12.1414 -4.92421 + 1.77055 -12.1414 -4.59499 + 0.930625 -12.1613 -4.92998 + 1.44325 -13.8141 -4.46756 + 0.790393 -13.8142 -4.79 + 0.7869 -13.8537 -4.78539 + -0.004708 -13.8538 -4.90106 + -0.005197 -14.5544 -4.78853 + -0.733062 -14.5535 -4.68188 + -0.647384 -15.3388 -4.5104 + -1.18669 -15.3381 -4.24594 + -0.924735 -16.3085 -4.06063 + -1.20446 -16.3081 -3.74943 + -0.800401 -17.2714 -3.64088 + -0.865325 -17.2713 -3.38192 + -0.220876 -18.1654 -3.38151 + -0.205309 -18.1654 -3.30299 + 0.12265 -18.1656 -3.22149 + 0.078276 -18.1656 -3.19184 + 0.325353 -17.2724 -2.7561 + -0.007616 -17.2724 -2.70459 + -0.007084 -16.3096 -2.42159 + -0.507397 -16.309 -2.49497 + -0.646006 -15.3581 -2.25798 + -1.08087 -15.3383 -2.46572 + -0.666776 -15.3388 -2.262 + -1.30405 -14.5528 -2.37642 + -0.753037 -14.5535 -2.13751 + -1.49917 -13.8321 -2.32391 + -0.818597 -13.833 -2.06172 + -0.801582 -13.813 -2.05386 + -0.778255 -13.8529 -2.05377 + -0.005649 -13.8539 -1.9469 + -0.006077 -14.5544 -2.02592 + 0.702797 -14.5544 -2.12629 + 0.618104 -15.3199 -2.24683 + 0.740955 -14.5544 -2.13704 + 0.653759 -15.3396 -2.26158 + 1.06798 -15.3397 -2.46503 + 0.805024 -16.3096 -2.64969 + 1.2486 -15.3397 -2.5986 + 0.984664 -16.3097 -2.78408 + 1.19113 -16.3097 -3.01408 + 0.785767 -17.2724 -3.12238 + 0.850526 -17.2724 -3.38138 + 0.204921 -18.1656 -3.38138 + 0.189305 -18.1656 -3.45988 + -0.09411 -18.1655 -3.57097 + -0.007912 -18.1656 -3.58653 + -0.007184 -17.2724 -4.05817 + 0.325353 -17.2724 -4.00665 + 0.493276 -16.3096 -4.2681 + 0.911611 -16.3097 -4.06004 + 1.17494 -15.3397 -4.24518 + 1.53518 -15.3397 -3.84887 + 1.74574 -14.5545 -3.91987 + 1.88965 -14.5545 -3.38138 + 2.06226 -13.8341 -3.38138 + 1.90522 -13.8341 -2.83156 + 2.25986 -12.1613 -3.464 + 2.18131 -12.1612 -2.85716 + 2.1853 -12.1215 -2.85728 + 1.93449 -12.1214 -2.40762 + 2.38134 -9.29543 -2.83184 + 2.26317 -9.29551 -2.3607 + 2.2587 -9.25556 -2.34024 + 2.25855 -9.25569 -2.33916 + 2.40651 -6.72624 -2.13845 + 2.3917 -6.72624 -2.01739 + 2.40151 -6.59333 -2.00624 + 2.38045 -6.82869 -2.01137 + 2.38181 -6.72624 -1.97898 + 2.21825 -7.43161 -2.04041 + 2.20413 -7.4091 -2.00501 + 2.14999 -7.4728 -1.92046 + 2.38181 -6.72624 -1.97898 + 2.19016 -6.72623 -1.5022 + 2.47115 -5.40515 -1.86842 + 1.19208 -1.64381 -0.423597 + 1.51812 -0.14342 -0.610048 + 1.19053 -0.143411 -0.485923 + 1.53559 -0.123433 -0.617135 + 1.52162 0.104417 -0.617135 + 1.52099 -1.64382 -0.550392 + 1.20085 -1.96241 -0.421227 + 1.53965 -1.66382 -0.557242 + 1.53964 -2.00242 -0.551412 + 1.53964 -1.96242 -0.552101 + 1.53985 -4.12942 -0.510388 + 1.55592 -4.08942 -0.522622 + 1.52098 -4.10942 -0.503363 + 1.55593 -2.34102 -0.557124 + 1.52098 -2.32102 -0.538705 + 1.53963 -2.30102 -0.54627 + 0.825825 -2.321 -0.269608 + 1.53964 -2.00242 -0.551412 + 1.16463 -2.00241 -0.406523 + 1.20085 -1.96241 -0.421227 + 1.19208 -1.64381 -0.423597 + 1.52099 -1.64382 -0.550392 + 1.51812 -0.14342 -0.610048 + 1.55326 -0.163413 -0.627789 + 1.53559 -0.123433 -0.617135 + 1.68438 -5.18011 -0.613087 + 1.53985 -4.12942 -0.510388 + 1.55351 -5.18044 -0.494595 + 1.52098 -4.10942 -0.503363 + 0.825778 -4.1094 -0.229735 + 0.825825 -2.321 -0.269608 + 0.001245 -2.32098 -0.214042 + 2.20772 -5.2967 -1.12564 + 1.983 -5.25657 -0.836737 + 1.98155 -5.39623 -0.831799 + 1.71459 -5.39623 -0.620583 + 1.45205 -6.62205 -0.562498 + 1.45314 -6.46808 -0.544479 + 1.42199 -6.67239 -0.541164 + 2.3894 -5.39624 -1.5022 + 2.20772 -5.2967 -1.12564 + 2.20646 -5.39624 -1.12564 + 1.98155 -5.39623 -0.831799 + 1.75481 -6.69151 -0.812439 + 1.45205 -6.62205 -0.562498 + 1.97331 -5.21528 -0.8293 + 1.983 -5.25657 -0.836737 + 2.20807 -5.25671 -1.12564 + 2.20772 -5.2967 -1.12564 + 2.38901 -5.34441 -1.5022 + 2.3894 -5.39624 -1.5022 + 1.90922 0.144308 -0.890028 + 1.51917 0.144342 -0.617135 + 1.9123 0.104431 -0.890028 + 1.52162 0.104417 -0.617135 + 1.92995 -0.123485 -0.890028 + 1.53559 -0.123433 -0.617135 + 1.93705 -0.163422 -0.893126 + 1.55326 -0.163413 -0.627789 + 1.9431 -1.62384 -0.840731 + 1.55605 -1.62383 -0.569782 + 1.93771 -1.66383 -0.835904 + 1.53965 -1.66382 -0.557242 + 1.9377 -1.96243 -0.831275 + 1.53964 -1.96242 -0.552101 + 1.9377 -2.00243 -0.830655 + 1.53964 -2.00242 -0.551412 + 1.93769 -2.30103 -0.826025 + 1.53963 -2.30102 -0.54627 + 1.94312 -2.34103 -0.829237 + 1.55593 -2.34102 -0.557124 + 1.94309 -4.08943 -0.799359 + 1.55592 -4.08942 -0.522622 + 1.93751 -4.12943 -0.795071 + 1.53985 -4.12942 -0.510388 + 1.97331 -5.21528 -0.8293 + 1.68438 -5.18011 -0.613087 + 1.983 -5.25657 -0.836737 + 1.71479 -5.224 -0.635398 + 1.71459 -5.39623 -0.620583 + 1.68322 -5.39622 -0.595765 + 1.45314 -6.46808 -0.544479 + 1.55351 -5.18044 -0.494595 + 1.42199 -6.67239 -0.541164 + 1.39224 -6.78006 -0.52357 + 1.41704 -6.69844 -0.539551 + 1.43586 -6.7899 -0.5765 + 1.43523 -6.69574 -0.553796 + 1.45675 -6.77109 -0.59112 + 1.45205 -6.62205 -0.562498 + 1.69377 -6.98549 -0.857232 + 1.75481 -6.69151 -0.812439 + 2.00083 -6.72623 -1.12564 + 2.20646 -5.39624 -1.12564 + 2.19016 -6.72623 -1.5022 + 2.3894 -5.39624 -1.5022 + 2.47115 -5.40515 -1.86842 + 2.38901 -5.34441 -1.5022 + 2.38872 -5.30441 -1.5022 + 2.20807 -5.25671 -1.12564 + 2.21752 -4.12944 -1.12564 + 1.97331 -5.21528 -0.8293 + 1.93751 -4.12943 -0.795071 + 1.89387 0.412091 -0.894665 + 2.02842 1.85345 -1.24646 + 1.78237 1.85345 -0.945903 + 2.02749 1.89326 -1.25423 + 1.77386 1.89328 -0.94389 + 1.9835 2.38907 -1.27946 + 1.51891 0.412113 -0.629707 + 1.89387 0.412091 -0.894665 + 1.43065 1.85345 -0.686306 + 1.78237 1.85345 -0.945903 + 1.41193 1.89331 -0.676737 + 1.77386 1.89328 -0.94389 + 1.9835 2.38907 -1.27946 + 1.73547 2.38907 -0.97268 + 1.77386 1.89328 -0.94389 + 1.38151 2.38906 -0.708592 + 1.41193 1.89331 -0.676737 + 1.39459 1.87338 -0.667956 + 1.43065 1.85345 -0.686306 + 1.4853 0.392181 -0.609904 + 1.51891 0.412113 -0.629707 + 1.30661 3.86537 -0.843235 + 1.28759 3.91527 -0.835522 + 1.27035 3.89539 -0.82602 + 1.20886 5.19111 -0.95116 + 1.18913 5.21099 -0.945373 + 1.22275 5.23091 -0.96661 + 1.03958 8.15066 -1.28176 + 1.28069 8.19041 -1.447 + 1.02077 8.19041 -1.27466 + 1.28932 8.1507 -1.44709 + 1.03958 8.15066 -1.28176 + 1.52006 5.23086 -1.18962 + 1.22275 5.23091 -0.96661 + 1.51771 5.1911 -1.18253 + 1.20886 5.19111 -0.95116 + 1.63211 3.89538 -1.09516 + 1.28759 3.91527 -0.835522 + 1.32952 3.89539 -0.864717 + 1.30661 3.86537 -0.843235 + 1.64142 3.64583 -1.06424 + 1.18913 5.21099 -0.945373 + 1.03958 8.15066 -1.28176 + 1.00327 8.17059 -1.26541 + 1.02077 8.19041 -1.27466 + 0.838207 10.979 -1.61395 + 1.28069 8.19041 -1.447 + -0.831455 14.8515 -2.54226 + -0.565714 15.7109 -2.54208 + -0.844714 14.8037 -2.57408 + -0.562434 15.7109 -2.57514 + -0.84169 14.8037 -2.63772 + -0.809805 14.8037 -2.73316 + -0.844714 14.8037 -2.57408 + -0.844519 14.8037 -2.50385 + -0.831455 14.8515 -2.54226 + -0.841107 14.8037 -2.42701 + -0.565714 15.7109 -2.54208 + -8.59394 10.8093 -2.52396 + -8.51913 10.7943 -2.47648 + -8.51864 11.1376 -2.42678 + -1.32124 10.9771 -2.36296 + -7.00806 11.1626 -2.40487 + -6.98901 11.3835 -2.40343 + -6.99238 11.1844 -2.45278 + -8.51728 11.4333 -2.41469 + -8.52065 11.2343 -2.46403 + -8.51864 11.1376 -2.42678 + -8.5179 11.1394 -2.49356 + -7.00806 11.1626 -2.40487 + -7.00732 11.1643 -2.47164 + -6.99238 11.1844 -2.45278 + -8.52065 11.2343 -2.46403 + -6.95382 12.8362 -2.4213 + -6.93761 13.6274 -2.49 + -6.97969 12.5497 -2.39644 + -8.51705 12.462 -2.40831 + -8.51728 11.4333 -2.41469 + -8.5435 11.2143 -2.43766 + -8.51864 11.1376 -2.42678 + -8.59345 11.2192 -2.48091 + -8.59394 10.8093 -2.52396 + -8.59422 10.5554 -2.57562 + -8.51913 10.7943 -2.47648 + -2.50985 14.5681 -2.50487 + -6.93761 13.6274 -2.49 + -2.55508 14.1655 -2.48252 + -6.95382 12.8362 -2.4213 + -2.67572 13.0801 -2.38833 + -2.67899 12.8734 -2.43743 + -2.70822 12.7932 -2.36345 + -2.70737 12.7874 -2.42999 + -6.97884 12.5438 -2.46297 + -2.67899 12.8734 -2.43743 + -6.95709 12.6295 -2.47041 + -6.95382 12.8362 -2.4213 + -6.97884 12.5438 -2.46297 + -6.97969 12.5497 -2.39644 + -2.70822 12.7932 -2.36345 + -1.32124 10.9771 -2.36296 + -1.09598 12.8851 -2.351 + -0.841107 14.8037 -2.42701 + -0.844519 14.8037 -2.50385 + -1.09598 12.8851 -2.351 + -0.902035 14.3684 -2.47969 + -2.55508 14.1655 -2.48252 + -0.844519 14.8037 -2.50385 + -2.50985 14.5681 -2.50487 + -0.844714 14.8037 -2.57408 + 0.813238 14.8026 -2.34133 + 0.589117 15.7102 -2.50181 + 0.552271 15.7102 -2.47233 + -0.565714 15.7109 -2.54208 + -0.561883 15.7109 -2.50217 + -0.841107 14.8037 -2.42701 + -0.787278 14.8036 -2.34184 + -1.09598 12.8851 -2.351 + 1.19916 10.979 -1.87503 + 0.813238 14.8026 -2.34133 + 0.759809 14.8026 -2.28458 + 0.552271 15.7102 -2.47233 + 0.515842 15.7102 -2.45267 + -0.561883 15.7109 -2.50217 + -0.525056 15.7109 -2.47267 + -0.787278 14.8036 -2.34184 + 0.533451 14.8026 -2.19189 + 0.293509 14.8026 -2.14954 + 0.838207 10.979 -1.61395 + 0.455212 10.979 -1.49467 + 1.00327 8.17059 -1.26541 + 0.552702 8.17061 -1.10168 + 1.18913 5.21099 -0.945373 + 0.452917 15.7102 -2.43543 + 0.533451 14.8026 -2.19189 + 0.666556 14.8026 -2.23477 + 0.838207 10.979 -1.61395 + 1.05051 10.979 -1.73473 + 1.28069 8.19041 -1.447 + 1.64142 3.64583 -1.06424 + 1.88839 3.53595 -1.35933 + 1.61874 3.73727 -1.06515 + 1.84957 3.89537 -1.37654 + 1.63211 3.89538 -1.09516 + 1.73409 5.19109 -1.45131 + 1.51771 5.1911 -1.18253 + 1.73052 5.23085 -1.45375 + 1.52006 5.23086 -1.18962 + 1.46643 8.15071 -1.64429 + 1.28932 8.1507 -1.44709 + 1.46276 8.19042 -1.6472 + 1.28069 8.19041 -1.447 + 1.19916 10.979 -1.87503 + 1.05051 10.979 -1.73473 + 0.759809 14.8026 -2.28458 + 0.666556 14.8026 -2.23477 + 0.515842 15.7102 -2.45267 + 0.452917 15.7102 -2.43543 + -0.525056 15.7109 -2.47267 + 1.30661 3.86537 -0.843235 + 1.66513 3.36457 -1.04894 + 1.64142 3.64583 -1.06424 + 1.87885 3.47098 -1.32973 + 1.88839 3.53595 -1.35933 + 0.10246 -0.143385 -0.300001 + 0.816844 0.124398 -0.347626 + 0.808146 0.392199 -0.347626 + 0.825542 -0.143402 -0.347626 + 1.14971 0.144387 -0.475468 + -0.203366 9.14626 -0.22406 + -0.205774 9.92327 0.509664 + -0.205218 11.609 0.100072 + -0.214745 14.4937 4.07503 + -0.214098 14.5545 3.98967 + -0.213401 14.9862 4.06448 + -0.206148 15.749 4.02363 + -0.117749 15.7487 4.02385 + -0.206148 15.749 4.02363 + -0.204519 16.2248 4.0145 + -0.213401 14.9862 4.06448 + -0.215011 15.6198 4.90112 + -0.126624 15.3695 4.90185 + -0.129048 15.113 4.89438 + -0.126351 14.4931 4.07576 + -0.217442 15.1137 4.89364 + -0.214745 14.4937 4.07503 + -0.21765 13.7364 4.11029 + -0.205774 9.92327 0.509664 + -0.094373 3.89554 -0.543134 + -0.093486 5.21114 -0.258465 + -0.093486 5.21114 -0.686026 + -0.203369 9.03686 -0.258442 + -0.203392 8.17075 -1.07373 + -0.203366 9.14626 -0.22406 + -0.203318 10.9791 -0.731665 + -0.205218 11.609 0.100072 + -0.203271 12.7861 -1.05377 + -0.206148 15.749 4.02363 + -0.114872 12.7858 -1.05356 + -0.117749 15.7487 4.02385 + -0.116127 15.9749 4.01472 + -0.204519 16.2248 4.0145 + -0.683426 3.89629 -0.586161 + -0.094373 3.89554 -0.543134 + -0.638603 5.21184 -0.725168 + -0.093486 5.21114 -0.686026 + -0.536096 8.17131 -1.10203 + -0.203392 8.17075 -1.07373 + -0.434729 10.9796 -1.49496 + -0.203318 10.9791 -1.47613 + -2.11956 2.41171 -1.65052 + -2.10491 2.43158 -1.61374 + -2.01561 3.35492 -1.66419 + -1.96818 2.4314 -1.27684 + -1.88418 3.36293 -1.33755 + -1.65476 3.36672 -1.05 + -1.62455 3.71957 -1.06918 + -1.32727 3.36631 -0.801455 + -1.29573 3.86705 -0.844064 + -1.25944 3.89702 -0.826825 + -1.27665 3.91692 -0.836339 + -0.683426 3.89629 -0.586161 + -1.19494 5.21254 -0.953728 + -0.638603 5.21184 -0.725168 + -1.00536 8.1719 -1.27289 + -0.536096 8.17131 -1.10203 + -0.817647 10.9801 -1.61448 + -0.434729 10.9796 -1.49496 + -1.37262 2.39084 -0.709469 + -1.72859 2.43109 -0.980438 + -1.72641 2.3913 -0.973782 + -1.97424 2.39163 -1.28072 + -2.01889 1.89588 -1.25552 + -2.1162 2.39181 -1.63037 + -2.16408 1.89606 -1.60923 + -2.17133 1.87617 -1.62766 + -0.752022 1.87438 -0.411976 + -1.35285 2.41074 -0.703166 + -1.37262 2.39084 -0.709469 + -1.38607 2.43066 -0.724455 + -1.72859 2.43109 -0.980438 + -0.094733 3.36474 -0.258465 + -0.095486 2.40915 -0.414288 + -0.095486 2.40915 -0.258465 + -0.09575 1.87355 -0.365479 + -0.09575 1.87355 -0.258465 + -1.29288 3.36626 -0.781684 + -0.733898 2.40996 -0.449654 + -0.701488 3.36551 -0.535766 + -0.095486 2.40915 -0.414288 + -0.094733 3.36474 -0.491647 + -0.094733 3.36474 -0.258465 + -0.094373 3.89554 -0.258465 + -0.096748 0.392345 -0.239043 + -0.09575 1.87355 -0.258465 + -0.096748 0.392345 -0.300209 + -0.09575 1.87355 -0.365479 + -0.752022 1.87438 -0.411976 + -0.733898 2.40996 -0.449654 + -1.35285 2.41074 -0.703166 + -1.29288 3.36626 -0.781684 + -1.38607 2.43066 -0.724455 + -0.043486 5.21111 -0.208465 + -0.094373 3.89554 -0.258465 + -0.044373 3.89551 -0.208465 + -0.094733 3.36474 -0.258465 + -0.044734 3.36471 -0.208465 + -0.095486 2.40915 -0.258465 + -0.045486 2.40912 -0.208465 + -0.09575 1.87355 -0.258465 + -0.04575 1.87351 -0.208465 + -0.096748 0.392345 -0.239043 + -0.074082 9.88893 0.546017 + -0.072762 9.08993 -0.208465 + 0.110406 9.08983 -0.208465 + -0.043486 5.21111 -0.208465 + 0.056005 5.21105 -0.208465 + -0.044373 3.89551 -0.208465 + 0.0551 3.89545 -0.208465 + -0.044734 3.36471 -0.208465 + 0.054744 3.36465 -0.208465 + -0.045486 2.40912 -0.208465 + 0.054212 2.40905 -0.208465 + -0.04575 1.87351 -0.208465 + 0.104745 3.36461 -0.258465 + 0.1051 3.89542 -0.54307 + 0.1051 3.89542 -0.258465 + 0.106005 5.21102 -0.685963 + 0.106005 5.21102 -0.258465 + 0.244145 8.17061 -1.07367 + 0.244168 9.03673 -0.258429 + 0.244171 9.14612 -0.22406 + 0.110406 9.08983 -0.208465 + 0.244168 9.03673 -0.258429 + 0.056005 5.21105 -0.208465 + 0.106005 5.21102 -0.258465 + 0.0551 3.89545 -0.208465 + 0.1051 3.89542 -0.258465 + 0.054744 3.36465 -0.208465 + 0.104745 3.36461 -0.258465 + 0.054212 2.40905 -0.208465 + 1.30307 3.36458 -0.780858 + 0.694182 3.8954 -0.585722 + 0.711527 3.3646 -0.535315 + 0.1051 3.89542 -0.54307 + 0.104745 3.36461 -0.491583 + 0.104745 3.36461 -0.258465 + 0.104212 2.40902 -0.258465 + 0.054212 2.40905 -0.208465 + 0.053754 1.87345 -0.208465 + -0.04575 1.87351 -0.208465 + -0.046748 0.392311 -0.208465 + -0.096748 0.392345 -0.239043 + 0.05246 -0.143353 -0.208465 + 0.10246 -0.143385 -0.238974 + 0.102796 0.392215 -0.239022 + 0.102796 0.392215 -0.300145 + 0.103754 1.87342 -0.365416 + 0.808146 0.392199 -0.347626 + 0.760055 1.8734 -0.411494 + 1.36177 2.40898 -0.702301 + 0.742647 2.409 -0.449183 + 0.760055 1.8734 -0.411494 + 0.104212 2.40902 -0.414225 + 0.103754 1.87342 -0.365416 + 0.103754 1.87342 -0.258465 + 0.102796 0.392215 -0.239022 + 0.052796 0.392248 -0.208465 + 0.05246 -0.143353 -0.208465 + 1.33748 3.36458 -0.800606 + 1.30307 3.36458 -0.780858 + 1.36177 2.40898 -0.702301 + 0.711527 3.3646 -0.535315 + 0.742647 2.409 -0.449183 + 0.104745 3.36461 -0.491583 + 0.104212 2.40902 -0.414225 + 0.104212 2.40902 -0.258465 + 0.103754 1.87342 -0.258465 + 0.053754 1.87345 -0.208465 + 0.052796 0.392248 -0.208465 + -0.046748 0.392311 -0.208465 + 0.05246 -0.143353 -0.208465 + -0.047103 -0.14329 -0.208465 + -0.080381 13.702 4.14664 + -0.074082 9.88893 0.546017 + 0.110694 9.88884 0.546017 + 0.110406 9.08983 -0.208465 + 0.244726 9.92315 0.509663 + 0.244171 9.14612 -0.22406 + 0.244219 10.979 -0.731665 + 0.244168 9.03673 -0.258429 + 0.244219 10.979 -1.47607 + 0.244145 8.17061 -1.07367 + 0.552702 8.17061 -1.10168 + 0.651146 5.211 -0.724757 + 1.18913 5.21099 -0.945373 + 0.694182 3.8954 -0.585722 + 1.27035 3.89539 -0.82602 + 1.30307 3.36458 -0.780858 + 1.30661 3.86537 -0.843235 + 1.33748 3.36458 -0.800606 + 1.66513 3.36457 -1.04894 + -2.31292 1.87635 -2.13913 + -2.17133 1.87617 -1.62766 + -2.11956 2.41171 -1.65052 + -2.1162 2.39181 -1.63037 + -2.10491 2.43158 -1.61374 + -1.97424 2.39163 -1.28072 + -1.96818 2.4314 -1.27684 + -1.72859 2.43109 -0.980438 + -1.65476 3.36672 -1.05 + -1.38607 2.43066 -0.724455 + -1.32727 3.36631 -0.801455 + -1.29288 3.36626 -0.781684 + -1.25944 3.89702 -0.826825 + -0.701488 3.36551 -0.535766 + -0.683426 3.89629 -0.586161 + -0.094733 3.36474 -0.491647 + -0.094373 3.89554 -0.543134 + -0.094373 3.89554 -0.258465 + -0.093486 5.21114 -0.258465 + -0.043486 5.21111 -0.208465 + -0.203369 9.03686 -0.258442 + -0.072762 9.08993 -0.208465 + -0.203366 9.14626 -0.22406 + -0.074082 9.88893 0.546017 + -0.205774 9.92327 0.509664 + -0.080381 13.702 4.14664 + -0.21765 13.7364 4.11029 + 2.12907 2.40896 -1.64916 + 2.32205 1.87336 -2.13765 + 2.26751 2.40896 -2.15394 + 2.33756 1.87336 -2.85606 + 2.28267 2.40896 -2.86344 + 2.327 1.87336 -3.45108 + 2.27243 2.40896 -3.45108 + 2.24222 1.87336 -4.0461 + 2.18977 2.40896 -4.03872 + 2.085 1.87337 -4.55053 + 2.03639 2.40897 -4.5369 + 0.855922 1.8734 -4.88758 + 0.836322 2.409 -4.86977 + 0.00548 1.87342 -5.00594 + 0.005819 2.40902 -4.98666 + -0.845037 1.8745 -4.88812 + -0.824757 2.41007 -4.8703 + -2.07433 1.87605 -4.55186 + -2.02504 2.41159 -4.53819 + -2.23187 1.87625 -4.04752 + -2.17873 2.41178 -4.04011 + -2.31702 1.87636 -3.45256 + -2.26176 2.41189 -3.45252 + -2.32797 1.87637 -2.85755 + -2.27238 2.4119 -2.86489 + -2.31292 1.87635 -2.13913 + -2.25768 2.41188 -2.15538 + -2.11956 2.41171 -1.65052 + 1.4916 9.89045 -2.58368 + 8.54011 10.49 -2.55577 + 8.53999 10.7833 -2.47105 + 8.61484 10.5443 -2.57014 + 8.61485 10.7982 -2.51848 + 8.61486 11.2081 -2.47543 + 8.53999 10.7833 -2.47105 + 7.02935 11.1535 -2.4004 + 1.42903 10.3381 -2.45437 + 8.53991 11.1266 -2.42135 + 8.53999 10.7833 -2.47105 + 8.56488 11.2033 -2.43221 + 8.61486 11.2081 -2.47543 + 8.53892 11.4223 -2.40926 + 1.67241 8.19042 -2.21831 + 1.51586 9.70789 -2.58644 + 1.50895 9.70789 -2.31179 + 1.42903 10.3381 -2.45437 + 1.34227 10.9753 -2.36211 + 7.02935 11.1535 -2.4004 + 7.01059 11.3744 -2.39898 + 7.01373 11.1753 -2.44831 + 8.54207 11.2232 -2.45859 + 7.02865 11.1553 -2.46717 + 8.53921 11.1283 -2.48812 + 8.53991 11.1266 -2.42135 + 8.54207 11.2232 -2.45859 + 8.53892 11.4223 -2.40926 + 7.01059 11.3744 -2.39898 + 2.09614 3.36456 -4.02186 + 2.12085 3.89536 -3.44148 + 2.17501 3.36456 -3.45108 + 2.13018 3.89536 -2.88245 + 2.18468 3.36456 -2.8803 + 1.99257 5.23083 -2.83712 + 1.99669 5.19108 -2.83885 + 1.98786 5.19112 -3.35393 + 2.12085 3.89536 -3.44148 + 2.04408 3.89537 -4.00051 + 2.09614 3.36456 -4.02186 + 1.6873 8.15071 -2.68235 + 1.99257 5.23083 -2.83712 + 1.98376 5.23078 -3.35078 + 1.98786 5.19112 -3.35393 + 1.9159 5.19109 -3.86902 + 2.04408 3.89537 -4.00051 + 1.68305 8.19045 -2.68072 + 1.6873 8.15071 -2.68235 + 1.67929 8.15076 -3.08393 + 1.98376 5.23078 -3.35078 + 1.91486 5.23085 -3.84451 + 1.9159 5.19109 -3.86902 + 1.51603 9.71783 -2.63614 + 1.68305 8.19045 -2.68072 + 1.67506 8.1904 -3.0806 + 1.67929 8.15076 -3.08393 + 1.6208 8.1507 -3.46559 + 1.91486 5.23085 -3.84451 + -2.10416 3.89809 -2.20883 + -1.97048 3.89792 -1.71019 + -1.96794 5.21352 -2.21834 + -1.84294 5.21336 -1.7595 + -1.65723 8.17273 -2.21815 + -1.55196 8.17259 -1.87518 + -2.01976 3.38924 -1.68453 + -1.97048 3.89792 -1.71019 + -2.0271 3.36719 -1.70273 + -2.10416 3.89809 -2.20883 + -2.15903 3.36736 -2.19253 + -1.44768 8.17246 -1.64651 + -1.55196 8.17259 -1.87518 + -1.71931 5.2132 -1.45356 + -1.84294 5.21336 -1.7595 + -1.8383 3.89775 -1.37771 + -1.97048 3.89792 -1.71019 + -1.86979 3.60988 -1.36395 + -2.01976 3.38924 -1.68453 + -1.02987 10.9803 -1.73539 + -1.44768 8.17246 -1.64651 + -1.2655 8.17223 -1.44577 + -1.71931 5.2132 -1.45356 + -1.50333 5.21293 -1.185 + -1.8383 3.89775 -1.37771 + -1.62103 3.89748 -1.0962 + -1.86979 3.60988 -1.36395 + -2.17315 3.36737 -2.88169 + -2.15903 3.36736 -2.19253 + -2.11796 3.89811 -2.8838 + -2.10416 3.89809 -2.20883 + -1.98075 5.21353 -2.83944 + -1.96794 5.21352 -2.21834 + -1.66761 8.17274 -2.68237 + -1.65723 8.17273 -2.21815 + -1.48959 9.70983 -2.31275 + -1.55196 8.17259 -1.87518 + -1.26338 10.9806 -2.03571 + -1.44768 8.17246 -1.64651 + -1.17843 10.9805 -1.87578 + -1.02987 10.9803 -1.73539 + -0.733885 14.8036 -2.28505 + -0.640664 14.8034 -2.23518 + -0.488639 15.7109 -2.45299 + -0.425725 15.7108 -2.4357 + 0.363478 15.7102 -2.42058 + 0.203093 15.7102 -2.40591 + -8.51957 10.501 -2.56121 + -8.59419 10.5731 -2.5968 + -8.51944 10.5544 -2.62509 + -8.59028 13.6922 -2.53884 + -8.51599 13.7186 -2.55453 + -8.59029 13.6922 -2.52358 + -8.51602 13.7186 -2.50854 + -8.59064 13.4228 -2.51547 + -8.51621 13.4336 -2.49269 + -8.59189 12.4555 -2.46671 + -1.40877 10.3399 -2.45528 + -8.51957 10.501 -2.56121 + -1.47183 9.89237 -2.58463 + -8.51944 10.5544 -2.62509 + -1.46092 9.97384 -2.68211 + -6.92497 13.9436 -2.55859 + -2.50999 14.5681 -2.56984 + -8.51602 13.7186 -2.50854 + -6.92495 13.9436 -2.50757 + -8.51621 13.4336 -2.49269 + -2.16312 3.36737 -3.45246 + -2.17315 3.36737 -2.88169 + -2.10827 3.8981 -3.44283 + -2.11796 3.89811 -2.8838 + -1.97161 5.21353 -3.35385 + -1.98075 5.21353 -2.83944 + -1.65935 8.17273 -3.08318 + -1.66761 8.17274 -2.68237 + -1.3497 10.9807 -2.86906 + -1.49645 9.71977 -2.63709 + -1.46092 9.97384 -2.68211 + -1.49632 9.70984 -2.5874 + -1.47183 9.89237 -2.58463 + -1.48959 9.70983 -2.31275 + -1.40877 10.3399 -2.45528 + -2.08388 3.36727 -4.02319 + -2.16312 3.36737 -3.45246 + -2.03114 3.898 -4.00181 + -2.10827 3.8981 -3.44283 + -1.89939 5.21344 -3.86822 + -1.97161 5.21353 -3.35385 + -1.5978 8.17265 -3.48395 + -1.65935 8.17273 -3.08318 + -1.29899 10.9807 -3.1379 + -1.3497 10.9807 -2.86906 + -1.93704 3.36708 -4.50698 + -2.08388 3.36727 -4.02319 + -1.8881 3.89782 -4.47565 + -2.03114 3.898 -4.00181 + -1.76553 5.21326 -4.30424 + -1.89939 5.21344 -3.86822 + -1.48437 8.17251 -3.82367 + -1.5978 8.17265 -3.48395 + -1.20611 10.9806 -3.36578 + -1.29899 10.9807 -3.1379 + -0.809805 14.8037 -2.73316 + -1.3497 10.9807 -2.86906 + -0.84169 14.8037 -2.63772 + -1.46092 9.97384 -2.68211 + -0.844714 14.8037 -2.57408 + -2.50999 14.5681 -2.56984 + -2.50985 14.5681 -2.50487 + -6.92495 13.9436 -2.50757 + -6.93761 13.6274 -2.49 + -8.51621 13.4336 -2.49269 + -8.51705 12.462 -2.40831 + -8.59189 12.4555 -2.46671 + -8.59345 11.2192 -2.48091 + -8.59419 10.5731 -2.5968 + -8.59422 10.5554 -2.57562 + -8.51957 10.501 -2.56121 + -8.51913 10.7943 -2.47648 + -1.40877 10.3399 -2.45528 + -1.32124 10.9771 -2.36296 + -1.48959 9.70983 -2.31275 + -1.09598 12.8851 -2.351 + -1.26338 10.9806 -2.03571 + -0.787278 14.8036 -2.34184 + -0.733885 14.8036 -2.28505 + -0.525056 15.7109 -2.47267 + -0.488639 15.7109 -2.45299 + 0.452917 15.7102 -2.43543 + 0.363478 15.7102 -2.42058 + 0.533451 14.8026 -2.19189 + 0.203093 15.7102 -2.40591 + 0.293509 14.8026 -2.14954 + 0.076748 15.7102 -2.40395 + 0.244319 14.8026 -2.14386 + -0.788552 3.36562 -4.82957 + -1.93704 3.36708 -4.50698 + -0.768423 3.8964 -4.7916 + -1.8881 3.89782 -4.47565 + -0.717951 5.21194 -4.59496 + -1.76553 5.21326 -4.30424 + -0.60208 8.17139 -4.05015 + -1.48437 8.17251 -3.82367 + -0.487583 10.9796 -3.51763 + -1.20611 10.9806 -3.36578 + -0.30122 14.803 -2.86783 + -0.751449 14.8036 -2.81405 + 0.006422 3.36462 -4.9426 + -0.788552 3.36562 -4.82957 + 0.006752 3.89542 -4.9023 + -0.768423 3.8964 -4.7916 + 0.007537 5.21102 -4.69682 + -0.717951 5.21194 -4.59496 + 0.009267 8.17062 -4.12949 + -0.60208 8.17139 -4.05015 + 0.010903 10.979 -3.57079 + -0.487583 10.9796 -3.51763 + 0.013153 14.8026 -2.88662 + -0.30122 14.803 -2.86783 + 0.801327 3.3646 -4.82906 + 0.006422 3.36462 -4.9426 + 0.781857 3.8954 -4.7911 + 0.006752 3.89542 -4.9023 + 0.73296 5.211 -4.5945 + 0.007537 5.21102 -4.69682 + 0.620564 8.1706 -4.04977 + 0.009267 8.17062 -4.12949 + 0.509355 10.979 -3.51731 + 0.010903 10.979 -3.57079 + 0.327515 14.8026 -2.86763 + 0.013153 14.8026 -2.88662 + 1.78035 5.21097 -4.30311 + 1.50271 8.17058 -3.82272 + 1.60958 8.17058 -3.50198 + 1.32052 10.979 -3.13707 + 1.61383 8.19043 -3.48048 + 1.37106 10.979 -2.86819 + 1.94961 3.36457 -4.50574 + 0.801327 3.3646 -4.82906 + 1.90134 3.89537 -4.47444 + 0.781857 3.8954 -4.7911 + 1.78035 5.21097 -4.30311 + 0.73296 5.211 -4.5945 + 1.50271 8.17058 -3.82272 + 0.620564 8.1706 -4.04977 + 1.22779 10.979 -3.36501 + 0.509355 10.979 -3.51731 + 0.77771 14.8026 -2.81356 + 0.327515 14.8026 -2.86763 + 1.48086 9.97194 -2.68118 + 1.51603 9.71783 -2.63614 + 1.37106 10.979 -2.86819 + 1.67506 8.1904 -3.0806 + 1.61383 8.19043 -3.48048 + 1.6208 8.1507 -3.46559 + 1.60958 8.17058 -3.50198 + 1.91486 5.23085 -3.84451 + 1.90805 5.21097 -3.88621 + 1.9159 5.19109 -3.86902 + 1.90134 3.89537 -4.47444 + 2.04408 3.89537 -4.00051 + 1.94961 3.36457 -4.50574 + 2.09614 3.36456 -4.02186 + 2.53579 14.5649 -2.56823 + 1.48086 9.97194 -2.68118 + 0.870822 14.8026 -2.57353 + 1.37106 10.979 -2.86819 + 0.867838 14.8026 -2.63718 + 1.32052 10.979 -3.13707 + 0.836014 14.8026 -2.73264 + 0.77771 14.8026 -2.81356 + 8.61484 10.562 -2.59132 + 8.54009 10.5434 -2.61965 + 8.54068 13.7076 -2.5491 + 1.48086 9.97194 -2.68118 + 6.94995 13.9347 -2.55417 + 2.53579 14.5649 -2.56823 + 8.54002 12.451 -2.40288 + 8.61489 12.4443 -2.46123 + 8.61492 13.4117 -2.50999 + 8.61484 10.562 -2.59132 + 8.61492 13.6811 -2.53336 + 8.54068 13.7076 -2.5491 + 2.17013 3.36456 -2.19116 + 2.18468 3.36456 -2.8803 + 2.11595 3.89536 -2.20749 + 2.13018 3.89536 -2.88245 + 1.98347 5.19107 -2.21694 + 1.99669 5.19108 -2.83885 + 1.97937 5.23086 -2.21708 + 1.99257 5.23083 -2.83712 + 1.67661 8.15068 -2.21708 + 1.6873 8.15071 -2.68235 + 1.67241 8.19042 -2.21831 + 1.68305 8.19045 -2.68072 + 1.51586 9.70789 -2.58644 + 1.51603 9.71783 -2.63614 + 1.4916 9.89045 -2.58368 + 1.48086 9.97194 -2.68118 + 8.54011 10.49 -2.55577 + 8.54009 10.5434 -2.61965 + 8.61484 10.5443 -2.57014 + 8.61484 10.562 -2.59132 + 8.61486 11.2081 -2.47543 + 8.61489 12.4443 -2.46123 + 8.53892 11.4223 -2.40926 + 8.54002 12.451 -2.40288 + 7.01059 11.3744 -2.39898 + 7.00277 12.5407 -2.39198 + 1.34227 10.9753 -2.36211 + 0.047273 18.1656 5.11992 + 0.009786 18.1656 5.11992 + -0.114437 17.581 5.11992 + -0.169415 17.5816 5.06987 + -0.190041 15.5659 5.07041 + -0.215011 15.6198 4.90112 + -0.208998 15.333 4.94764 + -0.217442 15.1137 4.89364 + -0.223058 14.5307 4.86038 + -0.21765 13.7364 4.11029 + -0.081701 14.501 4.90112 + -0.080381 13.702 4.14664 + 0.112068 13.7019 4.14664 + 0.110694 9.88884 0.546017 + 0.247394 13.7363 4.11029 + 0.244726 9.92315 0.509663 + 0.245406 11.6089 0.100072 + 0.244219 10.979 -0.731665 + 0.244266 12.7859 -1.05377 + 0.244219 10.979 -1.47607 + 0.244278 13.2453 -1.09116 + 0.244319 14.8026 -2.14386 + 0.244319 14.8026 -1.41326 + 0.076748 15.7102 -2.40395 + 0.16217 14.4937 4.07514 + 0.25057 14.4936 4.07503 + 0.250722 14.9869 4.06547 + 0.250964 14.5544 3.98967 + 0.247703 15.7543 4.03292 + 0.084749 18.1656 4.90112 + -0.042757 17.8328 3.96874 + -0.041576 18.1656 4.90112 + -0.196394 17.1093 3.96874 + -0.195211 17.5089 4.90112 + 0.228042 17.5812 5.06962 + 0.243526 17.5088 4.90112 + 0.084749 18.1656 4.90112 + 0.083568 17.8328 3.96874 + -0.042757 17.8328 3.96874 + 0.077934 16.2446 -0.480882 + -0.048391 16.2447 -0.480882 + -0.049571 15.9119 -1.41326 + -0.203218 14.8027 -1.41326 + -0.203218 14.8027 -2.14392 + -0.203259 13.2454 -1.09116 + 0.176072 17.581 5.11992 + 0.183851 15.5658 5.11992 + 0.228042 17.5812 5.06962 + 0.238125 15.5658 5.07011 + 0.243526 17.5088 4.90112 + 0.248372 15.3331 4.94766 + 0.251789 15.6197 4.90112 + 0.251826 15.1136 4.89364 + 0.163382 15.3701 4.90124 + 0.163426 15.1136 4.89375 + 0.162316 14.7373 4.06558 + 0.158629 15.9804 4.02391 + 0.247036 16.2301 4.02379 + 0.247703 15.7543 4.03292 + 0.251789 15.6197 4.90112 + 0.250722 14.9869 4.06547 + 0.162316 14.7373 4.06558 + 0.16217 14.4937 4.07514 + 0.163426 15.1136 4.89375 + 0.25057 14.4936 4.07503 + 0.251826 15.1136 4.89364 + 0.249865 14.5305 4.86035 + 0.234535 14.9165 5.07014 + 0.112356 14.5009 4.90112 + 0.102918 14.9038 5.11992 + -0.064013 14.9038 5.11992 + 0.183851 15.5658 5.11992 + -0.133101 15.5658 5.11992 + 0.176072 17.581 5.11992 + 1.97748 2.42885 -1.27558 + 2.12568 2.38907 -1.62902 + 2.11443 2.42886 -1.61239 + 2.12907 2.40896 -1.64916 + 2.03788 3.36456 -1.70144 + 2.26751 2.40896 -2.15394 + 2.17013 3.36456 -2.19116 + 2.28267 2.40896 -2.86344 + 2.18468 3.36456 -2.8803 + 2.27243 2.40896 -3.45108 + 2.17501 3.36456 -3.45108 + 2.18977 2.40896 -4.03872 + 2.09614 3.36456 -4.02186 + 2.03639 2.40897 -4.5369 + 1.94961 3.36457 -4.50574 + 0.836322 2.409 -4.86977 + 0.801327 3.3646 -4.82906 + 0.005819 2.40902 -4.98666 + 0.006422 3.36462 -4.9426 + -0.824757 2.41007 -4.8703 + -0.788552 3.36562 -4.82957 + -2.02504 2.41159 -4.53819 + -1.93704 3.36708 -4.50698 + -2.17873 2.41178 -4.04011 + -2.08388 3.36727 -4.02319 + -2.26176 2.41189 -3.45252 + -2.16312 3.36737 -3.45246 + -2.27238 2.4119 -2.86489 + -2.17315 3.36737 -2.88169 + -2.25768 2.41188 -2.15538 + -2.15903 3.36736 -2.19253 + -2.11956 2.41171 -1.65052 + -2.0271 3.36719 -1.70273 + -2.01561 3.35492 -1.66419 + -2.01976 3.38924 -1.68453 + -1.8419 3.59871 -1.30484 + -1.86979 3.60988 -1.36395 + -1.65574 3.78155 -1.10752 + -1.62103 3.89748 -1.0962 + -1.31858 3.89709 -0.86556 + -1.50333 5.21293 -1.185 + -1.19494 5.21254 -0.953728 + -1.2655 8.17223 -1.44577 + -1.00536 8.1719 -1.27289 + -1.02987 10.9803 -1.73539 + -0.817647 10.9801 -1.61448 + -0.507587 14.8033 -2.19222 + -0.434729 10.9796 -1.49496 + -0.267671 14.803 -2.14972 + -0.203318 10.9791 -1.47613 + -0.203218 14.8027 -2.14392 + -0.203271 12.7861 -1.05377 + -0.203259 13.2454 -1.09116 + -0.114872 12.7858 -1.05356 + -0.114866 12.9955 -1.09094 + -0.116127 15.9749 4.01472 + -0.203259 13.2454 -1.09116 + -0.204519 16.2248 4.0145 + -0.196394 17.1093 3.96874 + -0.215011 15.6198 4.90112 + -0.195211 17.5089 4.90112 + -0.169415 17.5816 5.06987 + -0.030857 18.1656 5.07002 + 0.009786 18.1656 5.11992 + -0.041576 18.1656 4.90112 + 0.047273 18.1656 5.11992 + 0.084749 18.1656 4.90112 + 0.084749 18.1656 5.06992 + 0.228042 17.5812 5.06962 + 0.047273 18.1656 5.11992 + 0.176072 17.581 5.11992 + -0.114437 17.581 5.11992 + -0.133101 15.5658 5.11992 + -0.190041 15.5659 5.07041 + -0.193898 14.9167 5.07043 + -0.223058 14.5307 4.86038 + -0.064013 14.9038 5.11992 + -0.081701 14.501 4.90112 + 0.112356 14.5009 4.90112 + 0.112068 13.7019 4.14664 + 0.249865 14.5305 4.86035 + 0.247394 13.7363 4.11029 + 0.25057 14.4936 4.07503 + 0.245406 11.6089 0.100072 + 0.250964 14.5544 3.98967 + 0.244266 12.7859 -1.05377 + 0.247703 15.7543 4.03292 + 0.159303 15.7542 4.03304 + 0.158629 15.9804 4.02391 + 0.155872 12.9956 -1.09103 + 0.247036 16.2301 4.02379 + 0.244278 13.2453 -1.09116 + 0.244202 15.2022 -0.480881 + 0.244319 14.8026 -1.41326 + 0.076754 15.9118 -1.41326 + 0.076748 15.7102 -2.40395 + -0.049577 15.7103 -2.40399 + -0.17592 15.7105 -2.40603 + -0.203218 14.8027 -2.14392 + -0.267671 14.803 -2.14972 + 1.4853 0.392181 -0.609904 + 1.50519 0.372191 -0.617135 + 1.51891 0.412113 -0.629707 + 1.89157 0.372222 -0.890028 + 1.89387 0.412091 -0.894665 + 2.15629 0.412081 -1.2015 + 2.02842 1.85345 -1.24646 + 2.30625 0.412084 -1.55031 + 2.16888 1.85344 -1.58807 + 2.18014 1.87336 -1.62627 + 2.1729 1.89325 -1.60785 + 2.12568 2.38907 -1.62902 + 1.9835 2.38907 -1.27946 + 1.97748 2.42885 -1.27558 + 1.73547 2.38907 -0.97268 + -0.047103 -0.14329 -0.208465 + -0.046748 0.392311 -0.208465 + -0.097103 -0.143256 -0.238995 + -0.096748 0.392345 -0.239043 + -0.097103 -0.143256 -0.300065 + -0.096748 0.392345 -0.300209 + -0.802066 0.393238 -0.348139 + -0.752022 1.87438 -0.411976 + -1.38639 1.87518 -0.668841 + -1.37262 2.39084 -0.709469 + -1.4037 1.89512 -0.677634 + -1.72641 2.3913 -0.973782 + -1.76546 1.89556 -0.945017 + -2.01889 1.89588 -1.25552 + -2.01988 1.85606 -1.24775 + -2.16408 1.89606 -1.60923 + -2.16012 1.85623 -1.58945 + -2.17133 1.87617 -1.62766 + -2.31454 0.395152 -1.58894 + -2.31292 1.87635 -2.13913 + -2.46568 0.395344 -2.11163 + -2.32797 1.87637 -2.85755 + -2.48172 0.395364 -2.84514 + -2.31702 1.87636 -3.45256 + -2.4699 0.395349 -3.45266 + -2.23187 1.87625 -4.04752 + -2.37887 0.395235 -4.06012 + -2.07433 1.87605 -4.55186 + -2.2107 0.395021 -4.57504 + -0.845037 1.8745 -4.88812 + -0.901145 0.393366 -4.91834 + 0.00548 1.87342 -5.00594 + 0.004534 0.392218 -5.03861 + 0.855922 1.8734 -4.88758 + 0.910136 0.392196 -4.91777 + 2.085 1.87337 -4.55053 + 2.21947 0.392162 -4.57363 + 2.24222 1.87336 -4.0461 + 2.38732 0.392157 -4.0586 + 2.327 1.87336 -3.45108 + 2.47796 0.392155 -3.45108 + 2.33756 1.87336 -2.85606 + 2.4894 0.392155 -2.84356 + 2.32205 1.87336 -2.13765 + 2.47288 0.392155 -2.11005 + 2.18014 1.87336 -1.62627 + 2.32141 0.392159 -1.58746 + 2.30625 0.412084 -1.55031 + 2.31774 0.372235 -1.56825 + 2.15629 0.412081 -1.2015 + 2.16239 0.372236 -1.20703 + 1.89157 0.372222 -0.890028 + 1.90922 0.144308 -0.890028 + 1.50519 0.372191 -0.617135 + 1.51917 0.144342 -0.617135 + 1.4853 0.392181 -0.609904 + 0.101795 -1.1437 -0.25585 + 0.151351 -1.64379 -0.237128 + 0.825843 -1.6438 -0.282415 + 0.001621 -1.74376 -0.225155 + 0.825834 -1.9824 -0.276011 + -0.097757 -1.14357 -0.255914 + -0.064853 -1.67702 -0.230946 + -0.048085 -1.64369 -0.233826 + 0.001621 -1.74376 -0.225155 + 0.068186 -1.67711 -0.230904 + 0.151351 -1.64379 -0.237128 + 0.051463 -1.64375 -0.233795 + 0.101795 -1.1437 -0.25585 + 1.18757 0.104393 -0.489187 + 1.14971 0.144387 -0.475468 + 1.15313 -0.14341 -0.47175 + 0.825542 -0.143402 -0.347626 + 0.825843 -1.6438 -0.282415 + 0.10246 -0.143385 -0.300001 + 0.101795 -1.1437 -0.25585 + 0.10246 -0.143385 -0.238974 + 0.051463 -1.64375 -0.233795 + 0.05246 -0.143353 -0.208465 + -0.048085 -1.64369 -0.233826 + -0.047103 -0.14329 -0.208465 + -0.097757 -1.14357 -0.255914 + -0.097103 -0.143256 -0.238995 + 2.69948 13.0766 -2.38662 + 6.96214 13.6184 -2.48557 + 2.5803 14.1622 -2.48088 + 8.54068 13.7076 -2.5031 + 6.9499 13.9347 -2.50315 + 1.11947 12.8837 -2.35029 + 2.69948 13.0766 -2.38662 + 0.927521 14.3673 -2.47911 + 2.5803 14.1622 -2.48088 + 2.53561 14.5649 -2.50326 + 6.9499 13.9347 -2.50315 + 8.61492 13.6811 -2.5181 + 8.54068 13.7076 -2.5031 + 8.54049 13.4225 -2.48726 + 6.96214 13.6184 -2.48557 + 6.97729 12.8272 -2.41687 + 2.69948 13.0766 -2.38662 + 6.98032 12.6205 -2.46597 + 2.70252 12.8699 -2.43572 + 2.73078 12.7838 -2.42826 + 2.73159 12.7897 -2.36172 + 1.28421 10.979 -2.03489 + 1.11947 12.8837 -2.35029 + 0.867122 14.8026 -2.42647 + 0.927521 14.3673 -2.47911 + 0.870583 14.8026 -2.5033 + 2.53561 14.5649 -2.50326 + 0.857606 14.8504 -2.54172 + 0.592974 15.7102 -2.54172 + 0.870583 14.8026 -2.5033 + 0.589117 15.7102 -2.50181 + 0.867122 14.8026 -2.42647 + 0.813238 14.8026 -2.34133 + 1.28421 10.979 -2.03489 + 1.19916 10.979 -1.87503 + 1.56704 8.19044 -1.87532 + 1.46276 8.19042 -1.6472 + 1.57098 8.15069 -1.87341 + 1.46643 8.15071 -1.64429 + 1.85422 5.23086 -1.7591 + 1.73052 5.23085 -1.45375 + 1.85805 5.19107 -1.75757 + 1.73409 5.19109 -1.45131 + 1.98195 3.89537 -1.70893 + 1.84957 3.89537 -1.37654 + 2.03056 3.38663 -1.68324 + 1.88839 3.53595 -1.35933 + 2.02635 3.35231 -1.6629 + 1.87885 3.47098 -1.32973 + 1.89473 3.36048 -1.33634 + 1.66513 3.36457 -1.04894 + 1.7377 2.42885 -0.979334 + 1.33748 3.36458 -0.800606 + 1.39502 2.42887 -0.723569 + 1.36177 2.40898 -0.702301 + -0.097103 -0.143256 -0.238995 + -0.097103 -0.143256 -0.300065 + -0.097757 -1.14357 -0.255914 + -0.14797 -1.64359 -0.237224 + -0.064853 -1.67702 -0.230946 + 0.001245 -2.32098 -0.214042 + 0.001621 -1.74376 -0.225155 + 0.825825 -2.321 -0.269608 + 0.825834 -1.9824 -0.276011 + 1.16463 -2.00241 -0.406523 + 0.825843 -1.6438 -0.282415 + 1.15475 -1.64381 -0.40921 + 1.15313 -0.14341 -0.47175 + 1.19053 -0.143411 -0.485923 + 1.18757 0.104393 -0.489187 + 1.52162 0.104417 -0.617135 + 1.14971 0.144387 -0.475468 + 1.51917 0.144342 -0.617135 + 0.808146 0.392199 -0.347626 + 1.4853 0.392181 -0.609904 + 0.760055 1.8734 -0.411494 + 1.39459 1.87338 -0.667956 + 1.36177 2.40898 -0.702301 + 1.38151 2.38906 -0.708592 + 1.39502 2.42887 -0.723569 + 1.73547 2.38907 -0.97268 + 1.7377 2.42885 -0.979334 + 1.97748 2.42885 -1.27558 + 1.89473 3.36048 -1.33634 + 2.11443 2.42886 -1.61239 + 2.02635 3.35231 -1.6629 + 2.03788 3.36456 -1.70144 + 2.03056 3.38663 -1.68324 + 2.17013 3.36456 -2.19116 + 1.98195 3.89537 -1.70893 + 2.11595 3.89536 -2.20749 + 1.85805 5.19107 -1.75757 + 1.98347 5.19107 -2.21694 + 1.85422 5.23086 -1.7591 + 1.97937 5.23086 -2.21708 + 1.57098 8.15069 -1.87341 + 1.67661 8.15068 -2.21708 + 1.56704 8.19044 -1.87532 + 1.67241 8.19042 -2.21831 + 1.28421 10.979 -2.03489 + 1.50895 9.70789 -2.31179 + 1.11947 12.8837 -2.35029 + 1.34227 10.9753 -2.36211 + 2.73159 12.7897 -2.36172 + 7.00277 12.5407 -2.39198 + 2.73078 12.7838 -2.42826 + 7.00195 12.5348 -2.45852 + 6.98032 12.6205 -2.46597 + 7.00277 12.5407 -2.39198 + 6.97729 12.8272 -2.41687 + 8.54002 12.451 -2.40288 + 8.54049 13.4225 -2.48726 + 8.61492 13.4117 -2.50999 + 8.61492 13.6811 -2.5181 + 8.61492 13.6811 -2.53336 + 8.54068 13.7076 -2.5031 + 8.54068 13.7076 -2.5491 + 6.9499 13.9347 -2.50315 + 6.94995 13.9347 -2.55417 + 2.53561 14.5649 -2.50326 + 2.53579 14.5649 -2.56823 + 0.870583 14.8026 -2.5033 + 0.870822 14.8026 -2.57353 + 0.857606 14.8504 -2.54172 + 0.867838 14.8026 -2.63718 + 0.592974 15.7102 -2.54172 + 0.589715 15.7102 -2.57477 + -0.540327 15.7109 -2.60818 + -0.500323 15.7109 -2.63617 + -0.751449 14.8036 -2.81405 + -0.198878 15.7105 -2.65471 + -0.30122 14.803 -2.86783 + 0.013668 15.7102 -2.66115 + 0.013153 14.8026 -2.88662 + 0.226209 15.7102 -2.65457 + 0.327515 14.8026 -2.86763 + 0.527643 15.7102 -2.63585 + 0.77771 14.8026 -2.81356 + 0.567629 15.7102 -2.60783 + 0.836014 14.8026 -2.73264 + 0.589715 15.7102 -2.57477 + 0.867838 14.8026 -2.63718 + } + NormalBinding PER_VERTEX + NormalArray 9680 + { + -0.569598 -0.403042 -0.71632 + -0.780194 -0.276556 -0.561083 + -0.568607 -0.27655 -0.77473 + 0.171346 0.0862026 -0.981432 + 0.15497 0.0256572 -0.987586 + 0.0734717 0.120458 -0.989996 + -0.780329 -0.0153655 -0.625181 + -0.996316 0.0136525 -0.0846638 + -0.722044 -0.00368209 -0.691837 + -0.00534864 -0.0243093 -0.99969 + -0.0580436 -0.0304232 -0.99785 + -0.0574785 -0.0217006 -0.998111 + -0.419804 0.368075 -0.829629 + -0.00421819 0.198095 -0.980174 + 8.13932e-06 0.307295 -0.951614 + -0.275059 0.0127676 -0.961343 + -0.178257 0.101688 -0.978716 + -0.447149 0.0592697 -0.892494 + -0.207933 -0.677131 -0.705874 + -0.129441 -0.52995 -0.838092 + -0.144754 -0.604273 -0.783518 + 0.151586 -0.612128 -0.776094 + 0.114254 -0.952759 -0.281418 + 0.116522 -0.903396 -0.412671 + 0.13532 -0.537069 -0.832613 + 0.135918 -0.730995 -0.66871 + 0.203682 -0.680661 -0.703714 + -0.00922617 -0.217423 0.976034 + -0.00673713 0.148767 0.988849 + 0.0441526 -0.204694 0.97783 + 0.99458 0.00622682 0.103783 + 0.862705 0.0365807 0.504383 + 0.869319 0.0351413 0.493001 + 0.9433 -0.100475 0.316369 + 0.940569 -0.125819 0.315435 + 0.992624 -0.10313 0.0637277 + -0.0507696 0.534721 0.843502 + 0.00303881 0.172375 0.985027 + -0.0457608 0.550676 0.833464 + 0.0488324 -0.18802 0.98095 + -0.0159192 0.0599111 0.998077 + 0.0439239 -0.20469 0.977841 + 0.044038 -0.204687 0.977836 + 0.0488324 -0.18802 0.98095 + 0.00957178 0.56466 0.825268 + -0.0464656 0.533539 0.844498 + 0.0176626 0.298517 0.954241 + -0.045058 0.550711 0.833479 + 0.26088 0.00410083 -0.965362 + 0.250406 -0.0153935 -0.968019 + 0.435618 -0.00689889 -0.900105 + -0.219204 -0.392308 -0.893333 + -0.111557 -0.49232 -0.863236 + -0.232849 -0.0959868 -0.967764 + 0.0945429 -0.871627 -0.480966 + 0.171024 -0.883604 -0.435884 + -0.169743 -0.0739605 0.982709 + 0.965341 -0.190255 0.178661 + 0.793742 -0.373849 -0.479802 + 0.976177 -0.151157 -0.15566 + -4.53331e-06 -0.998067 0.0621449 + -2.69439e-05 -0.998067 0.0621388 + -0.00186611 -0.405316 -0.914175 + -0.037796 -0.0201927 0.999081 + -0.0632384 -0.0454167 0.996965 + -0.0985968 -0.276318 0.955995 + -0.0207976 -0.0202 0.99958 + -0.0477242 -0.0568999 0.997239 + -0.0882458 -0.298346 0.95037 + -0.00169885 -0.0202046 0.999794 + -0.0282961 -0.0557264 0.998045 + -0.0693479 -0.298092 0.952015 + 0.0295799 -0.0282203 0.999164 + -0.00550216 -0.0666049 0.997764 + -0.0668278 -0.403098 0.912714 + -0.881392 -0.14703 0.448922 + -0.606014 -0.0986593 0.789312 + -0.777311 -0.0803891 0.623959 + 0.0283298 -0.0448712 0.998591 + 0.00168685 -0.0260275 0.99966 + -0.0310776 -0.2955 0.954837 + -0.869142 -0.478178 -0.126244 + -2.76632e-05 -0.998059 0.0622817 + -0.0510786 -0.165174 -0.984941 + 0.0743392 -0.0341827 0.996647 + 0.0491132 -0.0254964 0.998468 + 0.013251 -0.279406 0.960082 + -0.0290606 -0.999578 4.30505e-05 + -0.0405363 -0.999134 0.00937804 + -0.993887 -0.108538 -0.0201864 + -0.0657711 -0.407265 -0.910939 + -2.25596e-05 -0.998059 0.062268 + -1.32722e-05 -0.998051 0.0624059 + 0.0633084 -0.0343343 0.997403 + 0.0377667 -0.0257045 0.998956 + 0.00219734 -0.279625 0.960107 + -0.0515117 -0.144109 -0.98822 + -0.024261 -0.177465 -0.983828 + 0.020063 -0.411146 -0.911349 + -0.057325 -0.569981 -0.819655 + -0.00511983 -0.177795 -0.984054 + -0.0319048 -0.14423 -0.98903 + 0.0819463 -0.442625 0.892955 + 0.0207864 -0.0258585 0.999449 + 0.0477983 -0.0451771 0.997835 + 0.18391 -0.087181 0.979069 + 0.247742 -0.294242 0.923063 + 0.251005 -0.38847 0.886616 + 0.00548134 -0.0965344 0.995315 + -0.0295648 -0.0375571 0.998857 + -0.0602208 -0.382887 0.92183 + -0.102221 -0.059953 0.992953 + 0.48442 -0.148702 -0.862105 + -2.38767e-05 -0.998051 0.0624 + 0.0905782 -0.654139 -0.750931 + 0.151266 -0.830702 -0.535773 + -0.00696156 -0.721797 -0.69207 + -0.0602199 -0.382887 0.92183 + 0.00548125 -0.0965344 0.995315 + -0.0295643 -0.037557 0.998857 + 0.260418 -0.00102406 -0.965495 + 0.175777 -0.0204251 -0.984218 + 0.0571763 0.030738 -0.997891 + -0.399454 -0.0125866 -0.916667 + -0.454023 0.0360509 -0.89026 + -0.187977 -0.0220356 -0.981926 + -0.0447146 0.550721 0.833491 + 0.00937704 0.564655 0.825274 + 0.0160506 0.220203 0.975322 + -0.00332306 0.191305 0.981525 + 0.0431413 -0.204679 0.977878 + 0.0446331 -0.186779 0.981387 + 0.00939846 0.564655 0.825274 + 0.0432514 -0.204682 0.977872 + 0.0446331 -0.186779 0.981387 + 0.976175 -0.151166 -0.155662 + 0.965357 -0.190244 0.178585 + 0.793763 -0.373793 -0.479811 + 0.783981 0.0438598 0.619233 + 0.935543 -0.0145473 0.352913 + 0.860765 0.036814 0.507669 + 0.236577 -0.273491 -0.932327 + 0.229986 -0.240035 -0.943128 + 0.245744 -0.202944 -0.947852 + -0.0743255 -0.284206 -0.955878 + -0.218482 -0.413358 -0.883969 + -0.145337 -0.803058 -0.577906 + 0.17103 -0.88358 -0.435931 + -0.169743 -0.0739574 0.982709 + 0.0945399 -0.871632 -0.480957 + 8.19192e-05 -0.998048 0.0624498 + -2.2501e-05 -0.998058 0.0622919 + -5.45167e-06 -0.998061 0.0622466 + 0.669718 -0.41604 0.615133 + 0.828155 -0.145744 -0.541218 + 0.0418399 -0.967684 -0.24867 + 0.0296298 -0.397958 -0.916925 + -0.0320641 -0.145976 -0.988768 + -0.00762819 -0.158537 -0.987324 + -0.0668259 -0.403089 0.912718 + 0.0295799 -0.0282204 0.999164 + -0.005505 -0.0665919 0.997765 + 0.723624 -0.688854 0.0429937 + 0.037767 -0.0257036 0.998956 + 0.809468 -0.586022 0.0366081 + 0.00183534 -0.39767 -0.917527 + -0.0654128 -0.143995 -0.987414 + -0.0397878 -0.165896 -0.98534 + -0.0338987 -0.999425 4.86642e-05 + 0.0380841 -0.999059 0.0207498 + 0.0363558 -0.998864 0.0307911 + -0.00930313 -0.3974 -0.917598 + -0.0764167 -0.143865 -0.986642 + -0.051079 -0.16517 -0.984942 + 0.969733 -0.0677201 0.234588 + 0.717988 -0.677757 0.158552 + 0.61617 -0.756721 0.21842 + 0.0151516 -0.162247 -0.986634 + -0.0200327 -0.21804 -0.975734 + -0.0786388 -0.438515 -0.895277 + -0.0400736 -0.652128 0.757049 + 0.1112 -0.160227 0.980797 + 0.0503293 -0.100727 0.99364 + -0.0150272 -0.499704 0.866066 + 0.091885 -0.108363 0.989856 + 0.0472041 -0.0616071 0.996984 + 0.990282 -0.0889601 0.106898 + 0.988596 -0.150298 0.00937479 + -0.681873 -0.727121 -0.0796533 + 0.484269 -0.151173 -0.86176 + 0.213767 -0.161819 -0.963389 + 0.133714 -0.157591 -0.97841 + -0.320354 -0.403047 -0.857278 + -0.568606 -0.276557 -0.774728 + -0.301465 -0.276564 -0.912486 + 0.217723 0.908056 0.357814 + -0.0859732 -0.992146 0.0908616 + 0.0911119 -0.902311 0.421347 + 0.425888 -0.0133439 0.904678 + 0.377176 -0.438408 0.815804 + 0.267726 0.851906 0.450087 + 0.255953 0.851907 -0.456883 + 0.143168 0.950963 -0.274174 + 0.108285 0.971275 -0.211896 + 0.57053 -0.0132602 -0.82117 + 0.51792 -0.438337 -0.734588 + 0.255953 0.851907 -0.456883 + 0.229427 -0.973255 0.0117346 + -0.895423 -0.437738 -0.0812562 + -0.785216 -0.611384 -0.0982097 + 0.14999 0.909085 0.388674 + 0.32448 0.612215 0.721045 + -0.116595 0.969404 -0.216011 + -0.06959 -0.996571 0.0447522 + 0.30338 0.952827 0.00898048 + 0.0489416 -0.994862 0.0886288 + 0.0232725 -0.99822 0.0549045 + -0.367994 -0.437963 0.820225 + -0.150707 -0.908365 0.390077 + -0.00389462 -0.996567 -0.0826994 + -0.159602 0.952811 0.25822 + -0.101494 -0.994834 -0.00208959 + -0.0167427 -0.552558 0.833306 + 0.0141471 -0.556903 0.830457 + -0.00920554 -0.538183 0.842778 + -0.332547 -0.493719 0.803526 + -0.224045 -0.525307 0.820888 + -0.200162 -0.514552 0.833769 + -0.869296 -0.241932 0.431037 + -0.678293 -0.277194 0.680502 + -0.724095 -0.240477 0.646418 + -0.533298 -0.54209 0.649409 + -0.360853 -0.493567 0.791313 + -0.503448 -0.427755 0.75071 + -0.0403046 -0.910676 -0.411151 + -0.0667347 -0.235105 -0.969676 + -0.068625 -0.256772 -0.964032 + -0.524173 -0.151781 0.837977 + -0.877245 -0.240959 0.415187 + -0.93074 -0.156398 0.330548 + -0.994472 -0.0414841 0.0964616 + -0.921939 -0.0894273 0.37687 + -0.966709 -0.0738314 0.244997 + 0.0236655 0.209156 0.977596 + 0.000476325 0.362395 0.932024 + -0.64544 0.19196 0.739296 + -0.0396409 0.115743 0.992488 + -0.0678262 -0.905149 0.419649 + -0.0596297 0.0202148 0.998016 + 0.795957 0.129851 0.591263 + 0.987904 0.0353684 -0.150978 + 0.864846 0.129602 0.48502 + -0.104122 0.107865 0.988698 + -0.0599071 0.105281 0.992636 + -0.0560772 0.075651 0.995556 + -0.662456 0.0518136 0.747307 + -0.840826 0.0749688 0.536088 + -0.659753 0.0542372 0.749523 + -0.360998 0.0176258 0.9324 + -0.368773 0.0196256 0.929312 + -0.156033 0.0215649 0.987516 + -0.664886 0.0118515 0.746851 + -0.843482 0.00840599 0.537092 + -0.665508 0.0124609 0.746287 + 0.168564 -0.0560347 0.984097 + 0.22227 -0.0517192 0.973612 + 0.36293 -0.0683993 0.929303 + -0.577274 -0.465802 0.670659 + -0.870881 -0.284709 0.400633 + -0.709663 -0.487208 0.508927 + -0.581482 -0.492771 0.647345 + -0.626719 -0.497908 0.599425 + -0.520066 -0.517385 0.679591 + -0.357794 -0.502706 0.786937 + -0.475114 -0.477534 0.739072 + -0.419023 -0.503394 0.755655 + -0.67426 -0.241518 0.697885 + -0.619124 -0.25195 0.743778 + -0.633911 -0.222243 0.740787 + 0.169304 -0.247369 0.954015 + 0.191396 -0.180947 0.964689 + 0.0123194 -0.0528062 0.998529 + 0.181215 0.00825169 0.983409 + 0.345728 -0.0971205 0.933295 + 0.195748 -0.0301121 0.980192 + -0.916921 0.0982204 0.386794 + -0.919971 0.0969145 0.379817 + -0.956108 0.100833 0.275119 + 0.994517 0.0217391 -0.102292 + 0.999706 0.0241005 -0.00279697 + 0.997208 0.00814001 -0.0742341 + 0.94838 0.00322739 0.31712 + 0.96331 -0.00338959 0.268368 + 0.993284 -0.00654551 0.115513 + 0.918373 0.00415198 0.395693 + 0.843704 0.0123032 0.536668 + 0.845469 0.00793213 0.533966 + -0.0138976 0.656187 0.75447 + -0.0337855 -0.603965 0.796294 + -0.0516572 0.0678814 0.996355 + 0.014665 0.326354 0.945134 + 0.039443 0.189171 0.981152 + 0.0232932 0.279504 0.959862 + 0.659274 -0.248052 0.709808 + 0.659847 -0.292751 0.692025 + 0.78876 -0.246269 0.563213 + -0.948897 -0.131664 0.286808 + -0.823034 -0.13963 0.550562 + -0.971401 -0.0755953 0.225089 + 0.025484 0.181513 0.983058 + 0.0482057 0.0414274 0.997978 + 0.0200139 0.0630059 0.997812 + 0.0301574 0.656672 0.753573 + 0.0960393 -0.602002 0.792698 + 0.0572684 0.0223486 0.998109 + 0.000722472 2.73066e-05 -1 + 0.130647 -8.45405e-06 -0.991429 + 0.134531 -7.882e-05 -0.990909 + 0.00111439 -0.546558 0.83742 + 0.0722484 -0.528608 0.845786 + -0.00163825 -0.534722 0.845027 + 0.193708 -0.499014 0.844667 + 0.277575 -0.507337 0.815819 + 0.128639 -0.509673 0.850697 + 0.366786 0.018286 0.930126 + 0.243334 0.0202098 0.969732 + 0.368566 0.0193364 0.9294 + 0.922402 0.0975088 0.373719 + 0.852454 0.103897 0.512374 + 0.848096 0.0913888 0.521902 + -0.966922 0.240143 -0.0859797 + -0.995958 0.0839288 -0.0319895 + -0.941264 0.316667 -0.117236 + 0.0226693 -0.296406 0.954793 + 0.00756167 0.726484 0.687141 + -0.0310655 0.158862 0.986812 + -0.0510947 0.0541304 0.997226 + -0.85728 -0.0130984 0.514684 + -0.639994 -0.00994665 0.768316 + 0.222565 0.184026 0.957392 + 0.976212 0.0619814 0.207771 + 0.247562 0.155186 0.956363 + 0.0657214 0.00213462 0.997836 + 0.102256 0.0308836 0.994279 + 0.180262 0.0350512 0.982994 + -0.855267 0.091514 0.510042 + -0.924158 0.108965 0.366141 + -0.847575 0.104477 0.52029 + -0.996834 0.0664759 -0.0436344 + -0.999995 0.00130506 -0.00272662 + -0.99995 0.00653573 -0.00763167 + -0.99982 -0.00729988 0.0175069 + -0.810049 0.303694 -0.501589 + -0.980655 0.135618 -0.141152 + -0.336735 0.0824186 0.937985 + -0.239059 0.0912388 0.966709 + -0.239661 0.0580694 0.969118 + 0.246136 0.107107 0.963299 + 0.613428 0.0779165 0.785898 + 0.468329 0.0906193 0.878895 + 0.634763 -0.0733192 0.769221 + 0.0750443 -0.0420033 0.996295 + 0.0104309 -0.0911511 0.995782 + 0.992076 0.104771 -0.0693416 + 0.994715 0.10264 -0.00249811 + 0.99475 0.102145 0.00619676 + -0.707585 0.169097 0.686098 + -0.918318 0.129396 0.374098 + -0.781306 0.142614 0.607637 + -0.92835 0.0150611 0.371402 + -0.692138 0.0173531 -0.721557 + -0.913777 -0.00228753 -0.40621 + -0.931928 -0.195351 0.305529 + -0.922087 0.00741314 0.386912 + -0.988861 0.0017389 0.148834 + -0.99728 0.0736733 -0.00239543 + -0.957287 0.251018 0.1435 + -0.942762 0.318617 -0.0984003 + 0.984768 -0.171521 -0.0285042 + 0.972754 -0.172301 0.155119 + 0.999338 -0.0324728 0.0164197 + -0.757774 -0.0959764 0.64542 + -0.114372 -0.204307 0.972203 + -0.0980872 -0.00137172 0.995177 + -0.112095 -0.0107504 0.993639 + 0.0165432 0.0778725 0.996826 + 0.229379 -0.00592648 0.973319 + 0.051851 0.238548 -0.969745 + -0.0241546 0.252791 -0.967219 + 0.121589 0.271109 -0.954838 + -0.568607 -0.27655 -0.77473 + -0.32034 -0.403045 -0.857285 + -0.569598 -0.403042 -0.71632 + 7.28664e-08 -1 1.07095e-07 + 7.28664e-08 -1 1.07095e-07 + -0.763064 -0.403036 -0.505267 + -0.569598 -0.403042 -0.71632 + -0.780194 -0.276556 -0.561083 + -0.914324 -0.40303 0.0397241 + -0.960988 -0.276552 0.00464627 + -0.881843 -0.403033 -0.24478 + -0.915384 -0.276556 -0.292556 + -0.857289 -0.403035 0.320341 + -0.912522 -0.276552 0.301369 + -0.914324 -0.40303 0.0397241 + -0.960988 -0.276552 0.00464627 + -0.579631 -0.0920884 -0.809659 + -0.301374 -0.276555 -0.912519 + -0.568607 -0.27655 -0.77473 + -0.32034 -0.403045 -0.857285 + -0.301374 -0.276555 -0.912519 + -0.0397211 -0.403049 -0.914316 + -0.32034 -0.403045 -0.857285 + 7.28664e-08 -1 1.07095e-07 + -0.505304 -0.403042 0.763037 + -0.561107 -0.276554 0.780177 + -0.716369 -0.403035 0.569542 + -0.774727 -0.276556 0.568608 + -0.561107 -0.276554 0.780177 + -0.590904 -0.0921 0.801467 + -0.774727 -0.276556 0.568608 + -0.809643 -0.0921031 0.579651 + -0.590904 -0.0921 0.801467 + -0.577988 0.395918 0.713568 + -0.809643 -0.0921031 0.579651 + -0.77031 0.395817 0.499951 + -0.244786 -0.403044 0.881836 + -0.292553 -0.276558 0.915384 + -0.505304 -0.403042 0.763037 + -0.561107 -0.276554 0.780177 + -0.292553 -0.276558 0.915384 + -0.314326 -0.0921086 0.944836 + -0.561107 -0.276554 0.780177 + -0.590904 -0.0921 0.801467 + -0.314326 -0.0921086 0.944836 + -0.313655 0.485353 0.816121 + -0.590904 -0.0921 0.801467 + -0.577988 0.395918 0.713568 + -0.225891 0.485336 -0.844643 + 0.00695762 -0.0921132 -0.995724 + -0.301076 -0.0920994 -0.949142 + -0.00464589 -0.276566 -0.960984 + 0.00695762 -0.0921132 -0.995724 + 0.292554 -0.276573 -0.91538 + -0.00464589 -0.276566 -0.960984 + 0.244764 -0.403056 -0.881837 + 0.292554 -0.276573 -0.91538 + 0.505294 -0.40306 -0.763034 + 0.244764 -0.403056 -0.881837 + 7.28664e-08 -1 1.07095e-07 + 0.320319 -0.403057 0.857287 + 0.30137 -0.276568 0.912516 + 0.0397428 -0.403054 0.914313 + 0.00464594 -0.27657 0.960983 + 0.30137 -0.276568 0.912516 + 0.301092 -0.0921313 0.949134 + 0.00464594 -0.27657 0.960983 + -0.0069733 -0.0921214 0.995723 + 0.301092 -0.0921313 0.949134 + 0.237347 0.395947 0.88707 + -0.0069733 -0.0921214 0.995723 + -0.0484226 0.395962 0.916989 + 0.237347 0.395947 0.88707 + 0.279007 0.628607 0.725953 + -0.0484226 0.395962 0.916989 + 0.041003 0.628598 0.776648 + 0.279007 0.628607 0.725953 + 0.201006 -0.628603 0.751302 + 0.041003 0.628598 0.776648 + -0.0410038 -0.62861 0.776639 + 0.569584 -0.403065 0.716319 + 0.568602 -0.276585 0.774721 + 0.320319 -0.403057 0.857287 + 0.30137 -0.276568 0.912516 + 0.568602 -0.276585 0.774721 + 0.579598 -0.0921236 0.809678 + 0.30137 -0.276568 0.912516 + 0.301092 -0.0921313 0.949134 + 0.579598 -0.0921236 0.809678 + 0.499815 0.395951 0.77033 + 0.301092 -0.0921313 0.949134 + 0.237347 0.395947 0.88707 + 0.499815 0.395951 0.77033 + 0.489682 0.628597 0.604217 + 0.237347 0.395947 0.88707 + 0.279007 0.628607 0.725953 + 0.489682 0.628597 0.604217 + 0.362963 -0.745237 0.559357 + 0.279007 0.628607 0.725953 + 0.201006 -0.628603 0.751302 + 0.313652 0.485328 -0.816137 + 0.590887 -0.0921294 -0.801476 + 0.314337 -0.0921142 -0.944832 + 0.561091 -0.276578 -0.78018 + 0.590887 -0.0921294 -0.801476 + 0.774661 -0.276603 -0.568675 + 0.561091 -0.276578 -0.78018 + 0.716352 -0.403066 -0.569542 + 0.774661 -0.276603 -0.568675 + 0.857241 -0.403104 -0.320383 + 0.716352 -0.403066 -0.569542 + 7.28664e-08 -1 1.07095e-07 + -0.0281339 -0.282259 0.958926 + 0.0296376 -0.397995 -0.916909 + 0.031145 -0.0285405 0.999107 + 0.0676615 -0.0586702 0.995982 + 0.0676615 -0.0586702 0.995982 + 0.00671325 -0.0955187 0.995405 + 0.031145 -0.0285405 0.999107 + -0.0281339 -0.282259 0.958926 + -0.654392 -0.0670622 0.753175 + -0.833811 -0.381025 0.399474 + -0.847592 -0.191453 0.494908 + -0.944751 -0.325579 0.0379999 + 0.0262322 0.33319 0.942495 + 1.49009e-05 0.597465 0.801895 + 0.0409023 -0.106003 0.993524 + 0.0392043 -0.090357 0.995138 + 0.484568 -0.791171 0.373152 + 0.748286 -0.640291 0.173482 + 0.730215 -0.521962 0.440842 + 0.823737 -0.54956 0.139433 + -0.0491457 -0.0201798 0.998588 + -0.108533 -0.275814 0.955064 + 0.104893 -0.393505 -0.913319 + 0.0511064 -0.158261 -0.986074 + 0.171346 0.0862026 -0.981432 + 0.273479 0.00561674 -0.961862 + 0.15497 0.0256572 -0.987586 + 0.205255 -0.00557106 -0.978693 + 0.273479 0.00561674 -0.961862 + 0.345387 -0.0108207 -0.938398 + 0.205255 -0.00557106 -0.978693 + 0.240876 -0.023439 -0.970273 + 0.345387 -0.0108207 -0.938398 + 0.386356 -0.0297895 -0.921869 + 0.240876 -0.023439 -0.970273 + 0.258432 -0.0415053 -0.965137 + 0.386356 -0.0297895 -0.921869 + 0.46681 -0.0404393 -0.883433 + 0.258432 -0.0415053 -0.965137 + 0.264149 -0.0532574 -0.96301 + 0.241707 0.0185459 -0.970172 + 0.360567 0.149478 -0.920678 + 0.164323 0.140965 -0.976282 + 0.00419757 0.224186 -0.974537 + 0.00830222 0.160484 -0.987004 + 0.00811509 0.174408 -0.98464 + 0.0902539 0.145756 -0.985195 + 0.742143 0.368783 -0.559664 + 0.993339 0.026113 -0.112233 + 0.993297 0.0323226 -0.110977 + 0.996751 0.0420309 0.0687135 + 0.972329 0.156208 0.173709 + 0.993339 0.026113 -0.112233 + 0.996573 0.0280492 -0.077816 + 0.715703 -0.00542807 -0.698384 + 0.753213 -0.0202604 -0.657465 + 0.0176626 0.298517 0.954241 + -0.0504512 0.536129 0.842627 + -0.0451737 0.550706 0.833476 + -0.00910459 -0.217426 0.976034 + -0.00910459 -0.217426 0.976034 + 0.00947332 0.564659 0.82527 + -0.0451737 0.550706 0.833476 + 0.0176626 0.298517 0.954241 + 0.0447731 -0.186045 0.981521 + 0.00944661 0.56466 0.825269 + 0.0434732 -0.204687 0.977862 + -0.00908425 -0.217424 0.976035 + -0.00908425 -0.217424 0.976035 + 0.0448423 -0.185758 0.981572 + 0.0434732 -0.204687 0.977862 + 0.0447731 -0.186045 0.981521 + -0.0159192 0.0599111 0.998077 + 0.0449855 -0.185017 0.981705 + 0.0438104 -0.204688 0.977846 + 0.00952198 0.564659 0.82527 + 0.00952198 0.564659 0.82527 + -0.00915163 -0.217421 0.976035 + 0.0438104 -0.204688 0.977846 + -0.0159192 0.0599111 0.998077 + -0.0506879 0.535158 0.84323 + -0.00917842 -0.217421 0.976035 + -0.0455243 0.550691 0.833467 + 0.00954425 0.564661 0.825268 + 0.00954425 0.564661 0.825268 + -0.0506097 0.535423 0.843066 + -0.0455243 0.550691 0.833467 + -0.0506879 0.535158 0.84323 + -0.722044 -0.00368209 -0.691837 + -0.3593 -0.00927065 -0.933176 + -0.780329 -0.0153655 -0.625181 + -0.411465 -0.0266903 -0.911035 + -0.3593 -0.00927065 -0.933176 + -0.227295 -0.0067982 -0.973802 + -0.411465 -0.0266903 -0.911035 + -0.254728 -0.0312751 -0.966507 + -0.227295 -0.0067982 -0.973802 + -0.208438 -1.72122e-05 -0.978036 + -0.254728 -0.0312751 -0.966507 + -0.174623 -0.0264301 -0.984281 + -0.208438 -1.72122e-05 -0.978036 + -0.189621 -0.00829529 -0.981822 + -0.174623 -0.0264301 -0.984281 + -0.116367 -0.0316863 -0.992701 + -0.998522 0.0222788 0.0495638 + -0.996871 0.0285843 -0.0736918 + -0.996316 0.0136525 -0.0846638 + -0.722044 -0.00368209 -0.691837 + -0.00534864 -0.0243093 -0.99969 + -0.00809825 -0.0285394 -0.99956 + -0.0580436 -0.0304232 -0.99785 + -0.116367 -0.0316863 -0.992701 + -0.447149 0.0592697 -0.892494 + -0.442217 -0.00654635 -0.896884 + -0.275059 0.0127676 -0.961343 + -0.250407 -0.0153791 -0.968019 + 0.0567327 -0.0277008 -0.998005 + -0.00764373 -0.0330928 -0.999423 + -0.00809825 -0.0285394 -0.99956 + -0.116367 -0.0316863 -0.992701 + -0.00764373 -0.0330928 -0.999423 + -0.0947117 -0.038938 -0.994743 + -0.116367 -0.0316863 -0.992701 + -0.167074 -0.0396428 -0.985147 + -0.129441 -0.52995 -0.838092 + -0.100658 -0.529489 -0.842324 + -0.144754 -0.604273 -0.783518 + -0.0874476 -0.564661 -0.820677 + 0.9433 -0.100475 0.316369 + 0.925752 -0.101413 0.364278 + 0.940569 -0.125819 0.315435 + 0.918314 -0.127518 0.374751 + -0.994122 0.0317438 -0.103505 + -0.997686 0.0282057 -0.0618624 + -0.997332 0.0419242 0.0597632 + -0.994229 0.047191 0.0963402 + 0.0103576 0.0761899 0.99704 + 0.10725 -0.00206392 0.99423 + 0.202384 -0.0102361 0.979253 + 0.208557 -0.0137956 0.977913 + -0.199744 0.074159 0.977038 + -0.204155 0.0727501 0.976232 + -0.03085 0.0758127 0.996645 + -0.10764 -0.000587226 0.99419 + -0.10764 -0.000587226 0.99419 + -0.00131427 0.00602492 0.999981 + -0.03085 0.0758127 0.996645 + 0.000360305 0.00613562 0.999981 + -0.00775291 -0.636754 -0.771028 + 0.00648408 -0.553942 -0.83253 + 0.0822595 -0.726724 -0.681987 + 0.0894448 -0.573943 -0.813996 + 0.00648408 -0.553942 -0.83253 + -0.00973968 -0.529629 -0.848173 + 0.0894448 -0.573943 -0.813996 + 0.060734 -0.529506 -0.846129 + -0.00973968 -0.529629 -0.848173 + 0.000552461 -0.523299 -0.852149 + 0.060734 -0.529506 -0.846129 + 0.0566371 -0.536563 -0.841958 + 0.939095 -0.16192 0.303122 + 0.982393 -0.186137 0.0160595 + 0.984588 -0.173942 0.0181729 + 0.981828 -0.188259 -0.0239158 + 0.235246 -0.0473365 0.970782 + 0.107501 -0.0047634 0.994194 + 0.109101 -0.0317142 0.993525 + 0.000468936 -0.0122604 0.999925 + 0.739748 -0.484383 0.467061 + 0.455292 -0.54678 0.702667 + 0.56123 -0.253004 0.788042 + 0.197571 -0.423925 0.883885 + 0.048912 -0.187555 0.981036 + -0.00919924 -0.217421 0.976035 + -0.0507696 0.534721 0.843502 + -0.0456425 0.550681 0.833467 + 0.0447731 -0.186045 0.981521 + -0.00905796 -0.217424 0.976035 + -0.0464656 0.533539 0.844498 + -0.0449431 0.550717 0.833481 + 0.0433619 -0.20468 0.977868 + 0.0447012 -0.186501 0.981437 + 0.0094248 0.564662 0.825268 + -0.0463911 0.533957 0.844238 + 0.0447012 -0.186501 0.981437 + -0.00903792 -0.217427 0.976035 + -0.0463911 0.533957 0.844238 + -0.0448287 0.55072 0.833485 + 0.0431408 -0.204678 0.977878 + -0.00901188 -0.217425 0.976035 + 0.0446332 -0.186781 0.981387 + -0.0463233 0.534246 0.844059 + -0.0463233 0.534246 0.844059 + 0.00939854 0.564659 0.82527 + 0.0446332 -0.186781 0.981387 + 0.043251 -0.204681 0.977873 + 0.751228 0.121527 0.648758 + 0.591442 0.14934 0.792397 + 0.360725 0.167163 0.91757 + 0.290813 0.167213 0.942055 + 0.974897 -0.0107443 -0.222395 + 0.999961 0.00632419 -0.00609383 + 0.999985 -0.000284485 -0.00556197 + 0.993541 0.0164504 0.112278 + 0.26088 0.00410083 -0.965362 + 0.203423 -0.00648121 -0.97907 + 0.250406 -0.0153935 -0.968019 + 0.109201 -0.0297743 -0.993574 + 0.0148518 -0.513685 0.85785 + 0.132955 -0.573884 -0.808072 + 0.096433 -0.184317 -0.978125 + 0.0508988 -0.233807 -0.97095 + -0.047058 -0.0839621 0.995357 + -0.0926054 -0.0548347 0.994192 + -0.139362 -0.467494 0.872942 + -0.0238285 -0.507982 -0.861038 + -0.0860549 -0.74007 -0.667001 + -0.0219844 -0.995434 -0.0928865 + -0.0414063 -0.890981 -0.452148 + 0.127862 -0.0508269 0.990489 + 0.1112 -0.160221 0.980798 + 0.0503288 -0.10072 0.993641 + -0.0400726 -0.652128 0.75705 + -0.170858 -0.403792 -0.898755 + 0.0503288 -0.10072 0.993641 + 0.316366 -0.154467 0.935977 + -0.170858 -0.403792 -0.898755 + -0.698184 -0.578806 -0.421336 + 0.896353 -0.386384 -0.217392 + 0.91078 -0.101186 -0.400302 + 0.746392 -0.5617 -0.35692 + 0.823291 -0.181828 -0.537709 + 0.484568 -0.791171 0.373152 + -0.918975 -0.113576 -0.377605 + -0.980086 -0.184913 -0.0723741 + -0.781921 -0.6087 -0.134474 + 0.746392 -0.5617 -0.35692 + 0.046284 -0.508882 0.859591 + -0.606637 -0.470503 0.640795 + 0.126622 -0.212929 -0.968828 + 0.046284 -0.508882 0.859591 + 0.155158 -0.574913 -0.803368 + 0.126622 -0.212929 -0.968828 + 0.0621973 -0.288539 -0.955446 + -0.0503295 -0.101194 0.993593 + -0.112957 -0.075932 0.990694 + -0.176843 -0.496467 0.849851 + -0.0652713 -0.514566 -0.854963 + -0.112957 -0.075932 0.990694 + 0.639854 -0.638381 -0.427851 + -0.0652713 -0.514566 -0.854963 + -0.315762 -0.163078 0.934719 + -0.777311 -0.0803891 0.623959 + -0.925586 -0.103295 0.36417 + -0.881392 -0.14703 0.448922 + -0.942651 -0.140281 0.30287 + -0.897359 -0.425905 0.115547 + -0.814423 -0.579513 0.0296512 + -0.907864 -0.41889 -0.0177348 + -0.975145 -0.202226 -0.0905372 + -0.106985 -0.95354 0.281631 + 0.129411 -0.964874 0.228628 + -0.160849 -0.945194 0.284141 + 0.17064 -0.837107 0.519744 + -0.966471 -0.249905 0.0590085 + -0.835546 -0.538179 0.110577 + -0.714949 -0.536531 0.448311 + -0.68508 -0.708441 0.169639 + -0.0290606 -0.999578 4.30505e-05 + 0.038821 -0.999174 0.0119974 + -0.0405363 -0.999134 0.00937804 + 0.0462555 -0.998612 0.0252052 + 0.038821 -0.999174 0.0119974 + 0.887809 -0.0941705 0.450474 + 0.0462555 -0.998612 0.0252052 + 0.797777 -0.0740369 0.59839 + 0.887809 -0.0941705 0.450474 + 0.722076 -0.457562 0.518887 + 0.797777 -0.0740369 0.59839 + 0.775861 -0.226431 -0.588871 + 0.722076 -0.457562 0.518887 + -0.159757 -0.116334 0.980278 + 0.775861 -0.226431 -0.588871 + -0.0147905 -0.117882 0.992917 + -0.159757 -0.116334 0.980278 + -0.036744 -0.203324 0.978422 + -0.0147905 -0.117882 0.992917 + 0.0296607 -0.00940797 0.999516 + 0.811553 -0.542918 0.21592 + 0.148969 -0.352031 0.924058 + -0.869142 -0.478178 -0.126244 + -0.0512683 -0.187771 -0.980874 + 0.148969 -0.352031 0.924058 + 0.0222217 -0.604467 -0.79632 + -0.0512683 -0.187771 -0.980874 + -0.0961963 -0.203609 -0.974315 + -0.126989 -0.193752 -0.972797 + -0.0632771 -0.198978 -0.977959 + 0.0551875 -0.706002 -0.706057 + 0.174191 -0.515712 0.838868 + -0.129722 -0.6053 -0.785356 + -0.0150231 -0.499657 0.866093 + 0.0472026 -0.0615948 0.996984 + 0.0918859 -0.108346 0.989858 + -0.0334862 -0.147007 -0.988568 + -0.00788589 -0.122785 -0.992402 + 0.0338563 -0.412411 -0.910369 + 0.147353 -0.282945 0.947749 + -0.486609 -0.0593583 -0.871601 + -0.211587 -0.234128 -0.948902 + -0.138028 -0.100965 -0.985269 + -0.0680696 -0.176535 -0.981938 + -0.211587 -0.234128 -0.948902 + 0.029085 -0.799608 0.599817 + -0.0680696 -0.176535 -0.981938 + 0.0458255 -0.764803 0.642633 + 0.18391 -0.087181 0.979069 + 0.237774 -0.066623 0.969033 + 0.247742 -0.294242 0.923063 + 0.143017 -0.264935 0.953601 + -0.00677197 -0.0233694 0.999704 + -0.0312153 0.000525149 0.999513 + -0.0644529 -0.266389 0.961708 + -0.0294715 -0.413824 -0.90988 + 0.109325 -0.696136 0.709537 + -0.11698 -0.618634 0.776922 + 0.0668361 -0.362934 -0.929415 + 0.00786288 -0.148206 -0.988925 + -0.0388661 -0.11281 -0.992856 + 0.0361674 -0.145493 -0.988698 + 0.0683144 -0.138344 -0.988025 + 0.132827 -0.210161 -0.968602 + 0.0280782 -0.286129 0.95778 + 0.0626692 -0.382728 -0.921733 + 0.0320248 -0.156161 -0.987212 + 0.0076222 -0.153385 -0.988137 + -0.0307772 -0.116635 0.992698 + -0.0644546 -0.266417 0.9617 + -0.00677179 -0.0233706 0.999704 + 0.0626684 -0.38272 -0.921737 + 0.0626684 -0.38272 -0.921737 + 0.0294514 -0.114511 0.992985 + -0.00677179 -0.0233706 0.999704 + -0.0307772 -0.116635 0.992698 + -0.0678177 -0.526871 -0.847235 + -0.009739 -0.529629 -0.848174 + 0.00647184 -0.553965 -0.832515 + 0.0894258 -0.573963 -0.813984 + -0.009739 -0.529629 -0.848174 + 0.0607343 -0.529506 -0.846129 + 0.0894258 -0.573963 -0.813984 + 0.167092 -0.61313 -0.772108 + 0.130414 -0.746571 -0.652398 + 0.0418399 -0.967684 -0.24867 + 0.177176 -0.882164 -0.436343 + -0.0536447 -0.948568 -0.311996 + -0.0515121 -0.144112 -0.98822 + 0.020063 -0.411144 -0.91135 + -0.0136634 -0.296386 0.95497 + 0.0477984 -0.045177 0.997835 + -0.037796 -0.0201927 0.999081 + -0.0985969 -0.276318 0.955995 + 0.0948816 -0.3941 -0.914157 + 0.0398126 -0.158474 -0.98656 + -0.00169899 -0.0202057 0.999794 + -0.0693494 -0.298104 0.952011 + 0.0626204 -0.412803 -0.908665 + 0.00511549 -0.168296 -0.985723 + 0.0621943 -0.288526 -0.95545 + 0.155157 -0.574922 -0.803362 + -0.176849 -0.496478 0.849844 + -0.050329 -0.101191 0.993593 + 0.0448639 -0.085942 0.99529 + 0.183899 -0.0871833 0.979071 + 0.0074685 -0.12201 0.992501 + 0.251018 -0.38846 0.886616 + 0.251018 -0.38846 0.886616 + 0.0349972 -0.422198 0.905828 + 0.0074685 -0.12201 0.992501 + 0.000800576 -0.138637 0.990343 + 0.000800576 -0.138637 0.990343 + 0.0370651 -0.107399 0.993525 + 0.0074685 -0.12201 0.992501 + 0.0448639 -0.085942 0.99529 + -0.0380249 0.0150101 -0.999164 + -0.0644644 -0.420251 -0.905115 + -0.213468 0.405354 -0.888887 + 0.000552374 -0.523298 -0.85215 + 0.000552374 -0.523298 -0.85215 + -0.0581067 -0.536403 -0.841959 + -0.213468 0.405354 -0.888887 + -0.0380249 0.0150101 -0.999164 + 0.103259 -0.0329198 0.99411 + -0.0414084 -0.890982 -0.452147 + -0.0245212 -0.995528 -0.0912245 + -0.0705404 -0.72768 -0.68228 + -0.194297 -0.727167 -0.658389 + -0.241736 -0.542708 -0.804383 + -0.165676 -0.556933 -0.813866 + -0.190517 -0.526548 -0.828523 + -0.0932996 -0.427925 -0.898986 + 0.0138219 -0.286672 -0.957929 + -0.0644644 -0.420251 -0.905115 + 0.000552374 -0.523298 -0.85215 + 0.000681799 -0.008355 0.999965 + -0.0184288 -0.0318032 0.999324 + 0.0328135 -0.0241575 0.99917 + 0.0184535 -0.059838 0.998038 + -0.0184288 -0.0318032 0.999324 + -0.0124913 -0.373897 0.927386 + 0.0184535 -0.059838 0.998038 + 0.0217968 -0.266334 0.963634 + 0.602598 -0.113188 0.789977 + 0.767799 -0.122266 0.628916 + 0.607731 -0.0941008 0.788548 + 0.6062 -0.0585229 0.793156 + 0.659435 0.0545998 0.749777 + 0.545309 0.0626001 0.835895 + 0.199823 0.073747 0.977053 + 0.192811 0.073906 0.978449 + -0.00481618 0.186616 -0.982421 + 0.000235384 0.192086 -0.981378 + -0.000989269 0.268617 -0.963247 + 0.00419731 0.224186 -0.974537 + 0.431673 0.249559 -0.866821 + 0.335067 0.0180651 -0.942021 + 0.482803 0.0370327 -0.874946 + 0.333127 -0.0100611 -0.942828 + -0.0457611 0.550676 0.833464 + 0.0030388 0.172375 0.985027 + -0.00922621 -0.217423 0.976034 + -0.00673715 0.148767 0.988849 + -0.141001 0.389421 0.910203 + -0.741006 0.27058 0.61457 + -0.452296 0.153794 0.878508 + -0.990034 0.0525298 0.130664 + -0.741006 0.27058 0.61457 + -0.976614 0.0898781 -0.195314 + -0.990034 0.0525298 0.130664 + -0.994124 0.0317488 -0.103491 + 0.0110346 0.403442 0.914939 + -0.0340992 0.732974 0.679401 + -0.00915164 -0.217421 0.976035 + -0.0506113 0.535433 0.84306 + 0.0441527 -0.20469 0.977831 + 0.0489109 -0.187547 0.981037 + 0.00959379 0.56466 0.825268 + -0.0507698 0.534719 0.843503 + 0.0489109 -0.187547 0.981037 + -0.00919927 -0.217418 0.976035 + -0.0507698 0.534719 0.843503 + -0.0456431 0.550685 0.833464 + 0.0439233 -0.204684 0.977842 + -0.00917837 -0.21742 0.976035 + 0.0488315 -0.188018 0.980951 + -0.050689 0.535169 0.843223 + -0.050689 0.535169 0.843223 + 0.009572 0.564662 0.825267 + 0.0488315 -0.188018 0.980951 + 0.0440377 -0.204689 0.977836 + -0.0158394 0.17973 0.983588 + -0.00913104 -0.217425 0.976034 + -0.0638575 0.179045 0.981766 + -0.0452902 0.550705 0.83347 + -0.0448281 0.550716 0.833488 + -0.04639 0.533953 0.844241 + -0.00903797 -0.217429 0.976034 + 0.0447012 -0.186505 0.981437 + -0.04639 0.533953 0.844241 + 0.00942467 0.564656 0.825272 + 0.0447012 -0.186505 0.981437 + 0.043362 -0.204685 0.977867 + -0.0450574 0.550706 0.833482 + 0.00944646 0.564655 0.825273 + -0.0464649 0.533535 0.844501 + 0.0447731 -0.186039 0.981522 + 0.0447731 -0.186039 0.981522 + -0.00905799 -0.217425 0.976035 + -0.0464649 0.533535 0.844501 + -0.0449424 0.550716 0.833482 + 0.0436973 -0.204691 0.977851 + 0.0449158 -0.185303 0.981654 + 0.00949513 0.564663 0.825267 + 0.0171645 0.298438 0.954275 + 0.0449158 -0.185303 0.981654 + -0.00910457 -0.217426 0.976034 + 0.0171645 0.298438 0.954275 + -0.0451735 0.550701 0.833479 + 0.0434731 -0.204682 0.977863 + -0.00908432 -0.217426 0.976035 + 0.0448419 -0.185751 0.981573 + -0.0465359 0.533266 0.844667 + -0.0465359 0.533266 0.844667 + 0.00947336 0.564656 0.825272 + 0.0448419 -0.185751 0.981573 + 0.0435849 -0.204686 0.977857 + -0.448482 0.0781762 -0.890366 + -0.29973 0.0116996 -0.953952 + -0.178256 0.101688 -0.978716 + -0.191747 0.025423 -0.981115 + -0.191747 0.025423 -0.981115 + -0.189464 0.0137879 -0.981791 + -0.178256 0.101688 -0.978716 + -0.120426 0.0911068 -0.988533 + -0.189464 0.0137879 -0.981791 + -0.294174 0.0100237 -0.955699 + -0.120426 0.0911068 -0.988533 + -0.120578 0.108951 -0.986707 + -0.60521 0.0591121 0.793868 + -0.614927 0.0573676 0.786495 + -0.198989 0.0736227 0.977232 + -0.171655 -0.00797123 0.985125 + -0.171655 -0.00797123 0.985125 + -0.107638 -0.000583759 0.99419 + -0.198989 0.0736227 0.977232 + -0.105712 0.0752549 0.991545 + -0.990314 -0.125096 -0.0602449 + -0.99501 -0.0947794 0.0311853 + -0.999983 -0.00168746 -0.00563873 + -0.999993 -0.000143469 0.00367071 + -0.990314 -0.125096 -0.0602449 + -0.952343 -0.165619 -0.25615 + -0.99501 -0.0947794 0.0311853 + -0.986777 -0.0418561 -0.156586 + -0.952343 -0.165619 -0.25615 + -0.760749 -0.0421588 -0.647676 + -0.986777 -0.0418561 -0.156586 + -0.957711 0.060354 0.281332 + -0.760749 -0.0421588 -0.647676 + -0.48634 -0.218039 -0.846128 + -0.957711 0.060354 0.281332 + -0.877007 0.0897423 -0.472022 + -0.48634 -0.218039 -0.846128 + -0.981277 -0.11166 -0.156929 + -0.877007 0.0897423 -0.472022 + -0.985986 -0.0334906 0.163431 + -0.965376 -0.210824 -0.153631 + -0.793674 -0.311596 0.522485 + -0.976159 -0.130712 0.173288 + -0.540599 0.0873678 0.836732 + -0.793674 -0.311596 0.522485 + -0.910002 -0.30256 -0.283468 + -0.540599 0.0873678 0.836732 + -0.722797 -0.142493 0.67621 + -0.910002 -0.30256 -0.283468 + -0.991714 -0.127551 0.0152962 + -0.722797 -0.142493 0.67621 + -0.992281 -0.115534 0.0450482 + -0.991714 -0.127551 0.0152962 + -0.986248 -0.158898 -0.0454513 + -0.992281 -0.115534 0.0450482 + -0.984921 -0.171079 0.0257345 + -0.940831 -0.144336 0.306602 + -0.850777 -0.139023 0.506805 + -0.920828 -0.102422 0.376278 + -0.767569 -0.0790496 0.636074 + -0.00785228 -0.173181 -0.984859 + -0.0331984 -0.217156 -0.975572 + -0.0660579 -0.396349 -0.91572 + -0.444553 -0.163088 0.880781 + 0.676107 -0.717992 0.16543 + -0.966155 -0.126955 0.22456 + 0.75377 -0.657116 -0.0053478 + -0.533984 -0.0348637 0.844776 + -0.966155 -0.126955 0.22456 + -0.645579 -0.360615 0.67319 + -0.533984 -0.0348637 0.844776 + -0.315761 -0.163078 0.93472 + -0.0217703 -0.63021 -0.77612 + -0.139368 -0.467556 0.872908 + -0.0924547 -0.0681875 0.993379 + -0.0470568 -0.0839694 0.995357 + 0.0380841 -0.999059 0.0207498 + 0.79775 -0.0740492 0.598424 + 0.0363558 -0.998864 0.0307911 + 0.283222 -0.18288 -0.941456 + 0.79775 -0.0740492 0.598424 + 0.775891 -0.226432 -0.588831 + 0.283222 -0.18288 -0.941456 + 0.0558723 -0.155972 -0.98618 + 0.775891 -0.226432 -0.588831 + -0.0147902 -0.117884 0.992917 + 0.0558723 -0.155972 -0.98618 + 0.054951 -0.14418 0.988025 + -0.0147902 -0.117884 0.992917 + 0.0292596 -0.116406 0.992771 + 0.054951 -0.14418 0.988025 + 0.102756 -0.00495331 0.994694 + 0.0124415 -0.466557 0.884404 + 0.0813721 -0.412876 -0.907145 + 0.0514736 -0.1504 -0.987284 + 0.0242658 -0.168568 -0.985391 + -0.0207979 -0.0202 0.99958 + -0.0477246 -0.0569045 0.997238 + -0.0882459 -0.298344 0.95037 + -0.0200392 -0.416779 -0.908787 + -0.0477246 -0.0569045 0.997238 + 0.931505 -0.363186 0.0198725 + -0.0200392 -0.416779 -0.908787 + -0.80322 -0.594524 0.0371443 + -0.0122789 -0.437251 0.899256 + 0.104894 -0.393515 -0.913314 + 0.0763736 -0.150274 -0.98569 + 0.0511068 -0.158263 -0.986073 + 0.0508984 -0.23381 -0.970949 + 0.0964295 -0.18431 -0.978126 + 0.132957 -0.573904 -0.808057 + 0.0148408 -0.513668 0.857861 + 0.00842919 -0.567617 -0.82325 + -0.108536 -0.275827 0.95506 + -0.0742569 -0.0455081 0.9962 + -0.0491457 -0.0201799 0.998588 + -0.239926 -0.706162 -0.666161 + -0.0400829 -0.996446 -0.0740857 + -0.0245212 -0.995528 -0.0912245 + 0.0326394 -0.999392 -0.0122636 + -0.0573251 -0.569979 -0.819657 + -0.0310786 -0.295499 0.954837 + 0.00168977 -0.0260261 0.99966 + 0.0283298 -0.0448711 0.998591 + -0.0319059 -0.144223 -0.989031 + -0.00512647 -0.168551 -0.98568 + 0.0373145 -0.410297 -0.911188 + 0.0685536 -0.324814 0.94329 + -0.239927 -0.274959 0.931038 + -0.239287 -0.0695682 0.968453 + -0.272211 -0.385716 0.881546 + -0.176291 -0.0877059 0.980423 + 0.105288 -0.736448 0.66825 + 0.143023 -0.264939 0.953599 + 0.0274689 -0.259774 0.965279 + 0.124936 -0.0680176 0.989831 + -0.654358 -0.067298 0.753185 + -0.471232 -0.439563 0.764673 + -0.698461 -0.515117 0.496797 + -0.591286 -0.130101 0.795899 + -0.813857 -0.580135 0.0328568 + -0.889274 -0.44514 0.105085 + -0.942258 -0.171999 0.287345 + -0.85675 -0.14893 0.49376 + -0.606015 -0.0986539 0.789312 + -0.169642 -0.0405067 0.984673 + -0.598949 -0.0579886 0.798685 + -0.255076 -0.0193754 0.966727 + -0.169642 -0.0405067 0.984673 + -0.0201558 -0.0228252 0.999536 + -0.255076 -0.0193754 0.966727 + -0.107233 -0.00302107 0.994229 + -0.0201558 -0.0228252 0.999536 + -0.00036562 0.00489826 0.999988 + -0.107233 -0.00302107 0.994229 + 6.1757e-05 0.0693676 0.997591 + -0.030401 0.0759269 0.99665 + -0.227025 0.121653 0.966261 + -0.194582 0.0739778 0.978093 + -0.617471 0.0944266 0.780906 + -0.227025 0.121653 0.966261 + -0.509249 0.125732 0.851385 + -0.617471 0.0944266 0.780906 + -0.802909 0.0878522 0.589593 + -0.509249 0.125732 0.851385 + -0.726001 0.127772 0.675719 + -0.802909 0.0878522 0.589593 + -0.994229 0.0471907 0.09634 + -0.301465 -0.276564 -0.912486 + -0.0398065 -0.403087 -0.914296 + -0.320354 -0.403047 -0.857278 + -8.40763e-09 -1 5.98046e-10 + -8.40763e-09 -1 5.98046e-10 + -0.569576 -0.403043 -0.716337 + -0.320354 -0.403047 -0.857278 + -0.568606 -0.276557 -0.774728 + -0.881843 -0.403032 -0.24478 + -0.915389 -0.276552 -0.292545 + -0.763044 -0.403037 -0.505298 + -0.780185 -0.27656 -0.561093 + -0.914324 -0.40303 0.039724 + -0.960991 -0.276542 0.00463429 + -0.881843 -0.403032 -0.24478 + -0.915389 -0.276552 -0.292545 + -0.301088 -0.0920923 -0.949139 + -0.00473764 -0.276574 -0.960981 + -0.301465 -0.276564 -0.912486 + -0.0398065 -0.403087 -0.914296 + -0.00473764 -0.276574 -0.960981 + 0.244763 -0.403109 -0.881813 + -0.0398065 -0.403087 -0.914296 + -8.40763e-09 -1 5.98046e-10 + -0.716347 -0.403039 0.569568 + -0.774728 -0.276556 0.568606 + -0.857289 -0.403034 0.320341 + -0.912521 -0.276552 0.30137 + -0.774728 -0.276556 0.568606 + -0.809649 -0.0921049 0.579642 + -0.912521 -0.276552 0.30137 + -0.949154 -0.0920814 0.301045 + -0.809649 -0.0921049 0.579642 + -0.770311 0.396004 0.499801 + -0.949154 -0.0920814 0.301045 + -0.887063 0.395984 0.237309 + -0.505281 -0.403045 0.76305 + -0.561098 -0.27656 0.780182 + -0.716347 -0.403039 0.569568 + -0.774728 -0.276556 0.568606 + -0.561098 -0.27656 0.780182 + -0.590905 -0.0920999 0.801467 + -0.774728 -0.276556 0.568606 + -0.809649 -0.0921049 0.579642 + -0.590905 -0.0920999 0.801467 + -0.550462 0.485373 0.679268 + -0.809649 -0.0921049 0.579642 + -0.770311 0.396004 0.499801 + 0.0461053 0.485345 -0.873106 + 0.314349 -0.0920956 -0.94483 + 0.00696705 -0.0920929 -0.995726 + 0.292537 -0.276567 -0.915387 + 0.314349 -0.0920956 -0.94483 + 0.561071 -0.276577 -0.780195 + 0.292537 -0.276567 -0.915387 + 0.505282 -0.403114 -0.763013 + 0.561071 -0.276577 -0.780195 + 0.716302 -0.403126 -0.569563 + 0.505282 -0.403114 -0.763013 + -8.40763e-09 -1 5.98046e-10 + 0.0397398 -0.403107 0.91429 + 0.00456863 -0.276552 0.960988 + -0.244881 -0.403059 0.881803 + -0.292628 -0.276547 0.915364 + 0.00456863 -0.276552 0.960988 + -0.00699543 -0.0921078 0.995724 + -0.292628 -0.276547 0.915364 + -0.314323 -0.0921067 0.944837 + -0.00699543 -0.0921078 0.995724 + -0.0484229 0.395955 0.916992 + -0.314323 -0.0921067 0.944837 + -0.329411 0.395971 0.857144 + -0.0484229 0.395955 0.916992 + 0.0410035 0.628617 0.776633 + -0.329411 0.395971 0.857144 + -0.201006 0.628605 0.751301 + 0.0410035 0.628617 0.776633 + -0.0410028 -0.628606 0.776643 + -0.201006 0.628605 0.751301 + -0.279011 -0.62859 0.725966 + 0.320307 -0.403111 0.857266 + 0.301387 -0.276565 0.912512 + 0.0397398 -0.403107 0.91429 + 0.00456863 -0.276552 0.960988 + 0.301387 -0.276565 0.912512 + 0.30108 -0.0921134 0.94914 + 0.00456863 -0.276552 0.960988 + -0.00699543 -0.0921078 0.995724 + 0.30108 -0.0921134 0.94914 + 0.23734 0.395952 0.887069 + -0.00699543 -0.0921078 0.995724 + -0.0484229 0.395955 0.916992 + 0.23734 0.395952 0.887069 + 0.278961 0.62871 0.725882 + -0.0484229 0.395955 0.916992 + 0.0410035 0.628617 0.776633 + 0.278961 0.62871 0.725882 + 0.171963 -0.745453 0.643995 + 0.0410035 0.628617 0.776633 + -0.0410028 -0.628606 0.776643 + 0.550473 0.485336 -0.679285 + 0.80966 -0.0921165 -0.579625 + 0.590895 -0.0921088 -0.801473 + 0.774704 -0.276584 -0.568626 + 0.80966 -0.0921165 -0.579625 + 0.912507 -0.27658 -0.301387 + 0.774704 -0.276584 -0.568626 + 0.857254 -0.403123 -0.320323 + 0.912507 -0.27658 -0.301387 + 0.914282 -0.403125 -0.0397384 + 0.857254 -0.403123 -0.320323 + -8.40763e-09 -1 5.98046e-10 + -0.0859732 -0.992146 0.0908616 + -0.104593 -0.973255 -0.204537 + 0.0911119 -0.902311 0.421347 + 0.307564 -0.611359 0.72914 + 0.307564 -0.611359 0.72914 + 0.39552 0.366963 0.841963 + 0.0911119 -0.902311 0.421347 + 0.217723 0.908056 0.357814 + -0.200999 -0.908132 -0.367282 + -0.121627 0.992152 0.0290037 + -0.319301 0.902313 -0.289616 + 0.129405 0.971274 0.199703 + -0.104593 -0.973255 -0.204537 + -0.136514 -0.953823 -0.267556 + 0.185528 0.923653 0.335326 + 0.163944 0.939446 0.300939 + -0.136514 -0.953823 -0.267556 + -0.115378 -0.966757 -0.228186 + 0.163944 0.939446 0.300939 + 0.158902 0.9465 0.28087 + -0.115378 -0.966757 -0.228186 + -0.0754653 -0.983002 -0.167369 + 0.158902 0.9465 0.28087 + 0.202238 0.941281 0.270353 + -0.0754653 -0.983002 -0.167369 + -0.00967133 -0.99567 -0.092452 + 0.202238 0.941281 0.270353 + 0.31858 0.901985 0.291428 + -0.00967133 -0.99567 -0.092452 + 0.10102 -0.994459 -0.0291045 + 0.31858 0.901985 0.291428 + 0.92033 0.332812 0.205497 + 0.0970666 -0.995169 0.0146942 + -0.124877 -0.973255 0.192824 + 0.343993 -0.898351 -0.273194 + 0.510872 -0.608313 -0.607425 + -0.42588 0.0134361 0.90468 + -0.3955 -0.36697 0.841969 + -0.307597 0.611268 0.729202 + -0.09114 0.902277 0.421415 + 0.418734 -0.908058 0.00959683 + 0.0356918 0.992152 -0.119834 + 0.410505 0.902295 -0.131717 + -0.237649 0.971275 0.0121703 + -0.996418 -0.0132846 -0.0835122 + -0.52364 0.851913 0.0067469 + -0.926935 0.366925 -0.0784742 + -0.418562 0.908137 0.00961976 + -0.785216 -0.611384 -0.0982097 + -0.410498 -0.90229 -0.131776 + 0.229427 -0.973255 0.0117346 + -0.0356915 -0.992146 -0.119887 + -0.200941 0.908135 -0.367305 + -0.293212 0.809796 -0.50819 + -0.589636 0.363868 -0.721061 + -0.624427 -0.0131523 -0.780972 + 0.217572 -0.908136 0.357704 + 0.276663 -0.837322 0.471539 + 0.329766 -0.363483 0.871283 + 0.364167 0.0133356 0.931238 + -0.579904 -0.814684 0.000624998 + -0.988558 0.0133797 -0.150245 + -0.919456 -0.363437 -0.150044 + 0.418405 0.90821 0.0096058 + -0.418742 -0.908054 0.00959687 + 0.919262 0.363893 -0.15013 + 0.988553 -0.0133794 -0.150281 + 0.586714 0.809794 0.000169588 + -0.579904 -0.814684 0.000624998 + -0.423685 -0.905708 -0.0136046 + 0.276675 0.960915 0.00963831 + 0.271417 0.962424 0.0085789 + -0.423685 -0.905708 -0.0136046 + -0.374459 -0.927238 -0.00321144 + 0.271417 0.962424 0.0085789 + 0.192605 0.981032 0.0219192 + 0.28936 -0.814783 -0.502393 + 0.624474 0.0131488 -0.780935 + 0.589563 -0.363947 -0.721081 + -0.217678 0.908059 0.357834 + 0.0232725 -0.99822 0.0549045 + -0.364076 -0.0131468 0.931277 + -0.367994 -0.437963 0.820225 + -0.279805 0.832653 0.477911 + 0.28936 -0.814783 -0.502393 + 0.223624 -0.90571 -0.360114 + -0.146648 0.960923 0.23478 + -0.143071 0.962461 0.230651 + 0.223624 -0.90571 -0.360114 + 0.18995 -0.92724 -0.322716 + -0.143071 0.962461 0.230651 + -0.115339 0.98103 0.155811 + -0.00249652 -0.529768 0.848139 + -0.0451605 -0.520944 0.852395 + -0.0896217 -0.529239 0.843726 + -0.180641 -0.516765 0.836853 + -0.123009 -0.554395 0.823113 + -0.105078 -0.568215 0.816144 + -0.0174359 -0.571963 0.820094 + -0.0259652 -0.548825 0.835534 + -0.0259652 -0.548825 0.835534 + 0.0536519 -0.568152 0.821173 + -0.0174359 -0.571963 0.820094 + 0.0234106 -0.57019 0.821179 + -0.329748 -0.16685 -0.929208 + -0.580286 -0.216527 -0.785101 + -0.443603 -0.170644 -0.879828 + -0.722978 -0.193565 -0.663201 + -0.319426 -0.119126 -0.940094 + -0.452295 -0.154297 -0.87842 + -0.367932 -0.0654566 -0.927546 + -0.809977 -0.109391 -0.576169 + -0.0409778 -0.0228958 -0.998898 + 0.134719 -0.0227105 -0.990624 + 0.0436051 -0.0235747 -0.998771 + 0.133139 -0.0230851 -0.990828 + -0.0844805 -0.289422 -0.953466 + -0.0755337 -0.247675 -0.965894 + -0.0660147 -0.870455 -0.487801 + -0.048197 -0.767577 -0.639142 + -0.0668495 -0.155454 -0.985579 + -0.072204 -0.15906 -0.984625 + -0.0667347 -0.235105 -0.969676 + -0.068625 -0.256772 -0.964032 + 0.0415602 0.545301 0.837209 + 0.0607833 0.0459946 0.997091 + 0.0579236 0.0829841 0.994866 + 0.0939156 -0.889156 0.447863 + 0.0606199 0.0448909 0.997151 + 0.0587697 -0.0663344 0.996065 + 0.0487436 0.0424028 0.997911 + 0.0466703 -0.063237 0.996907 + 0.0466703 -0.063237 0.996907 + 0.0177548 0.0367424 0.999167 + 0.0487436 0.0424028 0.997911 + 0.0247033 0.123524 0.992034 + 0.0466703 -0.063237 0.996907 + 0.01872 -0.109557 0.993804 + 0.0177548 0.0367424 0.999167 + -0.994493 -0.0137812 -0.103888 + -0.995586 0.00117304 -0.0938471 + -0.993209 -0.0321922 -0.111799 + -0.999695 -0.0211153 0.0128037 + -0.997851 -0.0508555 0.041325 + -0.935343 -0.00467757 0.353712 + -0.981481 -0.0567145 0.182972 + -0.971963 -0.0792859 0.221363 + -0.978488 -0.0796385 0.190313 + -0.757929 -0.472305 0.449969 + -0.880466 -0.325283 0.344921 + -0.755465 -0.284964 0.589974 + -0.870796 -0.297293 0.391576 + -0.880466 -0.325283 0.344921 + -0.898519 -0.286003 0.332966 + -0.870796 -0.297293 0.391576 + -0.895166 -0.249381 0.369441 + -0.898519 -0.286003 0.332966 + -0.901659 -0.248269 0.354082 + -0.895166 -0.249381 0.369441 + -0.93074 -0.156398 0.330548 + -0.901659 -0.248269 0.354082 + -0.896498 -0.186106 0.402065 + -0.93074 -0.156398 0.330548 + -0.920362 -0.122033 0.371539 + -0.896498 -0.186106 0.402065 + -0.838492 -0.148569 0.524269 + -0.920362 -0.122033 0.371539 + -0.847585 -0.113581 0.518362 + -0.657723 0.00220639 0.753257 + -0.728121 0.0160278 0.685261 + -0.611776 0.0397565 0.790031 + -0.731433 -0.100796 0.674422 + -0.707129 -0.00218749 0.707081 + -0.848033 -0.00687413 0.529898 + -0.850988 0.000533671 0.525184 + -0.953627 0.000287598 0.300991 + -0.9809 0.0184048 -0.193642 + -0.973229 0.0540916 -0.223383 + -0.974228 0.00339082 -0.225539 + -0.983977 0.0210049 -0.177053 + 0.000476325 0.362395 0.932024 + -0.084963 0.0454129 -0.995349 + -0.64544 0.19196 0.739296 + -0.929386 0.00415258 -0.369085 + -0.929386 0.00415258 -0.369085 + -0.98499 0.031993 0.169618 + -0.64544 0.19196 0.739296 + 0.0236655 0.209156 0.977596 + -0.0396409 0.115743 0.992488 + -0.0506666 0.0917469 0.994493 + -0.0678262 -0.905149 0.419649 + -0.0592699 -0.118953 0.991129 + -0.0353807 0.116566 0.992553 + -0.0231966 0.192501 0.981023 + -0.0584034 0.0439709 0.997324 + -0.0400524 0.191827 0.980611 + -0.0231966 0.192501 0.981023 + -0.0270442 0.246925 0.968657 + -0.0400524 0.191827 0.980611 + -0.0289102 0.249357 0.96798 + -0.0270442 0.246925 0.968657 + 0.106712 0.165194 -0.980471 + -0.0289102 0.249357 0.96798 + 0.096163 0.137558 -0.985815 + -0.0584034 0.0439709 0.997324 + -0.991573 0.0151089 0.128662 + -0.0501612 0.117046 0.991859 + -0.0491522 0.141373 0.988735 + 0.322279 -0.0074673 -0.946615 + 0.362771 -0.0091744 -0.931833 + 0.85853 -0.0515126 -0.510169 + 0.901116 -0.0233255 -0.43295 + 0.659317 0.0313154 0.751213 + 0.661415 0.029451 0.749442 + 0.841571 0.0233655 0.53964 + 0.842295 0.0206886 0.53862 + -0.0421866 0.182759 0.982252 + -0.0322159 0.208387 0.977516 + 0.98264 0.0221484 -0.184194 + 0.978137 0.0301883 -0.205757 + -0.0322159 0.208387 0.977516 + 0.5412 0.19576 -0.81779 + 0.978137 0.0301883 -0.205757 + 0.972325 0.0979042 -0.21213 + 0.972325 0.0979042 -0.21213 + 0.959248 0.0103612 -0.282374 + 0.978137 0.0301883 -0.205757 + 0.98264 0.0221484 -0.184194 + 0.959248 0.0103612 -0.282374 + 0.945913 0.00615024 -0.324362 + 0.98264 0.0221484 -0.184194 + 0.987904 0.0353684 -0.150978 + -0.225025 0.0479766 0.973171 + -0.995783 0.0437442 0.0806387 + 0.635643 0.499866 -0.588296 + 0.964237 -0.0520639 0.259878 + 0.964237 -0.0520639 0.259878 + 0.786471 0.0885148 0.611252 + 0.635643 0.499866 -0.588296 + -0.225025 0.0479766 0.973171 + -0.659753 0.0542372 0.749523 + -0.511505 0.0345509 0.858586 + -0.662456 0.0518136 0.747307 + -0.499942 0.0332125 0.865422 + -0.511505 0.0345509 0.858586 + -0.358695 0.0179448 0.933282 + -0.499942 0.0332125 0.865422 + -0.366032 0.050979 0.929205 + -0.156033 0.0215649 0.987516 + -0.162002 0.0364982 0.986115 + -0.360998 0.0176258 0.9324 + -0.35875 0.0347467 0.932787 + -0.35875 0.0347467 0.932787 + -0.360879 0.0169344 0.932459 + -0.360998 0.0176258 0.9324 + -0.368773 0.0196256 0.929312 + -0.363129 0.0387841 0.930931 + -0.563437 0.0336535 0.825473 + -0.490264 0.016838 0.871411 + -0.663882 0.0288003 0.747283 + -0.571944 -0.281221 0.770581 + -0.679861 -0.241784 0.692336 + -0.607333 -0.319841 0.727219 + -0.775884 -0.264643 0.572685 + 0.22227 -0.0517192 0.973612 + 0.360726 -0.118306 0.925138 + 0.36293 -0.0683993 0.929303 + 0.447709 -0.127728 0.88501 + 0.360726 -0.118306 0.925138 + 0.434113 -0.186833 0.881272 + 0.447709 -0.127728 0.88501 + 0.789259 -0.169034 0.590337 + 0.239578 -0.0654054 0.968672 + -0.00349449 -0.53744 0.843295 + 0.0452968 -0.0576538 0.997308 + -0.298502 -0.53461 0.790626 + -0.42764 -0.52376 0.736749 + -0.325691 -0.529294 0.783437 + -0.282903 -0.552176 0.784262 + -0.151768 -0.564641 0.811262 + -0.679861 -0.241784 0.692336 + -0.791784 -0.252066 0.556364 + -0.775884 -0.264643 0.572685 + -0.858053 -0.244977 0.451366 + -0.609648 -0.282513 0.740618 + -0.36327 -0.0833278 0.92795 + -0.714836 -0.161938 0.680283 + -0.707173 -0.131733 0.69466 + -0.621786 -0.092849 0.777664 + -0.577179 -0.0783579 0.81285 + -0.574002 -0.0622927 0.816481 + -0.371269 -0.0277581 0.92811 + -0.215756 -0.214256 0.952651 + 0.0123194 -0.0528062 0.998529 + -0.200338 -0.0436917 0.978752 + -0.0124821 -0.0187631 0.999746 + 0.0123194 -0.0528062 0.998529 + 0.0247216 -0.348225 0.937085 + 0.169304 -0.247369 0.954015 + 0.194503 -0.380493 0.904098 + 0.194503 -0.380493 0.904098 + 0.28666 -0.285533 0.914493 + 0.169304 -0.247369 0.954015 + 0.191396 -0.180947 0.964689 + -0.358695 0.0179448 0.933282 + -0.195505 0.00732693 0.980675 + -0.248705 0.0427871 0.967634 + -0.13219 0.0266787 0.990865 + -0.368773 0.0196256 0.929312 + -0.256634 0.0104866 0.966452 + -0.156033 0.0215649 0.987516 + -0.225025 0.0479766 0.973171 + -0.916921 0.0982204 0.386794 + -0.848244 0.0916083 0.521623 + -0.919971 0.0969145 0.379817 + -0.853277 0.0941871 0.512881 + -0.848244 0.0916083 0.521623 + -0.674039 0.0791964 0.734438 + -0.853277 0.0941871 0.512881 + -0.681278 0.0979124 0.725447 + -0.674039 0.0791964 0.734438 + -0.584161 0.0690428 0.808696 + -0.681278 0.0979124 0.725447 + -0.589246 0.0903576 0.802885 + -0.056046 0.110219 0.992326 + -0.048063 0.166982 0.984788 + -0.0560772 0.075651 0.995556 + -0.0499404 0.162962 0.985368 + -0.048063 0.166982 0.984788 + -0.0370259 0.259914 0.964922 + -0.0499404 0.162962 0.985368 + -0.0407497 0.317719 0.947309 + -0.0370259 0.259914 0.964922 + 0.0843789 0.128638 -0.988095 + -0.0407497 0.317719 0.947309 + 0.071077 0.084153 -0.993915 + 0.071077 0.084153 -0.993915 + 0.0914746 0.0893106 -0.991794 + -0.0407497 0.317719 0.947309 + 0.0756012 0.907176 -0.413903 + -0.104122 0.107865 0.988698 + -0.0563784 0.247523 0.96724 + -0.0467069 0.104809 0.993395 + -0.00305915 0.560111 0.828412 + 0.996371 0.0334657 -0.078266 + 0.989455 0.0419733 0.138625 + -0.0100537 0.133893 0.990945 + -0.0232947 0.0555436 0.998185 + 0.362771 -0.0091744 -0.931833 + 0.151717 -0.894506 -0.420525 + 0.901116 -0.0233255 -0.43295 + 0.0530712 -0.486695 0.871958 + 0.962158 -0.0253848 -0.271306 + 0.960703 -0.160812 -0.22625 + 0.977636 -0.108603 -0.18009 + 0.149666 -0.320637 0.935303 + 0.962158 -0.0253848 -0.271306 + 0.99248 -0.0261592 -0.119581 + 0.992559 -0.0269304 -0.118749 + 0.99879 -0.0352564 0.0342942 + 0.918373 0.00415198 0.395693 + 0.917193 0.00481275 0.398413 + 0.843704 0.0123032 0.536668 + 0.843544 0.00734294 0.537009 + -0.0467069 0.104809 0.993395 + -0.0601804 0.0731985 0.9955 + -0.056046 0.110219 0.992326 + -0.0504579 0.114441 0.992148 + -0.0467069 0.104809 0.993395 + -0.0485822 0.0372881 0.998123 + -0.0601804 0.0731985 0.9955 + -0.0607674 0.0372611 0.997456 + -0.0485822 0.0372881 0.998123 + -0.0531698 -0.049197 0.997373 + -0.0607674 0.0372611 0.997456 + -0.0596262 -0.0663713 0.996012 + -0.991573 0.0151089 0.128662 + -0.0452962 0.290411 0.955829 + -0.0491522 0.141373 0.988735 + 0.0215831 0.632038 0.774636 + -0.98499 0.031993 0.169618 + -0.964506 0.0316779 0.262153 + 0.0236655 0.209156 0.977596 + 0.0351841 0.114549 0.992794 + 0.0380028 0.303138 0.952189 + 0.0492338 0.236761 0.97032 + 0.0520864 0.167989 0.984412 + 0.0502233 0.16447 0.985103 + 0.0608747 -0.0746735 0.995348 + 0.0539554 0.0426595 0.997632 + 0.0536379 0.102071 0.99333 + 0.0452099 0.148099 0.987939 + 0.0505579 0.108648 0.992794 + -0.0106999 0.115823 0.993212 + 0.0553988 0.110052 0.992381 + 0.0452099 0.148099 0.987939 + -0.00853168 0.719625 0.69431 + 0.0162011 0.2904 0.956768 + 0.0731305 -0.00302584 0.997318 + 0.0713193 -0.284815 0.955926 + 0.0608747 -0.0746735 0.995348 + 0.0563519 -0.603564 0.79532 + 0.0539554 0.0426595 0.997632 + -0.00956957 0.655085 0.755495 + 0.629049 -0.45432 0.630786 + 0.490596 -0.37739 0.785425 + 0.460629 -0.578272 0.673367 + 0.228301 -0.361299 0.90407 + 0.490596 -0.37739 0.785425 + 0.247402 -0.280036 0.927563 + 0.228301 -0.361299 0.90407 + -0.0135296 -0.270856 0.962525 + 0.247402 -0.280036 0.927563 + 0.0356721 -0.258757 0.965284 + -0.0135296 -0.270856 0.962525 + -0.226096 -0.265435 0.937243 + 0.0356721 -0.258757 0.965284 + -0.15034 -0.173544 0.973283 + -0.226096 -0.265435 0.937243 + -0.400049 -0.200961 0.89419 + 0.996071 -0.0585083 0.0664856 + 0.987745 -0.0424225 0.150199 + 0.971624 -0.0764472 0.223836 + 0.982953 -0.056352 0.175011 + 0.870099 -0.302996 0.388744 + 0.905016 -0.246149 0.346926 + 0.879487 -0.310851 0.36038 + 0.871376 -0.247677 0.423509 + 0.659847 -0.292751 0.692025 + 0.760866 -0.28019 0.5853 + 0.78876 -0.246269 0.563213 + 0.860668 -0.274413 0.428891 + 0.434113 -0.186833 0.881272 + 0.69589 -0.251041 0.672842 + 0.789259 -0.169034 0.590337 + 0.877928 -0.246754 0.41031 + 0.69589 -0.251041 0.672842 + 0.844657 -0.309683 0.436637 + 0.877928 -0.246754 0.41031 + 0.947164 -0.320673 0.00700452 + 0.844657 -0.309683 0.436637 + 0.923223 -0.383366 0.026255 + 0.947164 -0.320673 0.00700452 + 0.826518 -0.36233 -0.430796 + 0.923223 -0.383366 0.026255 + 0.803373 -0.46785 -0.368386 + 0.826518 -0.36233 -0.430796 + 0.592313 -0.420159 -0.687482 + 0.803373 -0.46785 -0.368386 + 0.621684 -0.552127 -0.555576 + 0.592313 -0.420159 -0.687482 + 0.377102 -0.496542 -0.781818 + -0.99389 -0.0624717 0.0909972 + -0.984389 -0.0783248 -0.157616 + -0.991357 -0.0577951 0.117772 + -0.99065 -0.119204 -0.0663603 + -0.967293 -0.0172904 -0.253071 + -0.948328 -0.162378 -0.272593 + -0.911636 -0.0191552 -0.410552 + -0.126949 -0.552145 -0.824027 + -0.0685366 -0.047951 -0.996496 + -0.0723158 0.00010239 -0.997382 + -0.0754381 -0.128077 -0.988891 + -0.133804 0.000141974 -0.991008 + -0.0137022 0.000245985 -0.999906 + 0.175495 -0.00533188 -0.984466 + 0.198015 0.000798758 -0.980199 + 0.272955 -0.0161984 -0.96189 + 0.272955 -0.0161984 -0.96189 + 0.275218 -0.0225851 -0.961116 + 0.198015 0.000798758 -0.980199 + 0.292567 -0.000109676 -0.956245 + -0.201506 0.00105099 -0.979487 + -0.321615 -0.0430077 -0.945893 + -0.306941 -0.00227429 -0.951726 + -0.873528 -0.0540131 -0.483768 + -0.271633 -0.0213617 -0.962164 + -0.272409 -0.0141857 -0.962077 + -0.232082 -0.000629266 -0.972696 + -0.260424 -0.00811497 -0.96546 + 0.487717 -0.483479 0.726898 + 0.421495 -0.517961 0.744351 + 0.591013 -0.494171 0.637572 + 0.518917 -0.518134 0.679899 + 0.00111439 -0.546558 0.83742 + 0.0660926 -0.529826 0.845527 + 0.0722484 -0.528608 0.845786 + 0.200259 -0.518658 0.831198 + 0.00442132 -0.530717 0.847538 + 0.016364 -0.539039 0.842122 + 0.103929 -0.536996 0.837159 + 0.0968111 -0.551476 0.828554 + 0.0968111 -0.551476 0.828554 + 0.262123 -0.535965 0.802517 + 0.103929 -0.536996 0.837159 + 0.238795 -0.519552 0.820392 + 0.193708 -0.499014 0.844667 + 0.316613 -0.493774 0.809903 + 0.277575 -0.507337 0.815819 + 0.44052 -0.472205 0.763521 + 0.447921 -0.457358 0.768239 + 0.554435 -0.308422 0.772967 + 0.412814 -0.442254 0.796238 + 0.348511 -0.374367 0.859296 + 0.354851 0.0346138 0.934282 + 0.359066 0.0352647 0.932646 + 0.357213 0.0360971 0.933325 + 0.360146 0.0173844 0.932734 + 0.511544 0.0148924 0.859128 + 0.565511 0.0333274 0.824067 + 0.37635 0.0342205 0.925845 + 0.562888 0.0329373 0.825876 + 0.377137 -0.0227927 0.925877 + 0.567833 -0.0551551 0.821294 + 0.625991 0.0126087 0.779728 + 0.609006 0.057691 0.791065 + 0.692213 -0.126045 0.710601 + 0.620359 -0.111666 0.776328 + 0.706274 -0.110299 0.699294 + 0.674077 -0.0830994 0.733972 + 0.922402 0.0975088 0.373719 + 0.921897 0.101934 0.373786 + 0.852454 0.103897 0.512374 + 0.854031 0.100551 0.510412 + 0.94119 0.31622 -0.11902 + 0.928734 0.34815 -0.127452 + 0.993292 0.107386 -0.0428942 + 0.99614 0.0863427 -0.0158392 + 0.99614 0.0863427 -0.0158392 + 0.999338 -0.0324728 0.0164197 + 0.993292 0.107386 -0.0428942 + 0.998026 -0.0554943 0.0293911 + 0.998026 -0.0554943 0.0293911 + 0.998393 0.0522071 -0.0220544 + 0.993292 0.107386 -0.0428942 + 0.94119 0.31622 -0.11902 + -0.966922 0.240143 -0.0859797 + -0.99722 0.0719254 -0.0194873 + -0.995958 0.0839288 -0.0319895 + -0.99836 -0.0475691 0.0318444 + -0.99836 -0.0475691 0.0318444 + -0.998298 0.0539522 -0.0221501 + -0.995958 0.0839288 -0.0319895 + -0.941264 0.316667 -0.117236 + 0.999376 -0.0287489 0.0205377 + 0.977935 -0.178884 0.107906 + 0.919414 0.359032 -0.160542 + 0.912929 0.348746 -0.211985 + 0.912929 0.348746 -0.211985 + 0.998158 0.0530187 -0.0294905 + 0.919414 0.359032 -0.160542 + 0.999376 -0.0287489 0.0205377 + -0.303453 0.178685 0.935942 + -0.123378 0.19061 0.973882 + -0.13877 0.298667 0.944214 + -0.0609452 0.288732 0.955468 + -0.0609452 0.288732 0.955468 + 0.965501 0.2546 0.0546543 + -0.13877 0.298667 0.944214 + 0.105551 0.316833 0.94259 + 0.105551 0.316833 0.94259 + -0.235508 0.375703 0.896317 + -0.13877 0.298667 0.944214 + -0.303453 0.178685 0.935942 + 0.689253 0.106747 0.716614 + 0.606579 0.117697 0.786263 + 0.735076 0.114001 0.668331 + 0.694812 0.120831 0.708969 + -0.734119 0.678881 0.0138236 + 0.702666 0.646208 0.297784 + -0.716639 0.670527 -0.191891 + 0.712876 0.701254 -0.00707947 + 0.712876 0.701254 -0.00707947 + -0.546676 0.696851 -0.464268 + -0.716639 0.670527 -0.191891 + -0.927641 0.166311 -0.334399 + -0.0186011 -0.0433094 0.998889 + -0.00775901 0.0164771 0.999834 + -0.00887221 -0.0132202 0.999873 + -0.0121488 -0.0427887 0.99901 + -0.0117629 0.0812808 0.996622 + -0.0130954 0.0509705 0.998614 + -0.24368 0.0786037 0.966665 + -0.0125835 0.0477525 0.99878 + 0.976212 0.0619814 0.207771 + 0.968234 0.0381247 0.247123 + 0.247562 0.155186 0.956363 + 0.263608 0.13392 0.955289 + -0.999969 0.00728076 -0.00283115 + -0.921156 0.331451 -0.203991 + -0.94871 -0.161261 0.271926 + -0.980468 -0.16968 0.0994512 + -0.980468 -0.16968 0.0994512 + -0.992488 -0.0854414 0.0875658 + -0.94871 -0.161261 0.271926 + -0.999969 0.00728076 -0.00283115 + -0.847575 0.104477 0.52029 + -0.664426 0.0956755 0.741205 + -0.855267 0.091514 0.510042 + -0.69926 0.149605 0.699037 + -0.664426 0.0956755 0.741205 + -0.588514 0.113095 0.800538 + -0.69926 0.149605 0.699037 + -0.599903 0.108189 0.792724 + -0.588514 0.113095 0.800538 + -0.400552 0.107589 0.909935 + -0.599903 0.108189 0.792724 + -0.46955 0.117918 0.874996 + -0.936778 0.0343918 0.348231 + -1 -0.000149736 -0.000771668 + -0.962506 0.0437358 0.267711 + -0.999463 0.0291888 -0.0149005 + 0.246136 0.107107 0.963299 + 0.208568 0.124465 0.970056 + 0.613428 0.0779165 0.785898 + 0.900539 0.0342346 0.433425 + 0.17905 0.0375394 0.983124 + 0.174155 0.0318112 0.984204 + 0.102256 0.0308836 0.994279 + 0.821917 -0.00844276 0.569545 + 0.958259 0.105898 0.265568 + 0.944584 0.103399 0.311561 + 0.988827 0.103089 0.107671 + 0.956389 0.100626 0.274216 + 0.0252352 -0.234442 0.971803 + 0.0454301 -0.179072 0.982786 + 0.0425647 -0.422937 0.905159 + 0.993461 0.111634 0.0239573 + 0.0104309 -0.0911511 0.995782 + 0.0330996 0.583512 0.81143 + 0.0125148 -0.0989754 0.995011 + 0.050229 -0.293016 0.954787 + -0.235508 0.375703 0.896317 + -0.367375 0.185362 0.911415 + -0.303453 0.178685 0.935942 + -0.565535 0.147098 0.8115 + -0.9804 0.118285 0.157558 + -0.993342 0.112731 0.023754 + -0.994249 0.106964 0.00528041 + -0.993476 0.114009 -0.00274624 + -0.0136057 -0.014691 -0.999799 + -0.0174848 0.0370368 -0.999161 + -0.00677073 0.0281792 -0.99958 + -0.107815 0.634471 0.76539 + -0.92835 0.0150611 0.371402 + -0.383639 0.0445501 0.922408 + -0.692138 0.0173531 -0.721557 + -0.435617 0.225022 0.871552 + -0.546676 0.696851 -0.464268 + -0.237943 0.191013 -0.952312 + -0.927641 0.166311 -0.334399 + -0.454474 0.182925 -0.871775 + 0.944624 0.135608 -0.298823 + 0.949282 0.130391 -0.286114 + 0.533871 0.172597 -0.827763 + 0.572462 0.133463 -0.808996 + 0.449358 0.186355 -0.873699 + 0.366677 0.184443 -0.911882 + 0.940104 0.145936 -0.308071 + 0.350701 0.185484 -0.917935 + 0.998393 0.0522071 -0.0220544 + 0.961984 0.261881 -0.0774958 + 0.94119 0.31622 -0.11902 + -0.962173 0.264448 -0.0655021 + 0.961984 0.261881 -0.0774958 + -0.90896 0.415707 0.0312864 + -0.962173 0.264448 -0.0655021 + -0.996361 0.0577348 0.0627085 + 0.169483 -0.209254 0.963062 + 0.793885 -0.148042 0.589771 + 0.202037 -0.00248597 0.979375 + 0.973036 0.00261923 0.230639 + 0.793885 -0.148042 0.589771 + 0.986133 0.0966119 -0.134939 + 0.973036 0.00261923 0.230639 + 0.996659 0.00319883 0.0816072 + 0.260264 0.0692062 0.963054 + 0.010578 0.0231416 0.999676 + 0.0111041 0.0481745 0.998777 + 0.0187671 -0.138805 0.990142 + -0.0241546 0.252791 -0.967219 + -0.0776294 0.286141 -0.955038 + 0.121589 0.271109 -0.954838 + 0.591703 0.630381 -0.502501 + -0.0776294 0.286141 -0.955038 + -0.118403 0.47389 -0.872588 + 0.591703 0.630381 -0.502501 + 0.66915 0.704451 -0.236615 + -0.857289 -0.403035 0.320341 + -0.914324 -0.40303 0.0397241 + 7.28664e-08 -1 1.07095e-07 + -0.881843 -0.403033 -0.24478 + -0.763064 -0.403036 -0.505267 + -0.915384 -0.276556 -0.292556 + -0.780194 -0.276556 -0.561083 + -0.579631 -0.0920884 -0.809659 + -0.568607 -0.27655 -0.77473 + -0.80147 -0.0920804 -0.590903 + -0.780194 -0.276556 -0.561083 + -0.944843 -0.0920743 -0.314316 + -0.915384 -0.276556 -0.292556 + -0.995728 -0.0920754 -0.00695469 + -0.960988 -0.276552 0.00464627 + -0.949142 -0.0920883 0.301079 + -0.912522 -0.276552 0.301369 + -0.579631 -0.0920884 -0.809659 + -0.301076 -0.0920994 -0.949142 + -0.301374 -0.276555 -0.912519 + -0.00464589 -0.276566 -0.960984 + -0.0397211 -0.403049 -0.914316 + 0.244764 -0.403056 -0.881837 + 7.28664e-08 -1 1.07095e-07 + -0.949142 -0.0920883 0.301079 + -0.887138 0.395806 0.237327 + -0.995728 -0.0920754 -0.00695469 + -0.917055 0.39581 -0.0484262 + -0.944843 -0.0920743 -0.314316 + -0.857219 0.395805 -0.329415 + -0.80147 -0.0920804 -0.590903 + -0.742569 0.29368 -0.601949 + -0.579631 -0.0920884 -0.809659 + -0.510388 0.346945 -0.78685 + -0.301076 -0.0920994 -0.949142 + -0.244786 -0.403044 0.881836 + -0.505304 -0.403042 0.763037 + 7.28664e-08 -1 1.07095e-07 + -0.716369 -0.403035 0.569542 + -0.857289 -0.403035 0.320341 + -0.774727 -0.276556 0.568608 + -0.912522 -0.276552 0.301369 + -0.809643 -0.0921031 0.579651 + -0.949142 -0.0920883 0.301079 + -0.77031 0.395817 0.499951 + -0.887138 0.395806 0.237327 + -0.510388 0.346945 -0.78685 + -0.742569 0.29368 -0.601949 + -0.480926 0.819224 -0.312381 + -0.857219 0.395805 -0.329415 + -0.751007 0.628976 -0.200941 + -0.917055 0.39581 -0.0484262 + -0.776351 0.628967 0.0409879 + -0.887138 0.395806 0.237327 + -0.725657 0.628999 0.278893 + -0.77031 0.395817 0.499951 + -0.60378 0.628905 0.489825 + -0.577988 0.395918 0.713568 + -0.423184 0.628617 0.6525 + -0.313655 0.485353 0.816121 + -0.231281 0.446441 0.864407 + -0.301076 -0.0920994 -0.949142 + -0.510388 0.346945 -0.78685 + -0.225891 0.485336 -0.844643 + -0.480926 0.819224 -0.312381 + -0.589786 0.349494 -0.728015 + -0.589786 0.349494 -0.728015 + -0.239224 0.745228 -0.622421 + -0.225891 0.485336 -0.844643 + 0.0494576 0.346983 -0.936566 + 0.00695762 -0.0921132 -0.995724 + 0.314337 -0.0921142 -0.944832 + 0.292554 -0.276573 -0.91538 + 0.561091 -0.276578 -0.78018 + 0.505294 -0.40306 -0.763034 + 0.716352 -0.403066 -0.569542 + 7.28664e-08 -1 1.07095e-07 + -0.231281 0.446441 0.864407 + -0.279014 -0.628612 0.725947 + -0.423184 0.628617 0.6525 + -0.489589 -0.628739 0.604144 + -0.60378 0.628905 0.489825 + -0.652164 -0.628965 0.423185 + -0.725657 0.628999 0.278893 + -0.751034 -0.628946 0.200935 + -0.776351 0.628967 0.0409879 + -0.776362 -0.628953 -0.0409898 + -0.751007 0.628976 -0.200941 + -0.725688 -0.628954 -0.278915 + -0.480926 0.819224 -0.312381 + -0.695062 -0.446687 -0.563347 + -0.589786 0.349494 -0.728015 + -0.510042 -0.349326 -0.78602 + -0.239224 0.745228 -0.622421 + 0.569584 -0.403065 0.716319 + 0.320319 -0.403057 0.857287 + 7.28664e-08 -1 1.07095e-07 + 0.0397428 -0.403054 0.914313 + -0.244786 -0.403044 0.881836 + 0.00464594 -0.27657 0.960983 + -0.292553 -0.276558 0.915384 + -0.0069733 -0.0921214 0.995723 + -0.314326 -0.0921086 0.944836 + -0.0484226 0.395962 0.916989 + -0.313655 0.485353 0.816121 + 0.041003 0.628598 0.776648 + -0.231281 0.446441 0.864407 + -0.0410038 -0.62861 0.776639 + -0.279014 -0.628612 0.725947 + -0.510042 -0.349326 -0.78602 + -0.695062 -0.446687 -0.563347 + -0.709565 -0.533443 -0.460386 + -0.725688 -0.628954 -0.278915 + -0.89679 -0.371756 -0.239927 + -0.776362 -0.628953 -0.0409898 + -0.927042 -0.37175 0.048932 + -0.751034 -0.628946 0.200935 + -0.866539 -0.371771 0.333012 + -0.652164 -0.628965 0.423185 + -0.721209 -0.371789 0.584491 + -0.489589 -0.628739 0.604144 + -0.505295 -0.371776 0.778755 + -0.279014 -0.628612 0.725947 + -0.23994 -0.37176 0.896785 + -0.0410038 -0.62861 0.776639 + 0.0489527 -0.37178 0.927029 + 0.201006 -0.628603 0.751302 + 0.333018 -0.371789 0.866529 + 0.362963 -0.745237 0.559357 + 0.605419 -0.274469 0.747084 + -0.239224 0.745228 -0.622421 + -0.510042 -0.349326 -0.78602 + -0.172346 -0.74524 -0.644139 + -0.709565 -0.533443 -0.460386 + -0.595433 -0.324938 -0.734762 + 0.314337 -0.0921142 -0.944832 + 0.0494576 0.346983 -0.936566 + 0.313652 0.485328 -0.816137 + -0.239224 0.745228 -0.622421 + -0.0494025 0.349273 -0.935718 + -0.172346 -0.74524 -0.644139 + -0.595433 -0.324938 -0.734762 + -0.33303 -0.371764 -0.866535 + -0.172346 -0.74524 -0.644139 + 0.041003 -0.628598 -0.776648 + -0.0494025 0.349273 -0.935718 + 0.201008 0.62859 -0.751312 + 0.313652 0.485328 -0.816137 + 0.578141 0.395954 -0.713423 + 0.590887 -0.0921294 -0.801476 + 0.809635 -0.0921347 -0.579658 + 0.774661 -0.276603 -0.568675 + 0.912475 -0.276609 -0.301457 + 0.857241 -0.403104 -0.320383 + 0.914284 -0.403123 -0.0397182 + 7.28664e-08 -1 1.07095e-07 + 0.605419 -0.274469 0.747084 + 0.523924 0.271044 0.807489 + 0.333018 -0.371789 0.866529 + 0.257795 0.0719681 0.963516 + 0.0489527 -0.37178 0.927029 + -0.0436056 0.56232 0.825769 + -0.23994 -0.37176 0.896785 + -0.168952 0.88215 0.439621 + -0.505295 -0.371776 0.778755 + -0.188033 0.954363 0.232025 + -0.721209 -0.371789 0.584491 + -0.196869 0.972073 0.12774 + -0.866539 -0.371771 0.333012 + -0.216351 0.974599 0.0578792 + -0.927042 -0.37175 0.048932 + -0.257699 0.966129 -0.0136087 + -0.89679 -0.371756 -0.239927 + -0.340697 0.931012 -0.130925 + -0.709565 -0.533443 -0.460386 + -0.490459 0.775537 -0.397484 + -0.595433 -0.324938 -0.734762 + -0.52392 0.271069 -0.807483 + -0.33303 -0.371764 -0.866535 + 0.927023 -0.371799 -0.04893 + 0.92893 -0.274465 0.24851 + 0.486714 -0.859126 0.158151 + 0.74561 -0.458289 0.483774 + 0.757561 -0.350911 0.55042 + 0.866524 -0.371801 -0.333017 + 0.927023 -0.371799 -0.04893 + 0.776628 -0.628626 0.0409779 + 0.486714 -0.859126 0.158151 + 0.890598 0.350862 0.289365 + 0.757561 -0.350911 0.55042 + 0.414017 0.859129 0.300812 + 0.721202 -0.371813 -0.584485 + 0.866524 -0.371801 -0.333017 + 0.751279 -0.628636 -0.200989 + 0.776628 -0.628626 0.0409779 + 0.776631 0.628619 -0.041004 + 0.890598 0.350862 0.289365 + 0.730439 0.640413 0.237337 + 0.414017 0.859129 0.300812 + 0.788286 0.224891 0.572738 + 0.50529 -0.371806 -0.778744 + 0.721202 -0.371813 -0.584485 + 0.652398 -0.62862 -0.423336 + 0.751279 -0.628636 -0.200989 + 0.725954 0.628613 -0.278992 + 0.776631 0.628619 -0.041004 + 0.916997 0.395946 0.0483996 + 0.730439 0.640413 0.237337 + 0.948955 -0.0665489 0.308311 + 0.788286 0.224891 0.572738 + 0.803604 -0.115415 0.583866 + 0.239932 -0.371783 -0.896778 + 0.50529 -0.371806 -0.778744 + 0.489668 -0.628624 -0.604199 + 0.652398 -0.62862 -0.423336 + 0.6042 0.628623 -0.489668 + 0.725954 0.628613 -0.278992 + 0.887075 0.395948 -0.237325 + 0.916997 0.395946 0.0483996 + 0.995722 -0.0921381 0.0069675 + 0.948955 -0.0665489 0.308311 + 0.921628 -0.246759 0.29952 + 0.803604 -0.115415 0.583866 + 0.769788 -0.307466 0.559367 + -0.0489528 -0.371778 -0.92703 + 0.239932 -0.371783 -0.896778 + 0.279007 -0.628607 -0.725953 + 0.489668 -0.628624 -0.604199 + 0.423341 0.62861 -0.652404 + 0.6042 0.628623 -0.489668 + 0.770314 0.395966 -0.499826 + 0.887075 0.395948 -0.237325 + 0.949151 -0.0921205 -0.301043 + 0.995722 -0.0921381 0.0069675 + 0.960976 -0.276593 -0.00464937 + 0.921628 -0.246759 0.29952 + 0.873514 -0.395464 0.28387 + 0.769788 -0.307466 0.559367 + 0.735278 -0.417159 0.534176 + 0.490469 0.775526 0.397492 + 0.74561 -0.458289 0.483774 + 0.340701 0.931011 0.130923 + 0.92893 -0.274465 0.24851 + 0.257708 0.966127 0.0136086 + 0.927023 -0.371799 -0.04893 + 0.216347 0.974599 -0.057881 + 0.866524 -0.371801 -0.333017 + 0.196867 0.972073 -0.127739 + 0.721202 -0.371813 -0.584485 + 0.188041 0.954359 -0.232034 + 0.50529 -0.371806 -0.778744 + 0.168953 0.882148 -0.439624 + 0.239932 -0.371783 -0.896778 + 0.0436049 0.562309 -0.825777 + -0.0489528 -0.371778 -0.92703 + -0.2578 0.0719859 -0.963513 + 0.257795 0.0719681 0.963516 + 0.523924 0.271044 0.807489 + -0.0436056 0.56232 0.825769 + 0.490469 0.775526 0.397492 + -0.168952 0.88215 0.439621 + 0.340701 0.931011 0.130923 + -0.188033 0.954363 0.232025 + 0.257708 0.966127 0.0136086 + -0.196869 0.972073 0.12774 + 0.216347 0.974599 -0.057881 + -0.216351 0.974599 0.0578792 + 0.196867 0.972073 -0.127739 + -0.257699 0.966129 -0.0136087 + 0.188041 0.954359 -0.232034 + -0.340697 0.931012 -0.130925 + 0.168953 0.882148 -0.439624 + -0.490459 0.775537 -0.397484 + 0.0436049 0.562309 -0.825777 + -0.52392 0.271069 -0.807483 + -0.2578 0.0719859 -0.963513 + -0.33303 -0.371764 -0.866535 + -0.0489528 -0.371778 -0.92703 + 0.041003 -0.628598 -0.776648 + 0.279007 -0.628607 -0.725953 + 0.201008 0.62859 -0.751312 + 0.423341 0.62861 -0.652404 + 0.578141 0.395954 -0.713423 + 0.770314 0.395966 -0.499826 + 0.809635 -0.0921347 -0.579658 + 0.949151 -0.0921205 -0.301043 + 0.912475 -0.276609 -0.301457 + 0.960976 -0.276593 -0.00464937 + 0.914284 -0.403123 -0.0397182 + 0.873514 -0.395464 0.28387 + 7.28664e-08 -1 1.07095e-07 + 0.735278 -0.417159 0.534176 + 0.569584 -0.403065 0.716319 + 0.769788 -0.307466 0.559367 + 0.568602 -0.276585 0.774721 + 0.803604 -0.115415 0.583866 + 0.579598 -0.0921236 0.809678 + 0.788286 0.224891 0.572738 + 0.499815 0.395951 0.77033 + 0.414017 0.859129 0.300812 + 0.489682 0.628597 0.604217 + 0.757561 -0.350911 0.55042 + 0.362963 -0.745237 0.559357 + 0.74561 -0.458289 0.483774 + 0.605419 -0.274469 0.747084 + 0.490469 0.775526 0.397492 + 0.523924 0.271044 0.807489 + -0.217452 -0.185279 0.958325 + -0.15959 -0.127503 0.978915 + -0.581642 -0.178665 0.793581 + -0.654392 -0.0670622 0.753175 + -0.847592 -0.191453 0.494908 + -0.944751 -0.325579 0.0379999 + -0.971223 -0.207514 0.116893 + -0.847592 -0.191453 0.494908 + -0.833386 -0.232777 0.50128 + -0.581642 -0.178665 0.793581 + -0.54832 -0.250963 0.797723 + -0.217452 -0.185279 0.958325 + -0.654392 -0.0670622 0.753175 + -0.698485 -0.51509 0.49679 + -0.833811 -0.381025 0.399474 + -0.897359 -0.425905 0.115547 + -0.944751 -0.325579 0.0379999 + -0.15959 -0.127503 0.978915 + -0.271332 0.2705 0.923693 + -0.654392 -0.0670622 0.753175 + -0.471254 -0.439489 0.764702 + -0.698485 -0.51509 0.49679 + -0.217452 -0.185279 0.958325 + -0.0726955 -0.151423 0.985792 + -0.15959 -0.127503 0.978915 + -0.0241398 -0.108054 0.993852 + -0.271332 0.2705 0.923693 + -0.54832 -0.250963 0.797723 + -0.139833 -0.483247 0.864245 + -0.217452 -0.185279 0.958325 + -0.0696411 -0.458647 0.885886 + -0.0726955 -0.151423 0.985792 + -0.971223 -0.207514 0.116893 + -0.966471 -0.249905 0.0590085 + -0.833386 -0.232777 0.50128 + -0.714949 -0.536531 0.448311 + -0.54832 -0.250963 0.797723 + -0.429507 -0.508817 0.746076 + -0.139833 -0.483247 0.864245 + -0.897359 -0.425905 0.115547 + -0.907864 -0.41889 -0.0177348 + -0.944751 -0.325579 0.0379999 + -0.954114 -0.27868 -0.10956 + -0.971223 -0.207514 0.116893 + -0.97398 -0.224494 -0.0310772 + -0.966471 -0.249905 0.0590085 + 0.0262322 0.33319 0.942495 + 0.0409023 -0.106003 0.993524 + 0.230239 -0.121708 0.965493 + 0.142513 -0.1606 0.976677 + 0.576965 -0.20427 0.790813 + 0.467265 -0.527555 0.709471 + 0.813832 -0.28853 0.504408 + 0.730215 -0.521962 0.440842 + 0.823737 -0.54956 0.139433 + 0.484568 -0.791171 0.373152 + 0.730215 -0.521962 0.440842 + 0.389447 -0.67308 0.628724 + 0.467265 -0.527555 0.709471 + 0.124375 -0.466929 0.875505 + 0.142513 -0.1606 0.976677 + 0.0549814 -0.176311 0.982798 + 0.0409023 -0.106003 0.993524 + 0.000306694 -0.127669 0.991817 + 0.0392043 -0.090357 0.995138 + 0.0273481 -0.125257 0.991747 + 0.484568 -0.791171 0.373152 + -0.980086 -0.184913 -0.0723741 + 0.748286 -0.640291 0.173482 + 0.702368 -0.711813 0.00121255 + 0.823737 -0.54956 0.139433 + 0.076373 -0.150277 -0.98569 + 0.0511064 -0.158261 -0.986074 + 0.00843162 -0.567667 -0.823215 + -0.108533 -0.275814 0.955064 + -0.0742534 -0.0455013 0.996201 + -0.0491457 -0.0201798 0.998588 + -0.0132262 -0.288393 0.957421 + 0.104893 -0.393505 -0.913319 + 0.076373 -0.150277 -0.98569 + 0.0511064 -0.158261 -0.986074 + 0.164323 0.140965 -0.976282 + 0.0734717 0.120458 -0.989996 + 0.241707 0.0185459 -0.970172 + 0.15497 0.0256572 -0.987586 + 0.189845 -0.00898857 -0.981773 + 0.205255 -0.00557106 -0.978693 + 0.165811 -0.0302869 -0.985692 + 0.240876 -0.023439 -0.970273 + 0.174546 -0.0414905 -0.983774 + 0.258432 -0.0415053 -0.965137 + 0.200713 -0.0499247 -0.978377 + 0.264149 -0.0532574 -0.96301 + 0.0228952 0.153653 -0.98786 + 0.00830222 0.160484 -0.987004 + 0.102728 0.137906 -0.985103 + 0.0902539 0.145756 -0.985195 + 0.401956 0.0716975 -0.912848 + 0.742143 0.368783 -0.559664 + 0.715703 -0.00542807 -0.698384 + 0.606953 -0.00398959 -0.794728 + 0.993339 0.026113 -0.112233 + 0.401956 0.0716975 -0.912848 + 0.993297 0.0323226 -0.110977 + 0.742143 0.368783 -0.559664 + 0.972329 0.156208 0.173709 + 0.972329 0.156208 0.173709 + 0.742143 0.368783 -0.559664 + 4.91166e-06 0.190214 -0.981743 + 0.00811509 0.174408 -0.98464 + 0.00419757 0.224186 -0.974537 + 0.00830222 0.160484 -0.987004 + 0.164323 0.140965 -0.976282 + 0.0228952 0.153653 -0.98786 + 0.0734717 0.120458 -0.989996 + 0.102728 0.137906 -0.985103 + 0.171346 0.0862026 -0.981432 + 0.401956 0.0716975 -0.912848 + 0.273479 0.00561674 -0.961862 + 0.606953 -0.00398959 -0.794728 + 0.345387 -0.0108207 -0.938398 + 0.715703 -0.00542807 -0.698384 + 0.386356 -0.0297895 -0.921869 + 0.753213 -0.0202604 -0.657465 + 0.46681 -0.0404393 -0.883433 + 0.996573 0.0280492 -0.077816 + 0.993339 0.026113 -0.112233 + 0.993713 0.0486648 0.100829 + 0.996751 0.0420309 0.0687135 + 0.569957 0.142303 0.809258 + 0.972329 0.156208 0.173709 + 0.24408 0.458124 0.85472 + 4.91166e-06 0.190214 -0.981743 + -0.00802512 0.212366 -0.977157 + -0.261334 -0.0405905 -0.964395 + -0.468953 -0.0462433 -0.882012 + -0.364914 -0.040182 -0.930174 + -0.850609 -0.0261393 -0.525148 + -0.713958 -0.0312413 -0.699491 + -0.975845 -0.0102532 -0.218222 + -0.994711 0.00121104 -0.102705 + -0.998522 0.0222788 0.0495638 + -0.996316 0.0136525 -0.0846638 + -0.994711 0.00121104 -0.102705 + -0.780329 -0.0153655 -0.625181 + -0.713958 -0.0312413 -0.699491 + -0.411465 -0.0266903 -0.911035 + -0.364914 -0.040182 -0.930174 + -0.254728 -0.0312751 -0.966507 + -0.261334 -0.0405905 -0.964395 + -0.174623 -0.0264301 -0.984281 + -0.167074 -0.0396428 -0.985147 + -0.116367 -0.0316863 -0.992701 + 0.0680278 0.179465 0.981409 + 0.0174117 0.312435 0.94978 + 0.00784228 0.238225 0.971178 + -0.0319865 0.263461 -0.96414 + -0.16291 0.321217 -0.932888 + -0.422329 0.0553429 -0.904752 + -0.16291 0.321217 -0.932888 + -0.120579 0.108951 -0.986707 + -0.0319865 0.263461 -0.96414 + -0.0592051 0.200964 -0.977808 + 0.0174117 0.312435 0.94978 + 0.114651 0.258835 0.959093 + 0.0680278 0.179465 0.981409 + -0.18798 -0.0220361 -0.981926 + -0.419804 0.368075 -0.829629 + -0.16989 0.262322 -0.949908 + 8.13932e-06 0.307295 -0.951614 + -0.0120712 0.309735 -0.950746 + -0.12042 0.0911073 -0.988533 + -0.010666 0.215327 -0.976484 + -0.178257 0.101688 -0.978716 + -0.00421819 0.198095 -0.980174 + -0.447149 0.0592697 -0.892494 + -0.419804 0.368075 -0.829629 + -0.442217 -0.00654635 -0.896884 + -0.18798 -0.0220361 -0.981926 + -0.250407 -0.0153791 -0.968019 + -0.0960204 -0.0268358 -0.995018 + -0.294173 0.0100235 -0.9557 + -0.12042 0.0911073 -0.988533 + -0.189464 0.0137878 -0.981791 + -0.178257 0.101688 -0.978716 + -0.191751 0.0254244 -0.981114 + -0.275059 0.0127676 -0.961343 + -0.730881 -0.00278898 -0.682499 + -0.422329 0.0553429 -0.904752 + -0.294173 0.0100235 -0.9557 + -0.120579 0.108951 -0.986707 + -0.12042 0.0911073 -0.988533 + -0.0592051 0.200964 -0.977808 + -0.010666 0.215327 -0.976484 + 0.114651 0.258835 0.959093 + -0.00534864 -0.0243093 -0.99969 + -0.0574785 -0.0217006 -0.998111 + -0.0120712 0.309735 -0.950746 + -0.0569856 -0.00901737 -0.998334 + -0.16989 0.262322 -0.949908 + -0.0574785 -0.0217006 -0.998111 + -0.18798 -0.0220361 -0.981926 + -0.0580436 -0.0304232 -0.99785 + -0.0960204 -0.0268358 -0.995018 + -0.116367 -0.0316863 -0.992701 + -0.250407 -0.0153791 -0.968019 + -0.189621 -0.00829529 -0.981822 + -0.275059 0.0127676 -0.961343 + -0.208438 -1.72122e-05 -0.978036 + -0.191751 0.0254244 -0.981114 + -0.227295 -0.0067982 -0.973802 + -0.189464 0.0137878 -0.981791 + -0.3593 -0.00927065 -0.933176 + -0.294173 0.0100235 -0.9557 + -0.722044 -0.00368209 -0.691837 + -0.730881 -0.00278898 -0.682499 + -0.996871 0.0285843 -0.0736918 + 0.0567327 -0.0277008 -0.998005 + -0.00809825 -0.0285394 -0.99956 + 0.0578775 -0.0279849 -0.997931 + -0.00534864 -0.0243093 -0.99969 + 0.0571763 0.0307383 -0.997891 + -0.0120712 0.309735 -0.950746 + -0.468953 -0.0462433 -0.882012 + -0.261334 -0.0405905 -0.964395 + -0.258109 -0.0522708 -0.964701 + -0.167074 -0.0396428 -0.985147 + -0.172967 -0.0544599 -0.983421 + -0.0947117 -0.038938 -0.994743 + -0.0863453 -0.979701 -0.180915 + -0.207933 -0.677131 -0.705874 + -0.0940828 -0.943587 -0.317479 + -0.144754 -0.604273 -0.783518 + -0.0926785 -0.837179 -0.53902 + -0.0874476 -0.564661 -0.820677 + 0.0314025 -0.981913 -0.186711 + -0.0863453 -0.979701 -0.180915 + 0.114254 -0.952759 -0.281418 + -0.0940828 -0.943587 -0.317479 + 0.116522 -0.903396 -0.412671 + -0.0926785 -0.837179 -0.53902 + 0.0986022 -0.530362 -0.842017 + 0.13532 -0.537069 -0.832613 + 0.151586 -0.612128 -0.776094 + 0.203682 -0.680661 -0.703714 + 0.114254 -0.952759 -0.281418 + 0.135918 -0.730995 -0.66871 + 0.0314025 -0.981913 -0.186711 + -0.0509638 0.200589 0.978349 + -0.0802502 0.179115 0.98055 + -0.00673713 0.148767 0.988849 + 0.048912 -0.187555 0.981036 + 0.0441526 -0.204694 0.97783 + 0.00959359 0.56466 0.825268 + -0.00922617 -0.217423 0.976034 + -0.755899 0.163219 0.634015 + -0.184493 0.167457 0.968463 + -0.0509638 0.200589 0.978349 + -0.235307 0.174252 0.956173 + -0.0802502 0.179115 0.98055 + -0.0891134 0.177709 0.98004 + 0.605353 0.0585011 0.793805 + 0.592217 0.0597435 0.803561 + 0.24851 0.0727842 0.965891 + 0.149706 0.126909 0.980552 + 0.00986384 0.130321 0.991423 + 0.0171017 0.154381 0.987863 + -0.0122821 0.145046 0.989349 + -0.0103521 0.17581 0.98437 + -0.12577 0.17328 0.976809 + -0.0891134 0.177709 0.98004 + -0.34124 0.169301 0.924604 + -0.235307 0.174252 0.956173 + -0.45228 0.153793 0.878516 + -0.184493 0.167457 0.968463 + -0.148859 0.153084 0.976937 + -0.755899 0.163219 0.634015 + -0.45228 0.153793 0.878516 + 0.777508 -0.0769234 0.624151 + 0.869319 0.0351413 0.493001 + 0.605353 0.0585011 0.793805 + 0.862705 0.0365807 0.504383 + 0.592217 0.0597435 0.803561 + 0.523232 0.105974 0.845576 + 0.149706 0.126909 0.980552 + 0.171153 0.148924 0.973924 + 0.0171017 0.154381 0.987863 + 0.0127392 0.176247 0.984264 + -0.0103521 0.17581 0.98437 + -0.00330505 0.204894 0.978779 + -0.0891134 0.177709 0.98004 + 0.990495 -0.130389 0.043807 + 0.991777 -0.122501 -0.0370505 + 0.992624 -0.10313 0.0637277 + 0.99458 0.00622682 0.103783 + 0.9433 -0.100475 0.316369 + 0.869319 0.0351413 0.493001 + 0.925752 -0.101413 0.364278 + 0.777508 -0.0769234 0.624151 + 0.918314 -0.127518 0.374751 + 0.777784 -0.080272 0.623385 + -0.681422 0.136073 0.71913 + -0.725981 0.127775 0.675741 + -0.4288 0.1596 0.88919 + -0.509249 0.125732 0.851385 + -0.153971 0.142781 0.977705 + -0.227024 0.121653 0.966261 + -0.0266963 0.128391 0.991364 + -0.00974781 0.0763277 0.997035 + 0.0305278 0.0760012 0.99664 + 0.0103576 0.0761899 0.99704 + 0.163488 0.0743722 0.983738 + 0.202384 -0.0102361 0.979253 + 0.552702 -0.0485599 0.831963 + 0.208557 -0.0137956 0.977913 + 0.657739 -0.0652333 0.750416 + 0.60775 -0.0941033 0.788533 + 0.830471 -0.134561 0.540566 + -0.975891 0.0967433 -0.195644 + -0.994122 0.0317438 -0.103505 + -0.990034 0.052526 0.130663 + -0.997332 0.0419242 0.0597632 + -0.681422 0.136073 0.71913 + -0.994229 0.047191 0.0963402 + -0.725981 0.127775 0.675741 + -0.802903 0.0878523 0.5896 + -0.509249 0.125732 0.851385 + -0.617471 0.0944266 0.780906 + -0.227024 0.121653 0.966261 + -0.199744 0.074159 0.977038 + -0.00974781 0.0763277 0.997035 + -0.03085 0.0758127 0.996645 + 0.0103576 0.0761899 0.99704 + 0.000360305 0.00613562 0.999981 + 0.10725 -0.00206392 0.99423 + 0.540733 -0.0167589 -0.841027 + 0.93235 -0.182014 0.3124 + 0.848772 -0.361619 -0.385769 + 0.990495 -0.130389 0.043807 + 0.935415 -0.179885 -0.304367 + 0.992624 -0.10313 0.0637277 + 0.984588 -0.173942 0.0181729 + 0.940569 -0.125819 0.315435 + 0.939095 -0.16192 0.303122 + 0.918314 -0.127518 0.374751 + 0.830471 -0.134561 0.540566 + 0.777784 -0.080272 0.623385 + 0.657739 -0.0652333 0.750416 + 0.777508 -0.0769234 0.624151 + 0.552702 -0.0485599 0.831963 + 0.605353 0.0585011 0.793805 + 0.163488 0.0743722 0.983738 + 0.24851 0.0727842 0.965891 + 0.0305278 0.0760012 0.99664 + 0.00986384 0.130321 0.991423 + -0.0266963 0.128391 0.991364 + -0.0122821 0.145046 0.989349 + -0.153971 0.142781 0.977705 + -0.12577 0.17328 0.976809 + -0.4288 0.1596 0.88919 + -0.34124 0.169301 0.924604 + -0.681422 0.136073 0.71913 + -0.45228 0.153793 0.878516 + -0.990034 0.052526 0.130663 + -0.755899 0.163219 0.634015 + -0.975891 0.0967433 -0.195644 + -0.0509638 0.200589 0.978349 + -0.000843831 0.210402 0.977615 + -0.00673713 0.148767 0.988849 + 0.00303881 0.172375 0.985027 + -0.00922617 -0.217423 0.976034 + -0.0457608 0.550676 0.833464 + 0.00959359 0.56466 0.825268 + -0.0507696 0.534721 0.843502 + 0.048912 -0.187555 0.981036 + 0.236042 -0.0556208 -0.97015 + 0.0948015 -0.544679 -0.833269 + 0.158855 0.0971328 -0.982512 + 0.0566371 -0.536563 -0.841958 + 0.0380897 -0.104384 -0.993807 + 0.000552461 -0.523299 -0.852149 + 0.312236 -0.447541 -0.837983 + 0.236042 -0.0556208 -0.97015 + 0.216065 -0.407251 -0.887391 + 0.158855 0.0971328 -0.982512 + 0.0768435 -0.387322 -0.918737 + 0.0380897 -0.104384 -0.993807 + -0.208748 -0.0120041 0.977896 + -0.202453 -0.0142276 0.979189 + -0.107233 -0.00302011 0.994229 + -0.0201558 -0.0228252 0.999536 + -0.000365619 0.00489826 0.999988 + 0.000468936 -0.0122604 0.999925 + -0.995022 -0.0946633 0.0311315 + -0.952295 -0.16568 -0.25629 + -0.986751 -0.0418255 -0.156757 + -0.760598 -0.0421585 -0.647852 + -0.957715 0.0603528 0.281317 + -0.486345 -0.218038 -0.846125 + -0.877014 0.0897406 -0.472009 + -0.981277 -0.11166 -0.156929 + -0.985987 -0.0334918 0.163428 + -0.999378 0.00208071 0.0352076 + -0.999983 -0.00168414 -0.0056389 + -0.995022 -0.0946633 0.0311315 + -0.986835 -0.129527 -0.0968451 + -0.952295 -0.16568 -0.25629 + -0.85702 0.0372289 0.513936 + -0.99762 0.0114769 0.0679864 + -0.993754 0.00794278 0.111308 + -0.999963 0.0062641 -0.00585331 + -0.999983 -0.000243122 -0.00576574 + -0.371616 -0.0698241 -0.925757 + -0.790098 -0.207093 -0.576938 + -0.713487 -0.0520843 -0.69873 + -0.986835 -0.129527 -0.0968451 + -0.974869 -0.0110126 -0.222506 + -0.999983 -0.00168414 -0.0056389 + -0.999983 -0.000243122 -0.00576574 + -0.999378 0.00208071 0.0352076 + -0.993754 0.00794278 0.111308 + -0.862731 0.0361773 0.504367 + -0.85702 0.0372289 0.513936 + 0.602599 -0.113182 0.789977 + 0.235246 -0.0473365 0.970782 + 0.153675 -0.0522325 0.98674 + 0.109101 -0.0317142 0.993525 + 0.0179315 -0.0587359 0.998112 + 0.000468936 -0.0122604 0.999925 + -0.01848 -0.0318335 0.999322 + -0.0201558 -0.0228252 0.999536 + -0.169642 -0.040507 0.984673 + -0.202453 -0.0142276 0.979189 + -0.54908 -0.0514564 0.834184 + -0.208748 -0.0120041 0.977896 + -0.655014 -0.0606623 0.753178 + -0.555743 0.0613574 0.829087 + -0.862731 0.0361773 0.504367 + -0.654168 0.0557359 0.754293 + -0.85702 0.0372289 0.513936 + -0.872228 0.0559841 0.485884 + -0.99762 0.0114769 0.0679864 + -0.998522 0.0222788 0.0495638 + -0.999963 0.0062641 -0.00585331 + -0.994711 0.00121104 -0.102705 + -0.999983 -0.000243122 -0.00576574 + -0.975845 -0.0102532 -0.218222 + -0.974869 -0.0110126 -0.222506 + -0.850609 -0.0261393 -0.525148 + -0.713487 -0.0520843 -0.69873 + -0.468953 -0.0462433 -0.882012 + -0.371616 -0.0698241 -0.925757 + -0.258109 -0.0522708 -0.964701 + 0.898595 -0.435139 -0.0564 + 0.797999 -0.597874 0.0757957 + 0.91695 -0.395056 0.0559737 + 0.860526 -0.156472 0.48478 + 0.739748 -0.484383 0.467061 + 0.602599 -0.113182 0.789977 + 0.455292 -0.54678 0.702667 + 0.153675 -0.0522325 0.98674 + 0.197571 -0.423925 0.883885 + 0.0179315 -0.0587359 0.998112 + -0.0454068 0.550692 0.833472 + -0.0505263 0.535836 0.842809 + -0.0506097 0.535423 0.843066 + 0.0680278 0.179465 0.981409 + -0.0506879 0.535158 0.84323 + 0.0436973 -0.204687 0.977852 + -0.009131 -0.217426 0.976034 + 0.0449855 -0.185017 0.981705 + -0.0505263 0.535836 0.842809 + 0.00952198 0.564659 0.82527 + -0.0454068 0.550692 0.833472 + -0.00915163 -0.217421 0.976035 + -0.0506097 0.535423 0.843066 + -0.0159192 0.0599111 0.998077 + 0.00954425 0.564661 0.825268 + 0.0439239 -0.20469 0.977841 + -0.00917842 -0.217421 0.976035 + 0.0488324 -0.18802 0.98095 + -0.0506879 0.535158 0.84323 + 0.00957178 0.56466 0.825268 + 0.0435852 -0.204686 0.977857 + 0.0449148 -0.185287 0.981657 + 0.0448423 -0.185758 0.981572 + -0.0891134 0.177709 0.98004 + 0.0447731 -0.186045 0.981521 + -0.0452899 0.550701 0.833473 + 0.00949501 0.564661 0.825269 + -0.0504512 0.536129 0.842627 + 0.0449148 -0.185287 0.981657 + -0.00910459 -0.217426 0.976034 + 0.0435852 -0.204686 0.977857 + 0.00947332 0.564659 0.82527 + 0.0448423 -0.185758 0.981572 + 0.0176626 0.298517 0.954241 + -0.00908425 -0.217424 0.976035 + -0.045058 0.550711 0.833479 + 0.00944661 0.56466 0.825269 + -0.0464656 0.533539 0.844498 + 0.0447731 -0.186045 0.981521 + 0.112663 0.176225 0.977881 + -0.0463911 0.533957 0.844238 + -0.0463233 0.534246 0.844059 + -0.0448287 0.55072 0.833485 + 0.00939854 0.564659 0.82527 + -0.00903792 -0.217427 0.976035 + 0.043251 -0.204681 0.977873 + 0.0447012 -0.186501 0.981437 + 0.0446332 -0.186781 0.981387 + 0.759854 -0.225681 -0.609664 + 0.972896 -0.0331105 -0.22886 + 0.991777 -0.122501 -0.0370505 + 0.999984 -0.000677933 -0.00570098 + 0.99458 0.00622682 0.103783 + 0.999353 0.00246862 0.0358694 + 0.862705 0.0365807 0.504383 + 0.810684 0.0700866 0.581274 + 0.523232 0.105974 0.845576 + 0.540494 0.124017 0.832157 + 0.171153 0.148924 0.973924 + 0.132095 0.173627 0.975912 + 0.0127392 0.176247 0.984264 + 0.0161882 0.199005 0.979865 + -0.00330505 0.204894 0.978779 + -0.0335786 0.732996 0.679403 + 0.0108663 0.403437 0.914943 + 0.240822 -0.086743 -0.966685 + 0.200713 -0.0499247 -0.978377 + 0.257482 -0.06314 -0.964218 + 0.264149 -0.0532574 -0.96301 + 0.364442 -0.0502071 -0.929872 + 0.46681 -0.0404393 -0.883433 + 0.84919 -0.0239073 -0.527546 + 0.753213 -0.0202604 -0.657465 + 0.997138 0.0148894 -0.0741271 + 0.996573 0.0280492 -0.077816 + 0.998269 0.039598 0.0434747 + 0.993713 0.0486648 0.100829 + 0.360725 0.167163 0.91757 + 0.447134 0.15884 0.880251 + 0.751228 0.121527 0.648758 + 0.822561 0.085071 0.562278 + 0.998267 0.021491 0.0547902 + 0.229986 -0.240037 -0.943127 + 0.240822 -0.086743 -0.966685 + 0.245745 -0.202945 -0.947852 + 0.257482 -0.06314 -0.964218 + 0.446113 -0.0687177 -0.892335 + 0.364442 -0.0502071 -0.929872 + 0.71292 -0.0360868 -0.700317 + 0.84919 -0.0239073 -0.527546 + 0.997489 0.00306047 -0.0707531 + 0.997138 0.0148894 -0.0741271 + 0.998267 0.021491 0.0547902 + 0.998269 0.039598 0.0434747 + 0.751228 0.121527 0.648758 + 0.993713 0.0486648 0.100829 + 0.591442 0.14934 0.792397 + 0.569957 0.142303 0.809258 + 0.290813 0.167213 0.942055 + 0.24408 0.458124 0.85472 + 0.222725 -0.276416 -0.934873 + 0.229986 -0.240037 -0.943127 + 0.236577 -0.273491 -0.932327 + 0.245745 -0.202945 -0.947852 + 0.392606 -0.227227 -0.891195 + 0.446113 -0.0687177 -0.892335 + 0.822738 -0.055158 -0.565738 + 0.71292 -0.0360868 -0.700317 + 0.974897 -0.0107443 -0.222395 + 0.997489 0.00306047 -0.0707531 + 0.999961 0.00632419 -0.00609383 + 0.998267 0.021491 0.0547902 + 0.993541 0.0164504 0.112278 + 0.822561 0.085071 0.562278 + 0.505713 0.0506313 -0.861215 + 0.0571763 0.0307383 -0.997891 + 0.360567 0.149478 -0.920678 + -0.0120712 0.309735 -0.950746 + 0.00419757 0.224186 -0.974537 + 8.13932e-06 0.307295 -0.951614 + 4.91166e-06 0.190214 -0.981743 + -0.00421819 0.198095 -0.980174 + -0.00802512 0.212366 -0.977157 + -0.010666 0.215327 -0.976484 + 0.24408 0.458124 0.85472 + 0.114651 0.258835 0.959093 + 0.290813 0.167213 0.942055 + 0.0680278 0.179465 0.981409 + 0.360725 0.167163 0.91757 + 0.112663 0.176225 0.977881 + 0.447134 0.15884 0.880251 + 0.260418 -0.00102409 -0.965495 + 0.435618 -0.00689889 -0.900105 + 0.171794 -0.0202138 -0.984926 + 0.250406 -0.0153935 -0.968019 + 0.0960437 -0.0285787 -0.994967 + 0.109201 -0.0297743 -0.993574 + 0.105575 -0.227988 -0.967923 + 0.133766 -0.29495 -0.946103 + 0.013822 -0.286672 -0.957929 + 0.045834 -0.520503 -0.852629 + 0.313335 -0.0122103 -0.949564 + 0.120108 -0.0733156 -0.99005 + 0.105575 -0.227988 -0.967923 + 0.000805072 -0.220166 -0.975462 + 0.013822 -0.286672 -0.957929 + -0.0741089 -0.282567 -0.95638 + -0.111557 -0.49232 -0.863236 + -0.141822 -0.821221 -0.552705 + -0.219204 -0.392308 -0.893333 + -0.301761 -0.440465 -0.845536 + -0.232849 -0.0959868 -0.967764 + -0.430571 -0.124694 -0.893901 + -0.355289 -0.501685 -0.788722 + -0.750569 -0.409031 -0.51898 + -0.550556 -0.500728 -0.667952 + 0.0850814 -0.0529501 -0.994966 + 0.120108 -0.0733156 -0.99005 + 0.0104052 -0.0759449 -0.997058 + 0.000805072 -0.220166 -0.975462 + -0.102873 -0.21551 -0.971068 + -0.0741089 -0.282567 -0.95638 + -0.22689 -0.276269 -0.933915 + -0.141822 -0.821221 -0.552705 + -0.231306 -0.288371 -0.929161 + -0.301761 -0.440465 -0.845536 + 0.128494 -0.0397993 -0.990911 + 0.0850814 -0.0529501 -0.994966 + -0.0159857 -0.0557205 -0.998318 + 0.0104052 -0.0759449 -0.997058 + -0.0988054 -0.0703448 -0.992617 + -0.102873 -0.21551 -0.971068 + -0.23565 -0.204393 -0.950101 + -0.22689 -0.276269 -0.933915 + -0.239811 -0.237723 -0.941264 + -0.231306 -0.288371 -0.929161 + -0.325748 -0.285712 -0.901253 + -0.301761 -0.440465 -0.845536 + -0.674098 -0.460207 -0.577756 + -0.430571 -0.124694 -0.893901 + -0.713333 -0.189014 -0.674855 + -0.750569 -0.409031 -0.51898 + 0.109201 -0.0297743 -0.993574 + 0.128494 -0.0397993 -0.990911 + 0.0171658 -0.0388885 -0.999096 + -0.0159857 -0.0557205 -0.998318 + -0.145617 -0.0513022 -0.98801 + -0.0988054 -0.0703448 -0.992617 + -0.204131 -0.0590079 -0.977164 + -0.23565 -0.204393 -0.950101 + -0.251148 -0.0858831 -0.964131 + -0.239811 -0.237723 -0.941264 + -0.387503 -0.22249 -0.894617 + -0.325748 -0.285712 -0.901253 + -0.666614 -0.280232 -0.690721 + -0.674098 -0.460207 -0.577756 + 0.645747 -0.439126 -0.624643 + 0.981828 -0.188259 -0.0239158 + 0.898595 -0.435139 -0.0564 + 0.982393 -0.186137 0.0160595 + 0.797999 -0.597874 0.0757957 + 0.939095 -0.16192 0.303122 + 0.860526 -0.156472 0.48478 + 0.830471 -0.134561 0.540566 + 0.602599 -0.113182 0.789977 + 0.60775 -0.0941033 0.788533 + 0.235246 -0.0473365 0.970782 + 0.208557 -0.0137956 0.977913 + 0.107501 -0.0047634 0.994194 + 0.10725 -0.00206392 0.99423 + 0.000468936 -0.0122604 0.999925 + 0.000360305 0.00613562 0.999981 + -0.000365619 0.00489826 0.999988 + -0.00131427 0.00602492 0.999981 + -0.107233 -0.00302011 0.994229 + -0.10764 -0.000587226 0.99419 + -0.208748 -0.0120041 0.977896 + -0.204155 0.0727501 0.976232 + -0.555743 0.0613574 0.829087 + -0.199744 0.074159 0.977038 + -0.654168 0.0557359 0.754293 + -0.617471 0.0944266 0.780906 + -0.872228 0.0559841 0.485884 + -0.802903 0.0878523 0.5896 + -0.998522 0.0222788 0.0495638 + -0.994229 0.047191 0.0963402 + -0.996871 0.0285843 -0.0736918 + -0.997686 0.0282057 -0.0618624 + -0.730881 -0.00278898 -0.682499 + -0.994122 0.0317438 -0.103505 + -0.422329 0.0553429 -0.904752 + -0.975891 0.0967433 -0.195644 + -0.16291 0.321217 -0.932888 + -0.000843831 0.210402 0.977615 + 0.00784228 0.238225 0.971178 + 0.00303881 0.172375 0.985027 + 0.0680278 0.179465 0.981409 + -0.0507696 0.534721 0.843502 + -0.0506879 0.535158 0.84323 + -0.0456425 0.550681 0.833467 + 0.00957178 0.56466 0.825268 + -0.00919924 -0.217421 0.976035 + 0.044038 -0.204687 0.977836 + 0.048912 -0.187555 0.981036 + 0.0488324 -0.18802 0.98095 + -0.0802502 0.179115 0.98055 + -0.0159192 0.0599111 0.998077 + -0.0891134 0.177709 0.98004 + 0.0449855 -0.185017 0.981705 + 0.0449148 -0.185287 0.981657 + 0.0436973 -0.204687 0.977852 + 0.00949501 0.564661 0.825269 + -0.009131 -0.217426 0.976034 + -0.0452899 0.550701 0.833473 + -0.0505263 0.535836 0.842809 + -0.0504512 0.536129 0.842627 + 0.0680278 0.179465 0.981409 + 0.0176626 0.298517 0.954241 + 0.112663 0.176225 0.977881 + -0.0464656 0.533539 0.844498 + -0.0463911 0.533957 0.844238 + -0.0449431 0.550717 0.833481 + 0.0094248 0.564662 0.825268 + -0.00905796 -0.217424 0.976035 + 0.0433619 -0.20468 0.977868 + 0.0447731 -0.186045 0.981521 + 0.0447012 -0.186501 0.981437 + -0.0891134 0.177709 0.98004 + 0.0446332 -0.186781 0.981387 + -0.00330505 0.204894 0.978779 + 0.0431408 -0.204678 0.977878 + 0.0108663 0.403437 0.914943 + -0.00901188 -0.217425 0.976035 + -0.0335786 0.732996 0.679403 + -0.0463233 0.534246 0.844059 + 0.0161882 0.199005 0.979865 + 0.112663 0.176225 0.977881 + 0.132095 0.173627 0.975912 + 0.447134 0.15884 0.880251 + 0.540494 0.124017 0.832157 + 0.822561 0.085071 0.562278 + 0.810684 0.0700866 0.581274 + 0.993541 0.0164504 0.112278 + 0.999353 0.00246862 0.0358694 + 0.999985 -0.000284485 -0.00556197 + 0.999984 -0.000677933 -0.00570098 + 0.974897 -0.0107443 -0.222395 + 0.972896 -0.0331105 -0.22886 + 0.822738 -0.055158 -0.565738 + 0.759854 -0.225681 -0.609664 + 0.392606 -0.227227 -0.891195 + 0.433277 -0.285525 -0.854837 + 0.236577 -0.273491 -0.932327 + 0.148153 -0.809916 -0.567527 + 0.222725 -0.276416 -0.934873 + 0.133766 -0.29495 -0.946103 + 0.229986 -0.240037 -0.943127 + 0.105575 -0.227988 -0.967923 + 0.240822 -0.086743 -0.966685 + 0.120108 -0.0733156 -0.99005 + 0.200713 -0.0499247 -0.978377 + 0.0850814 -0.0529501 -0.994966 + 0.174546 -0.0414905 -0.983774 + 0.128494 -0.0397993 -0.990911 + 0.165811 -0.0302869 -0.985692 + 0.109201 -0.0297743 -0.993574 + 0.189845 -0.00898857 -0.981773 + 0.203423 -0.00648121 -0.97907 + 0.241707 0.0185459 -0.970172 + 0.26088 0.00410083 -0.965362 + 0.360567 0.149478 -0.920678 + 0.435618 -0.00689889 -0.900105 + 0.505713 0.0506313 -0.861215 + 0.260418 -0.00102409 -0.965495 + 0.0571763 0.0307383 -0.997891 + 0.171794 -0.0202138 -0.984926 + 0.0578775 -0.0279849 -0.997931 + 0.0960437 -0.0285787 -0.994967 + 0.0567327 -0.0277008 -0.998005 + 0.109201 -0.0297743 -0.993574 + -0.00764373 -0.0330928 -0.999423 + 0.0171658 -0.0388885 -0.999096 + -0.0947117 -0.038938 -0.994743 + -0.145617 -0.0513022 -0.98801 + -0.172967 -0.0544599 -0.983421 + -0.204131 -0.0590079 -0.977164 + -0.258109 -0.0522708 -0.964701 + -0.251148 -0.0858831 -0.964131 + -0.371616 -0.0698241 -0.925757 + -0.387503 -0.22249 -0.894617 + -0.790098 -0.207093 -0.576938 + -0.666614 -0.280232 -0.690721 + 0.460445 -0.0698894 -0.884933 + 0.645747 -0.439126 -0.624643 + 0.860057 -0.201934 -0.468534 + 0.898595 -0.435139 -0.0564 + 0.944003 -0.329853 -0.00749891 + 0.91695 -0.395056 0.0559737 + 0.949016 -0.282828 0.139199 + 0.739748 -0.484383 0.467061 + 0.850305 -0.154661 0.503051 + 0.56123 -0.253004 0.788042 + 0.190286 -0.536402 -0.822231 + 0.460445 -0.0698894 -0.884933 + 0.276627 -0.523213 -0.806056 + 0.860057 -0.201934 -0.468534 + 0.594275 -0.468834 -0.653477 + 0.944003 -0.329853 -0.00749891 + 0.965861 -0.244137 -0.0866564 + 0.949016 -0.282828 0.139199 + 0.976347 -0.209025 0.0552697 + 0.850305 -0.154661 0.503051 + 0.0963856 -0.556028 -0.825556 + 0.190286 -0.536402 -0.822231 + 0.174376 -0.545041 -0.820075 + 0.276627 -0.523213 -0.806056 + 0.326979 -0.5283 -0.783571 + 0.594275 -0.468834 -0.653477 + 0.703443 -0.460186 -0.541662 + 0.965861 -0.244137 -0.0866564 + 0.966168 -0.255887 -0.0322816 + 0.976347 -0.209025 0.0552697 + 0.0699134 -0.870475 -0.487222 + 0.0945429 -0.871627 -0.480966 + -0.0719596 -0.0923874 0.99312 + -0.169743 -0.0739605 0.982709 + -0.130473 0.0308606 0.990971 + 0.474796 -0.728396 -0.493972 + 0.171024 -0.883604 -0.435884 + 0.213227 -0.728176 -0.651379 + 0.0945429 -0.871627 -0.480966 + 0.128731 -0.71709 -0.684989 + 0.0699134 -0.870475 -0.487222 + 0.0730331 -0.719482 -0.690661 + 0.0746513 -0.561733 -0.823943 + 0.0963856 -0.556028 -0.825556 + 0.0730331 -0.719482 -0.690661 + 0.174376 -0.545041 -0.820075 + 0.128731 -0.71709 -0.684989 + 0.326979 -0.5283 -0.783571 + 0.213227 -0.728176 -0.651379 + 0.703443 -0.460186 -0.541662 + 0.474796 -0.728396 -0.493972 + 0.966168 -0.255887 -0.0322816 + 0.986001 -0.0535061 -0.157918 + 0.540733 -0.0167589 -0.841027 + 0.877176 0.147201 0.457049 + 0.848772 -0.361619 -0.385769 + 0.853321 -0.0639493 -0.51745 + 0.935415 -0.179885 -0.304367 + 0.980474 -0.0308584 -0.194215 + 0.984588 -0.173942 0.0181729 + 0.982728 -0.16951 -0.0742393 + 0.981828 -0.188259 -0.0239158 + 0.818977 -0.267638 -0.50759 + 0.645747 -0.439126 -0.624643 + 0.312236 -0.447541 -0.837983 + 0.460445 -0.0698894 -0.884933 + 0.236042 -0.0556208 -0.97015 + 0.190286 -0.536402 -0.822231 + 0.0948015 -0.544679 -0.833269 + 0.0963856 -0.556028 -0.825556 + 0.0566371 -0.536563 -0.841958 + 0.0746513 -0.561733 -0.823943 + 0.769607 0.123389 0.626482 + 0.793742 -0.373849 -0.479802 + 0.486293 -0.111839 0.866609 + 0.965341 -0.190255 0.178661 + 0.981266 -0.0914599 0.169566 + 0.976177 -0.151157 -0.15566 + -0.437773 -0.720463 -0.537855 + -0.550556 -0.500728 -0.667952 + -0.241744 -0.54271 -0.804379 + -0.355289 -0.501685 -0.788722 + -0.190517 -0.526547 -0.828524 + -0.232849 -0.0959868 -0.967764 + -0.0666346 -0.0539188 -0.99632 + -0.111557 -0.49232 -0.863236 + -0.0547455 -0.363676 -0.929915 + 0.013822 -0.286672 -0.957929 + 0.000552461 -0.523299 -0.852149 + 0.313335 -0.0122103 -0.949564 + 0.0380897 -0.104384 -0.993807 + 0.045834 -0.520503 -0.852629 + 0.0768435 -0.387322 -0.918737 + 0.133766 -0.29495 -0.946103 + 0.216065 -0.407251 -0.887391 + 0.148153 -0.809916 -0.567527 + 0.312236 -0.447541 -0.837983 + 0.433277 -0.285525 -0.854837 + 0.818977 -0.267638 -0.50759 + 0.759854 -0.225681 -0.609664 + 0.982728 -0.16951 -0.0742393 + 0.991777 -0.122501 -0.0370505 + 0.992672 -0.119925 0.0148599 + 0.990495 -0.130389 0.043807 + 0.769607 0.123389 0.626482 + 0.93235 -0.182014 0.3124 + 0.793742 -0.373849 -0.479802 + 0.540733 -0.0167589 -0.841027 + 0.976177 -0.151157 -0.15566 + 0.986001 -0.0535061 -0.157918 + 0.981266 -0.0914599 0.169566 + 0.877176 0.147201 0.457049 + 0.486293 -0.111839 0.866609 + 0.853321 -0.0639493 -0.51745 + 0.769607 0.123389 0.626482 + 0.980474 -0.0308584 -0.194215 + 0.992672 -0.119925 0.0148599 + 0.982728 -0.16951 -0.0742393 + 0.096433 -0.184317 -0.978125 + -0.920946 -0.371573 0.117442 + 0.0148518 -0.513685 0.85785 + 0.00843162 -0.567667 -0.823215 + 0.896353 -0.386384 -0.217392 + -0.0742534 -0.0455013 0.996201 + -4.53331e-06 -0.998067 0.0621449 + -0.0132262 -0.288393 0.957421 + -2.69439e-05 -0.998067 0.0621388 + 0.076373 -0.150277 -0.98569 + -0.920946 -0.371573 0.117442 + 0.00843162 -0.567667 -0.823215 + -0.973782 -0.0515367 0.221569 + -0.920946 -0.371573 0.117442 + -0.606637 -0.470503 0.640795 + 0.096433 -0.184317 -0.978125 + -0.0238285 -0.507982 -0.861038 + 0.0508988 -0.233807 -0.97095 + -0.139362 -0.467494 0.872942 + 0.132955 -0.573884 -0.808072 + -0.047058 -0.0839621 0.995357 + 0.0148518 -0.513685 0.85785 + -0.0926054 -0.0548347 0.994192 + 0.896353 -0.386384 -0.217392 + -0.0238285 -0.507982 -0.861038 + 0.746392 -0.5617 -0.35692 + -0.606637 -0.470503 0.640795 + 0.0398126 -0.158474 -0.98656 + -0.00186611 -0.405316 -0.914175 + 0.0653773 -0.150375 -0.986465 + -2.69439e-05 -0.998067 0.0621388 + -0.896421 -0.442341 0.0276364 + -0.920946 -0.371573 0.117442 + -0.998153 -0.0606395 0.00378309 + -0.973782 -0.0515367 0.221569 + 0.878671 -0.47708 -0.0182014 + -0.0632384 -0.0454167 0.996965 + -0.00220223 -0.288333 0.957528 + -0.037796 -0.0201927 0.999081 + 0.0948815 -0.3941 -0.914157 + -0.0985968 -0.276318 0.955995 + -0.0414063 -0.890981 -0.452148 + -0.0893849 -0.735688 -0.671397 + -0.0860549 -0.74007 -0.667001 + -0.097891 -0.575317 -0.812052 + -0.0522582 -0.553963 -0.8309 + -0.0974602 -0.544032 -0.833385 + -0.0581059 -0.536403 -0.841959 + -0.0336355 0.419469 -0.907146 + -0.213468 0.40529 -0.888916 + 0.0727691 0.0227356 0.99709 + 0.127862 -0.0508269 0.990489 + -0.196436 -0.105575 0.974816 + -0.0219844 -0.995434 -0.0928865 + -0.00941509 -0.999928 -0.0073931 + 0.00911635 -0.99993 -0.00755255 + 0.0276021 -0.999565 -0.0104281 + -0.165669 -0.556939 -0.813863 + -0.128188 -0.714357 -0.68794 + -0.181173 -0.723353 -0.666286 + -0.103502 -0.836034 -0.538827 + -0.171076 -0.883548 -0.435977 + 0.167976 -0.176933 0.969783 + 0.239543 -0.0448543 0.969849 + 0.172759 0.0199605 0.984762 + 0.316366 -0.154467 0.935977 + -0.459955 -0.766237 0.448689 + -0.698184 -0.578806 -0.421336 + -0.779111 -0.180175 -0.600435 + -0.88566 -0.133487 -0.444733 + -0.0143142 -0.999876 -0.0065158 + -0.0203176 -0.999783 -0.0046536 + 0.0285109 -0.999585 -0.00419807 + 0.0334457 -0.999437 0.00272844 + 0.991672 -0.122509 0.0397367 + 0.878671 -0.47708 -0.0182014 + 0.991672 -0.122509 0.0397367 + 0.975382 -0.119845 -0.185115 + 0.0285109 -0.999585 -0.00419807 + 0.0276021 -0.999565 -0.0104281 + -0.0143142 -0.999876 -0.0065158 + -0.00941509 -0.999928 -0.0073931 + -0.779111 -0.180175 -0.600435 + -0.196436 -0.105575 0.974816 + -0.459955 -0.766237 0.448689 + 0.0727691 0.0227356 0.99709 + 0.172759 0.0199605 0.984762 + 0.127862 -0.0508269 0.990489 + 0.167976 -0.176933 0.969783 + -0.0414063 -0.890981 -0.452148 + -0.103502 -0.836034 -0.538827 + -0.0893849 -0.735688 -0.671397 + -0.128188 -0.714357 -0.68794 + -0.097891 -0.575317 -0.812052 + -0.165669 -0.556939 -0.813863 + -0.0974602 -0.544032 -0.833385 + -0.020038 -0.416774 -0.908789 + 0.878671 -0.47708 -0.0182014 + -0.896421 -0.442341 0.0276364 + -0.00220223 -0.288333 0.957528 + 0.0653773 -0.150375 -0.986465 + 0.0948815 -0.3941 -0.914157 + 0.0398126 -0.158474 -0.98656 + -0.0985968 -0.276318 0.955995 + -0.00186611 -0.405316 -0.914175 + -0.0632384 -0.0454167 0.996965 + -4.53331e-06 -0.998067 0.0621449 + 0.878671 -0.47708 -0.0182014 + 0.896353 -0.386384 -0.217392 + 0.975382 -0.119845 -0.185115 + 0.91078 -0.101186 -0.400302 + 0.0276021 -0.999565 -0.0104281 + 0.823291 -0.181828 -0.537709 + 0.00911635 -0.99993 -0.00755255 + 0.0314025 -0.981913 -0.186711 + -0.0219844 -0.995434 -0.0928865 + -0.0863453 -0.979701 -0.180915 + -0.0860549 -0.74007 -0.667001 + -0.207933 -0.677131 -0.705874 + -0.0522582 -0.553963 -0.8309 + -0.129441 -0.52995 -0.838092 + -0.0581059 -0.536403 -0.841959 + -0.100658 -0.529489 -0.842324 + -0.0677769 -0.526866 -0.847242 + -0.0874476 -0.564661 -0.820677 + 0.0242656 -0.16857 -0.985391 + -0.020038 -0.416774 -0.908789 + 0.0514734 -0.150401 -0.987284 + -0.896421 -0.442341 0.0276364 + -3.69915e-05 -0.998063 0.0622061 + 0.815042 -0.558026 0.155925 + -0.0477242 -0.0568999 0.997239 + 0.0135784 -0.305483 0.952101 + -0.0207976 -0.0202 0.99958 + 0.0813709 -0.412876 -0.907145 + -0.0882458 -0.298346 0.95037 + -0.0372499 -0.416834 -0.908219 + 0.815042 -0.558026 0.155925 + -3.69915e-05 -0.998063 0.0622061 + 0.0135784 -0.305483 0.952101 + 0.0514734 -0.150401 -0.987284 + 0.0813709 -0.412876 -0.907145 + 0.0242656 -0.16857 -0.985391 + -0.0882458 -0.298346 0.95037 + -0.020038 -0.416774 -0.908789 + -0.0477242 -0.0568999 0.997239 + 0.878671 -0.47708 -0.0182014 + 0.815042 -0.558026 0.155925 + 0.991672 -0.122509 0.0397367 + 0.965769 -0.0803076 0.246661 + 0.0334457 -0.999437 0.00272844 + 0.669631 -0.415959 0.615282 + 0.174455 -0.183479 0.96742 + 0.639854 -0.638381 -0.427851 + -0.173145 -0.0555907 0.983326 + -0.315762 -0.163078 0.934719 + -0.239542 -0.0448349 0.96985 + -0.533985 -0.0348413 0.844776 + 0.39639 -0.86591 -0.305082 + 0.702368 -0.711813 0.00121255 + 0.805913 -0.590415 -0.0437529 + 0.823737 -0.54956 0.139433 + 0.948259 -0.27059 0.166088 + 0.813832 -0.28853 0.504408 + 0.840164 -0.20457 0.50227 + 0.576965 -0.20427 0.790813 + 0.60283 -0.155279 0.782614 + 0.230239 -0.121708 0.965493 + 0.14641 0.0548174 0.987704 + 0.0262322 0.33319 0.942495 + 0.0208023 -0.259605 0.965491 + 1.49009e-05 0.597465 0.801895 + 0.00511677 -0.168287 -0.985725 + -0.0372499 -0.416834 -0.908219 + 0.0318862 -0.150303 -0.988126 + -3.69915e-05 -0.998063 0.0622061 + -0.781921 -0.6087 -0.134474 + -0.896421 -0.442341 0.0276364 + -0.980086 -0.184913 -0.0723741 + -0.998153 -0.0606395 0.00378309 + 0.702368 -0.711813 0.00121255 + -0.973782 -0.0515367 0.221569 + -0.533985 -0.0348413 0.844776 + -0.606637 -0.470503 0.640795 + -0.315762 -0.163078 0.934719 + 0.126622 -0.212929 -0.968828 + -0.0652713 -0.514566 -0.854963 + 0.0621973 -0.288539 -0.955446 + -0.176843 -0.496467 0.849851 + 0.155158 -0.574913 -0.803368 + -0.0503295 -0.101194 0.993593 + 0.046284 -0.508882 0.859591 + -0.112957 -0.075932 0.990694 + 0.746392 -0.5617 -0.35692 + 0.639854 -0.638381 -0.427851 + 0.823291 -0.181828 -0.537709 + 0.669631 -0.415959 0.615282 + 0.0314025 -0.981913 -0.186711 + 0.616157 -0.756719 0.218465 + -0.0282961 -0.0557264 0.998045 + 0.0309616 -0.303746 0.95225 + -0.00169885 -0.0202046 0.999794 + 0.0626195 -0.412771 -0.90868 + -0.0693479 -0.298092 0.952015 + -0.0786384 -0.438524 -0.895272 + 0.616157 -0.756719 0.218465 + -0.781921 -0.6087 -0.134474 + 0.0309616 -0.303746 0.95225 + 0.0318862 -0.150303 -0.988126 + 0.0626195 -0.412771 -0.90868 + 0.00511677 -0.168287 -0.985725 + -0.0693479 -0.298092 0.952015 + -0.0372499 -0.416834 -0.908219 + -0.0282961 -0.0557264 0.998045 + 0.815042 -0.558026 0.155925 + 0.616157 -0.756719 0.218465 + 0.965769 -0.0803076 0.246661 + -0.020033 -0.21804 -0.975734 + -0.0786384 -0.438524 -0.895272 + 0.0151517 -0.162249 -0.986634 + -0.781921 -0.6087 -0.134474 + -0.621226 -0.754154 -0.212907 + -0.918975 -0.113576 -0.377605 + -0.753846 -0.104562 -0.648678 + 0.484568 -0.791171 0.373152 + -0.441227 -0.410584 -0.797959 + 0.389447 -0.67308 0.628724 + 0.0947284 -0.688096 0.71941 + 0.124375 -0.466929 0.875505 + 0.0569336 -0.498908 0.864783 + 0.0549814 -0.176311 0.982798 + 0.0299068 -0.478211 0.877735 + 0.000306694 -0.127669 0.991817 + 0.0349965 -0.422194 0.90583 + 0.0273481 -0.125257 0.991747 + 0.751925 -0.553342 0.358359 + -0.00550216 -0.0666049 0.997764 + 0.0619717 -0.322282 0.944613 + 0.0295799 -0.0282203 0.999164 + 0.0491179 -0.511933 -0.85762 + -0.0668278 -0.403098 0.912714 + -0.0624636 -0.392402 -0.91767 + 0.751925 -0.553342 0.358359 + -0.621226 -0.754154 -0.212907 + 0.0619717 -0.322282 0.944613 + 0.0151517 -0.162249 -0.986634 + 0.0491179 -0.511933 -0.85762 + -0.020033 -0.21804 -0.975734 + -0.0668278 -0.403098 0.912714 + -0.0786384 -0.438524 -0.895272 + -0.00550216 -0.0666049 0.997764 + 0.616157 -0.756719 0.218465 + 0.751925 -0.553342 0.358359 + 0.965769 -0.0803076 0.246661 + 0.0274618 -0.259769 0.96528 + 0.124935 -0.0680185 0.989831 + -0.000947291 -0.0603396 0.998177 + 0.0392043 -0.090357 0.995138 + -0.0210317 -0.02248 0.999526 + 1.49009e-05 0.597465 0.801895 + -5.93645e-07 -0.00768696 0.99997 + 0.0208023 -0.259605 0.965491 + -0.0130309 -0.384774 0.922919 + -0.0441025 -0.0769918 0.996056 + -0.239299 -0.0695693 0.96845 + -0.0943927 -0.0625337 0.993569 + -0.239919 -0.274966 0.931038 + -0.136175 -0.278435 0.950752 + -0.984921 -0.171081 0.025735 + -0.942651 -0.140281 0.30287 + -0.943172 -0.10506 0.315261 + -0.925586 -0.103295 0.36417 + -0.914462 -0.0956641 0.393201 + -0.777311 -0.0803891 0.623959 + -0.777019 -0.0770071 0.624749 + -0.986693 -0.159755 -0.030259 + -0.975145 -0.202226 -0.0905372 + -0.983761 -0.178805 0.0156072 + -0.814423 -0.579513 0.0296512 + -0.93473 -0.163685 0.315415 + -0.897359 -0.425905 0.115547 + -0.826985 -0.14412 0.543438 + -0.698485 -0.51509 0.49679 + -0.591307 -0.130108 0.795882 + -0.471254 -0.439489 0.764702 + -0.155646 -0.311397 0.937447 + -0.271332 0.2705 0.923693 + -0.0610696 0.323723 0.944179 + -0.0241398 -0.108054 0.993852 + -0.0441025 -0.0769918 0.996056 + -0.0104522 -0.345132 0.938496 + 0.0274618 -0.259769 0.96528 + -0.136175 -0.278435 0.950752 + -0.000947291 -0.0603396 0.998177 + -0.0943927 -0.0625337 0.993569 + -0.0210317 -0.02248 0.999526 + -0.0441025 -0.0769918 0.996056 + -5.93645e-07 -0.00768696 0.99997 + -0.0610696 0.323723 0.944179 + -0.0130309 -0.384774 0.922919 + -0.155646 -0.311397 0.937447 + -0.244597 -0.0742531 0.966778 + -0.591307 -0.130108 0.795882 + -0.606014 -0.0986593 0.789312 + -0.826985 -0.14412 0.543438 + -0.881392 -0.14703 0.448922 + -0.93473 -0.163685 0.315415 + -0.942651 -0.140281 0.30287 + -0.983761 -0.178805 0.0156072 + -0.984921 -0.171081 0.025735 + -0.986693 -0.159755 -0.030259 + -0.992282 -0.115526 0.0450676 + -0.991711 -0.127574 0.0153086 + -0.722638 -0.142525 0.676373 + -0.909881 -0.302697 -0.28371 + -0.540594 0.0873704 0.836735 + -0.793666 -0.311598 0.522495 + -0.976159 -0.130711 0.173289 + -0.965375 -0.210825 -0.153636 + -0.0183902 -0.433933 0.900758 + -0.0427312 -0.717501 0.695245 + -0.0496284 -0.47595 0.878071 + -0.106985 -0.95354 0.281631 + -0.272211 -0.385717 0.881546 + -0.160849 -0.945194 0.284141 + -0.230491 -0.616914 0.752523 + 0.17064 -0.837107 0.519744 + -0.13021 -0.66809 0.732598 + 0.141746 -0.413349 0.899472 + -3.37248e-06 -0.13538 0.990794 + -0.0183902 -0.433933 0.900758 + -0.00699165 -0.123847 0.992277 + -0.0496284 -0.47595 0.878071 + -0.176293 -0.0877051 0.980423 + -0.272211 -0.385717 0.881546 + 0.845948 -0.531459 -0.0438535 + 0.00168685 -0.0260275 0.99966 + 0.0690107 -0.309236 0.948478 + 0.0283298 -0.0448712 0.998591 + 0.0373149 -0.4103 -0.911187 + -0.0310776 -0.2955 0.954837 + 0.845948 -0.531459 -0.0438535 + 0.974318 -0.0822497 -0.209617 + 0.992041 -0.12567 0.00783892 + -0.68508 -0.708441 0.169639 + -0.754989 -0.654206 -0.0447836 + -0.835546 -0.538179 0.110577 + -0.798097 -0.600494 -0.0494687 + -0.966471 -0.249905 0.0590085 + -0.946216 -0.299395 -0.122631 + -0.97398 -0.224494 -0.0310772 + 0.811553 -0.542918 0.21592 + -0.869142 -0.478178 -0.126244 + -0.10469 -0.398477 -0.911184 + -0.0510786 -0.165174 -0.984941 + -0.0764166 -0.143873 -0.986641 + -3.89858e-05 -0.998054 0.0623523 + 0.0491132 -0.0254964 0.998468 + 0.108068 -0.286774 0.951883 + 0.0743392 -0.0341827 0.996647 + -0.00930297 -0.397399 -0.917599 + 0.013251 -0.279406 0.960082 + -0.0946758 -0.399713 -0.911738 + -3.89858e-05 -0.998054 0.0623523 + -2.76632e-05 -0.998059 0.0622817 + 0.108068 -0.286774 0.951883 + -0.0510786 -0.165174 -0.984941 + -0.00930297 -0.397399 -0.917599 + -0.0764166 -0.143873 -0.986641 + 0.013251 -0.279406 0.960082 + -0.10469 -0.398477 -0.911184 + 0.0491132 -0.0254964 0.998468 + 0.811553 -0.542918 0.21592 + -3.89858e-05 -0.998054 0.0623523 + -0.911536 -0.402895 0.0823245 + -0.993887 -0.108538 -0.0201864 + -0.972897 -0.0818466 0.216268 + -0.0405363 -0.999134 0.00937804 + -0.0529578 -0.998293 0.0246173 + 0.0462555 -0.998612 0.0252052 + 0.0498179 -0.997869 0.0421383 + 0.797777 -0.0740369 0.59839 + 0.283216 -0.18288 -0.941458 + 0.775861 -0.226431 -0.588871 + 0.0558687 -0.155968 -0.986181 + -0.0147905 -0.117882 0.992917 + 0.0549489 -0.144192 0.988023 + 0.0296607 -0.00940797 0.999516 + 0.0960936 -0.301048 0.948755 + -0.036744 -0.203324 0.978422 + -0.141142 -0.931764 0.334508 + -0.159757 -0.116334 0.980278 + -0.0657711 -0.407265 -0.910939 + 0.722076 -0.457562 0.518887 + -2.25596e-05 -0.998059 0.062268 + -2.59963e-05 -0.998064 0.0621996 + -1.32722e-05 -0.998051 0.0624059 + 0.0472026 -0.0615948 0.996984 + 0.548365 -0.393781 0.737721 + -0.129722 -0.6053 -0.785356 + 0.174191 -0.515712 0.838868 + -0.83604 -0.430097 -0.340666 + -0.0632771 -0.198978 -0.977959 + -0.959926 -0.134563 -0.245835 + -0.869142 -0.478178 -0.126244 + -0.83604 -0.430097 -0.340666 + -0.0512683 -0.187771 -0.980874 + -0.129722 -0.6053 -0.785356 + -0.0961963 -0.203609 -0.974315 + -0.0150231 -0.499657 0.866093 + 0.0222217 -0.604467 -0.79632 + 0.0918859 -0.108346 0.989858 + 0.148969 -0.352031 0.924058 + 0.0472026 -0.0615948 0.996984 + 0.811553 -0.542918 0.21592 + 0.548365 -0.393781 0.737721 + -0.0654124 -0.143991 -0.987415 + -0.0946758 -0.399713 -0.911738 + -0.0397908 -0.165892 -0.985341 + -2.76632e-05 -0.998059 0.0622817 + -0.911536 -0.402895 0.0823245 + -0.869142 -0.478178 -0.126244 + -0.993887 -0.108538 -0.0201864 + -0.959926 -0.134563 -0.245835 + -0.0290606 -0.999578 4.30505e-05 + 0.900243 -0.434547 0.0270545 + 0.0377667 -0.0257045 0.998956 + 0.098182 -0.287022 0.952879 + 0.0633084 -0.0343343 0.997403 + 0.00183531 -0.39767 -0.917527 + 0.00219734 -0.279625 0.960107 + -0.911536 -0.402895 0.0823245 + -0.024261 -0.177465 -0.983828 + -0.0812989 -0.41569 -0.905866 + -0.0515117 -0.144109 -0.98822 + -0.0136631 -0.296385 0.954971 + 0.020063 -0.411146 -0.911349 + -0.832604 -0.485834 0.265961 + -0.00511983 -0.177795 -0.984054 + -5.46325e-05 -0.99807 0.0621026 + -0.057325 -0.569981 -0.819655 + 0.0819463 -0.442625 0.892955 + -4.84273e-05 -0.998067 0.0621543 + 0.0207864 -0.0258585 0.999449 + 0.900243 -0.434547 0.0270545 + -0.138028 -0.100965 -0.985269 + -1.32722e-05 -0.998051 0.0624059 + -0.486609 -0.0593583 -0.871601 + -2.59963e-05 -0.998064 0.0621996 + -0.755194 -0.0651343 -0.652258 + -0.00762772 -0.159834 -0.987114 + 0.990282 -0.0889595 0.106902 + 0.811553 -0.542918 0.21592 + 0.900243 -0.434547 0.0270545 + -3.89858e-05 -0.998054 0.0623523 + 0.0377667 -0.0257045 0.998956 + -0.0946758 -0.399713 -0.911738 + 0.00219734 -0.279625 0.960107 + -0.0654124 -0.143991 -0.987415 + 0.00183531 -0.39767 -0.917527 + -0.0397908 -0.165892 -0.985341 + 0.098182 -0.287022 0.952879 + -0.911536 -0.402895 0.0823245 + 0.900243 -0.434547 0.0270545 + -0.0812989 -0.41569 -0.905866 + 0.0207864 -0.0258585 0.999449 + -0.0136631 -0.296385 0.954971 + 0.0477983 -0.0451771 0.997835 + 0.020063 -0.411146 -0.911349 + 0.0819463 -0.442625 0.892955 + -0.024261 -0.177465 -0.983828 + -5.46325e-05 -0.99807 0.0621026 + -0.911536 -0.402895 0.0823245 + -0.832604 -0.485834 0.265961 + -0.972897 -0.0818466 0.216268 + -0.905585 -0.0825196 0.416061 + -0.0529578 -0.998293 0.0246173 + -0.0603359 -0.997111 0.0461383 + 0.0498179 -0.997869 0.0421383 + 0.073094 -0.96247 0.261361 + 0.283216 -0.18288 -0.941458 + 0.0358758 -0.172215 -0.984406 + 0.0558687 -0.155968 -0.986181 + -0.0361893 -0.140816 -0.989374 + 0.0549489 -0.144192 0.988023 + 0.147353 -0.282945 0.947749 + 0.0960936 -0.301048 0.948755 + 0.0338563 -0.412411 -0.910369 + -0.141142 -0.931764 0.334508 + -0.0334862 -0.147007 -0.988568 + -0.0657711 -0.407265 -0.910939 + -0.00788589 -0.122785 -0.992402 + -1.32722e-05 -0.998051 0.0624059 + 0.147353 -0.282945 0.947749 + -0.138028 -0.100965 -0.985269 + -0.0361893 -0.140816 -0.989374 + -0.0680696 -0.176535 -0.981938 + 0.0358758 -0.172215 -0.984406 + 0.0458255 -0.764803 0.642633 + 0.073094 -0.96247 0.261361 + -0.050741 -0.452166 -0.890489 + 0.845948 -0.531459 -0.0438535 + -0.832604 -0.485834 0.265961 + 0.0690107 -0.309236 0.948478 + -0.00511983 -0.177795 -0.984054 + 0.0373149 -0.4103 -0.911187 + -0.0319048 -0.14423 -0.98903 + -0.0310776 -0.2955 0.954837 + -0.057325 -0.569981 -0.819655 + 0.00168685 -0.0260275 0.99966 + -4.84273e-05 -0.998067 0.0621543 + 0.845948 -0.531459 -0.0438535 + 0.900243 -0.434547 0.0270545 + 0.992041 -0.12567 0.00783892 + 0.990282 -0.0889595 0.106902 + -0.754989 -0.654206 -0.0447836 + -0.0151633 -0.153953 -0.987962 + -0.050741 -0.452166 -0.890489 + 0.0200978 -0.18873 -0.981823 + -0.832604 -0.485834 0.265961 + -0.709698 -0.575057 0.406987 + -0.905585 -0.0825196 0.416061 + -0.810467 -0.0942265 0.578156 + -0.0603359 -0.997111 0.0461383 + -0.106985 -0.95354 0.281631 + 0.073094 -0.96247 0.261361 + 0.129411 -0.964874 0.228628 + 0.251005 -0.38847 0.886616 + 0.17064 -0.837107 0.519744 + 0.247742 -0.294242 0.923063 + 0.141746 -0.413349 0.899472 + 0.143017 -0.264935 0.953601 + 0.709682 -0.656284 -0.256207 + -0.0295648 -0.0375571 0.998857 + 0.0688262 -0.346109 0.935666 + 0.00548134 -0.0965344 0.995315 + 0.0764936 -0.491868 -0.867303 + -0.0602208 -0.382887 0.92183 + 0.484303 -0.151175 -0.86174 + 0.48442 -0.148702 -0.862105 + 0.213768 -0.161825 -0.963388 + -0.102221 -0.059953 0.992953 + -0.0290653 -0.150342 0.988207 + -0.0554638 -0.0949305 0.993938 + 0.0150394 0.0260115 0.999548 + -0.651573 -0.531485 0.541272 + -2.38767e-05 -0.998051 0.0624 + -2.26381e-05 -0.998059 0.0622695 + 0.48442 -0.148702 -0.862105 + 0.699769 -0.0821472 -0.709631 + 0.484303 -0.151175 -0.86174 + 0.7975 -0.26095 -0.543966 + 0.0366474 -0.210843 0.976833 + 0.109325 -0.696136 0.709537 + 0.387008 -0.478909 0.787953 + 0.0668361 -0.362934 -0.929415 + 0.0331022 -0.232199 -0.972105 + 0.00786288 -0.148206 -0.988925 + -0.0358942 -0.194353 -0.980275 + -0.11698 -0.618634 0.776922 + 0.0683144 -0.138344 -0.988025 + 0.0366474 -0.210843 0.976833 + -0.0388661 -0.11281 -0.992856 + 0.387008 -0.478909 0.787953 + -0.525225 -0.187334 -0.830087 + 0.0331022 -0.232199 -0.972105 + -0.570503 -0.712143 0.40912 + 0.7975 -0.26095 -0.543966 + -0.382002 -0.779468 0.496492 + 0.484303 -0.151175 -0.86174 + 0.132827 -0.210161 -0.968602 + 0.213768 -0.161825 -0.963388 + 0.0683144 -0.138344 -0.988025 + -0.0290653 -0.150342 0.988207 + 0.0366474 -0.210843 0.976833 + 0.0150394 0.0260115 0.999548 + 0.109325 -0.696136 0.709537 + -0.0554638 -0.0949305 0.993938 + -0.11698 -0.618634 0.776922 + -0.102221 -0.059953 0.992953 + -0.0358942 -0.194353 -0.980275 + -2.38767e-05 -0.998051 0.0624 + 0.0331022 -0.232199 -0.972105 + -0.651573 -0.531485 0.541272 + -0.525225 -0.187334 -0.830087 + -0.441069 -0.133701 -0.887458 + -0.0388661 -0.11281 -0.992856 + -0.0551828 -0.298892 -0.95269 + 0.0361674 -0.145493 -0.988698 + -0.0398346 -0.744363 0.666586 + 0.132827 -0.210161 -0.968602 + -0.123553 -0.70335 0.700024 + -0.382002 -0.779468 0.496492 + 0.0320248 -0.156161 -0.987212 + -0.651573 -0.531485 0.541272 + 0.0280782 -0.286129 0.95778 + -2.26381e-05 -0.998059 0.0622695 + -1.17598e-05 -0.998062 0.0622344 + 0.699769 -0.0821472 -0.709631 + 0.709682 -0.656284 -0.256207 + 0.7975 -0.26095 -0.543966 + 0.900146 -0.256927 -0.351746 + -0.570503 -0.712143 0.40912 + -0.0320643 -0.145974 -0.988769 + -0.0624636 -0.392402 -0.91767 + -0.00762772 -0.159834 -0.987114 + -0.621226 -0.754154 -0.212907 + -0.755194 -0.0651343 -0.652258 + -0.753846 -0.104562 -0.648678 + -0.486609 -0.0593583 -0.871601 + -0.441227 -0.410584 -0.797959 + -0.211587 -0.234128 -0.948902 + 0.0947284 -0.688096 0.71941 + 0.029085 -0.799608 0.599817 + 0.0569336 -0.498908 0.864783 + 0.0458255 -0.764803 0.642633 + 0.0299068 -0.478211 0.877735 + 0.073094 -0.96247 0.261361 + 0.0349965 -0.422194 0.90583 + 0.251005 -0.38847 0.886616 + 0.0273481 -0.125257 0.991747 + 0.18391 -0.087181 0.979069 + 0.0392043 -0.090357 0.995138 + 0.237774 -0.066623 0.969033 + 0.124935 -0.0680185 0.989831 + 0.143017 -0.264935 0.953601 + 0.0274618 -0.259769 0.96528 + 0.141746 -0.413349 0.899472 + -0.0104522 -0.345132 0.938496 + -0.13021 -0.66809 0.732598 + -0.136175 -0.278435 0.950752 + -0.230491 -0.616914 0.752523 + -0.239919 -0.274966 0.931038 + -0.272211 -0.385717 0.881546 + -0.239299 -0.0695693 0.96845 + -0.176293 -0.0877051 0.980423 + -0.0441025 -0.0769918 0.996056 + -0.00699165 -0.123847 0.992277 + -0.0241398 -0.108054 0.993852 + -3.37248e-06 -0.13538 0.990794 + -0.0726955 -0.151423 0.985792 + -0.0183902 -0.433933 0.900758 + -0.0696411 -0.458647 0.885886 + -0.0398346 -0.744363 0.666586 + -0.139833 -0.483247 0.864245 + -0.123553 -0.70335 0.700024 + -0.429507 -0.508817 0.746076 + -0.382002 -0.779468 0.496492 + -0.714949 -0.536531 0.448311 + -0.570503 -0.712143 0.40912 + -0.68508 -0.708441 0.169639 + 0.900146 -0.256927 -0.351746 + 0.974318 -0.0822497 -0.209617 + 0.709682 -0.656284 -0.256207 + 0.845948 -0.531459 -0.0438535 + -0.0295648 -0.0375571 0.998857 + -0.050741 -0.452166 -0.890489 + -0.0602208 -0.382887 0.92183 + -0.0151633 -0.153953 -0.987962 + 0.0764936 -0.491868 -0.867303 + 0.0200978 -0.18873 -0.981823 + 0.0688262 -0.346109 0.935666 + -0.709698 -0.575057 0.406987 + 0.709682 -0.656284 -0.256207 + -0.0294715 -0.413824 -0.90988 + -1.17598e-05 -0.998062 0.0622344 + -0.0312153 0.000525149 0.999513 + 0.0280782 -0.286129 0.95778 + -0.00677197 -0.0233694 0.999704 + 0.0626692 -0.382728 -0.921733 + -0.0644529 -0.266389 0.961708 + 0.0076222 -0.153385 -0.988137 + -0.0294715 -0.413824 -0.90988 + 0.0320248 -0.156161 -0.987212 + -0.709698 -0.575057 0.406987 + -0.651573 -0.531485 0.541272 + -0.810467 -0.0942265 0.578156 + -0.441069 -0.133701 -0.887458 + -0.106985 -0.95354 0.281631 + -0.0551828 -0.298892 -0.95269 + -0.0427312 -0.717501 0.695245 + -0.0398346 -0.744363 0.666586 + -0.0183902 -0.433933 0.900758 + 0.548365 -0.393781 0.737721 + 0.811553 -0.542918 0.21592 + 0.609243 -0.00954573 0.792926 + 0.990282 -0.0889595 0.106902 + -0.284019 -0.913092 -0.29257 + -0.754989 -0.654206 -0.0447836 + -0.437773 -0.720463 -0.537855 + -0.798097 -0.600494 -0.0494687 + -0.550556 -0.500728 -0.667952 + -0.946216 -0.299395 -0.122631 + -0.750569 -0.409031 -0.51898 + -0.97398 -0.224494 -0.0310772 + -0.713333 -0.189014 -0.674855 + -0.954114 -0.27868 -0.10956 + -0.674098 -0.460207 -0.577756 + -0.907864 -0.41889 -0.0177348 + -0.666614 -0.280232 -0.690721 + -0.975145 -0.202226 -0.0905372 + -0.790098 -0.207093 -0.576938 + -0.986693 -0.159755 -0.030259 + -0.986835 -0.129527 -0.0968451 + -0.991711 -0.127574 0.0153086 + -0.952295 -0.16568 -0.25629 + -0.909881 -0.302697 -0.28371 + -0.760598 -0.0421585 -0.647852 + -0.793666 -0.311598 0.522495 + -0.486345 -0.218038 -0.846125 + -0.965375 -0.210825 -0.153636 + -0.981277 -0.11166 -0.156929 + -0.976159 -0.130711 0.173289 + -0.985987 -0.0334918 0.163428 + -0.540594 0.0873704 0.836735 + -0.877014 0.0897406 -0.472009 + -0.722638 -0.142525 0.676373 + -0.957715 0.0603528 0.281317 + -0.992282 -0.115526 0.0450676 + -0.986751 -0.0418255 -0.156757 + -0.984921 -0.171081 0.025735 + -0.995022 -0.0946633 0.0311315 + -0.943172 -0.10506 0.315261 + -0.999378 0.00208071 0.0352076 + -0.914462 -0.0956641 0.393201 + -0.862731 0.0361773 0.504367 + -0.777019 -0.0770071 0.624749 + -0.655014 -0.0606623 0.753178 + -0.777311 -0.0803891 0.623959 + -0.54908 -0.0514564 0.834184 + -0.606014 -0.0986593 0.789312 + -0.169642 -0.040507 0.984673 + -0.244597 -0.0742531 0.966778 + -0.01848 -0.0318335 0.999322 + -0.0130309 -0.384774 0.922919 + 0.0179315 -0.0587359 0.998112 + 0.0208023 -0.259605 0.965491 + 0.197571 -0.423925 0.883885 + 0.14641 0.0548174 0.987704 + 0.56123 -0.253004 0.788042 + 0.60283 -0.155279 0.782614 + 0.850305 -0.154661 0.503051 + 0.840164 -0.20457 0.50227 + 0.976347 -0.209025 0.0552697 + 0.948259 -0.27059 0.166088 + 0.966168 -0.255887 -0.0322816 + 0.805913 -0.590415 -0.0437529 + 0.474796 -0.728396 -0.493972 + 0.39639 -0.86591 -0.305082 + 0.171024 -0.883604 -0.435884 + -0.239542 -0.0448349 0.96985 + -0.169743 -0.0739605 0.982709 + -0.173145 -0.0555907 0.983326 + -0.130473 0.0308606 0.990971 + 0.174455 -0.183479 0.96742 + -0.0719596 -0.0923874 0.99312 + 0.669631 -0.415959 0.615282 + 0.0699134 -0.870475 -0.487222 + 0.0314025 -0.981913 -0.186711 + 0.0730331 -0.719482 -0.690661 + 0.135918 -0.730995 -0.66871 + 0.0746513 -0.561733 -0.823943 + 0.13532 -0.537069 -0.832613 + 0.0566371 -0.536563 -0.841958 + 0.0986022 -0.530362 -0.842017 + 0.060734 -0.529506 -0.846129 + 0.151586 -0.612128 -0.776094 + 0.0894448 -0.573943 -0.813996 + 0.116522 -0.903396 -0.412671 + 0.0822595 -0.726724 -0.681987 + -0.0926785 -0.837179 -0.53902 + -0.00775291 -0.636754 -0.771028 + -0.0874476 -0.564661 -0.820677 + 0.00648408 -0.553942 -0.83253 + -0.0677769 -0.526866 -0.847242 + -0.00973968 -0.529629 -0.848173 + -0.0581059 -0.536403 -0.841959 + 0.000552461 -0.523299 -0.852149 + -0.213468 0.40529 -0.888916 + -0.0547455 -0.363676 -0.929915 + -0.0336355 0.419469 -0.907146 + -0.0666346 -0.0539188 -0.99632 + -0.0974602 -0.544032 -0.833385 + -0.190517 -0.526547 -0.828524 + -0.165669 -0.556939 -0.813863 + -0.241744 -0.54271 -0.804379 + -0.181173 -0.723353 -0.666286 + -0.437773 -0.720463 -0.537855 + -0.171076 -0.883548 -0.435977 + -0.284019 -0.913092 -0.29257 + 0.239543 -0.0448543 0.969849 + 0.609243 -0.00954573 0.792926 + 0.316366 -0.154467 0.935977 + 0.548365 -0.393781 0.737721 + 0.0503288 -0.10072 0.993641 + 0.174191 -0.515712 0.838868 + 0.1112 -0.160221 0.980798 + 0.0551875 -0.706002 -0.706057 + -0.0400726 -0.652128 0.75705 + -0.126989 -0.193752 -0.972797 + -0.170858 -0.403792 -0.898755 + -0.0632771 -0.198978 -0.977959 + -0.698184 -0.578806 -0.421336 + -0.83604 -0.430097 -0.340666 + -0.88566 -0.133487 -0.444733 + -0.959926 -0.134563 -0.245835 + -0.0203176 -0.999783 -0.0046536 + -0.0290606 -0.999578 4.30505e-05 + 0.0334457 -0.999437 0.00272844 + 0.038821 -0.999174 0.0119974 + 0.965769 -0.0803076 0.246661 + 0.887809 -0.0941705 0.450474 + 0.751925 -0.553342 0.358359 + 0.722076 -0.457562 0.518887 + 0.00671325 -0.0955187 0.995405 + -2.59963e-05 -0.998064 0.0621996 + 0.0676615 -0.0586702 0.995982 + -0.00762772 -0.159834 -0.987114 + 0.0296376 -0.397995 -0.916909 + -0.0320643 -0.145974 -0.988769 + -0.0281339 -0.282259 0.958926 + -0.0624636 -0.392402 -0.91767 + 0.00671325 -0.0955187 0.995405 + 0.751925 -0.553342 0.358359 + 0.167092 -0.61313 -0.772108 + 0.151266 -0.830702 -0.535773 + 0.0894258 -0.573963 -0.813984 + 0.0905782 -0.654139 -0.750931 + 0.00647184 -0.553965 -0.832515 + -0.00696156 -0.721797 -0.69207 + -0.0678177 -0.526871 -0.847235 + 0.00647184 -0.553965 -0.832515 + -0.087472 -0.564655 -0.820679 + -0.00696156 -0.721797 -0.69207 + -0.0536447 -0.948568 -0.311996 + 0.151266 -0.830702 -0.535773 + 0.177176 -0.882164 -0.436343 + 0.167092 -0.61313 -0.772108 + 0.130414 -0.746571 -0.652398 + 0.177176 -0.882164 -0.436343 + 0.1764 -0.657686 -0.732347 + 0.167092 -0.61313 -0.772108 + 0.101593 -0.533846 -0.839457 + 0.0607343 -0.529506 -0.846129 + 0.0207864 -0.025861 0.999449 + 0.0477984 -0.045177 0.997835 + 0.0819416 -0.442586 0.892974 + 0.020063 -0.411144 -0.91135 + -0.0242584 -0.177453 -0.98383 + -0.0515121 -0.144112 -0.98822 + -0.0812922 -0.415655 -0.905882 + -0.0136634 -0.296386 0.95497 + 0.0207864 -0.025861 0.999449 + 0.0477984 -0.045177 0.997835 + 0.0653771 -0.150375 -0.986465 + 0.0398126 -0.158474 -0.98656 + -0.00175047 -0.532126 -0.846663 + -0.0985969 -0.276318 0.955995 + -0.0632385 -0.0454167 0.996965 + -0.037796 -0.0201927 0.999081 + -0.00220226 -0.288336 0.957527 + 0.0948816 -0.3941 -0.914157 + 0.0653771 -0.150375 -0.986465 + 0.0398126 -0.158474 -0.98656 + 0.0318864 -0.1503 -0.988126 + 0.00511549 -0.168296 -0.985723 + -0.0348794 -0.539599 -0.841199 + -0.0693494 -0.298104 0.952011 + -0.0282947 -0.055729 0.998045 + -0.00169899 -0.0202057 0.999794 + 0.0309613 -0.303736 0.952253 + 0.0626204 -0.412803 -0.908665 + 0.0318864 -0.1503 -0.988126 + 0.00511549 -0.168296 -0.985723 + -0.112954 -0.0759061 0.990697 + -0.050329 -0.101191 0.993593 + 0.0391259 -0.669077 0.742162 + 0.155157 -0.574922 -0.803362 + 0.126618 -0.212907 -0.968834 + 0.0621943 -0.288526 -0.95545 + -0.065269 -0.514549 -0.854973 + -0.176849 -0.496478 0.849844 + -0.112954 -0.0759061 0.990697 + -0.050329 -0.101191 0.993593 + -0.0974673 -0.54403 -0.833386 + -0.0497235 -0.553238 -0.831538 + -0.0978913 -0.575316 -0.812052 + -0.0705404 -0.72768 -0.68228 + -0.0893874 -0.735687 -0.671397 + -0.0414084 -0.890982 -0.452147 + -0.0939829 0.165357 -0.981746 + -0.0380249 0.0150101 -0.999164 + -0.0974673 -0.54403 -0.833386 + -0.0581067 -0.536403 -0.841959 + -0.0497235 -0.553238 -0.831538 + -0.135319 -0.53707 -0.832613 + -0.0705404 -0.72768 -0.68228 + -0.239926 -0.706162 -0.666161 + -0.0245212 -0.995528 -0.0912245 + 0.104251 -0.0729749 0.99187 + 0.172908 0.059051 0.983166 + 0.103259 -0.0329198 0.99411 + 0.16798 -0.176933 0.969782 + -0.0414084 -0.890982 -0.452147 + -0.103501 -0.836037 -0.538822 + -0.0893874 -0.735687 -0.671397 + -0.128186 -0.714359 -0.687938 + -0.0978913 -0.575316 -0.812052 + -0.165676 -0.556933 -0.813866 + -0.0974673 -0.54403 -0.833386 + -0.190517 -0.526548 -0.828523 + -0.0939829 0.165357 -0.981746 + -0.165676 -0.556933 -0.813866 + -0.128186 -0.714359 -0.687938 + -0.194297 -0.727167 -0.658389 + -0.103501 -0.836037 -0.538822 + -0.120758 -0.928054 -0.352327 + 0.16798 -0.176933 0.969782 + 0.279078 -0.000477479 0.960268 + 0.172908 0.059051 0.983166 + 0.265005 -0.261317 0.928163 + 0.104251 -0.0729749 0.99187 + -0.315022 -0.452537 0.834249 + 0.103259 -0.0329198 0.99411 + -0.381159 -0.296862 0.875552 + -0.0245212 -0.995528 -0.0912245 + -0.0644644 -0.420251 -0.905115 + -0.0380249 0.0150101 -0.999164 + -0.0932996 -0.427925 -0.898986 + -0.0939829 0.165357 -0.981746 + -0.229922 0.00982699 -0.973159 + -0.190517 -0.526548 -0.828523 + -0.355274 -0.501693 -0.788724 + -0.241736 -0.542708 -0.804383 + 0.0328135 -0.0241575 0.99917 + 0.107502 -0.00476347 0.994193 + 0.000681799 -0.008355 0.999965 + 0.10725 -0.00206386 0.99423 + -0.00019035 0.0556093 0.998453 + 0.105778 0.0745712 0.99159 + 0.0177534 0.0759785 0.996951 + 0.659435 0.0545998 0.749777 + 0.599532 -0.0531241 0.798586 + 0.767789 -0.0752185 0.636273 + 0.6062 -0.0585229 0.793156 + 0.792492 -0.0823319 0.604299 + 0.767799 -0.122266 0.628916 + 0.146407 0.0548228 0.987704 + 0.525401 -0.154215 0.836763 + 0.197572 -0.423949 0.883874 + 0.5042 -0.532773 0.679658 + 0.153679 -0.0522312 0.986739 + 0.602598 -0.113188 0.789977 + 0.23525 -0.047335 0.970782 + 0.607731 -0.0941008 0.788548 + 0.169277 -0.009801 0.98552 + 0.6062 -0.0585229 0.793156 + 0.251198 -0.0157694 0.967807 + 0.599532 -0.0531241 0.798586 + 0.199823 0.073747 0.977053 + 0.659435 0.0545998 0.749777 + 0.192811 0.073906 0.978449 + 0.0177534 0.0759785 0.996951 + 0.199823 0.073747 0.977053 + 0.105778 0.0745712 0.99159 + 0.251198 -0.0157694 0.967807 + 0.10725 -0.00206386 0.99423 + 0.169277 -0.009801 0.98552 + 0.107502 -0.00476347 0.994193 + 0.23525 -0.047335 0.970782 + 0.0328135 -0.0241575 0.99917 + 0.153679 -0.0522312 0.986739 + 0.0184535 -0.059838 0.998038 + 0.197572 -0.423949 0.883874 + 0.0217968 -0.266334 0.963634 + 0.146407 0.0548228 0.987704 + 0.708477 -0.65788 -0.255449 + -0.0295643 -0.037557 0.998857 + 0.0688252 -0.346075 0.935679 + 0.00548125 -0.0965344 0.995315 + 0.0764915 -0.49186 -0.867308 + -0.0602199 -0.382887 0.92183 + -0.0122224 0.277825 -0.960554 + 0.431673 0.249559 -0.866821 + 0.0571763 0.030738 -0.997891 + 0.482803 0.0370327 -0.874946 + 0.260418 -0.00102406 -0.965495 + 0.333127 -0.0100611 -0.942828 + 0.175777 -0.0204251 -0.984218 + -0.0554465 0.180074 -0.982089 + -0.000989269 0.268617 -0.963247 + -0.0122224 0.277825 -0.960554 + 0.00419731 0.224186 -0.974537 + 0.431673 0.249559 -0.866821 + 0.173635 0.104689 -0.97923 + 0.335067 0.0180651 -0.942021 + 0.130801 -0.0273801 -0.991031 + 0.0567326 -0.0277007 -0.998005 + 0.0578775 -0.0279848 -0.997931 + -0.00809808 -0.0285395 -0.99956 + -0.00534859 -0.0243093 -0.99969 + -0.0580446 -0.0304234 -0.99785 + -0.057479 -0.0217004 -0.998111 + -0.187977 -0.0220356 -0.981926 + -0.1635 0.355991 -0.920075 + -0.454023 0.0360509 -0.89026 + -0.00422932 0.2262 -0.974072 + -0.010739 0.191668 -0.981401 + -0.00481618 0.186616 -0.982421 + -0.00422932 0.2262 -0.974072 + -0.000989269 0.268617 -0.963247 + -0.1635 0.355991 -0.920075 + -0.0554465 0.180074 -0.982089 + -0.057479 -0.0217004 -0.998111 + -0.0122224 0.277825 -0.960554 + -0.00534859 -0.0243093 -0.99969 + 0.0571763 0.030738 -0.997891 + 0.0578775 -0.0279848 -0.997931 + 0.175777 -0.0204251 -0.984218 + 0.130801 -0.0273801 -0.991031 + 0.333127 -0.0100611 -0.942828 + 0.022281 0.251444 -0.967615 + 0.173635 0.104689 -0.97923 + 0.00778767 0.347636 -0.937597 + 0.00419731 0.224186 -0.974537 + 0.00794917 0.246876 -0.969014 + 0.000235384 0.192086 -0.981378 + -0.0266962 0.128392 0.991364 + 0.0177534 0.0759785 0.996951 + 0.00986383 0.130321 0.991423 + 0.192811 0.073906 0.978449 + 0.149706 0.12691 0.980552 + 0.545309 0.0626001 0.835895 + -0.153968 0.142781 0.977705 + -0.0266962 0.128392 0.991364 + -0.0122821 0.145046 0.989349 + 0.00986383 0.130321 0.991423 + 0.0171017 0.154381 0.987863 + 0.149706 0.12691 0.980552 + -0.428788 0.159601 0.889195 + -0.153968 0.142781 0.977705 + -0.125767 0.17328 0.976809 + -0.0122821 0.145046 0.989349 + -0.0103521 0.17581 0.98437 + 0.0171017 0.154381 0.987863 + -0.68144 0.136071 0.719114 + -0.428788 0.159601 0.889195 + -0.341234 0.1693 0.924606 + -0.125767 0.17328 0.976809 + -0.0900032 0.177629 0.979973 + -0.0103521 0.17581 0.98437 + -0.0506087 0.242385 0.968859 + -0.00673715 0.148767 0.988849 + -0.000841766 0.223731 0.974651 + 0.0030388 0.172375 0.985027 + 0.00784668 0.234319 0.972128 + -0.141001 0.389421 0.910203 + -0.452296 0.153794 0.878508 + -0.179849 0.304864 0.93526 + -0.235307 0.174252 0.956173 + -0.0506087 0.242385 0.968859 + -0.0794423 0.179186 0.980603 + -0.00673715 0.148767 0.988849 + 0.0438104 -0.204684 0.977847 + 0.0487555 -0.188303 0.9809 + -0.0158394 0.17973 0.983588 + -0.0794423 0.179186 0.980603 + -0.0900032 0.177629 0.979973 + -0.235307 0.174252 0.956173 + -0.341234 0.1693 0.924606 + -0.452296 0.153794 0.878508 + -0.68144 0.136071 0.719114 + -0.990034 0.0525298 0.130664 + -0.997331 0.0419249 0.0597709 + -0.994124 0.0317488 -0.103491 + -0.0455251 0.550699 0.833462 + 0.00954435 0.564665 0.825265 + -0.0506113 0.535433 0.84306 + 0.0487555 -0.188303 0.9809 + -0.00915164 -0.217421 0.976035 + 0.0438104 -0.204684 0.977847 + 0.0110346 0.403442 0.914939 + -0.0158394 0.17973 0.983588 + -0.0340992 0.732974 0.679401 + -0.0638575 0.179045 0.981766 + -0.0506113 0.535433 0.84306 + 0.0683154 0.179427 0.981396 + -0.0507698 0.534719 0.843503 + -0.050689 0.535169 0.843223 + -0.0456431 0.550685 0.833464 + 0.009572 0.564662 0.825267 + -0.00919927 -0.217418 0.976035 + 0.0440377 -0.204689 0.977836 + 0.0489109 -0.187547 0.981037 + 0.0488315 -0.188018 0.980951 + -0.0900032 0.177629 0.979973 + 0.0447012 -0.186505 0.981437 + 0.0447731 -0.186039 0.981522 + 0.043362 -0.204685 0.977867 + -0.00905799 -0.217425 0.976035 + 0.00942467 0.564656 0.825272 + -0.0449424 0.550716 0.833482 + -0.04639 0.533953 0.844241 + -0.0464649 0.533535 0.844501 + 0.0566378 -0.536563 -0.841958 + 0.0948015 -0.54468 -0.833269 + 0.0963846 -0.556027 -0.825557 + 0.190281 -0.536402 -0.822232 + 0.174374 -0.545042 -0.820075 + 0.276627 -0.523214 -0.806055 + 0.326979 -0.528301 -0.78357 + 0.594276 -0.468835 -0.653475 + 0.703452 -0.460189 -0.541647 + 0.965866 -0.244124 -0.0866338 + 0.966168 -0.255885 -0.032272 + 0.976347 -0.209026 0.0552697 + 0.948262 -0.270589 0.166072 + 0.840164 -0.20457 0.502271 + 0.110874 0.176375 0.978059 + 0.0171645 0.298438 0.954275 + -0.0465359 0.533266 0.844667 + -0.0451735 0.550701 0.833479 + 0.00947336 0.564656 0.825272 + -0.00910457 -0.217426 0.976034 + 0.0435849 -0.204686 0.977857 + 0.0449158 -0.185303 0.981654 + 0.0448419 -0.185751 0.981573 + 0.822553 0.0850707 0.56229 + 0.75124 0.121526 0.648745 + 0.447133 0.15884 0.880251 + 0.36072 0.167164 0.917571 + 0.110874 0.176375 0.978059 + 0.0683154 0.179427 0.981396 + 0.0171645 0.298438 0.954275 + 0.810683 0.0700876 0.581275 + 0.822553 0.0850707 0.56229 + 0.540502 0.124017 0.832152 + 0.447133 0.15884 0.880251 + 0.132093 0.173627 0.975912 + 0.110874 0.176375 0.978059 + 0.0160506 0.220203 0.975322 + -0.0463229 0.534244 0.84406 + -0.0447146 0.550721 0.833491 + -0.00901192 -0.217427 0.976035 + 0.00937704 0.564655 0.825274 + 0.860765 0.036814 0.507669 + 0.810683 0.0700876 0.581275 + 0.523244 0.105976 0.845568 + 0.540502 0.124017 0.832152 + 0.171152 0.148925 0.973924 + 0.132093 0.173627 0.975912 + 0.0127392 0.176247 0.984264 + 0.0160506 0.220203 0.975322 + -0.00332306 0.191305 0.981525 + 0.00937704 0.564655 0.825274 + 0.0431413 -0.204679 0.977878 + -0.00901192 -0.217427 0.976035 + 0.0446331 -0.186779 0.981387 + -0.0463229 0.534244 0.84406 + 0.00939846 0.564655 0.825274 + 0.446116 -0.0687172 -0.892333 + 0.364448 -0.0502078 -0.929869 + 0.71292 -0.0360885 -0.700316 + 0.849197 -0.0239098 -0.527534 + 0.975811 -0.00760783 -0.218483 + 0.997079 0.0152387 -0.0748381 + 0.999234 0.00269198 0.039051 + 0.999984 -0.000288331 -0.00557683 + 0.993539 0.0164561 0.112289 + 0.999953 0.00590839 -0.00765857 + 0.998097 0.0218685 0.0576555 + 0.938329 0.00903545 0.345626 + 0.999976 -0.00108653 0.00687291 + 0.999234 0.00269198 0.039051 + 0.999983 -0.000681476 -0.00570801 + 0.999984 -0.000288331 -0.00557683 + 0.974892 -0.0107453 -0.222417 + 0.999953 0.00590839 -0.00765857 + 0.822738 -0.0551558 -0.565738 + 0.974892 -0.0107453 -0.222417 + 0.971892 -0.0473942 -0.230607 + 0.999983 -0.000681476 -0.00570801 + 0.993017 -0.117971 0.000797634 + 0.999976 -0.00108653 0.00687291 + 0.99411 -0.100474 0.0406279 + 0.938329 0.00903545 0.345626 + 0.984718 -0.172859 0.021223 + 0.93742 -0.126429 0.324436 + 0.939735 -0.162312 0.300921 + 0.7696 0.123413 0.626487 + 0.793763 -0.373793 -0.479811 + 0.486196 -0.111858 0.866661 + 0.965357 -0.190244 0.178585 + 0.981265 -0.0914686 0.169568 + 0.976175 -0.151166 -0.155662 + 0.876983 0.147312 0.457384 + 0.884889 -0.250356 -0.392802 + 0.853308 -0.0639398 -0.517472 + 0.926221 -0.223998 -0.303214 + 0.980471 -0.0310275 -0.194198 + 0.991201 -0.125025 0.0434563 + 0.926221 -0.223998 -0.303214 + 0.909971 -0.265279 0.318715 + 0.884889 -0.250356 -0.392802 + 0.540735 -0.0167068 -0.841027 + 0.876983 0.147312 0.457384 + 0.98599 -0.05349 -0.157998 + 0.982619 -0.169233 -0.0762855 + 0.980471 -0.0310275 -0.194198 + 0.984718 -0.172859 0.021223 + 0.926221 -0.223998 -0.303214 + 0.99411 -0.100474 0.0406279 + 0.991201 -0.125025 0.0434563 + 0.993017 -0.117971 0.000797634 + 0.392606 -0.227225 -0.891195 + 0.822738 -0.0551558 -0.565738 + 0.756649 -0.2264 -0.613373 + 0.971892 -0.0473942 -0.230607 + 0.982619 -0.169233 -0.0762855 + 0.993017 -0.117971 0.000797634 + 0.992673 -0.119916 0.0148591 + 0.991201 -0.125025 0.0434563 + 0.7696 0.123413 0.626487 + 0.909971 -0.265279 0.318715 + 0.793763 -0.373793 -0.479811 + 0.540735 -0.0167068 -0.841027 + 0.976175 -0.151166 -0.155662 + 0.98599 -0.05349 -0.157998 + 0.981265 -0.0914686 0.169568 + 0.876983 0.147312 0.457384 + 0.486196 -0.111858 0.866661 + 0.853308 -0.0639398 -0.517472 + 0.7696 0.123413 0.626487 + 0.980471 -0.0310275 -0.194198 + 0.992673 -0.119916 0.0148591 + 0.982619 -0.169233 -0.0762855 + 0.99827 0.0395952 0.0434746 + 0.998097 0.0218685 0.0576555 + 0.997079 0.0152387 -0.0748381 + 0.999953 0.00590839 -0.00765857 + 0.975811 -0.00760783 -0.218483 + 0.974892 -0.0107453 -0.222417 + 0.71292 -0.0360885 -0.700316 + 0.822738 -0.0551558 -0.565738 + 0.446116 -0.0687172 -0.892333 + 0.392606 -0.227225 -0.891195 + 0.865648 -0.156776 0.475473 + 0.939735 -0.162312 0.300921 + 0.926748 -0.138229 0.349328 + 0.93742 -0.126429 0.324436 + 0.935543 -0.0145473 0.352913 + 0.938329 0.00903545 0.345626 + 0.860765 0.036814 0.507669 + 0.999234 0.00269198 0.039051 + 0.810683 0.0700876 0.581275 + 0.993539 0.0164561 0.112289 + 0.822553 0.0850707 0.56229 + 0.998097 0.0218685 0.0576555 + 0.75124 0.121526 0.648745 + 0.99827 0.0395952 0.0434746 + 0.736631 -0.62935 0.247575 + 0.913957 -0.402039 0.055194 + 0.981633 -0.19009 0.0161884 + 0.898671 -0.434962 -0.0565591 + 0.981831 -0.188245 -0.0239235 + 0.645774 -0.439057 -0.624664 + 0.818977 -0.267628 -0.507595 + 0.320256 -0.419139 -0.849564 + 0.432286 -0.288744 -0.854257 + 0.215055 -0.423715 -0.879896 + 0.743345 -0.514559 0.427396 + 0.913957 -0.402039 0.055194 + 0.865648 -0.156776 0.475473 + 0.736631 -0.62935 0.247575 + 0.939735 -0.162312 0.300921 + 0.981633 -0.19009 0.0161884 + 0.984718 -0.172859 0.021223 + 0.981831 -0.188245 -0.0239235 + 0.982619 -0.169233 -0.0762855 + 0.818977 -0.267628 -0.507595 + 0.756649 -0.2264 -0.613373 + 0.432286 -0.288744 -0.854257 + 0.392606 -0.227225 -0.891195 + 0.313305 -0.0121988 -0.949574 + 0.0458332 -0.520502 -0.852629 + 0.0380896 -0.104384 -0.993807 + 0.0811494 -0.412103 -0.907516 + 0.158855 0.097147 -0.982511 + 0.215055 -0.423715 -0.879896 + 0.236037 -0.0556243 -0.970151 + 0.320256 -0.419139 -0.849564 + 0.460445 -0.0699186 -0.88493 + 0.645774 -0.439057 -0.624664 + 0.860056 -0.202029 -0.468495 + 0.898671 -0.434962 -0.0565591 + 0.943934 -0.330049 -0.00749214 + 0.913957 -0.402039 0.055194 + 0.948973 -0.282979 0.139189 + 0.743345 -0.514559 0.427396 + 0.76193 -0.252827 0.596272 + 0.133588 -0.29209 -0.947015 + 0.229986 -0.240035 -0.943128 + 0.221566 -0.296379 -0.929015 + 0.236577 -0.273491 -0.932327 + 0.144219 -0.82515 -0.546195 + 0.257484 -0.0631406 -0.964217 + 0.245744 -0.202944 -0.947852 + 0.240817 -0.0867432 -0.966687 + 0.229986 -0.240035 -0.943128 + 0.105575 -0.227988 -0.967923 + 0.133588 -0.29209 -0.947015 + 0.0138219 -0.286672 -0.957929 + 0.602847 -0.155284 0.7826 + 0.840164 -0.20457 0.502271 + 0.76193 -0.252827 0.596272 + 0.976347 -0.209026 0.0552697 + 0.948973 -0.282979 0.139189 + 0.965866 -0.244124 -0.0866338 + 0.943934 -0.330049 -0.00749214 + 0.594276 -0.468835 -0.653475 + 0.860056 -0.202029 -0.468495 + 0.276627 -0.523214 -0.806055 + 0.460445 -0.0699186 -0.88493 + 0.190281 -0.536402 -0.822232 + 0.236037 -0.0556243 -0.970151 + 0.0948015 -0.54468 -0.833269 + 0.158855 0.097147 -0.982511 + 0.0566378 -0.536563 -0.841958 + 0.0380896 -0.104384 -0.993807 + 0.000552374 -0.523298 -0.85215 + 0.313305 -0.0121988 -0.949574 + 0.0138219 -0.286672 -0.957929 + 0.0458332 -0.520502 -0.852629 + 0.133588 -0.29209 -0.947015 + 0.0811494 -0.412103 -0.907516 + 0.221566 -0.296379 -0.929015 + 0.215055 -0.423715 -0.879896 + 0.144219 -0.82515 -0.546195 + 0.432286 -0.288744 -0.854257 + 0.236577 -0.273491 -0.932327 + 0.392606 -0.227225 -0.891195 + 0.245744 -0.202944 -0.947852 + 0.446116 -0.0687172 -0.892333 + 0.257484 -0.0631406 -0.964217 + 0.364448 -0.0502078 -0.929869 + 0.0175709 0.27621 0.960937 + 0.00784668 0.234319 0.972128 + 0.0683154 0.179427 0.981396 + 0.0030388 0.172375 0.985027 + -0.0507698 0.534719 0.843503 + -0.0457611 0.550676 0.833464 + 0.00959379 0.56466 0.825268 + -0.00922621 -0.217423 0.976034 + 0.0441527 -0.20469 0.977831 + -0.00673715 0.148767 0.988849 + 0.0489109 -0.187547 0.981037 + -0.0794423 0.179186 0.980603 + 0.0488315 -0.188018 0.980951 + 0.0487555 -0.188303 0.9809 + 0.0439233 -0.204684 0.977842 + 0.00954435 0.564665 0.825265 + -0.00917837 -0.21742 0.976035 + -0.0455251 0.550699 0.833462 + -0.050689 0.535169 0.843223 + -0.0506113 0.535433 0.84306 + 0.0683154 0.179427 0.981396 + -0.0638575 0.179045 0.981766 + 0.0171645 0.298438 0.954275 + -0.0452902 0.550705 0.83347 + 0.00949513 0.564663 0.825267 + -0.00913104 -0.217425 0.976034 + 0.0436973 -0.204691 0.977851 + -0.0158394 0.17973 0.983588 + 0.0449158 -0.185303 0.981654 + -0.0900032 0.177629 0.979973 + 0.0448419 -0.185751 0.981573 + 0.0447731 -0.186039 0.981522 + 0.0434731 -0.204682 0.977863 + 0.00944646 0.564655 0.825273 + -0.00908432 -0.217426 0.976035 + -0.0450574 0.550706 0.833482 + -0.0465359 0.533266 0.844667 + -0.0464649 0.533535 0.844501 + 0.110874 0.176375 0.978059 + -0.04639 0.533953 0.844241 + -0.0463229 0.534244 0.84406 + -0.0448281 0.550716 0.833488 + 0.00939846 0.564655 0.825274 + -0.00903797 -0.217429 0.976034 + 0.0432514 -0.204682 0.977872 + 0.0447012 -0.186505 0.981437 + 0.0446331 -0.186779 0.981387 + -0.0900032 0.177629 0.979973 + -0.00332306 0.191305 0.981525 + -0.0103521 0.17581 0.98437 + 0.0127392 0.176247 0.984264 + 0.0171017 0.154381 0.987863 + 0.171152 0.148925 0.973924 + 0.149706 0.12691 0.980552 + 0.523244 0.105976 0.845568 + 0.545309 0.0626001 0.835895 + 0.860765 0.036814 0.507669 + 0.659435 0.0545998 0.749777 + 0.783981 0.0438598 0.619233 + 0.767789 -0.0752185 0.636273 + 0.935543 -0.0145473 0.352913 + 0.792492 -0.0823319 0.604299 + 0.926748 -0.138229 0.349328 + 0.767799 -0.122266 0.628916 + 0.865648 -0.156776 0.475473 + 0.602598 -0.113188 0.789977 + 0.743345 -0.514559 0.427396 + 0.5042 -0.532773 0.679658 + 0.76193 -0.252827 0.596272 + 0.525401 -0.154215 0.836763 + 0.602847 -0.155284 0.7826 + 0.146407 0.0548228 0.987704 + -0.0330658 0.146127 -0.988713 + -0.976614 0.0898781 -0.195314 + -0.0596299 0.173826 -0.982969 + -0.741006 0.27058 0.61457 + -0.010739 0.191668 -0.981401 + -0.141001 0.389421 0.910203 + -0.00481618 0.186616 -0.982421 + -0.179849 0.304864 0.93526 + 0.000235384 0.192086 -0.981378 + -0.0506087 0.242385 0.968859 + 0.00794917 0.246876 -0.969014 + -0.000841766 0.223731 0.974651 + 0.00778767 0.347636 -0.937597 + 0.00784668 0.234319 0.972128 + 0.022281 0.251444 -0.967615 + 0.0175709 0.27621 0.960937 + -0.250398 -0.0153801 -0.968021 + -0.189625 -0.00829598 -0.981822 + -0.29973 0.0116996 -0.953952 + -0.208435 -1.79823e-05 -0.978036 + -0.191747 0.025423 -0.981115 + -0.227291 -0.00679826 -0.973803 + -0.189464 0.0137879 -0.981791 + -0.359306 -0.00927031 -0.933174 + -0.294174 0.0100237 -0.955699 + -0.722042 -0.0036842 -0.69184 + -0.998119 0.0114476 -0.0602261 + -0.722042 -0.0036842 -0.69184 + -0.780327 -0.0153658 -0.625182 + -0.359306 -0.00927031 -0.933174 + -0.411469 -0.0266911 -0.911033 + -0.227291 -0.00679826 -0.973803 + -0.254722 -0.0312761 -0.966508 + -0.208435 -1.79823e-05 -0.978036 + -0.174621 -0.0264307 -0.984281 + -0.189625 -0.00829598 -0.981822 + -0.116367 -0.0316865 -0.992701 + -0.250398 -0.0153801 -0.968021 + -0.0960201 -0.0268362 -0.995018 + -0.17298 0.124463 -0.97703 + -0.120578 0.108951 -0.986707 + -0.422324 0.0553439 -0.904754 + -0.294174 0.0100237 -0.955699 + -0.730875 -0.00279197 -0.682506 + -0.722042 -0.0036842 -0.69184 + -0.996871 0.0285863 -0.0736924 + -0.998119 0.0114476 -0.0602261 + -0.9971 0.027827 0.0708312 + -0.999356 0.00975674 0.0345176 + -0.872228 0.0559841 0.485885 + -0.862617 0.0364664 0.504542 + -0.60521 0.0591121 0.793868 + -0.764735 0.0463348 0.642677 + -0.614927 0.0573676 0.786495 + -0.606593 -0.055399 0.79308 + -0.171655 -0.00797123 0.985125 + -0.728261 -0.0563459 -0.68298 + -0.990314 -0.125096 -0.0602449 + -0.97487 -0.0110125 -0.222504 + -0.999983 -0.00168746 -0.00563873 + -0.999945 -0.000465348 -0.0104807 + -0.999993 -0.000143469 0.00367071 + -0.371612 -0.0698248 -0.925759 + -0.756489 -0.213621 -0.618134 + -0.728261 -0.0563459 -0.68298 + -0.986248 -0.158898 -0.0454513 + -0.990314 -0.125096 -0.0602449 + -0.991714 -0.127551 0.0152962 + -0.952343 -0.165619 -0.25615 + -0.910002 -0.30256 -0.283468 + -0.760749 -0.0421588 -0.647676 + -0.793674 -0.311596 0.522485 + -0.48634 -0.218039 -0.846128 + -0.965376 -0.210824 -0.153631 + -0.981277 -0.11166 -0.156929 + -0.976159 -0.130712 0.173288 + -0.985986 -0.0334906 0.163431 + -0.540599 0.0873678 0.836732 + -0.877007 0.0897423 -0.472022 + -0.722797 -0.142493 0.67621 + -0.957711 0.060354 0.281332 + -0.992281 -0.115534 0.0450482 + -0.986777 -0.0418561 -0.156586 + -0.984921 -0.171079 0.0257345 + -0.99501 -0.0947794 0.0311853 + -0.941987 -0.0170438 0.335216 + -0.999993 -0.000143469 0.00367071 + -0.258109 -0.0522703 -0.964701 + -0.371612 -0.0698248 -0.925759 + -0.468953 -0.0462417 -0.882012 + -0.728261 -0.0563459 -0.68298 + -0.850603 -0.0261378 -0.525158 + -0.97487 -0.0110125 -0.222504 + -0.975846 -0.0102532 -0.21822 + -0.999945 -0.000465348 -0.0104807 + -0.920828 -0.102422 0.376278 + -0.941987 -0.0170438 0.335216 + -0.940831 -0.144336 0.306602 + -0.984921 -0.171079 0.0257345 + -0.983762 -0.178798 0.0156057 + -0.986248 -0.158898 -0.0454513 + -0.974696 -0.204673 -0.0898731 + -0.756489 -0.213621 -0.618134 + -0.0947128 -0.0389374 -0.994743 + -0.172971 -0.0544589 -0.98342 + -0.167076 -0.0396424 -0.985147 + -0.258109 -0.0522703 -0.964701 + -0.261327 -0.0405921 -0.964396 + -0.468953 -0.0462417 -0.882012 + -0.364913 -0.040184 -0.930174 + -0.850603 -0.0261378 -0.525158 + -0.713958 -0.0312427 -0.699491 + -0.975846 -0.0102532 -0.21822 + -0.973198 -0.00745979 -0.229847 + -0.999945 -0.000465348 -0.0104807 + -0.999993 0.0029868 -0.00236907 + -0.999993 -0.000143469 0.00367071 + -0.993989 0.00776517 0.109203 + -0.941987 -0.0170438 0.335216 + -0.935144 0.0120703 0.354062 + -0.920828 -0.102422 0.376278 + -0.791392 -0.0795124 0.606116 + -0.767569 -0.0790496 0.636074 + -0.00764383 -0.0330927 -0.999423 + -0.0947128 -0.0389374 -0.994743 + -0.116367 -0.0316865 -0.992701 + -0.167076 -0.0396424 -0.985147 + -0.174621 -0.0264307 -0.984281 + -0.261327 -0.0405921 -0.964396 + -0.254722 -0.0312761 -0.966508 + -0.364913 -0.040184 -0.930174 + -0.411469 -0.0266911 -0.911033 + -0.713958 -0.0312427 -0.699491 + -0.780327 -0.0153658 -0.625182 + -0.973198 -0.00745979 -0.229847 + -0.998119 0.0114476 -0.0602261 + -0.999993 0.0029868 -0.00236907 + -0.999356 0.00975674 0.0345176 + -0.993989 0.00776517 0.109203 + -0.862617 0.0364664 0.504542 + -0.935144 0.0120703 0.354062 + -0.764735 0.0463348 0.642677 + -0.791392 -0.0795124 0.606116 + -0.606593 -0.055399 0.79308 + -0.767569 -0.0790496 0.636074 + -0.912035 -0.408045 -0.0411374 + -0.974696 -0.204673 -0.0898731 + -0.666608 -0.280225 -0.69073 + -0.756489 -0.213621 -0.618134 + -0.387501 -0.222493 -0.894617 + -0.371612 -0.0698248 -0.925759 + -0.251148 -0.0858835 -0.964131 + -0.258109 -0.0522703 -0.964701 + -0.204137 -0.0590078 -0.977162 + -0.172971 -0.0544589 -0.98342 + -0.145618 -0.0513018 -0.98801 + -0.0947128 -0.0389374 -0.994743 + 0.0171654 -0.0388885 -0.999096 + -0.00764383 -0.0330927 -0.999423 + 0.109201 -0.0297741 -0.993574 + -0.714346 -0.305886 -0.629399 + -0.647182 -0.51222 -0.564612 + -0.375047 -0.462839 -0.803193 + -0.325754 -0.285705 -0.901253 + -0.230839 -0.296164 -0.926823 + -0.239817 -0.237722 -0.941263 + -0.226895 -0.276269 -0.933913 + -0.235658 -0.204395 -0.950099 + -0.102874 -0.215509 -0.971068 + -0.0988046 -0.070345 -0.992617 + 0.0104052 -0.0759449 -0.997058 + -0.0159856 -0.0557205 -0.998318 + 0.0850814 -0.0529501 -0.994966 + 0.128493 -0.0397998 -0.990911 + 0.174546 -0.0414905 -0.983774 + 0.165811 -0.030287 -0.985692 + 0.240878 -0.0234387 -0.970272 + 0.205254 -0.00557054 -0.978693 + 0.345386 -0.0108207 -0.938398 + 0.273476 0.00561701 -0.961862 + 0.606958 -0.00399032 -0.794724 + 0.491163 0.0515121 -0.869543 + 0.264698 0.185613 0.946299 + 0.803792 0.0951616 -0.58725 + 0.17204 0.151219 -0.973414 + 0.491163 0.0515121 -0.869543 + 0.15307 0.089259 -0.984176 + 0.273476 0.00561701 -0.961862 + 0.154972 0.0256567 -0.987586 + 0.205254 -0.00557054 -0.978693 + 0.189845 -0.00898756 -0.981773 + 0.165811 -0.030287 -0.985692 + 0.109201 -0.0297741 -0.993574 + 0.128493 -0.0397998 -0.990911 + 0.0171654 -0.0388885 -0.999096 + -0.0159856 -0.0557205 -0.998318 + -0.145618 -0.0513018 -0.98801 + -0.0988046 -0.070345 -0.992617 + -0.204137 -0.0590078 -0.977162 + -0.235658 -0.204395 -0.950099 + -0.251148 -0.0858835 -0.964131 + -0.239817 -0.237722 -0.941263 + -0.387501 -0.222493 -0.894617 + -0.325754 -0.285705 -0.901253 + -0.666608 -0.280225 -0.69073 + -0.647182 -0.51222 -0.564612 + -0.912035 -0.408045 -0.0411374 + -0.714346 -0.305886 -0.629399 + -0.970334 -0.233127 -0.0640559 + -0.973982 -0.224484 -0.0310778 + 0.290809 0.167212 0.942056 + 0.264698 0.185613 0.946299 + 0.115116 0.237718 0.964489 + 0.17204 0.151219 -0.973414 + 0.0586102 0.180567 -0.981815 + 0.15307 0.089259 -0.984176 + 0.0734718 0.120458 -0.989996 + 0.154972 0.0256567 -0.987586 + 0.197651 0.0203249 -0.980062 + 0.189845 -0.00898756 -0.981773 + 0.227748 -0.0078103 -0.973689 + 0.109201 -0.0297741 -0.993574 + 0.169059 -0.0196283 -0.985411 + 0.993338 0.0261106 -0.112239 + 0.996573 0.0280501 -0.0778124 + 0.715698 -0.00542669 -0.698388 + 0.753206 -0.02026 -0.657472 + 0.386356 -0.0297894 -0.921869 + 0.466806 -0.0404394 -0.883435 + 0.258435 -0.0415045 -0.965137 + 0.264155 -0.0532574 -0.963009 + 0.200708 -0.0499252 -0.978378 + 0.993297 0.0323191 -0.110976 + 0.99675 0.0420278 0.0687316 + 0.993338 0.0261106 -0.112239 + 0.993712 0.0486661 0.100835 + 0.996573 0.0280501 -0.0778124 + 0.591453 0.14934 0.79239 + 0.993712 0.0486661 0.100835 + 0.56996 0.1423 0.809257 + 0.99675 0.0420278 0.0687316 + 0.981556 0.0602222 0.181442 + 0.993297 0.0323191 -0.110976 + -0.942485 -0.313512 -0.115898 + -0.973982 -0.224484 -0.0310778 + -0.750569 -0.409031 -0.51898 + -0.714346 -0.305886 -0.629399 + -0.302324 -0.117348 -0.945954 + -0.375047 -0.462839 -0.803193 + -0.218482 -0.413358 -0.883969 + -0.230839 -0.296164 -0.926823 + -0.145337 -0.803058 -0.577906 + -0.226895 -0.276269 -0.933913 + -0.0743255 -0.284206 -0.955878 + -0.102874 -0.215509 -0.971068 + 0.000805074 -0.220166 -0.975462 + 0.0104052 -0.0759449 -0.997058 + 0.120108 -0.0733157 -0.99005 + 0.0850814 -0.0529501 -0.994966 + 0.200708 -0.0499252 -0.978378 + 0.174546 -0.0414905 -0.983774 + 0.258435 -0.0415045 -0.965137 + 0.240878 -0.0234387 -0.970272 + 0.386356 -0.0297894 -0.921869 + 0.345386 -0.0108207 -0.938398 + 0.715698 -0.00542669 -0.698388 + 0.606958 -0.00399032 -0.794724 + 0.993338 0.0261106 -0.112239 + 0.491163 0.0515121 -0.869543 + 0.993297 0.0323191 -0.110976 + 0.803792 0.0951616 -0.58725 + 0.981556 0.0602222 0.181442 + 0.264698 0.185613 0.946299 + 0.56996 0.1423 0.809257 + 0.290809 0.167212 0.942056 + 0.591453 0.14934 0.79239 + -0.173393 -0.0428057 0.983922 + -0.169743 -0.0739574 0.982709 + -0.239546 -0.0448408 0.969849 + 0.17103 -0.88358 -0.435931 + 0.396404 -0.865864 -0.305195 + 0.0699253 -0.870491 -0.487193 + 0.0945399 -0.871632 -0.480957 + -0.0719547 -0.0923861 0.99312 + -0.169743 -0.0739574 0.982709 + -0.130068 -0.0227746 0.991243 + -0.173393 -0.0428057 0.983922 + 0.805927 -0.590395 -0.0437618 + 0.396404 -0.865864 -0.305195 + 0.474789 -0.728417 -0.493947 + 0.17103 -0.88358 -0.435931 + 0.213221 -0.728219 -0.651332 + 0.0945399 -0.871632 -0.480957 + 0.128726 -0.717121 -0.684957 + 0.0699253 -0.870491 -0.487193 + 0.0730373 -0.719501 -0.69064 + 0.12739 -0.530194 -0.838252 + 0.0566378 -0.536563 -0.841958 + 0.0803185 -0.563215 -0.822398 + 0.0963846 -0.556027 -0.825557 + 0.0730373 -0.719501 -0.69064 + 0.174374 -0.545042 -0.820075 + 0.128726 -0.717121 -0.684957 + 0.326979 -0.528301 -0.78357 + 0.213221 -0.728219 -0.651332 + 0.703452 -0.460189 -0.541647 + 0.474789 -0.728417 -0.493947 + 0.966168 -0.255885 -0.032272 + 0.805927 -0.590395 -0.0437618 + 0.948262 -0.270589 0.166072 + -0.0943964 -0.0625329 0.993569 + -0.0208101 -0.0357828 0.999143 + -0.0442153 -0.0740905 0.996271 + 2.18652e-06 0.100815 0.994905 + 5.02864e-06 0.214323 0.976763 + 0.230244 -0.121707 0.965492 + 0.0262207 0.333226 0.942482 + 0.0370651 -0.107399 0.993525 + 2.18652e-06 0.100815 0.994905 + 0.0448639 -0.085942 0.99529 + -0.0208101 -0.0357828 0.999143 + -0.000947329 -0.0603399 0.998177 + -0.0943964 -0.0625329 0.993569 + -0.136172 -0.278432 0.950754 + 0.576973 -0.204265 0.790808 + 0.230244 -0.121707 0.965492 + 0.142515 -0.160598 0.976677 + 0.0370651 -0.107399 0.993525 + 0.05498 -0.17631 0.982798 + 0.000800576 -0.138637 0.990343 + 0.0298965 -0.478199 0.877742 + 0.0349972 -0.422198 0.905828 + 0.0602303 -0.974666 0.215405 + 0.251018 -0.38846 0.886616 + 0.813832 -0.288528 0.504409 + 0.576973 -0.204265 0.790808 + 0.467273 -0.527569 0.709456 + 0.142515 -0.160598 0.976677 + 0.124383 -0.466936 0.8755 + 0.05498 -0.17631 0.982798 + 0.0569331 -0.498909 0.864782 + 0.0298965 -0.478199 0.877742 + 0.0458247 -0.764802 0.642633 + 0.0602303 -0.974666 0.215405 + 0.823765 -0.549519 0.139425 + 0.813832 -0.288528 0.504409 + 0.730237 -0.521941 0.440831 + 0.467273 -0.527569 0.709456 + 0.389466 -0.673043 0.628753 + 0.124383 -0.466936 0.8755 + 0.094729 -0.688099 0.719407 + 0.0569331 -0.498909 0.864782 + 0.0290856 -0.799607 0.599818 + 0.0458247 -0.764802 0.642633 + -0.0660579 -0.396349 -0.91572 + -2.2501e-05 -0.998058 0.0622919 + -0.00785228 -0.173181 -0.984859 + 8.19192e-05 -0.998048 0.0624498 + -0.138012 -0.104359 -0.984917 + -5.45167e-06 -0.998061 0.0622466 + -0.486594 -0.0588872 -0.871642 + -0.753844 -0.104594 -0.648676 + -0.486594 -0.0588872 -0.871642 + -0.755037 -0.0724638 -0.651666 + -5.45167e-06 -0.998061 0.0622466 + 0.064316 -0.271649 0.960245 + -2.2501e-05 -0.998058 0.0622919 + 0.679876 -0.540663 0.495432 + -0.0660579 -0.396349 -0.91572 + -0.159765 -0.116346 0.980275 + -0.444553 -0.163088 0.880781 + -0.0318212 -0.49727 0.867012 + -0.0331984 -0.217156 -0.975572 + 0.0315571 -0.543582 -0.838763 + -0.00785228 -0.173181 -0.984859 + 0.149121 -0.249324 0.95687 + -0.138012 -0.104359 -0.984917 + -0.0361893 -0.140814 -0.989374 + 0.0358761 -0.172212 -0.984406 + -0.0361893 -0.140814 -0.989374 + -0.0680701 -0.176532 -0.981938 + -0.138012 -0.104359 -0.984917 + -0.211587 -0.234128 -0.948902 + -0.486594 -0.0588872 -0.871642 + -0.441199 -0.410578 -0.797978 + -0.753844 -0.104594 -0.648676 + 0.484591 -0.791139 0.37319 + 0.75377 -0.657116 -0.0053478 + 0.823765 -0.549519 0.139425 + 0.676107 -0.717992 0.16543 + 0.730237 -0.521941 0.440831 + 0.484591 -0.791139 0.37319 + 0.389466 -0.673043 0.628753 + -0.441199 -0.410578 -0.797978 + 0.094729 -0.688099 0.719407 + -0.211587 -0.234128 -0.948902 + 0.0290856 -0.799607 0.599818 + -0.0680701 -0.176532 -0.981938 + 0.0458247 -0.764802 0.642633 + 0.0358761 -0.172212 -0.984406 + 0.0602303 -0.974666 0.215405 + 0.815077 -0.417353 -0.401829 + 0.828155 -0.145744 -0.541218 + 0.611657 -0.679829 -0.404608 + 0.669718 -0.41604 0.615133 + 0.179561 0.00216503 0.983745 + -0.0924547 -0.0681875 0.993379 + 0.815077 -0.417353 -0.401829 + -0.0217703 -0.63021 -0.77612 + 0.0391259 -0.669077 0.742162 + -0.645579 -0.360615 0.67319 + 0.126618 -0.212907 -0.968834 + -0.315761 -0.163078 0.93472 + -0.065269 -0.514549 -0.854973 + 0.611657 -0.679829 -0.404608 + -0.112954 -0.0759061 0.990697 + 0.815077 -0.417353 -0.401829 + 0.0391259 -0.669077 0.742162 + -0.62121 -0.754131 -0.213037 + -0.00762819 -0.158537 -0.987324 + -0.0624653 -0.392394 -0.917674 + -0.0320641 -0.145976 -0.988768 + -0.0281379 -0.282285 0.958918 + 0.0296298 -0.397958 -0.916925 + 0.751914 -0.553337 0.358391 + -0.005505 -0.0665919 0.997765 + 0.0619653 -0.322246 0.944626 + 0.0295799 -0.0282204 0.999164 + 0.0491178 -0.511936 -0.857618 + -0.0668259 -0.403089 0.912718 + -0.878807 -0.463277 0.114336 + 0.809468 -0.586022 0.0366081 + 0.0981826 -0.286992 0.952888 + 0.037767 -0.0257036 0.998956 + 0.0633089 -0.0343307 0.997403 + -0.506026 -0.862511 -0.00356873 + -0.0397878 -0.165896 -0.98534 + -0.0946753 -0.399722 -0.911734 + -0.0654128 -0.143995 -0.987414 + 0.00219738 -0.279625 0.960107 + 0.00183534 -0.39767 -0.917527 + 0.887804 -0.094206 0.450477 + 0.751914 -0.553337 0.358391 + 0.679876 -0.540663 0.495432 + 0.00676597 -0.0321832 0.999459 + 0.064316 -0.271649 0.960245 + 0.031145 -0.0285405 0.999107 + -0.993885 -0.10856 -0.0202078 + -0.0338987 -0.999425 4.86642e-05 + -0.0450426 -0.998931 0.0104179 + 0.0363558 -0.998864 0.0307911 + 0.0602303 -0.974666 0.215405 + 0.283222 -0.18288 -0.941456 + 0.0358761 -0.172212 -0.984406 + 0.0558723 -0.155972 -0.98618 + -0.0361893 -0.140814 -0.989374 + 0.054951 -0.14418 0.988025 + 0.149121 -0.249324 0.95687 + 0.102756 -0.00495331 0.994694 + 0.0315571 -0.543582 -0.838763 + 0.0292596 -0.116406 0.992771 + -0.0318212 -0.49727 0.867012 + -0.0147902 -0.117884 0.992917 + -0.159765 -0.116346 0.980275 + 0.775891 -0.226432 -0.588831 + 0.679876 -0.540663 0.495432 + 0.79775 -0.0740492 0.598424 + 0.887804 -0.094206 0.450477 + 0.0380841 -0.999059 0.0207498 + -0.878807 -0.463277 0.114336 + -0.993885 -0.10856 -0.0202078 + -0.972901 -0.0818899 0.216236 + -0.0450426 -0.998931 0.0104179 + -0.0714157 -0.996892 0.0332613 + 0.0602303 -0.974666 0.215405 + 0.0789893 -0.987055 0.139582 + 0.251018 -0.38846 0.886616 + 0.0743398 -0.0341865 0.996647 + 0.112964 -0.133701 0.984562 + 0.0484387 -0.124663 0.991016 + -0.506026 -0.862511 -0.00356873 + 0.723624 -0.688854 0.0429937 + -0.0946753 -0.399722 -0.911734 + 0.037767 -0.0257036 0.998956 + 0.00219738 -0.279625 0.960107 + 0.0633089 -0.0343307 0.997403 + 0.00183534 -0.39767 -0.917527 + 0.0981826 -0.286992 0.952888 + -0.0397878 -0.165896 -0.98534 + -0.878807 -0.463277 0.114336 + -0.506026 -0.862511 -0.00356873 + -0.993885 -0.10856 -0.0202078 + -0.882188 -0.431604 -0.188314 + -0.051079 -0.16517 -0.984942 + -0.10469 -0.398481 -0.911182 + -0.0764167 -0.143865 -0.986642 + 0.0132511 -0.279407 0.960081 + -0.00930313 -0.3974 -0.917598 + 0.0514736 -0.1504 -0.987284 + -0.729123 -0.683061 0.0425169 + 0.0124415 -0.466557 0.884404 + -0.0348794 -0.539599 -0.841199 + 0.717988 -0.677757 0.158552 + -0.0282947 -0.055729 0.998045 + 0.61617 -0.756721 0.21842 + 0.0309613 -0.303736 0.952253 + -0.691557 -0.705326 -0.155772 + 0.0318864 -0.1503 -0.988126 + -0.729123 -0.683061 0.0425169 + -0.0348794 -0.539599 -0.841199 + 0.0763736 -0.150274 -0.98569 + -0.733293 -0.678593 0.0423329 + -0.0122789 -0.437251 0.899256 + -0.00175047 -0.532126 -0.846663 + -2.7738e-05 -0.998065 0.062177 + -0.0632385 -0.0454167 0.996965 + 0.931505 -0.363186 0.0198725 + -0.00220226 -0.288336 0.957527 + -0.80322 -0.594524 0.0371443 + 0.0653771 -0.150375 -0.986465 + -0.733293 -0.678593 0.0423329 + -0.00175047 -0.532126 -0.846663 + -0.0742569 -0.0455081 0.9962 + 0.89945 -0.378367 -0.218696 + 0.00842919 -0.567617 -0.82325 + 0.0148408 -0.513668 0.857861 + -0.888389 -0.437746 0.138361 + 0.0964295 -0.18431 -0.978126 + -0.990877 -0.109951 -0.0779284 + -0.80322 -0.594524 0.0371443 + -0.998151 -0.0606657 0.00378473 + -0.733293 -0.678593 0.0423329 + -0.888389 -0.437746 0.138361 + 0.0763736 -0.150274 -0.98569 + 0.00842919 -0.567617 -0.82325 + 0.0511068 -0.158263 -0.986073 + -0.108536 -0.275827 0.95506 + 0.104894 -0.393515 -0.913314 + -0.0491457 -0.0201799 0.998588 + -0.0122789 -0.437251 0.899256 + -0.0742569 -0.0455081 0.9962 + -2.7738e-05 -0.998065 0.062177 + 0.89945 -0.378367 -0.218696 + 0.931505 -0.363186 0.0198725 + 0.975382 -0.119843 -0.185115 + 0.987537 -0.157041 0.0104121 + 0.0252299 -0.999675 -0.00369391 + -0.62121 -0.754131 -0.213037 + 0.0151516 -0.162247 -0.986634 + -0.691557 -0.705326 -0.155772 + -0.0786388 -0.438515 -0.895277 + 0.61617 -0.756721 0.21842 + -0.77917 -0.180177 -0.600359 + -0.0108892 -0.999904 -0.00854826 + -0.0128286 -0.9999 -0.00588037 + 0.0252299 -0.999675 -0.00369391 + 0.0352054 -0.999376 0.00286879 + 0.987537 -0.157041 0.0104121 + 0.969733 -0.0677201 0.234588 + 0.931505 -0.363186 0.0198725 + 0.717988 -0.677757 0.158552 + -0.0477246 -0.0569045 0.997238 + 0.0124415 -0.466557 0.884404 + -0.0207979 -0.0202 0.99958 + 0.0813721 -0.412876 -0.907145 + -0.0882459 -0.298344 0.95037 + 0.0242658 -0.168568 -0.985391 + -0.0200392 -0.416779 -0.908787 + 0.0514736 -0.1504 -0.987284 + -0.80322 -0.594524 0.0371443 + -0.729123 -0.683061 0.0425169 + -0.990877 -0.109951 -0.0779284 + -0.691557 -0.705326 -0.155772 + -0.919 -0.113584 -0.377542 + -0.62121 -0.754131 -0.213037 + -0.698212 -0.578844 -0.421237 + -0.77917 -0.180177 -0.600359 + -0.898623 -0.110218 -0.424651 + -0.0128286 -0.9999 -0.00588037 + -0.0157407 -0.99987 -0.00360843 + 0.0352054 -0.999376 0.00286879 + 0.056244 -0.998266 0.0173808 + 0.969733 -0.0677201 0.234588 + 0.906751 -0.133409 -0.400007 + 0.0326394 -0.999392 -0.0122636 + 0.0270254 -0.999473 -0.0179982 + -0.0400829 -0.996446 -0.0740857 + -0.0486531 -0.985232 -0.164169 + -0.239926 -0.706162 -0.666161 + -0.144707 -0.60424 -0.783552 + -0.135319 -0.53707 -0.832613 + -0.100655 -0.529494 -0.842321 + -0.0581067 -0.536403 -0.841959 + -0.170852 -0.403794 -0.898755 + 0.265005 -0.261317 0.928163 + -0.698212 -0.578844 -0.421237 + -0.315022 -0.452537 0.834249 + -0.77917 -0.180177 -0.600359 + -0.381159 -0.296862 0.875552 + -0.0108892 -0.999904 -0.00854826 + -0.0245212 -0.995528 -0.0912245 + 0.0252299 -0.999675 -0.00369391 + 0.0326394 -0.999392 -0.0122636 + 0.975382 -0.119843 -0.185115 + 0.906751 -0.133409 -0.400007 + 0.89945 -0.378367 -0.218696 + -0.126989 -0.193735 -0.9728 + -0.170852 -0.403794 -0.898755 + -0.0632742 -0.198969 -0.977961 + -0.698212 -0.578844 -0.421237 + -0.636988 -0.725472 -0.260645 + -0.898623 -0.110218 -0.424651 + 0.496018 -0.329695 0.803285 + 0.0503293 -0.100727 0.99364 + 0.192983 -0.352605 0.915657 + 0.1112 -0.160227 0.980797 + 0.0551828 -0.705959 -0.7061 + -0.0400736 -0.652128 0.757049 + -0.142839 -0.456989 -0.877928 + 0.496018 -0.329695 0.803285 + -0.636988 -0.725472 -0.260645 + 0.192983 -0.352605 0.915657 + -0.0632742 -0.198969 -0.977961 + 0.0551828 -0.705959 -0.7061 + -0.126989 -0.193735 -0.9728 + -0.0400736 -0.652128 0.757049 + -0.170852 -0.403794 -0.898755 + 0.0503293 -0.100727 0.99364 + 0.265005 -0.261317 0.928163 + 0.496018 -0.329695 0.803285 + 0.279078 -0.000477479 0.960268 + 0.695193 -0.122386 0.708327 + -0.120758 -0.928054 -0.352327 + -0.322823 -0.836576 -0.442636 + -0.194297 -0.727167 -0.658389 + -0.464891 -0.71192 -0.526352 + -0.241736 -0.542708 -0.804383 + -0.550545 -0.500735 -0.667956 + -0.355274 -0.501693 -0.788724 + -0.0961959 -0.203621 -0.974312 + -0.142839 -0.456989 -0.877928 + -0.0512693 -0.187771 -0.980874 + -0.636988 -0.725472 -0.260645 + -0.882188 -0.431604 -0.188314 + -0.898623 -0.110218 -0.424651 + -0.962203 -0.172253 -0.210936 + -0.0157407 -0.99987 -0.00360843 + 0.74394 -0.620938 0.246961 + 0.0472041 -0.0616071 0.996984 + 0.148961 -0.352033 0.924058 + 0.091885 -0.108363 0.989856 + 0.0222256 -0.604512 -0.796286 + -0.0150272 -0.499704 0.866066 + 0.906684 -0.420988 0.0263427 + 0.988596 -0.150298 0.00937479 + 0.809468 -0.586022 0.0366081 + 0.990282 -0.0889601 0.106898 + 0.723624 -0.688854 0.0429937 + 0.74394 -0.620938 0.246961 + 0.0484387 -0.124663 0.991016 + 0.00168977 -0.0260261 0.99966 + 0.906684 -0.420988 0.0263427 + -0.0573251 -0.569979 -0.819657 + 0.0819416 -0.442586 0.892974 + -3.46496e-05 -0.99807 0.0620964 + -0.0242584 -0.177453 -0.98383 + -0.878807 -0.463277 0.114336 + -0.0812922 -0.415655 -0.905882 + 0.809468 -0.586022 0.0366081 + 0.0207864 -0.025861 0.999449 + 0.906684 -0.420988 0.0263427 + 0.0819416 -0.442586 0.892974 + -0.239927 -0.274959 0.931038 + -0.272211 -0.385716 0.881546 + -0.263599 -0.435775 0.86059 + -0.265167 -0.842752 0.468462 + -0.00921297 -0.559836 0.828552 + 0.0274689 -0.259774 0.965279 + -0.00921297 -0.559836 0.828552 + 0.105288 -0.736448 0.66825 + -0.265167 -0.842752 0.468462 + -0.145381 -0.913719 0.37945 + -0.272211 -0.385716 0.881546 + -0.0496268 -0.475949 0.878071 + -0.176291 -0.0877059 0.980423 + 0.0197675 -0.280125 -0.95976 + -0.887861 -0.369357 0.274368 + -0.709693 -0.575036 0.407025 + -0.90557 -0.0825266 0.416092 + -0.810475 -0.0942228 0.578146 + -0.0976581 -0.992412 0.0747068 + -0.145381 -0.913719 0.37945 + 0.103528 -0.943314 0.315343 + 0.105288 -0.736448 0.66825 + 0.247741 -0.294242 0.923064 + 0.143023 -0.264939 0.953599 + 0.237773 -0.066623 0.969033 + 0.124936 -0.0680176 0.989831 + -0.811628 -0.580711 -0.0635171 + -0.681873 -0.727121 -0.0796533 + -0.7482 -0.651553 0.125199 + 0.988596 -0.150298 0.00937479 + 0.982991 -0.0670938 -0.170957 + 0.906684 -0.420988 0.0263427 + 0.434438 -0.899834 -0.0395239 + 0.00168977 -0.0260261 0.99966 + 0.0685536 -0.324814 0.94329 + 0.0283298 -0.0448711 0.998591 + 0.0373145 -0.410297 -0.911188 + -0.0310786 -0.295499 0.954837 + -0.0319059 -0.144223 -0.989031 + -0.0573251 -0.569979 -0.819657 + -0.00512647 -0.168551 -0.98568 + -3.46496e-05 -0.99807 0.0620964 + 0.0685536 -0.324814 0.94329 + -0.887861 -0.369357 0.274368 + 0.434438 -0.899834 -0.0395239 + 0.0197675 -0.280125 -0.95976 + -0.0542474 -0.249718 -0.966798 + -0.0151632 -0.153954 -0.987962 + -0.0241398 -0.108055 0.993852 + -0.0442153 -0.0740905 0.996271 + -0.0610696 0.323723 0.944179 + 5.02864e-06 0.214323 0.976763 + -0.0124913 -0.373897 0.927386 + 2.18652e-06 0.100815 0.994905 + 0.0217968 -0.266334 0.963634 + 0.0262207 0.333226 0.942482 + 0.146407 0.0548228 0.987704 + 0.230244 -0.121707 0.965492 + 0.602847 -0.155284 0.7826 + 0.576973 -0.204265 0.790808 + 0.840164 -0.20457 0.502271 + 0.813832 -0.288528 0.504409 + 0.948262 -0.270589 0.166072 + 0.823765 -0.549519 0.139425 + 0.805927 -0.590395 -0.0437618 + 0.75377 -0.657116 -0.0053478 + 0.396404 -0.865864 -0.305195 + -0.533984 -0.0348637 0.844776 + -0.239546 -0.0448408 0.969849 + -0.315761 -0.163078 0.93472 + -0.173393 -0.0428057 0.983922 + 0.611657 -0.679829 -0.404608 + -0.130068 -0.0227746 0.991243 + 0.179561 0.00216503 0.983745 + -0.0719547 -0.0923861 0.99312 + 0.669718 -0.41604 0.615133 + 0.0699253 -0.870491 -0.487193 + 0.0418399 -0.967684 -0.24867 + 0.0730373 -0.719501 -0.69064 + 0.130414 -0.746571 -0.652398 + 0.0803185 -0.563215 -0.822398 + 0.1764 -0.657686 -0.732347 + 0.12739 -0.530194 -0.838252 + 0.101593 -0.533846 -0.839457 + 0.0566378 -0.536563 -0.841958 + 0.0607343 -0.529506 -0.846129 + 0.000552374 -0.523298 -0.85215 + -0.009739 -0.529629 -0.848174 + -0.0581067 -0.536403 -0.841959 + -0.0678177 -0.526871 -0.847235 + -0.100655 -0.529494 -0.842321 + -0.087472 -0.564655 -0.820679 + -0.144707 -0.60424 -0.783552 + -0.0536447 -0.948568 -0.311996 + -0.0486531 -0.985232 -0.164169 + 0.0418399 -0.967684 -0.24867 + 0.0270254 -0.999473 -0.0179982 + 0.828155 -0.145744 -0.541218 + 0.906751 -0.133409 -0.400007 + 0.815077 -0.417353 -0.401829 + 0.89945 -0.378367 -0.218696 + -0.0924547 -0.0681875 0.993379 + 0.0148408 -0.513668 0.857861 + -0.0470568 -0.0839694 0.995357 + 0.132957 -0.573904 -0.808057 + -0.139368 -0.467556 0.872908 + 0.0508984 -0.23381 -0.970949 + -0.0217703 -0.63021 -0.77612 + 0.0964295 -0.18431 -0.978126 + -0.645579 -0.360615 0.67319 + -0.888389 -0.437746 0.138361 + -0.966155 -0.126955 0.22456 + -0.998151 -0.0606657 0.00378473 + 0.676107 -0.717992 0.16543 + -0.990877 -0.109951 -0.0779284 + 0.484591 -0.791139 0.37319 + -0.919 -0.113584 -0.377542 + -0.753844 -0.104594 -0.648676 + -0.62121 -0.754131 -0.213037 + -0.755037 -0.0724638 -0.651666 + -0.00762819 -0.158537 -0.987324 + 0.064316 -0.271649 0.960245 + 0.0296298 -0.397958 -0.916925 + 0.031145 -0.0285405 0.999107 + -0.0281379 -0.282285 0.958918 + 0.00676597 -0.0321832 0.999459 + -0.0624653 -0.392394 -0.917674 + 0.751914 -0.553337 0.358391 + -0.62121 -0.754131 -0.213037 + 0.0619653 -0.322246 0.944626 + 0.0151516 -0.162247 -0.986634 + 0.0491178 -0.511936 -0.857618 + -0.0200327 -0.21804 -0.975734 + -0.0668259 -0.403089 0.912718 + -0.0786388 -0.438515 -0.895277 + -0.005505 -0.0665919 0.997765 + 0.61617 -0.756721 0.21842 + 0.751914 -0.553337 0.358391 + 0.969733 -0.0677201 0.234588 + 0.887804 -0.094206 0.450477 + 0.056244 -0.998266 0.0173808 + 0.0380841 -0.999059 0.0207498 + -0.0157407 -0.99987 -0.00360843 + -0.0338987 -0.999425 4.86642e-05 + -0.962203 -0.172253 -0.210936 + -0.993885 -0.10856 -0.0202078 + -0.882188 -0.431604 -0.188314 + -0.506026 -0.862511 -0.00356873 + -0.051079 -0.16517 -0.984942 + 0.112964 -0.133701 0.984562 + -0.00930313 -0.3974 -0.917598 + 0.0743398 -0.0341865 0.996647 + 0.0132511 -0.279407 0.960081 + 0.0484387 -0.124663 0.991016 + -0.10469 -0.398481 -0.911182 + 0.74394 -0.620938 0.246961 + -0.882188 -0.431604 -0.188314 + 0.148961 -0.352033 0.924058 + -0.0512693 -0.187771 -0.980874 + 0.0222256 -0.604512 -0.796286 + -0.0961959 -0.203621 -0.974312 + -0.0150272 -0.499704 0.866066 + -0.142839 -0.456989 -0.877928 + 0.0472041 -0.0616071 0.996984 + 0.496018 -0.329695 0.803285 + 0.74394 -0.620938 0.246961 + 0.695193 -0.122386 0.708327 + 0.990282 -0.0889601 0.106898 + -0.322823 -0.836576 -0.442636 + -0.681873 -0.727121 -0.0796533 + -0.464891 -0.71192 -0.526352 + -0.811628 -0.580711 -0.0635171 + -0.550545 -0.500735 -0.667956 + -0.217458 -0.185282 0.958323 + -0.0733965 -0.147837 0.986285 + -0.159592 -0.127502 0.978914 + -0.0241398 -0.108055 0.993852 + -0.271341 0.270417 0.923715 + -0.0610696 0.323723 0.944179 + -0.155645 -0.311392 0.937448 + -0.0124913 -0.373897 0.927386 + -0.244593 -0.0742528 0.966779 + -0.0184288 -0.0318032 0.999324 + -0.548316 -0.250964 0.797726 + -0.217458 -0.185282 0.958323 + -0.581642 -0.178662 0.793582 + -0.159592 -0.127502 0.978914 + -0.654358 -0.067298 0.753185 + -0.271341 0.270417 0.923715 + -0.471232 -0.439563 0.764673 + -0.155645 -0.311392 0.937448 + -0.591286 -0.130101 0.795899 + -0.244593 -0.0742528 0.966779 + -0.714937 -0.536515 0.448349 + -0.548316 -0.250964 0.797726 + -0.833366 -0.232769 0.501318 + -0.581642 -0.178662 0.793582 + -0.847574 -0.191444 0.494942 + -0.654358 -0.067298 0.753185 + -0.833731 -0.381228 0.399447 + -0.698461 -0.515117 0.496797 + -0.816629 -0.568276 0.100899 + -0.714937 -0.536515 0.448349 + -0.969119 -0.239308 0.0595026 + -0.833366 -0.232769 0.501318 + -0.971227 -0.207489 0.116904 + -0.847574 -0.191444 0.494942 + -0.944707 -0.325707 0.0379952 + -0.833731 -0.381228 0.399447 + -0.889274 -0.44514 0.105085 + -0.698461 -0.515117 0.496797 + -0.85675 -0.14893 0.49376 + -0.591286 -0.130101 0.795899 + -0.606015 -0.0986539 0.789312 + -0.244593 -0.0742528 0.966779 + -0.169642 -0.0405067 0.984673 + -0.0184288 -0.0318032 0.999324 + -0.0201558 -0.0228252 0.999536 + 0.000681799 -0.008355 0.999965 + -0.00036562 0.00489826 0.999988 + -0.00019035 0.0556093 0.998453 + 6.1757e-05 0.0693676 0.997591 + 0.0177534 0.0759785 0.996951 + -0.030401 0.0759269 0.99665 + -0.0266962 0.128392 0.991364 + -0.227025 0.121653 0.966261 + -0.153968 0.142781 0.977705 + -0.509249 0.125732 0.851385 + -0.428788 0.159601 0.889195 + -0.726001 0.127772 0.675719 + -0.68144 0.136071 0.719114 + -0.994229 0.0471907 0.09634 + -0.997331 0.0419249 0.0597709 + -0.997686 0.0282033 -0.0618575 + -0.994124 0.0317488 -0.103491 + -0.596346 -0.681771 0.423745 + -0.714937 -0.536515 0.448349 + -0.7482 -0.651553 0.125199 + -0.816629 -0.568276 0.100899 + -0.811628 -0.580711 -0.0635171 + -0.942485 -0.313512 -0.115898 + -0.550545 -0.500735 -0.667956 + -0.750569 -0.409031 -0.51898 + -0.355274 -0.501693 -0.788724 + -0.302324 -0.117348 -0.945954 + -0.229922 0.00982699 -0.973159 + -0.218482 -0.413358 -0.883969 + -0.0932996 -0.427925 -0.898986 + -0.0743255 -0.284206 -0.955878 + 0.0138219 -0.286672 -0.957929 + 0.000805074 -0.220166 -0.975462 + 0.105575 -0.227988 -0.967923 + 0.120108 -0.0733157 -0.99005 + 0.240817 -0.0867432 -0.966687 + 0.200708 -0.0499252 -0.978378 + 0.257484 -0.0631406 -0.964217 + 0.264155 -0.0532574 -0.963009 + 0.364448 -0.0502078 -0.929869 + 0.466806 -0.0404394 -0.883435 + 0.849197 -0.0239098 -0.527534 + 0.753206 -0.02026 -0.657472 + 0.997079 0.0152387 -0.0748381 + 0.996573 0.0280501 -0.0778124 + 0.99827 0.0395952 0.0434746 + 0.993712 0.0486661 0.100835 + 0.75124 0.121526 0.648745 + 0.591453 0.14934 0.79239 + 0.36072 0.167164 0.917571 + 0.290809 0.167212 0.942056 + 0.0683154 0.179427 0.981396 + 0.115116 0.237718 0.964489 + 0.0175709 0.27621 0.960937 + 0.0586102 0.180567 -0.981815 + 0.022281 0.251444 -0.967615 + 0.0734718 0.120458 -0.989996 + 0.173635 0.104689 -0.97923 + 0.197651 0.0203249 -0.980062 + 0.335067 0.0180651 -0.942021 + 0.227748 -0.0078103 -0.973689 + 0.333127 -0.0100611 -0.942828 + 0.169059 -0.0196283 -0.985411 + 0.130801 -0.0273801 -0.991031 + 0.109201 -0.0297741 -0.993574 + 0.0567326 -0.0277007 -0.998005 + -0.00764383 -0.0330927 -0.999423 + -0.00809808 -0.0285395 -0.99956 + -0.116367 -0.0316865 -0.992701 + -0.0580446 -0.0304234 -0.99785 + -0.0960201 -0.0268362 -0.995018 + -0.187977 -0.0220356 -0.981926 + -0.250398 -0.0153801 -0.968021 + -0.399454 -0.0125866 -0.916667 + -0.29973 0.0116996 -0.953952 + -0.454023 0.0360509 -0.89026 + -0.448482 0.0781762 -0.890366 + -0.00422932 0.2262 -0.974072 + -0.178256 0.101688 -0.978716 + -0.010739 0.191668 -0.981401 + -0.120426 0.0911068 -0.988533 + -0.0596299 0.173826 -0.982969 + -0.120578 0.108951 -0.986707 + -0.0330658 0.146127 -0.988713 + -0.17298 0.124463 -0.97703 + -0.976614 0.0898781 -0.195314 + -0.422324 0.0553439 -0.904754 + -0.994124 0.0317488 -0.103491 + -0.730875 -0.00279197 -0.682506 + -0.997686 0.0282033 -0.0618575 + -0.996871 0.0285863 -0.0736924 + -0.994229 0.0471907 0.09634 + -0.9971 0.027827 0.0708312 + -0.802909 0.0878522 0.589593 + -0.872228 0.0559841 0.485885 + -0.617471 0.0944266 0.780906 + -0.60521 0.0591121 0.793868 + -0.194582 0.0739778 0.978093 + -0.198989 0.0736227 0.977232 + -0.030401 0.0759269 0.99665 + -0.105712 0.0752549 0.991545 + 6.1757e-05 0.0693676 0.997591 + -0.107638 -0.000583759 0.99419 + -0.107233 -0.00302107 0.994229 + -0.171655 -0.00797123 0.985125 + -0.255076 -0.0193754 0.966727 + -0.606593 -0.055399 0.79308 + -0.598949 -0.0579886 0.798685 + -0.767569 -0.0790496 0.636074 + -0.606015 -0.0986539 0.789312 + -0.850777 -0.139023 0.506805 + -0.85675 -0.14893 0.49376 + -0.940831 -0.144336 0.306602 + -0.942258 -0.171999 0.287345 + -0.983762 -0.178798 0.0156057 + -0.813857 -0.580135 0.0328568 + -0.974696 -0.204673 -0.0898731 + -0.889274 -0.44514 0.105085 + -0.912035 -0.408045 -0.0411374 + -0.944707 -0.325707 0.0379952 + -0.970334 -0.233127 -0.0640559 + -0.971227 -0.207489 0.116904 + -0.973982 -0.224484 -0.0310778 + -0.969119 -0.239308 0.0595026 + -0.942485 -0.313512 -0.115898 + -0.816629 -0.568276 0.100899 + 0.779024 -0.347275 -0.522036 + 0.484269 -0.151173 -0.86176 + -0.38199 -0.779473 0.496493 + 0.133714 -0.157591 -0.97841 + -0.105188 -0.787159 0.607713 + -0.122544 -0.0451775 0.991434 + 0.213767 -0.161819 -0.963389 + 0.485427 -0.122909 -0.865595 + 0.484269 -0.151173 -0.86176 + 0.700077 -0.0656995 -0.711039 + 0.779024 -0.347275 -0.522036 + 0.708477 -0.65788 -0.255449 + 0.918469 -0.119895 -0.376881 + -0.0427836 -0.702899 0.710002 + -0.105188 -0.787159 0.607713 + 0.0359942 -0.190481 -0.981031 + 0.133714 -0.157591 -0.97841 + 0.068314 -0.138343 -0.988026 + 0.213767 -0.161819 -0.963389 + -0.0290704 -0.150334 0.988208 + -0.122544 -0.0451775 0.991434 + -0.0520325 -0.318091 0.946631 + -0.12229 -0.0630534 0.990489 + -0.00575611 -0.268251 -0.963332 + -0.122544 -0.0451775 0.991434 + -0.00552259 -0.400588 -0.916242 + 0.485427 -0.122909 -0.865595 + -3.16223e-05 -0.998055 0.0623321 + 0.700077 -0.0656995 -0.711039 + -0.00699165 -0.123847 0.992277 + -0.00236854 -0.151518 0.988452 + -0.0224115 -0.440014 0.897711 + -0.0593681 -0.432054 0.899891 + -0.0427836 -0.702899 0.710002 + -0.139839 -0.483242 0.864247 + -0.105188 -0.787159 0.607713 + -0.429511 -0.508758 0.746114 + -0.38199 -0.779473 0.496493 + -0.0295419 -0.40729 -0.912821 + 0.708477 -0.65788 -0.255449 + -0.709693 -0.575036 0.407025 + 0.0688252 -0.346075 0.935679 + 0.0197675 -0.280125 -0.95976 + 0.0764915 -0.49186 -0.867308 + -0.0151632 -0.153954 -0.987962 + -0.0602199 -0.382887 0.92183 + -0.0542474 -0.249718 -0.966798 + -0.0295643 -0.037557 0.998857 + 0.434438 -0.899834 -0.0395239 + 0.708477 -0.65788 -0.255449 + 0.982991 -0.0670938 -0.170957 + 0.918469 -0.119895 -0.376881 + -0.7482 -0.651553 0.125199 + 0.779024 -0.347275 -0.522036 + -0.596346 -0.681771 0.423745 + -0.38199 -0.779473 0.496493 + -0.714937 -0.536515 0.448349 + -0.429511 -0.508758 0.746114 + -0.548316 -0.250964 0.797726 + -0.139839 -0.483242 0.864247 + -0.217458 -0.185282 0.958323 + -0.0593681 -0.432054 0.899891 + -0.0733965 -0.147837 0.986285 + -0.00236854 -0.151518 0.988452 + -0.0241398 -0.108055 0.993852 + -0.00699165 -0.123847 0.992277 + -0.0442153 -0.0740905 0.996271 + 0.0148937 -0.0800464 0.99668 + 0.253438 -0.0429409 0.966398 + 0.0366496 -0.210855 0.97683 + 0.208206 -0.525624 0.824845 + -0.0240698 -0.124883 -0.991879 + -0.303759 -0.11696 -0.945543 + -0.0555646 -0.202828 -0.977637 + -0.0536175 -0.796106 0.602778 + -0.0555646 -0.202828 -0.977637 + -0.71967 -0.347441 -0.601131 + -0.303759 -0.11696 -0.945543 + -0.524466 -0.720347 0.453912 + 0.208206 -0.525624 0.824845 + 0.0458503 -0.160466 -0.985976 + 0.253438 -0.0429409 0.966398 + 0.0419128 -0.470288 -0.881517 + 0.0148937 -0.0800464 0.99668 + 0.00762339 -0.153393 -0.988136 + -0.0295419 -0.40729 -0.912821 + 0.0320264 -0.156163 -0.987212 + -0.709693 -0.575036 0.407025 + -0.524466 -0.720347 0.453912 + -0.810475 -0.0942228 0.578146 + -0.71967 -0.347441 -0.601131 + -0.145381 -0.913719 0.37945 + -0.0536175 -0.796106 0.602778 + -0.0496268 -0.475949 0.878071 + -3.46496e-05 -0.99807 0.0620964 + -0.878807 -0.463277 0.114336 + -0.887861 -0.369357 0.274368 + -0.972901 -0.0818899 0.216236 + -0.90557 -0.0825266 0.416092 + -0.0714157 -0.996892 0.0332613 + -0.0976581 -0.992412 0.0747068 + 0.0789893 -0.987055 0.139582 + 0.103528 -0.943314 0.315343 + 0.251018 -0.38846 0.886616 + 0.247741 -0.294242 0.923064 + 0.183899 -0.0871833 0.979071 + 0.237773 -0.066623 0.969033 + 0.0448639 -0.085942 0.99529 + 0.124936 -0.0680176 0.989831 + -0.000947329 -0.0603399 0.998177 + 0.0274689 -0.259774 0.965279 + -0.136172 -0.278432 0.950754 + -0.00921297 -0.559836 0.828552 + -0.162297 -0.373743 0.913223 + -0.263599 -0.435775 0.86059 + -0.136172 -0.278432 0.950754 + -0.239927 -0.274959 0.931038 + -0.0943964 -0.0625329 0.993569 + -0.239287 -0.0695682 0.968453 + -0.0442153 -0.0740905 0.996271 + -0.176291 -0.0877059 0.980423 + -0.00699165 -0.123847 0.992277 + -0.0496268 -0.475949 0.878071 + -0.0224115 -0.440014 0.897711 + -0.0536175 -0.796106 0.602778 + -0.0427836 -0.702899 0.710002 + -0.0555646 -0.202828 -0.977637 + 0.0359942 -0.190481 -0.981031 + -0.0240698 -0.124883 -0.991879 + 0.068314 -0.138343 -0.988026 + 0.0366496 -0.210855 0.97683 + -0.0290704 -0.150334 0.988208 + 0.0148937 -0.0800464 0.99668 + -0.0520325 -0.318091 0.946631 + 0.0419128 -0.470288 -0.881517 + -0.00575611 -0.268251 -0.963332 + 0.0458503 -0.160466 -0.985976 + -0.00552259 -0.400588 -0.916242 + -0.524466 -0.720347 0.453912 + -3.16223e-05 -0.998055 0.0623321 + -2.64856e-05 -0.998064 0.0621981 + 0.700077 -0.0656995 -0.711039 + -0.00046814 -0.998013 0.0630036 + 0.708477 -0.65788 -0.255449 + -0.0307772 -0.116635 0.992698 + -0.0295419 -0.40729 -0.912821 + -0.0644546 -0.266417 0.9617 + 0.00762339 -0.153393 -0.988136 + 0.0626684 -0.38272 -0.921737 + 0.0320264 -0.156163 -0.987212 + 0.0294514 -0.114511 0.992985 + -0.524466 -0.720347 0.453912 + -0.0307772 -0.116635 0.992698 + -2.64856e-05 -0.998064 0.0621981 + -0.00046814 -0.998013 0.0630036 + -0.914324 -0.40303 0.039724 + -0.881843 -0.403032 -0.24478 + -8.40763e-09 -1 5.98046e-10 + -0.763044 -0.403037 -0.505298 + -0.569576 -0.403043 -0.716337 + -0.780185 -0.27656 -0.561093 + -0.568606 -0.276557 -0.774728 + -0.301088 -0.0920923 -0.949139 + -0.301465 -0.276564 -0.912486 + -0.579626 -0.0920911 -0.809662 + -0.568606 -0.276557 -0.774728 + -0.801463 -0.0920815 -0.590913 + -0.780185 -0.27656 -0.561093 + -0.944841 -0.0920877 -0.314317 + -0.915389 -0.276552 -0.292545 + -0.995726 -0.0920891 -0.00695806 + -0.960991 -0.276542 0.00463429 + -0.301088 -0.0920923 -0.949139 + 0.00696705 -0.0920929 -0.995726 + -0.00473764 -0.276574 -0.960981 + 0.292537 -0.276567 -0.915387 + 0.244763 -0.403109 -0.881813 + 0.505282 -0.403114 -0.763013 + -8.40763e-09 -1 5.98046e-10 + -0.995726 -0.0920891 -0.00695806 + -0.916984 0.395976 -0.0484002 + -0.944841 -0.0920877 -0.314317 + -0.857134 0.395995 -0.329408 + -0.801463 -0.0920815 -0.590913 + -0.713387 0.396005 -0.578152 + -0.579626 -0.0920911 -0.809662 + -0.520294 0.293763 -0.801871 + -0.301088 -0.0920923 -0.949139 + -0.2424 0.346993 -0.906001 + 0.00696705 -0.0920929 -0.995726 + -0.505281 -0.403045 0.76305 + -0.716347 -0.403039 0.569568 + -8.40763e-09 -1 5.98046e-10 + -0.857289 -0.403034 0.320341 + -0.914324 -0.40303 0.039724 + -0.912521 -0.276552 0.30137 + -0.960991 -0.276542 0.00463429 + -0.949154 -0.0920814 0.301045 + -0.995726 -0.0920891 -0.00695806 + -0.887063 0.395984 0.237309 + -0.916984 0.395976 -0.0484002 + -0.2424 0.346993 -0.906001 + -0.520294 0.293763 -0.801871 + -0.361341 0.818929 -0.445857 + -0.713387 0.396005 -0.578152 + -0.652398 0.628637 -0.423311 + -0.857134 0.395995 -0.329408 + -0.751276 0.628625 -0.201035 + -0.916984 0.395976 -0.0484002 + -0.776631 0.628619 0.0410261 + -0.887063 0.395984 0.237309 + -0.725938 0.628638 0.278976 + -0.770311 0.396004 0.499801 + -0.604202 0.62862 0.48967 + -0.550462 0.485373 0.679268 + -0.487071 0.446466 0.75062 + 0.00696705 -0.0920929 -0.995726 + -0.2424 0.346993 -0.906001 + 0.0461053 0.485345 -0.873106 + -0.361341 0.818929 -0.445857 + -0.336154 0.349275 -0.874647 + -0.336154 0.349275 -0.874647 + -0.0351557 0.74522 -0.665891 + 0.0461053 0.485345 -0.873106 + 0.336456 0.346966 -0.87545 + 0.314349 -0.0920956 -0.94483 + 0.590895 -0.0921088 -0.801473 + 0.561071 -0.276577 -0.780195 + 0.774704 -0.276584 -0.568626 + 0.716302 -0.403126 -0.569563 + 0.857254 -0.403123 -0.320323 + -8.40763e-09 -1 5.98046e-10 + -0.487071 0.446466 0.75062 + -0.489675 -0.62861 0.604209 + -0.604202 0.62862 0.48967 + -0.652409 -0.62862 0.423319 + -0.725938 0.628638 0.278976 + -0.751305 -0.628599 0.201005 + -0.776631 0.628619 0.0410261 + -0.776639 -0.62861 -0.0410032 + -0.751276 0.628625 -0.201035 + -0.72595 -0.628607 -0.279014 + -0.652398 0.628637 -0.423311 + -0.604216 -0.628617 -0.489657 + -0.361341 0.818929 -0.445857 + -0.487078 -0.44644 -0.750631 + -0.336154 0.349275 -0.874647 + -0.242176 -0.34927 -0.905186 + -0.0351557 0.74522 -0.665891 + 0.320307 -0.403111 0.857266 + 0.0397398 -0.403107 0.91429 + -8.40763e-09 -1 5.98046e-10 + -0.244881 -0.403059 0.881803 + -0.505281 -0.403045 0.76305 + -0.292628 -0.276547 0.915364 + -0.561098 -0.27656 0.780182 + -0.314323 -0.0921067 0.944837 + -0.590905 -0.0920999 0.801467 + -0.329411 0.395971 0.857144 + -0.550462 0.485373 0.679268 + -0.201006 0.628605 0.751301 + -0.487071 0.446466 0.75062 + -0.279011 -0.62859 0.725966 + -0.489675 -0.62861 0.604209 + -0.242176 -0.34927 -0.905186 + -0.487078 -0.44644 -0.750631 + -0.532541 -0.533432 -0.657153 + -0.604216 -0.628617 -0.489657 + -0.778746 -0.371792 -0.505297 + -0.72595 -0.628607 -0.279014 + -0.89678 -0.371784 -0.239922 + -0.776639 -0.62861 -0.0410032 + -0.927037 -0.371764 0.0489295 + -0.751305 -0.628599 0.201005 + -0.86653 -0.371794 0.33301 + -0.652409 -0.62862 0.423319 + -0.721197 -0.37179 0.584505 + -0.489675 -0.62861 0.604209 + -0.505287 -0.371762 0.778767 + -0.279011 -0.62859 0.725966 + -0.239945 -0.37177 0.896779 + -0.0410028 -0.628606 0.776643 + 0.0488552 -0.371763 0.927041 + 0.171963 -0.745453 0.643995 + 0.344889 -0.274404 0.897638 + -0.0351557 0.74522 -0.665891 + -0.242176 -0.34927 -0.905186 + 0.0351561 -0.74523 -0.66588 + -0.532541 -0.533432 -0.657153 + -0.339266 -0.324945 -0.882785 + 0.590895 -0.0921088 -0.801473 + 0.336456 0.346966 -0.87545 + 0.550473 0.485336 -0.679285 + -0.0351557 0.74522 -0.665891 + 0.242188 0.349299 -0.905171 + 0.0351561 -0.74523 -0.66588 + -0.339266 -0.324945 -0.882785 + -0.0490821 -0.371819 -0.927007 + 0.0351561 -0.74523 -0.66588 + 0.278574 -0.628979 -0.725798 + 0.242188 0.349299 -0.905171 + 0.423214 0.62885 -0.652256 + 0.550473 0.485336 -0.679285 + 0.770321 0.395978 -0.499806 + 0.80966 -0.0921165 -0.579625 + 0.949148 -0.0921137 -0.301055 + 0.912507 -0.27658 -0.301387 + 0.96098 -0.27658 -0.00464774 + 0.914282 -0.403125 -0.0397384 + 0.881803 -0.40312 0.244782 + -8.40763e-09 -1 5.98046e-10 + 0.344889 -0.274404 0.897638 + 0.248816 0.270997 0.929866 + 0.0488552 -0.371763 0.927041 + -0.0525958 0.0720031 0.996017 + -0.239945 -0.37177 0.896779 + -0.296645 0.562342 0.771863 + -0.505287 -0.371762 0.778767 + -0.296532 0.882135 0.365932 + -0.721197 -0.37179 0.584505 + -0.250539 0.95436 0.162565 + -0.86653 -0.371794 0.33301 + -0.2267 0.972075 0.0606473 + -0.927037 -0.371764 0.0489295 + -0.223646 0.974599 -0.0118102 + -0.89678 -0.371784 -0.239922 + -0.240883 0.96613 -0.0925681 + -0.778746 -0.371792 -0.505297 + -0.283555 0.931012 -0.229812 + -0.532541 -0.533432 -0.657153 + -0.343638 0.775505 -0.529627 + -0.339266 -0.324945 -0.882785 + -0.248786 0.271099 -0.929845 + -0.0490821 -0.371819 -0.927007 + 0.896833 -0.371656 0.239923 + 0.806692 -0.274349 0.523432 + 0.413708 -0.859356 0.300586 + 0.559574 -0.458145 0.690637 + 0.550212 -0.351121 0.757615 + 0.927078 -0.371659 -0.0489555 + 0.896833 -0.371656 0.239923 + 0.72567 -0.628983 0.278898 + 0.413708 -0.859356 0.300586 + 0.757477 0.351194 0.550356 + 0.550212 -0.351121 0.757615 + 0.300608 0.859336 0.413736 + 0.866598 -0.371624 -0.333023 + 0.927078 -0.371659 -0.0489555 + 0.776356 -0.628961 0.0409881 + 0.72567 -0.628983 0.278898 + 0.751028 0.628954 0.200933 + 0.757477 0.351194 0.550356 + 0.621347 0.640429 0.451418 + 0.300608 0.859336 0.413736 + 0.572716 0.224877 0.788307 + 0.721238 -0.371657 -0.58454 + 0.866598 -0.371624 -0.333023 + 0.750979 -0.629012 -0.200934 + 0.776356 -0.628961 0.0409881 + 0.776349 0.628969 -0.0409891 + 0.751028 0.628954 0.200933 + 0.857153 0.395956 0.329405 + 0.621347 0.640429 0.451418 + 0.807221 -0.0665405 0.586486 + 0.572716 0.224877 0.788307 + 0.583842 -0.11538 0.803627 + 0.505313 -0.371646 -0.778806 + 0.721238 -0.371657 -0.58454 + 0.652142 -0.628999 -0.423168 + 0.750979 -0.629012 -0.200934 + 0.725696 0.628943 -0.278918 + 0.776349 0.628969 -0.0409891 + 0.917007 0.395924 0.0484001 + 0.857153 0.395956 0.329405 + 0.944843 -0.092132 0.314299 + 0.807221 -0.0665405 0.586486 + 0.784013 -0.246736 0.569601 + 0.583842 -0.11538 0.803627 + 0.559303 -0.307461 0.769836 + 0.23975 -0.371766 -0.896833 + 0.505313 -0.371646 -0.778806 + 0.489323 -0.629118 -0.603965 + 0.652142 -0.628999 -0.423168 + 0.603982 0.628972 -0.489489 + 0.725696 0.628943 -0.278918 + 0.887073 0.395951 -0.237325 + 0.917007 0.395924 0.0484001 + 0.995723 -0.092125 0.00698181 + 0.944843 -0.092132 0.314299 + 0.915386 -0.276581 0.292525 + 0.784013 -0.246736 0.569601 + 0.743061 -0.395477 0.539868 + 0.559303 -0.307461 0.769836 + 0.534206 -0.417204 0.735231 + 0.343749 0.775339 0.529798 + 0.559574 -0.458145 0.690637 + 0.283684 0.930947 0.229917 + 0.806692 -0.274349 0.523432 + 0.241001 0.966096 0.0926174 + 0.896833 -0.371656 0.239923 + 0.22376 0.974573 0.0118102 + 0.927078 -0.371659 -0.0489555 + 0.226814 0.972046 -0.0606812 + 0.866598 -0.371624 -0.333023 + 0.250659 0.954315 -0.162643 + 0.721238 -0.371657 -0.58454 + 0.296655 0.882036 -0.366071 + 0.505313 -0.371646 -0.778806 + 0.296692 0.562119 -0.772008 + 0.23975 -0.371766 -0.896833 + 0.0526155 0.0719867 -0.996017 + -0.0525958 0.0720031 0.996017 + 0.248816 0.270997 0.929866 + -0.296645 0.562342 0.771863 + 0.343749 0.775339 0.529798 + -0.296532 0.882135 0.365932 + 0.283684 0.930947 0.229917 + -0.250539 0.95436 0.162565 + 0.241001 0.966096 0.0926174 + -0.2267 0.972075 0.0606473 + 0.22376 0.974573 0.0118102 + -0.223646 0.974599 -0.0118102 + 0.226814 0.972046 -0.0606812 + -0.240883 0.96613 -0.0925681 + 0.250659 0.954315 -0.162643 + -0.283555 0.931012 -0.229812 + 0.296655 0.882036 -0.366071 + -0.343638 0.775505 -0.529627 + 0.296692 0.562119 -0.772008 + -0.248786 0.271099 -0.929845 + 0.0526155 0.0719867 -0.996017 + -0.0490821 -0.371819 -0.927007 + 0.23975 -0.371766 -0.896833 + 0.278574 -0.628979 -0.725798 + 0.489323 -0.629118 -0.603965 + 0.423214 0.62885 -0.652256 + 0.603982 0.628972 -0.489489 + 0.770321 0.395978 -0.499806 + 0.887073 0.395951 -0.237325 + 0.949148 -0.0921137 -0.301055 + 0.995723 -0.092125 0.00698181 + 0.96098 -0.27658 -0.00464774 + 0.915386 -0.276581 0.292525 + 0.881803 -0.40312 0.244782 + 0.743061 -0.395477 0.539868 + -8.40763e-09 -1 5.98046e-10 + 0.534206 -0.417204 0.735231 + 0.320307 -0.403111 0.857266 + 0.559303 -0.307461 0.769836 + 0.301387 -0.276565 0.912512 + 0.583842 -0.11538 0.803627 + 0.30108 -0.0921134 0.94914 + 0.572716 0.224877 0.788307 + 0.23734 0.395952 0.887069 + 0.300608 0.859336 0.413736 + 0.278961 0.62871 0.725882 + 0.550212 -0.351121 0.757615 + 0.171963 -0.745453 0.643995 + 0.559574 -0.458145 0.690637 + 0.344889 -0.274404 0.897638 + 0.343749 0.775339 0.529798 + 0.248816 0.270997 0.929866 + -0.259695 -0.847902 -0.462191 + -0.200999 -0.908132 -0.367282 + -0.546942 -0.2891 -0.785669 + -0.319301 0.902313 -0.289616 + -0.477617 0.611434 -0.630897 + 0.129405 0.971274 0.199703 + 0.185528 0.923653 0.335326 + 0.267726 0.851906 0.450087 + -0.104593 -0.973255 -0.204537 + 0.377176 -0.438408 0.815804 + 0.307564 -0.611359 0.72914 + 0.425888 -0.0133439 0.904678 + 0.39552 0.366963 0.841963 + 0.267726 0.851906 0.450087 + 0.217723 0.908056 0.357814 + -0.199666 -0.92047 -0.33596 + -0.136514 -0.953823 -0.267556 + -0.259695 -0.847902 -0.462191 + -0.104593 -0.973255 -0.204537 + -0.200999 -0.908132 -0.367282 + -0.0859732 -0.992146 0.0908616 + -0.121627 0.992152 0.0290037 + 0.217723 0.908056 0.357814 + 0.129405 0.971274 0.199703 + 0.267726 0.851906 0.450087 + 0.165928 0.950961 0.261037 + 0.185528 0.923653 0.335326 + 0.136491 0.968129 0.209994 + 0.163944 0.939446 0.300939 + 0.0978753 0.986164 0.133792 + 0.158902 0.9465 0.28087 + 0.0692611 0.997069 0.0324868 + 0.202238 0.941281 0.270353 + 0.0531617 0.994342 -0.0919686 + 0.31858 0.901985 0.291428 + 0.2759 0.867147 -0.414651 + 0.92033 0.332812 0.205497 + 0.339059 -0.934816 -0.10563 + 0.10102 -0.994459 -0.0291045 + -0.136514 -0.953823 -0.267556 + -0.199666 -0.92047 -0.33596 + -0.115378 -0.966757 -0.228186 + -0.174346 -0.941835 -0.287315 + -0.0754653 -0.983002 -0.167369 + -0.148987 -0.955692 -0.253883 + -0.00967133 -0.99567 -0.092452 + -0.123743 -0.953653 -0.274288 + 0.10102 -0.994459 -0.0291045 + -0.0566084 -0.920096 -0.38758 + 0.339059 -0.934816 -0.10563 + 0.325434 -0.560312 -0.761671 + 0.2759 0.867147 -0.414651 + -0.0566084 -0.920096 -0.38758 + 0.0531617 0.994342 -0.0919686 + -0.123743 -0.953653 -0.274288 + 0.0692611 0.997069 0.0324868 + -0.148987 -0.955692 -0.253883 + 0.0978753 0.986164 0.133792 + -0.174346 -0.941835 -0.287315 + 0.136491 0.968129 0.209994 + -0.199666 -0.92047 -0.33596 + 0.165928 0.950961 0.261037 + -0.259695 -0.847902 -0.462191 + 0.129405 0.971274 0.199703 + -0.55249 0.246941 -0.7961 + -0.477617 0.611434 -0.630897 + -0.866127 1.996e-05 0.499824 + -0.546942 -0.2891 -0.785669 + -0.55249 0.246941 -0.7961 + -0.259695 -0.847902 -0.462191 + -0.191157 -0.920443 0.340946 + -0.161825 -0.941758 0.294795 + -0.139845 -0.966808 0.213834 + -0.107308 -0.983 0.148984 + 0.163879 0.946333 -0.278562 + 0.132718 0.941017 -0.311243 + -0.00670901 0.997036 -0.0766423 + -0.106157 0.994349 -0.000704238 + -0.176082 -0.953552 0.244404 + -0.306537 -0.920467 0.242435 + -0.0762867 -0.994444 -0.0725392 + -0.26074 -0.934979 -0.240475 + -0.282042 0.334206 -0.89931 + -0.124877 -0.973255 0.192824 + -0.16342 -0.953848 0.251927 + 0.197748 0.923654 -0.328267 + 0.178772 0.939396 -0.292534 + 0.113654 0.968164 -0.223027 + 0.0668704 0.986184 -0.151559 + -0.161825 -0.941758 0.294795 + -0.145682 -0.955592 0.256166 + -0.107308 -0.983 0.148984 + -0.0756018 -0.99562 0.0550093 + 0.132718 0.941017 -0.311243 + 0.0933368 0.902403 -0.420663 + -0.106157 0.994349 -0.000704238 + -0.495369 0.868128 -0.0310417 + -0.306537 -0.920467 0.242435 + -0.821256 -0.561892 0.0990729 + -0.26074 -0.934979 -0.240475 + -0.495369 0.868128 -0.0310417 + -0.282042 0.334206 -0.89931 + 0.0933368 0.902403 -0.420663 + -0.0762867 -0.994444 -0.0725392 + -0.0756018 -0.99562 0.0550093 + -0.176082 -0.953552 0.244404 + -0.145682 -0.955592 0.256166 + -0.00670901 0.997036 -0.0766423 + 0.0668704 0.986184 -0.151559 + 0.163879 0.946333 -0.278562 + 0.178772 0.939396 -0.292534 + -0.139845 -0.966808 0.213834 + -0.16342 -0.953848 0.251927 + -0.191157 -0.920443 0.340946 + -0.191157 -0.920443 0.340946 + -0.16342 -0.953848 0.251927 + -0.270568 -0.847901 0.455914 + -0.124877 -0.973255 0.192824 + -0.217617 -0.908133 0.357683 + 0.0970666 -0.995169 0.0146942 + 0.110411 0.988345 0.104805 + 0.343993 -0.898351 -0.273194 + 0.196867 0.908003 -0.369829 + 0.510872 -0.608313 -0.607425 + 0.526211 0.367078 -0.767043 + -0.377295 0.437938 0.816002 + 0.108285 0.971275 -0.211896 + -0.270568 -0.847901 0.455914 + 0.143168 0.950963 -0.274174 + -0.191157 -0.920443 0.340946 + -0.161825 -0.941758 0.294795 + -0.191157 -0.920443 0.340946 + 0.113654 0.968164 -0.223027 + 0.143168 0.950963 -0.274174 + 0.197748 0.923654 -0.328267 + 0.255953 0.851907 -0.456883 + -0.124877 -0.973255 0.192824 + 0.51792 -0.438337 -0.734588 + 0.510872 -0.608313 -0.607425 + 0.57053 -0.0132602 -0.82117 + 0.526211 0.367078 -0.767043 + 0.255953 0.851907 -0.456883 + 0.196867 0.908003 -0.369829 + 0.108285 0.971275 -0.211896 + 0.110411 0.988345 0.104805 + -0.09114 0.902277 0.421415 + -0.217617 -0.908133 0.357683 + -0.3955 -0.36697 0.841969 + -0.270568 -0.847901 0.455914 + -0.42588 0.0134361 0.90468 + -0.377295 0.437938 0.816002 + -0.307597 0.611268 0.729202 + 0.108285 0.971275 -0.211896 + -0.09114 0.902277 0.421415 + 0.530112 -0.847905 0.00622406 + 0.418734 -0.908058 0.00959683 + 0.953902 -0.289033 -0.0808159 + 0.410505 0.902295 -0.131717 + 0.785363 0.611199 -0.0981869 + -0.237649 0.971275 0.0121703 + 0.220839 0.868044 0.444668 + 0.363349 -0.920389 0.144438 + 0.0526574 0.994334 0.092343 + 0.299295 -0.953691 0.0299405 + -0.0627607 0.997062 0.043925 + 0.294351 -0.955695 -0.00195075 + -0.164688 0.986184 0.0178753 + 0.335983 -0.94184 -0.007252 + -0.249885 0.968185 0.0132228 + 0.390776 -0.920472 -0.00499894 + -0.308884 0.951009 0.0131095 + 0.530112 -0.847905 0.00622406 + -0.237649 0.971275 0.0121703 + 0.96563 0.247163 -0.08043 + 0.785363 0.611199 -0.0981869 + 0 -3.42285e-08 -1 + 0.953902 -0.289033 -0.0808159 + 0.96563 0.247163 -0.08043 + 0.530112 -0.847905 0.00622406 + 0.299881 -0.95385 0.0155584 + -0.383207 0.923636 -0.00699035 + 0.229427 -0.973255 0.0117346 + -0.52364 0.851913 0.0067469 + -0.895423 -0.437738 -0.0812562 + -0.996418 -0.0132846 -0.0835122 + -0.785216 -0.611384 -0.0982097 + -0.926935 0.366925 -0.0784742 + -0.410498 -0.90229 -0.131776 + -0.418562 0.908137 0.00961976 + -0.0356915 -0.992146 -0.119887 + -0.638201 0.333474 0.693898 + 0.220839 0.868044 0.444668 + -0.411117 0.902313 0.129668 + 0.0526574 0.994334 0.092343 + -0.335252 0.941259 0.0404741 + -0.0627607 0.997062 0.043925 + -0.322675 0.946506 -0.0028282 + -0.164688 0.986184 0.0178753 + -0.342579 0.939451 -0.00849282 + -0.249885 0.968185 0.0132228 + -0.383207 0.923636 -0.00699035 + -0.308884 0.951009 0.0131095 + -0.52364 0.851913 0.0067469 + -0.237649 0.971275 0.0121703 + -0.418562 0.908137 0.00961976 + 0.0356918 0.992152 -0.119834 + -0.0356915 -0.992146 -0.119887 + 0.418734 -0.908058 0.00959683 + 0.229427 -0.973255 0.0117346 + 0.530112 -0.847905 0.00622406 + 0.299881 -0.95385 0.0155584 + 0.390776 -0.920472 -0.00499894 + 0.255083 -0.966815 0.0141819 + 0.335983 -0.94184 -0.007252 + 0.182559 -0.983022 0.0184317 + 0.294351 -0.955695 -0.00195075 + 0.0849881 -0.995664 0.037808 + 0.299295 -0.953691 0.0299405 + -0.0248973 -0.99449 0.101835 + 0.363349 -0.920389 0.144438 + -0.383207 0.923636 -0.00699035 + 0.299881 -0.95385 0.0155584 + -0.342579 0.939451 -0.00849282 + 0.255083 -0.966815 0.0141819 + -0.322675 0.946506 -0.0028282 + 0.182559 -0.983022 0.0184317 + -0.335252 0.941259 0.0404741 + 0.0849881 -0.995664 0.037808 + -0.411117 0.902313 0.129668 + -0.0248973 -0.99449 0.101835 + -0.638201 0.333474 0.693898 + -0.0780504 -0.934821 0.346436 + 0.220839 0.868044 0.444668 + 0.496883 -0.560299 0.6627 + 0.363349 -0.920389 0.144438 + -0.0780504 -0.934821 0.346436 + -0.0248973 -0.99449 0.101835 + 0.364167 0.0133356 0.931238 + -0.200941 0.908135 -0.367305 + 0.329766 -0.363483 0.871283 + -0.589636 0.363868 -0.721061 + 0.217572 -0.908136 0.357704 + -0.624427 -0.0131523 -0.780972 + -0.116595 0.969404 -0.216011 + 0.32448 0.612215 0.721045 + 0.368112 0.437499 0.82042 + 0.14999 0.909085 0.388674 + -0.0232682 0.99822 0.0549047 + -0.116595 0.969404 -0.216011 + 0.043252 -0.962024 -0.269518 + 0.0521928 -0.994826 -0.0871658 + -0.111416 0.961863 -0.249812 + -0.143997 0.952814 -0.267228 + -0.00946403 0.994145 -0.107635 + -0.077417 0.980999 -0.177898 + 0.167836 -0.947042 0.273755 + 0.184431 -0.927291 0.325756 + 0.111106 -0.982229 0.151264 + 0.145435 -0.960112 0.238817 + 0.331935 -0.396221 -0.856054 + 0.043252 -0.962024 -0.269518 + -0.0602089 0.955216 -0.289721 + -0.111416 0.961863 -0.249812 + 0.0760921 0.996713 -0.0278089 + -0.00946403 0.994145 -0.107635 + 0.176731 -0.955241 0.237236 + 0.167836 -0.947042 0.273755 + 0.0734959 -0.996567 0.0381115 + 0.111106 -0.982229 0.151264 + -0.186384 0.929425 -0.31848 + 0.227906 -0.947192 0.22558 + 0.569923 -0.814965 0.104975 + 0.250007 0.966975 0.0495554 + 0.829067 0.558714 0.0220733 + 0.175636 0.904922 -0.387644 + 0.569923 -0.814965 0.104975 + 0.150503 -0.958851 0.240737 + 0.145435 -0.960112 0.238817 + 0.20005 -0.905714 0.373713 + 0.184431 -0.927291 0.325756 + -0.128135 0.96244 -0.239355 + -0.077417 0.980999 -0.177898 + -0.186384 0.929425 -0.31848 + -0.143997 0.952814 -0.267228 + 0.0734959 -0.996567 0.0381115 + 0.0521928 -0.994826 -0.0871658 + 0.176731 -0.955241 0.237236 + 0.227906 -0.947192 0.22558 + 0.0760921 0.996713 -0.0278089 + 0.250007 0.966975 0.0495554 + -0.0602089 0.955216 -0.289721 + 0.175636 0.904922 -0.387644 + 0.331935 -0.396221 -0.856054 + 0.569923 -0.814965 0.104975 + 0.043252 -0.962024 -0.269518 + 0.227906 -0.947192 0.22558 + 0.0521928 -0.994826 -0.0871658 + -0.22566 0.901845 -0.368448 + -0.293212 0.809796 -0.50819 + -0.116595 0.969404 -0.216011 + -0.200941 0.908135 -0.367305 + -0.0232682 0.99822 0.0549047 + 0.364167 0.0133356 0.931238 + 0.368112 0.437499 0.82042 + 0.276663 -0.837322 0.471539 + -0.116595 0.969404 -0.216011 + -0.293212 0.809796 -0.50819 + -0.523223 -0.473678 -0.708426 + -0.624427 -0.0131523 -0.780972 + -0.104977 -0.991467 -0.0772917 + 0.217572 -0.908136 0.357704 + 0.150503 -0.958851 0.240737 + 0.276663 -0.837322 0.471539 + 0.20005 -0.905714 0.373713 + -0.116595 0.969404 -0.216011 + -0.128135 0.96244 -0.239355 + -0.22566 0.901845 -0.368448 + -0.186384 0.929425 -0.31848 + -0.186384 0.929425 -0.31848 + 0.111106 -0.982229 0.151264 + -0.22566 0.901845 -0.368448 + 0.145435 -0.960112 0.238817 + -0.293212 0.809796 -0.50819 + 0.150503 -0.958851 0.240737 + -0.406333 -0.723321 -0.558301 + -0.104977 -0.991467 -0.0772917 + -0.866043 9.02421e-05 0.49997 + -0.523223 -0.473678 -0.708426 + -0.406333 -0.723321 -0.558301 + -0.293212 0.809796 -0.50819 + 0.276675 0.960915 0.00963831 + -0.11825 0.991614 -0.0521353 + -0.686119 0.723851 -0.0726716 + 0 -3.42285e-08 -1 + -0.875061 0.473798 -0.0989123 + -0.11825 0.991614 -0.0521353 + 0.276675 0.960915 0.00963831 + -0.686119 0.723851 -0.0726716 + -0.579904 -0.814684 0.000624998 + -0.875061 0.473798 -0.0989123 + -0.988558 0.0133797 -0.150245 + -0.11825 0.991614 -0.0521353 + 0.418405 0.90821 0.0096058 + 0.276675 0.960915 0.00963831 + -0.283742 -0.958848 0.0100103 + -0.418742 -0.908054 0.00959687 + 0.119427 -0.991466 -0.0522639 + 0.988553 -0.0133794 -0.150281 + 0.87507 -0.473788 -0.0988802 + 0.586714 0.809794 0.000169588 + 0.369199 0.929348 -0.00222246 + -0.186484 -0.982241 0.0206619 + 0.431947 0.901829 -0.0112748 + -0.279625 -0.960087 0.00647707 + 0.586714 0.809794 0.000169588 + -0.283742 -0.958848 0.0100103 + 0.687171 -0.722843 -0.0727627 + 0.119427 -0.991466 -0.0522639 + 0 -3.42285e-08 -1 + 0.87507 -0.473788 -0.0988802 + 0.687171 -0.722843 -0.0727627 + 0.586714 0.809794 0.000169588 + 0.192605 0.981032 0.0219192 + 0.30338 0.952827 0.00898048 + 0.369199 0.929348 -0.00222246 + -0.06959 -0.996571 0.0447522 + -0.186484 -0.982241 0.0206619 + 0.210687 -0.962354 0.171715 + 0.0489416 -0.994862 0.0886288 + 0.272009 0.961871 0.0285503 + 0.30338 0.952827 0.00898048 + 0.0980293 0.994132 0.0457371 + 0.192605 0.981032 0.0219192 + -0.321094 -0.947008 0.00868283 + -0.374459 -0.927238 -0.00321144 + 0.575153 -0.396659 0.715444 + 0.210687 -0.962354 0.171715 + 0.280903 0.955257 0.0926128 + 0.272009 0.961871 0.0285503 + -0.0134098 0.99671 0.079932 + 0.0980293 0.994132 0.0457371 + -0.293829 -0.955238 0.0344292 + -0.321094 -0.947008 0.00868283 + -0.309043 -0.947296 0.0843934 + -0.375801 -0.815113 0.440868 + -0.167227 0.96721 0.191155 + -0.434465 0.559434 0.705885 + 0.248074 0.905453 0.344403 + -0.375801 -0.815113 0.440868 + 0.192605 0.981032 0.0219192 + 0.369199 0.929348 -0.00222246 + 0.271417 0.962424 0.0085789 + 0.431947 0.901829 -0.0112748 + 0.276675 0.960915 0.00963831 + 0.586714 0.809794 0.000169588 + 0.418405 0.90821 0.0096058 + 0.919262 0.363893 -0.15013 + -0.919456 -0.363437 -0.150044 + -0.418742 -0.908054 0.00959687 + -0.579904 -0.814684 0.000624998 + -0.283742 -0.958848 0.0100103 + -0.423685 -0.905708 -0.0136046 + -0.279625 -0.960087 0.00647707 + -0.374459 -0.927238 -0.00321144 + -0.186484 -0.982241 0.0206619 + -0.321094 -0.947008 0.00868283 + -0.06959 -0.996571 0.0447522 + -0.293829 -0.955238 0.0344292 + 0.0489416 -0.994862 0.0886288 + -0.309043 -0.947296 0.0843934 + 0.210687 -0.962354 0.171715 + -0.375801 -0.815113 0.440868 + 0.575153 -0.396659 0.715444 + 0.248074 0.905453 0.344403 + 0.280903 0.955257 0.0926128 + -0.167227 0.96721 0.191155 + -0.0134098 0.99671 0.079932 + -0.309043 -0.947296 0.0843934 + -0.293829 -0.955238 0.0344292 + -0.146648 0.960923 0.23478 + 0.104321 0.991612 -0.0763098 + 0.40663 0.722793 -0.558769 + 0.86605 -5.92713e-05 0.499958 + 0.52319 0.473699 -0.708436 + 0.104321 0.991612 -0.0763098 + -0.146648 0.960923 0.23478 + 0.40663 0.722793 -0.558769 + 0.28936 -0.814783 -0.502393 + 0.52319 0.473699 -0.708436 + 0.624474 0.0131488 -0.780935 + 0.104321 0.991612 -0.0763098 + -0.217678 0.908059 0.357834 + -0.146648 0.960923 0.23478 + -0.182632 0.929378 0.320782 + 0.0753465 -0.982261 -0.171716 + -0.206231 0.901806 0.379757 + 0.134106 -0.96011 -0.245367 + -0.279805 0.832653 0.477911 + 0.119896 -0.967551 -0.222417 + -0.367994 -0.437963 0.820225 + -0.324393 -0.61246 0.720876 + -0.150707 -0.908365 0.390077 + 0.119896 -0.967551 -0.222417 + 0.0232725 -0.99822 0.0549045 + 0.200955 -0.908133 -0.367303 + -0.364076 -0.0131468 0.931277 + -0.329697 0.363927 0.871124 + -0.279805 0.832653 0.477911 + -0.115339 0.98103 0.155811 + -0.159602 0.952811 0.25822 + -0.182632 0.929378 0.320782 + -0.00389462 -0.996567 -0.0826994 + 0.0753465 -0.982261 -0.171716 + -0.25468 -0.962148 0.0969985 + -0.101494 -0.994834 -0.00208959 + -0.160527 0.961816 0.221679 + -0.159602 0.952811 0.25822 + -0.0885436 0.994136 0.0620754 + -0.115339 0.98103 0.155811 + 0.153123 -0.947009 -0.282362 + 0.18995 -0.92724 -0.322716 + -0.907347 -0.396134 0.140708 + -0.25468 -0.962148 0.0969985 + -0.220642 0.95526 0.196964 + -0.160527 0.961816 0.221679 + -0.0622514 0.996734 -0.0514318 + -0.0885436 0.994136 0.0620754 + 0.116993 -0.955159 -0.272 + 0.153123 -0.947009 -0.282362 + 0.0814747 -0.947219 -0.310062 + -0.193636 -0.815527 -0.545363 + -0.0821355 0.967097 -0.240786 + -0.39436 0.558213 -0.729985 + -0.42264 0.905337 0.0417126 + -0.193636 -0.815527 -0.545363 + -0.115339 0.98103 0.155811 + -0.182632 0.929378 0.320782 + -0.143071 0.962461 0.230651 + -0.206231 0.901806 0.379757 + -0.146648 0.960923 0.23478 + -0.279805 0.832653 0.477911 + -0.217678 0.908059 0.357834 + -0.329697 0.363927 0.871124 + 0.589563 -0.363947 -0.721081 + 0.200955 -0.908133 -0.367303 + 0.28936 -0.814783 -0.502393 + 0.119896 -0.967551 -0.222417 + 0.223624 -0.90571 -0.360114 + 0.134106 -0.96011 -0.245367 + 0.18995 -0.92724 -0.322716 + 0.0753465 -0.982261 -0.171716 + 0.153123 -0.947009 -0.282362 + -0.00389462 -0.996567 -0.0826994 + 0.116993 -0.955159 -0.272 + -0.101494 -0.994834 -0.00208959 + 0.0814747 -0.947219 -0.310062 + -0.25468 -0.962148 0.0969985 + -0.193636 -0.815527 -0.545363 + -0.907347 -0.396134 0.140708 + -0.42264 0.905337 0.0417126 + -0.220642 0.95526 0.196964 + -0.0821355 0.967097 -0.240786 + -0.0622514 0.996734 -0.0514318 + 0.0814747 -0.947219 -0.310062 + 0.116993 -0.955159 -0.272 + -0.00249652 -0.529768 0.848139 + -0.0896217 -0.529239 0.843726 + -0.00920554 -0.538183 0.842778 + -0.0776841 -0.539691 0.838271 + -0.0167427 -0.552558 0.833306 + 0.0234106 -0.57019 0.821179 + 0.0141471 -0.556903 0.830457 + -0.0174359 -0.571963 0.820094 + -0.0167427 -0.552558 0.833306 + -0.123009 -0.554395 0.823113 + -0.0776841 -0.539691 0.838271 + -0.224045 -0.525307 0.820888 + -0.0896217 -0.529239 0.843726 + -0.200162 -0.514552 0.833769 + -0.180641 -0.516765 0.836853 + -0.332547 -0.493719 0.803526 + -0.302207 -0.512622 0.803673 + 0.0141471 -0.556903 0.830457 + 0.0234106 -0.57019 0.821179 + 0.132665 -0.569768 0.811027 + 0.0536519 -0.568152 0.821173 + 0.16033 -0.566804 0.808101 + -0.381051 -0.106005 0.918457 + -0.724095 -0.240477 0.646418 + -0.456744 -0.206723 0.865246 + -0.678293 -0.277194 0.680502 + -0.479238 -0.270442 0.83498 + -0.985494 -0.160244 0.0558851 + -0.869296 -0.241932 0.431037 + -0.884516 -0.169594 0.43459 + -0.724095 -0.240477 0.646418 + -0.744233 -0.168522 0.646311 + -0.381051 -0.106005 0.918457 + -0.593118 -0.558312 0.580085 + -0.633775 -0.405094 0.65896 + -0.819521 -0.465014 0.334883 + -0.842286 -0.362676 0.398774 + -0.923705 -0.382164 -0.0268301 + -0.947365 -0.320066 -0.00756417 + -0.827131 -0.305315 -0.471844 + -0.845341 -0.240841 -0.476859 + -0.887452 -0.176723 -0.425673 + -0.845341 -0.240841 -0.476859 + -0.967149 -0.254135 -0.00622649 + -0.947365 -0.320066 -0.00756417 + -0.847262 -0.30046 0.43803 + -0.842286 -0.362676 0.398774 + -0.652728 -0.322228 0.68565 + -0.633775 -0.405094 0.65896 + -0.492984 -0.309532 0.813115 + -0.503448 -0.427755 0.75071 + -0.290826 -0.376483 0.879591 + -0.360853 -0.493567 0.791313 + -0.089368 -0.488199 0.868145 + -0.533298 -0.54209 0.649409 + -0.593118 -0.558312 0.580085 + -0.503448 -0.427755 0.75071 + -0.633775 -0.405094 0.65896 + -0.827131 -0.305315 -0.471844 + -0.804596 -0.359538 -0.472607 + -0.923705 -0.382164 -0.0268301 + -0.873267 -0.484533 -0.0512998 + -0.819521 -0.465014 0.334883 + -0.739141 -0.639223 0.212286 + -0.593118 -0.558312 0.580085 + 0.174498 -0.520026 0.836136 + -0.089368 -0.488199 0.868145 + -0.0299403 -0.357323 0.933501 + -0.290826 -0.376483 0.879591 + -0.277856 -0.281898 0.91833 + -0.492984 -0.309532 0.813115 + -0.479238 -0.270442 0.83498 + -0.652728 -0.322228 0.68565 + -0.678293 -0.277194 0.680502 + -0.847262 -0.30046 0.43803 + -0.869296 -0.241932 0.431037 + -0.967149 -0.254135 -0.00622649 + -0.985494 -0.160244 0.0558851 + -0.887452 -0.176723 -0.425673 + -0.0472572 -0.0908147 -0.994746 + -0.329748 -0.16685 -0.929208 + -0.319426 -0.119126 -0.940094 + -0.443603 -0.170644 -0.879828 + -0.452295 -0.154297 -0.87842 + -0.722978 -0.193565 -0.663201 + -0.809977 -0.109391 -0.576169 + 0.0434821 -0.0891689 -0.995067 + -0.0472572 -0.0908147 -0.994746 + -0.137098 -0.0899742 -0.986463 + -0.319426 -0.119126 -0.940094 + -0.368415 -0.0538129 -0.928103 + -0.367932 -0.0654566 -0.927546 + -0.333555 -0.0329327 -0.942155 + -0.135512 -0.0217537 -0.990537 + -0.134102 -0.0228331 -0.990704 + -0.0409778 -0.0228958 -0.998898 + 0.0436051 -0.0235747 -0.998771 + 0.133139 -0.0230851 -0.990828 + 0.0434821 -0.0891689 -0.995067 + 0.0436051 -0.0235747 -0.998771 + -0.137098 -0.0899742 -0.986463 + -0.134102 -0.0228331 -0.990704 + -0.368415 -0.0538129 -0.928103 + -0.333555 -0.0329327 -0.942155 + -0.367932 -0.0654566 -0.927546 + -0.876862 -0.454415 0.156905 + -0.955932 -0.0752076 -0.28379 + -0.0275091 -0.938885 0.34313 + -0.0844805 -0.289422 -0.953466 + -0.0660147 -0.870455 -0.487801 + -0.048197 -0.767577 -0.639142 + 0.0480553 -0.446222 0.893631 + -0.0660147 -0.870455 -0.487801 + 0.0446536 -0.424307 0.904417 + -0.0275091 -0.938885 0.34313 + 0.0429349 -0.356401 0.933346 + -0.876862 -0.454415 0.156905 + -0.827248 -0.178552 0.53271 + -0.955932 -0.0752076 -0.28379 + 0.0440425 -0.479703 0.876325 + 0.0480553 -0.446222 0.893631 + -0.0403046 -0.910676 -0.411151 + -0.048197 -0.767577 -0.639142 + -0.0667347 -0.235105 -0.969676 + -0.0755337 -0.247675 -0.965894 + -0.0668495 -0.155454 -0.985579 + -0.0667347 -0.235105 -0.969676 + -0.07412 -0.165295 -0.983455 + -0.0755337 -0.247675 -0.965894 + -0.081767 -0.184735 -0.979381 + -0.0844805 -0.289422 -0.953466 + -0.985968 -0.0294639 -0.164316 + -0.955932 -0.0752076 -0.28379 + -0.954209 -0.0621457 0.292615 + -0.827248 -0.178552 0.53271 + 0.0503884 -0.210216 0.976356 + 0.0429349 -0.356401 0.933346 + 0.0555889 -0.23121 0.971314 + 0.0446536 -0.424307 0.904417 + 0.0488951 -0.227598 0.972527 + 0.0480553 -0.446222 0.893631 + 0.0430969 -0.283372 0.958041 + 0.0440425 -0.479703 0.876325 + 0.044036 -0.654875 0.754453 + 0.0287411 -0.164135 0.986019 + -0.992135 0.081055 0.0953881 + 0.0176928 0.248918 0.968363 + 0.0247033 0.123524 0.992034 + 0.0606199 0.0448909 0.997151 + 0.0487436 0.0424028 0.997911 + 0.0579236 0.0829841 0.994866 + 0.0247033 0.123524 0.992034 + 0.0415602 0.545301 0.837209 + 0.0176928 0.248918 0.968363 + 0.0607833 0.0459946 0.997091 + 0.0287411 -0.164135 0.986019 + 0.0939156 -0.889156 0.447863 + 0.044036 -0.654875 0.754453 + -0.994493 -0.0137812 -0.103888 + -0.992629 0.00947062 -0.120822 + 0.0177548 0.0367424 0.999167 + -0.992323 0.0489954 0.113557 + 0.0247033 0.123524 0.992034 + -0.479025 -0.121388 0.869368 + -0.755465 -0.284964 0.589974 + -0.524173 -0.151781 0.837977 + -0.870796 -0.297293 0.391576 + -0.877245 -0.240959 0.415187 + -0.895166 -0.249381 0.369441 + -0.93074 -0.156398 0.330548 + -0.992473 -0.0279538 0.11923 + -0.985646 -0.0625701 0.156805 + -0.987615 -0.0737819 0.138464 + -0.690509 -0.122834 0.712818 + -0.481601 -0.145843 0.86417 + -0.983977 0.0210049 -0.177053 + -0.990641 0.0401434 -0.130457 + -0.979004 0.00247362 -0.203826 + -0.984465 0.00313904 -0.175553 + -0.997156 0.00169472 -0.0753469 + -0.995586 0.00117304 -0.0938471 + -0.999826 0.00072722 0.0186484 + -0.999695 -0.0211153 0.0128037 + -0.992473 -0.0279538 0.11923 + -0.997851 -0.0508555 0.041325 + -0.985646 -0.0625701 0.156805 + -0.853425 0.00231008 0.521211 + -0.850988 0.000533671 0.525184 + -0.953129 0.0117644 0.302334 + -0.953627 0.000287598 0.300991 + -0.992473 -0.0279538 0.11923 + -0.994318 -0.00675316 0.106233 + -0.999826 0.00072722 0.0186484 + -0.999869 -0.0027433 0.0159528 + -0.997156 0.00169472 -0.0753469 + -0.99585 0.00140442 -0.0909984 + -0.979004 0.00247362 -0.203826 + -0.974228 0.00339082 -0.225539 + -0.983977 0.0210049 -0.177053 + -0.847585 -0.113581 0.518362 + -0.935343 -0.00467757 0.353712 + -0.920362 -0.122033 0.371539 + -0.971963 -0.0792859 0.221363 + -0.93074 -0.156398 0.330548 + -0.978488 -0.0796385 0.190313 + -0.720248 -0.0893213 0.687943 + -0.479025 -0.121388 0.869368 + -0.690509 -0.122834 0.712818 + -0.524173 -0.151781 0.837977 + -0.481601 -0.145843 0.86417 + -0.93074 -0.156398 0.330548 + -0.987615 -0.0737819 0.138464 + -0.978488 -0.0796385 0.190313 + -0.992473 -0.0279538 0.11923 + -0.981481 -0.0567145 0.182972 + -0.953129 0.0117644 0.302334 + -0.935343 -0.00467757 0.353712 + -0.853425 0.00231008 0.521211 + -0.847585 -0.113581 0.518362 + -0.862272 -0.106485 0.495124 + -0.720248 -0.0893213 0.687943 + -0.921939 -0.0894273 0.37687 + -0.690509 -0.122834 0.712818 + -0.966709 -0.0738314 0.244997 + -0.985646 -0.0625701 0.156805 + -0.994472 -0.0414841 0.0964616 + -0.997851 -0.0508555 0.041325 + -0.995559 -0.0320434 -0.0885233 + -0.993209 -0.0321922 -0.111799 + -0.757929 -0.472305 0.449969 + -0.755465 -0.284964 0.589974 + -0.372169 -0.174851 0.911547 + -0.479025 -0.121388 0.869368 + -0.373075 -0.0819341 0.924176 + -0.720248 -0.0893213 0.687943 + -0.68809 -0.0918524 0.719788 + -0.862272 -0.106485 0.495124 + -0.707129 -0.00218749 0.707081 + -0.850988 0.000533671 0.525184 + -0.657723 0.00220639 0.753257 + -0.853425 0.00231008 0.521211 + -0.728121 0.0160278 0.685261 + -0.847585 -0.113581 0.518362 + -0.731433 -0.100796 0.674422 + -0.838492 -0.148569 0.524269 + -0.9809 0.0184048 -0.193642 + -0.974228 0.00339082 -0.225539 + -0.994609 0.00816789 -0.103378 + -0.99585 0.00140442 -0.0909984 + -0.999998 0.00130106 0.00129958 + -0.999869 -0.0027433 0.0159528 + -0.988054 -0.00531886 0.154014 + -0.994318 -0.00675316 0.106233 + -0.963879 -0.00259773 0.266329 + -0.953627 0.000287598 0.300991 + -0.921507 0.00530351 0.388326 + -0.848033 -0.00687413 0.529898 + -0.0596297 0.0202148 0.998016 + -0.0678262 -0.905149 0.419649 + -0.11829 -0.901835 0.415573 + -0.0592699 -0.118953 0.991129 + -0.0924685 -0.149291 0.98446 + 0.0810852 0.0126641 -0.996627 + 0.0775088 0.0128815 -0.996908 + 0.0986057 0.0129368 -0.995043 + 0.0777446 0.0137064 -0.996879 + 0.0918541 0.0143549 -0.995669 + 0.694784 0.0284403 -0.718656 + 0.976101 -0.00272553 -0.217299 + 0.0918541 0.0143549 -0.995669 + 0.994014 0.00140025 -0.10924 + 0.0986057 0.0129368 -0.995043 + 0.881151 0.00591896 -0.472798 + 0.0810852 0.0126641 -0.996627 + 0.998949 0.00534929 0.0455204 + 0.994014 0.00140025 -0.10924 + 0.978135 0.0348135 0.205037 + 0.976101 -0.00272553 -0.217299 + 0.921385 0.0858544 0.379049 + 0.694784 0.0284403 -0.718656 + -0.0349207 0.0784638 0.996305 + 0.998949 0.00534929 0.0455204 + -0.0353807 0.116566 0.992553 + 0.978135 0.0348135 0.205037 + -0.0231966 0.192501 0.981023 + 0.921385 0.0858544 0.379049 + -0.0270442 0.246925 0.968657 + 0.694784 0.0284403 -0.718656 + 0.106712 0.165194 -0.980471 + 0.0918541 0.0143549 -0.995669 + 0.096163 0.137558 -0.985815 + 0.0777446 0.0137064 -0.996879 + -0.0584034 0.0439709 0.997324 + -0.0501612 0.117046 0.991859 + -0.0353807 0.116566 0.992553 + -0.0491522 0.141373 0.988735 + -0.0349207 0.0784638 0.996305 + 0.833035 -0.185907 -0.521049 + 0.775072 -0.130475 -0.618255 + 0.933285 -0.0905707 -0.347529 + 0.85853 -0.0515126 -0.510169 + 0.951303 -0.0283475 -0.30695 + 0.901116 -0.0233255 -0.43295 + 0.629049 -0.45432 0.630786 + 0.447637 -0.815568 0.3667 + 0.607484 -0.697813 0.3795 + -0.623015 -0.661214 -0.417909 + -0.431979 -0.626569 -0.648695 + -0.535286 -0.408665 -0.739231 + -0.255563 -0.369063 -0.893577 + -0.267744 -0.282645 -0.9211 + 0.0137247 -0.270755 -0.96255 + 0.00402735 -0.245895 -0.969288 + 0.285474 -0.252676 -0.924478 + 0.289143 -0.202907 -0.935535 + 0.58418 -0.221476 -0.780821 + 0.537421 -0.182549 -0.823319 + 0.833035 -0.185907 -0.521049 + 0.714032 -0.189908 -0.673864 + 0.775072 -0.130475 -0.618255 + 0.322279 -0.0074673 -0.946615 + 0.85853 -0.0515126 -0.510169 + 0.349502 -0.0350416 -0.93628 + 0.775072 -0.130475 -0.618255 + 0.385262 -0.0863701 -0.918756 + 0.714032 -0.189908 -0.673864 + 0.406087 -0.130527 -0.904464 + 0.537421 -0.182549 -0.823319 + 0.246712 -0.162271 -0.955406 + 0.289143 -0.202907 -0.935535 + 0.00262673 -0.195334 -0.980733 + 0.00402735 -0.245895 -0.969288 + -0.277362 -0.254016 -0.926578 + -0.267744 -0.282645 -0.9211 + -0.553241 -0.316457 -0.770571 + -0.535286 -0.408665 -0.739231 + -0.764846 -0.457569 -0.453477 + -0.623015 -0.661214 -0.417909 + -0.731335 -0.67239 -0.114193 + 0.447637 -0.815568 0.3667 + 0.460629 -0.578272 0.673367 + 0.629049 -0.45432 0.630786 + 0.841571 0.0233655 0.53964 + 0.916576 0.0183984 0.399437 + 0.919547 0.0197596 0.392482 + 0.957536 0.0145797 0.287946 + 0.957354 0.016832 0.288427 + 0.961294 0.00283345 0.275511 + 0.957536 0.0145797 0.287946 + 0.941109 0.00461426 0.338071 + 0.916576 0.0183984 0.399437 + 0.842295 0.0206886 0.53862 + 0.841571 0.0233655 0.53964 + 0.659317 0.0313154 0.751213 + 0.841571 0.0233655 0.53964 + 0.839355 0.0737439 0.538558 + 0.919547 0.0197596 0.392482 + 0.931949 0.0853081 0.35241 + 0.957354 0.016832 0.288427 + 0.959976 0.0275583 0.278723 + 0.957536 0.0145797 0.287946 + 0.963024 0.0133388 0.269084 + 0.961294 0.00283345 0.275511 + -0.0267051 0.0473933 0.998519 + -0.0737925 -0.210135 0.974884 + 0.00430445 -0.888871 0.458138 + -0.0637859 -0.654829 0.753081 + -0.0445198 0.0414398 0.998149 + 0.98264 0.0221484 -0.184194 + 0.987904 0.0353684 -0.150978 + -0.0421866 0.182759 0.982252 + 0.795957 0.129851 0.591263 + -0.0445198 0.0414398 0.998149 + 0.864846 0.129602 0.48502 + 0.00430445 -0.888871 0.458138 + -0.0100537 0.133893 0.990945 + -0.0267051 0.0473933 0.998519 + -0.0100537 0.133893 0.990945 + 0.864846 0.129602 0.48502 + 0.996371 0.0334657 -0.078266 + 0.987904 0.0353684 -0.150978 + 0.946605 0.00586519 -0.322342 + 0.945913 0.00615024 -0.324362 + -0.0560772 0.075651 0.995556 + -0.0599071 0.105281 0.992636 + -0.056046 0.110219 0.992326 + -0.104122 0.107865 0.988698 + -0.0467069 0.104809 0.993395 + -0.941067 0.0914275 0.325628 + -0.840826 0.0749688 0.536088 + -0.842964 0.0753623 0.532666 + -0.662456 0.0518136 0.747307 + -0.665763 0.0516754 0.744372 + -0.499942 0.0332125 0.865422 + -0.569849 0.0421768 0.820666 + -0.366032 0.050979 0.929205 + -0.366032 0.050979 0.929205 + -0.575882 0.0708199 0.81446 + -0.569849 0.0421768 0.820666 + -0.666211 0.0770506 0.741772 + -0.665763 0.0516754 0.744372 + -0.844812 0.0718266 0.530221 + -0.842964 0.0753623 0.532666 + -0.916098 0.0859727 0.391629 + -0.941067 0.0914275 0.325628 + -0.358695 0.0179448 0.933282 + -0.248705 0.0427871 0.967634 + -0.366032 0.050979 0.929205 + -0.373841 0.0600696 0.925546 + -0.575882 0.0708199 0.81446 + -0.490264 0.016838 0.871411 + -0.664886 0.0118515 0.746851 + -0.482261 0.015562 0.875889 + -0.665508 0.0124609 0.746287 + -0.515484 0.0146623 0.856774 + -0.917104 0.00664664 0.398592 + -0.843482 0.00840599 0.537092 + -0.843142 0.00518595 0.537666 + -0.664886 0.0118515 0.746851 + -0.663882 0.0288003 0.747283 + -0.490264 0.016838 0.871411 + -0.568044 0.016713 0.822828 + -0.515484 0.0146623 0.856774 + -0.665908 0.0165338 0.745851 + -0.665508 0.0124609 0.746287 + -0.843878 0.00999302 0.536442 + -0.843482 0.00840599 0.537092 + -0.943566 0.00485137 0.331149 + -0.917104 0.00664664 0.398592 + -0.363129 0.0387841 0.930931 + -0.490264 0.016838 0.871411 + -0.35875 0.0347467 0.932787 + -0.482261 0.015562 0.875889 + -0.360879 0.0169344 0.932459 + -0.515484 0.0146623 0.856774 + -0.368773 0.0196256 0.929312 + -0.568044 0.016713 0.822828 + -0.607333 -0.319841 0.727219 + -0.413954 -0.437341 0.798358 + -0.571944 -0.281221 0.770581 + -0.357797 -0.370342 0.857221 + -0.282834 -0.281789 0.916842 + -0.413954 -0.437341 0.798358 + 0.68563 -0.0928658 0.722002 + 0.36293 -0.0683993 0.929303 + 0.690821 -0.107981 0.714917 + 0.447709 -0.127728 0.88501 + 0.801836 -0.147735 0.578993 + 0.789259 -0.169034 0.590337 + 0.0452968 -0.0576538 0.997308 + 0.168564 -0.0560347 0.984097 + 0.239578 -0.0654054 0.968672 + 0.36293 -0.0683993 0.929303 + 0.380368 -0.0887057 0.920571 + 0.68563 -0.0928658 0.722002 + -0.668907 -0.491267 0.557872 + -0.326605 -0.23692 0.914985 + -0.298502 -0.53461 0.790626 + -0.192305 -0.0628228 0.979322 + 0.0452968 -0.0576538 0.997308 + -0.0249156 -0.0493991 0.998468 + 0.168564 -0.0560347 0.984097 + 0.0474124 -0.0419368 0.997995 + 0.22227 -0.0517192 0.973612 + 0.140785 -0.111666 0.983723 + 0.360726 -0.118306 0.925138 + -0.508922 -0.483343 0.712305 + -0.577274 -0.465802 0.670659 + -0.581482 -0.492771 0.647345 + -0.709663 -0.487208 0.508927 + -0.626719 -0.497908 0.599425 + -0.668907 -0.491267 0.557872 + -0.520066 -0.517385 0.679591 + -0.298502 -0.53461 0.790626 + -0.42764 -0.52376 0.736749 + -0.282903 -0.552176 0.784262 + -0.419023 -0.503394 0.755655 + -0.271211 -0.531337 0.802575 + -0.357794 -0.502706 0.786937 + -0.462422 -0.462162 0.756685 + -0.577274 -0.465802 0.670659 + -0.475114 -0.477534 0.739072 + -0.508922 -0.483343 0.712305 + -0.419023 -0.503394 0.755655 + -0.581482 -0.492771 0.647345 + -0.42764 -0.52376 0.736749 + -0.520066 -0.517385 0.679591 + -0.325691 -0.529294 0.783437 + -0.298502 -0.53461 0.790626 + -0.151768 -0.564641 0.811262 + -0.00349449 -0.53744 0.843295 + -0.858053 -0.244977 0.451366 + -0.870881 -0.284709 0.400633 + -0.775884 -0.264643 0.572685 + -0.577274 -0.465802 0.670659 + -0.607333 -0.319841 0.727219 + -0.462422 -0.462162 0.756685 + -0.413954 -0.437341 0.798358 + -0.679861 -0.241784 0.692336 + -0.813816 -0.245471 0.526732 + -0.791784 -0.252066 0.556364 + -0.875346 -0.232908 0.423701 + -0.858053 -0.244977 0.451366 + -0.707173 -0.131733 0.69466 + -0.633911 -0.222243 0.740787 + -0.714836 -0.161938 0.680283 + -0.619124 -0.25195 0.743778 + -0.609648 -0.282513 0.740618 + -0.67426 -0.241518 0.697885 + -0.67426 -0.241518 0.697885 + -0.633911 -0.222243 0.740787 + -0.623237 -0.199022 0.756284 + -0.707173 -0.131733 0.69466 + -0.698956 -0.08943 0.709551 + -0.36327 -0.0833278 0.92795 + -0.685617 -0.135347 0.71527 + -0.621786 -0.092849 0.777664 + -0.620384 -0.0841702 0.779769 + -0.574002 -0.0622927 0.816481 + -0.626953 0.0143578 0.778925 + -0.371269 -0.0277581 0.92811 + -0.200338 -0.0436917 0.978752 + -0.371269 -0.0277581 0.92811 + -0.36327 -0.0833278 0.92795 + -0.577179 -0.0783579 0.81285 + -0.698956 -0.08943 0.709551 + -0.621786 -0.092849 0.777664 + -0.623237 -0.199022 0.756284 + -0.685617 -0.135347 0.71527 + -0.67426 -0.241518 0.697885 + -0.0124821 -0.0187631 0.999746 + -0.390252 -0.0764808 0.917526 + -0.200338 -0.0436917 0.978752 + -0.201602 -0.0197952 0.979267 + -0.371269 -0.0277581 0.92811 + -0.48709 0.00950341 0.8733 + -0.626953 0.0143578 0.778925 + -0.215756 -0.214256 0.952651 + -0.200338 -0.0436917 0.978752 + -0.282834 -0.281789 0.916842 + -0.36327 -0.0833278 0.92795 + -0.571944 -0.281221 0.770581 + -0.609648 -0.282513 0.740618 + -0.679861 -0.241784 0.692336 + -0.67426 -0.241518 0.697885 + -0.813816 -0.245471 0.526732 + -0.685617 -0.135347 0.71527 + 0.197563 -0.0387765 0.979523 + 0.340508 -0.0645907 0.938021 + 0.195748 -0.0301121 0.980192 + 0.377137 -0.0227927 0.925877 + 0.181215 0.00825169 0.983409 + -0.396711 -0.326483 0.857921 + -0.390252 -0.0764808 0.917526 + 0.345728 -0.0971205 0.933295 + -0.0124821 -0.0187631 0.999746 + 0.195748 -0.0301121 0.980192 + 0.0123194 -0.0528062 0.998529 + 0.197563 -0.0387765 0.979523 + 0.191396 -0.180947 0.964689 + 0.340508 -0.0645907 0.938021 + 0.28666 -0.285533 0.914493 + -0.661782 0.0310885 0.749051 + -0.841206 0.0260663 0.540086 + -0.841923 0.0233038 0.539094 + -0.917923 0.0200098 0.396253 + -0.917801 0.0193473 0.396569 + -0.957739 0.0159022 0.287198 + -0.993934 0.0120516 0.10932 + -0.943566 0.00485137 0.331149 + -0.957739 0.0159022 0.287198 + -0.917104 0.00664664 0.398592 + -0.917801 0.0193473 0.396569 + -0.843142 0.00518595 0.537666 + -0.841923 0.0233038 0.539094 + -0.663882 0.0288003 0.747283 + -0.661782 0.0310885 0.749051 + -0.563437 0.0336535 0.825473 + -0.999642 0.0255245 0.00804129 + -0.993934 0.0120516 0.10932 + -0.985597 0.02978 0.166466 + -0.957739 0.0159022 0.287198 + -0.957464 0.0372579 0.286136 + -0.917923 0.0200098 0.396253 + -0.914995 0.0795597 0.395544 + -0.841206 0.0260663 0.540086 + -0.0670317 0.0356585 0.997113 + -0.13219 0.0266787 0.990865 + -0.168895 0.0398745 0.984827 + -0.195505 0.00732693 0.980675 + -0.356354 0.0355987 0.933673 + -0.358695 0.0179448 0.933282 + -0.372092 0.0349757 0.927537 + -0.511505 0.0345509 0.858586 + -0.561345 0.0345666 0.82686 + -0.659753 0.0542372 0.749523 + -0.991186 0.101888 -0.0846649 + -0.999642 0.0255245 0.00804129 + -0.994659 0.103166 0.00324428 + -0.985597 0.02978 0.166466 + -0.985733 0.100983 0.134659 + -0.957464 0.0372579 0.286136 + -0.941067 0.0914275 0.325628 + -0.914995 0.0795597 0.395544 + -0.840826 0.0749688 0.536088 + -0.841206 0.0260663 0.540086 + -0.659753 0.0542372 0.749523 + -0.661782 0.0310885 0.749051 + -0.561345 0.0345666 0.82686 + -0.563437 0.0336535 0.825473 + -0.372092 0.0349757 0.927537 + -0.363129 0.0387841 0.930931 + -0.356354 0.0355987 0.933673 + -0.35875 0.0347467 0.932787 + -0.168895 0.0398745 0.984827 + -0.162002 0.0364982 0.986115 + -0.0670317 0.0356585 0.997113 + -0.156033 0.0215649 0.987516 + 0.0125749 0.0219446 0.99968 + -0.225025 0.0479766 0.973171 + 0.0535173 0.0219179 0.998326 + 0.786471 0.0885148 0.611252 + -0.964618 0.100529 -0.243733 + -0.991186 0.101888 -0.0846649 + -0.990131 0.101505 -0.0966261 + -0.994659 0.103166 0.00324428 + -0.99467 0.103105 -0.00130525 + -0.985733 0.100983 0.134659 + -0.98922 0.103371 0.103726 + -0.941067 0.0914275 0.325628 + -0.956108 0.100833 0.275119 + -0.916098 0.0859727 0.391629 + -0.916921 0.0982204 0.386794 + -0.844812 0.0718266 0.530221 + -0.848244 0.0916083 0.521623 + -0.666211 0.0770506 0.741772 + -0.674039 0.0791964 0.734438 + -0.575882 0.0708199 0.81446 + -0.584161 0.0690428 0.808696 + -0.373841 0.0600696 0.925546 + -0.589246 0.0903576 0.802885 + 0.0235946 -0.977451 -0.209839 + 0.0675181 -0.238562 -0.968777 + 0.0542085 -0.960846 -0.271728 + 0.0754762 -0.256879 -0.963492 + 0.0871867 -0.5958 -0.798387 + 0.0815253 -0.230768 -0.969587 + 0.998549 -0.0248838 -0.0477563 + 0.998901 -0.0100926 -0.0457788 + -0.0445717 -0.449676 0.892079 + 0.0467379 -0.808727 -0.586324 + 0.0235946 -0.977451 -0.209839 + 0.0679734 -0.268753 -0.960808 + 0.0675181 -0.238562 -0.968777 + 0.998534 -0.023757 0.0486273 + 0.957293 -0.0713337 0.280181 + -0.030205 -0.506504 0.861709 + -0.0475118 -0.258787 0.964765 + -0.0469375 -0.401158 0.914805 + -0.0563052 -0.22363 0.973046 + -0.0567253 -0.367233 0.928398 + -0.051491 -0.229789 0.971877 + -0.025792 -0.0765759 0.99673 + -0.0414759 -0.288139 0.95669 + -0.051491 -0.229789 0.971877 + -0.0445717 -0.449676 0.892079 + -0.0567253 -0.367233 0.928398 + 0.0235946 -0.977451 -0.209839 + -0.0469375 -0.401158 0.914805 + 0.0542085 -0.960846 -0.271728 + -0.030205 -0.506504 0.861709 + 0.0871867 -0.5958 -0.798387 + 0.998534 -0.023757 0.0486273 + 0.998549 -0.0248838 -0.0477563 + 0.994402 0.101402 0.0297199 + 0.999706 0.0241005 -0.00279697 + 0.994794 0.101892 -0.00161881 + 0.994517 0.0217391 -0.102292 + 0.990021 0.0998908 -0.099397 + 0.997388 4.13413e-06 -0.072233 + 0.997208 0.00814001 -0.0742341 + 0.999936 0.00932128 0.00645461 + 0.999706 0.0241005 -0.00279697 + 0.999387 0.0182984 0.0298569 + 0.994402 0.101402 0.0297199 + 0.994206 0.000209036 -0.107488 + 0.997388 4.13413e-06 -0.072233 + 0.999972 3.20513e-05 0.0074569 + 0.999936 0.00932128 0.00645461 + 0.999525 0.00810802 0.0297262 + 0.999387 0.0182984 0.0298569 + 0.994577 0.000926592 -0.103998 + 0.994206 0.000209036 -0.107488 + 0.999991 -1.4829e-05 -0.0041689 + 0.999972 3.20513e-05 0.0074569 + 0.999579 0.00052857 0.0290109 + 0.999525 0.00810802 0.0297262 + 0.99449 0.000933824 0.104831 + 0.961294 0.00283345 0.275511 + 0.937032 0.00412436 0.34922 + 0.941109 0.00461426 0.338071 + 0.843049 0.00623522 0.537801 + 0.842295 0.0206886 0.53862 + 0.664049 0.00887219 0.747636 + 0.661415 0.029451 0.749442 + 0.995807 -0.00520529 -0.0913305 + 0.994577 0.000926592 -0.103998 + 0.999994 2.76358e-05 -0.00348043 + 0.999991 -1.4829e-05 -0.0041689 + 0.99449 0.000933824 0.104831 + 0.999579 0.00052857 0.0290109 + 0.961294 0.00283345 0.275511 + 0.999525 0.00810802 0.0297262 + 0.963024 0.0133388 0.269084 + 0.999387 0.0182984 0.0298569 + 0.959976 0.0275583 0.278723 + 0.994402 0.101402 0.0297199 + 0.983303 0.101767 -0.150862 + 0.990021 0.0998908 -0.099397 + 0.987562 0.0297641 -0.154386 + 0.994517 0.0217391 -0.102292 + 0.987277 0.00727477 -0.158843 + 0.997208 0.00814001 -0.0742341 + 0.986776 0.000592384 -0.162091 + 0.997388 4.13413e-06 -0.072233 + 0.982683 0.00114203 -0.185293 + 0.994206 0.000209036 -0.107488 + 0.984379 0.00184246 -0.176055 + 0.994577 0.000926592 -0.103998 + 0.991929 -0.00684306 -0.126613 + 0.995807 -0.00520529 -0.0913305 + 0.989563 -0.0289836 -0.141153 + 0.954889 0.0982374 0.280243 + 0.98112 0.0981067 0.16667 + 0.981973 0.101708 0.159328 + 0.994764 0.101842 0.00857875 + 0.994762 0.101899 0.00813227 + 0.992193 0.103153 -0.070095 + 0.992559 0.100782 -0.0683339 + 0.972325 0.0979042 -0.21213 + 0.973292 0.101489 -0.205917 + 0.5412 0.19576 -0.81779 + 0.55323 0.0858801 -0.82859 + 0.944039 0.091932 0.316762 + 0.957295 0.0961242 0.272664 + 0.935659 0.0879406 0.341772 + 0.98112 0.0981067 0.16667 + 0.938996 0.0896355 0.332043 + 0.954889 0.0982374 0.280243 + 0.840661 0.0739234 0.536493 + 0.944039 0.091932 0.316762 + 0.842018 0.0745387 0.534275 + 0.935659 0.0879406 0.341772 + 0.843436 0.0726022 0.532301 + 0.938996 0.0896355 0.332043 + 0.661105 0.051422 0.748529 + 0.840661 0.0739234 0.536493 + 0.663051 0.0512163 0.74682 + 0.842018 0.0745387 0.534275 + 0.665216 0.0510877 0.744901 + 0.843436 0.0726022 0.532301 + 0.981196 -0.0809432 -0.175222 + -0.025792 -0.0765759 0.99673 + 0.989563 -0.0289836 -0.141153 + -0.0232947 0.0555436 0.998185 + 0.991929 -0.00684306 -0.126613 + 0.989455 0.0419733 0.138625 + 0.984379 0.00184246 -0.176055 + 0.996371 0.0334657 -0.078266 + 0.982683 0.00114203 -0.185293 + 0.946605 0.00586519 -0.322342 + 0.986776 0.000592384 -0.162091 + 0.945913 0.00615024 -0.324362 + 0.987277 0.00727477 -0.158843 + 0.959248 0.0103612 -0.282374 + 0.987562 0.0297641 -0.154386 + 0.972325 0.0979042 -0.21213 + 0.983303 0.101767 -0.150862 + 0.992193 0.103153 -0.070095 + 0.990021 0.0998908 -0.099397 + 0.994764 0.101842 0.00857875 + 0.994794 0.101892 -0.00161881 + 0.98112 0.0981067 0.16667 + 0.994402 0.101402 0.0297199 + 0.957295 0.0961242 0.272664 + 0.959976 0.0275583 0.278723 + 0.944039 0.091932 0.316762 + 0.931949 0.0853081 0.35241 + 0.840661 0.0739234 0.536493 + 0.839355 0.0737439 0.538558 + 0.661105 0.051422 0.748529 + 0.659317 0.0313154 0.751213 + 0.992559 -0.0269304 -0.118749 + 0.951303 -0.0283475 -0.30695 + 0.962158 -0.0253848 -0.271306 + 0.901116 -0.0233255 -0.43295 + 0.960703 -0.160812 -0.22625 + 0.0530712 -0.486695 0.871958 + 0.149666 -0.320637 0.935303 + 0.950349 0.00686749 0.311111 + 0.978983 -0.0161592 0.2033 + 0.971751 0.000542428 0.236008 + 0.991708 -0.0369546 0.123081 + 0.988931 -0.0065173 0.14823 + 0.99879 -0.0352564 0.0342942 + 0.999909 -0.00277013 0.0132115 + 0.99248 -0.0261592 -0.119581 + 0.847532 0.00618792 0.530708 + 0.950349 0.00686749 0.311111 + 0.919933 0.00477814 0.392047 + 0.971751 0.000542428 0.236008 + 0.96331 -0.00338959 0.268368 + 0.988931 -0.0065173 0.14823 + 0.993284 -0.00654551 0.115513 + 0.999909 -0.00277013 0.0132115 + 0.668307 0.0124996 0.743781 + 0.845469 0.00793213 0.533966 + 0.665125 0.0136148 0.746608 + 0.843704 0.0123032 0.536668 + 0.665197 0.0128107 0.746558 + 0.843544 0.00734294 0.537009 + 0.66484 0.0115679 0.746896 + 0.664436 0.0116312 0.747255 + 0.66484 0.0115679 0.746896 + 0.843282 0.00725653 0.537423 + 0.843544 0.00734294 0.537009 + 0.94838 0.00322739 0.31712 + 0.917193 0.00481275 0.398413 + 0.96331 -0.00338959 0.268368 + 0.918373 0.00415198 0.395693 + 0.919933 0.00477814 0.392047 + 0.845469 0.00793213 0.533966 + 0.847532 0.00618792 0.530708 + 0.668307 0.0124996 0.743781 + 0.98291 -0.0304406 -0.181554 + 0.998901 -0.0100926 -0.0457788 + 0.080737 -0.158587 -0.984038 + 0.0815253 -0.230768 -0.969587 + 0.0740991 -0.169467 -0.982746 + 0.0754762 -0.256879 -0.963492 + 0.0686322 -0.159383 -0.984828 + 0.0675181 -0.238562 -0.968777 + 0.0732711 -0.169214 -0.982852 + 0.0679734 -0.268753 -0.960808 + 0.0893518 -0.24168 -0.966233 + 0.0467379 -0.808727 -0.586324 + 0.151717 -0.894506 -0.420525 + -0.0445717 -0.449676 0.892079 + 0.0530712 -0.486695 0.871958 + -0.0414759 -0.288139 0.95669 + 0.149666 -0.320637 0.935303 + -0.025792 -0.0765759 0.99673 + 0.977636 -0.108603 -0.18009 + 0.981196 -0.0809432 -0.175222 + 0.962158 -0.0253848 -0.271306 + 0.989563 -0.0289836 -0.141153 + 0.99248 -0.0261592 -0.119581 + 0.995807 -0.00520529 -0.0913305 + 0.999909 -0.00277013 0.0132115 + 0.999994 2.76358e-05 -0.00348043 + 0.993284 -0.00654551 0.115513 + 0.99449 0.000933824 0.104831 + 0.94838 0.00322739 0.31712 + 0.937032 0.00412436 0.34922 + 0.843282 0.00725653 0.537423 + 0.843049 0.00623522 0.537801 + 0.664436 0.0116312 0.747255 + 0.664049 0.00887219 0.747636 + 0.831076 -0.0163686 -0.555918 + 0.98291 -0.0304406 -0.181554 + 0.079986 -0.0234594 -0.99652 + 0.080737 -0.158587 -0.984038 + 0.0737706 -0.0527837 -0.995877 + 0.0740991 -0.169467 -0.982746 + 0.0700244 -0.0411332 -0.996697 + 0.0686322 -0.159383 -0.984828 + 0.0727741 -0.0659808 -0.995164 + 0.0732711 -0.169214 -0.982852 + 0.0796172 0.0149098 -0.996714 + 0.0914746 0.0893106 -0.991794 + 0.068729 0.0141969 -0.997534 + 0.071077 0.084153 -0.993915 + 0.0706653 0.0128709 -0.997417 + 0.0843789 0.128638 -0.988095 + 0.0807719 0.0176153 -0.996577 + 0.0796172 0.0149098 -0.996714 + 0.0686275 0.0134446 -0.997552 + 0.068729 0.0141969 -0.997534 + 0.0706813 0.01303 -0.997414 + 0.0706653 0.0128709 -0.997417 + -0.0571732 0.0427801 0.997447 + -0.0491522 0.141373 0.988735 + -0.0506666 0.0917469 0.994493 + 0.0215831 0.632038 0.774636 + -0.0592699 -0.118953 0.991129 + -0.0452962 0.290411 0.955829 + -0.0924685 -0.149291 0.98446 + -0.991573 0.0151089 0.128662 + -0.11829 -0.901835 0.415573 + -0.0584034 0.0439709 0.997324 + -0.0596297 0.0202148 0.998016 + -0.0400524 0.191827 0.980611 + -0.0408507 0.181886 0.982471 + -0.0289102 0.249357 0.96798 + -0.023173 0.277557 0.96043 + 0.096163 0.137558 -0.985815 + 0.0913802 0.104746 -0.990292 + 0.0777446 0.0137064 -0.996879 + 0.0776226 0.0127267 -0.996902 + 0.0775088 0.0128815 -0.996908 + 0.0776473 0.014884 -0.99687 + 0.0810852 0.0126641 -0.996627 + 0.0743424 0.009265 -0.99719 + -0.0427328 0.0508892 0.99779 + -0.0560745 0.0419568 0.997545 + -0.0529307 -0.0946535 0.994102 + -0.0565347 0.0447642 0.997397 + -0.0596262 -0.0663713 0.996012 + 0.974099 0.0168733 0.225492 + -0.0427328 0.0508892 0.99779 + 0.966928 0.00730863 0.254943 + -0.0529307 -0.0946535 0.994102 + 0.857133 -0.0533229 0.512328 + -0.0536006 0.657171 0.751833 + -0.0565347 0.0447642 0.997397 + -0.0571732 0.0427801 0.997447 + -0.0560745 0.0419568 0.997545 + -0.0491522 0.141373 0.988735 + -0.0427328 0.0508892 0.99779 + -0.0349207 0.0784638 0.996305 + 0.974099 0.0168733 0.225492 + 0.998949 0.00534929 0.0455204 + -0.0562031 0.0371993 0.997726 + -0.0516572 0.0678814 0.996355 + -0.0574151 -0.0437982 0.997389 + -0.0337855 -0.603965 0.796294 + -0.0735306 -0.60297 0.794368 + -0.0138976 0.656187 0.75447 + 0.0817325 0.0089328 -0.996614 + 0.0807719 0.0176153 -0.996577 + 0.0697649 0.0110027 -0.997503 + 0.0686275 0.0134446 -0.997552 + 0.0743424 0.009265 -0.99719 + 0.0706813 0.01303 -0.997414 + 0.0776473 0.014884 -0.99687 + 0.0706653 0.0128709 -0.997417 + 0.0776226 0.0127267 -0.996902 + 0.0843789 0.128638 -0.988095 + 0.0913802 0.104746 -0.990292 + -0.0370259 0.259914 0.964922 + -0.023173 0.277557 0.96043 + -0.048063 0.166982 0.984788 + -0.0408507 0.181886 0.982471 + -0.056046 0.110219 0.992326 + -0.0596297 0.0202148 0.998016 + -0.0504579 0.114441 0.992148 + -0.0396409 0.115743 0.992488 + -0.0601804 0.0731985 0.9955 + -0.0506666 0.0917469 0.994493 + -0.0607674 0.0372611 0.997456 + -0.0562031 0.0371993 0.997726 + -0.0596262 -0.0663713 0.996012 + -0.0516572 0.0678814 0.996355 + -0.0565347 0.0447642 0.997397 + -0.0138976 0.656187 0.75447 + -0.0536006 0.657171 0.751833 + -0.0735306 -0.60297 0.794368 + -0.0571732 0.0427801 0.997447 + -0.0574151 -0.0437982 0.997389 + -0.0506666 0.0917469 0.994493 + -0.0562031 0.0371993 0.997726 + 0.216101 0.0250977 -0.976048 + 0.55323 0.0858801 -0.82859 + 0.0914746 0.0893106 -0.991794 + 0.5412 0.19576 -0.81779 + 0.0756012 0.907176 -0.413903 + -0.0322159 0.208387 0.977516 + -0.0407497 0.317719 0.947309 + -0.0421866 0.182759 0.982252 + -0.0499404 0.162962 0.985368 + -0.0445198 0.0414398 0.998149 + -0.0560772 0.075651 0.995556 + -0.0637859 -0.654829 0.753081 + -0.104122 0.107865 0.988698 + -0.0737925 -0.210135 0.974884 + -0.0563784 0.247523 0.96724 + -0.0267051 0.0473933 0.998519 + -0.00305915 0.560111 0.828412 + -0.0100537 0.133893 0.990945 + -0.0467069 0.104809 0.993395 + -0.0232947 0.0555436 0.998185 + -0.0485822 0.0372881 0.998123 + -0.025792 -0.0765759 0.99673 + -0.0531698 -0.049197 0.997373 + -0.051491 -0.229789 0.971877 + -0.0596262 -0.0663713 0.996012 + -0.0563052 -0.22363 0.973046 + -0.0529307 -0.0946535 0.994102 + -0.0475118 -0.258787 0.964765 + 0.857133 -0.0533229 0.512328 + 0.957293 -0.0713337 0.280181 + 0.966928 0.00730863 0.254943 + 0.998534 -0.023757 0.0486273 + 0.974099 0.0168733 0.225492 + 0.998549 -0.0248838 -0.0477563 + 0.998949 0.00534929 0.0455204 + 0.998901 -0.0100926 -0.0457788 + 0.994014 0.00140025 -0.10924 + 0.98291 -0.0304406 -0.181554 + 0.881151 0.00591896 -0.472798 + 0.831076 -0.0163686 -0.555918 + 0.0810852 0.0126641 -0.996627 + 0.079986 -0.0234594 -0.99652 + 0.0743424 0.009265 -0.99719 + 0.0737706 -0.0527837 -0.995877 + 0.0697649 0.0110027 -0.997503 + 0.0700244 -0.0411332 -0.996697 + 0.0817325 0.0089328 -0.996614 + 0.0727741 -0.0659808 -0.995164 + 0.0207206 0.0173012 -0.999636 + 0.216101 0.0250977 -0.976048 + -0.0209642 0.01643 -0.999645 + 0.0914746 0.0893106 -0.991794 + 0.0163959 0.0181447 -0.999701 + 0.0796172 0.0149098 -0.996714 + -0.0202993 0.0191358 -0.999611 + 0.0807719 0.0176153 -0.996577 + 0.00833061 0.0131569 -0.999879 + 0.0817325 0.0089328 -0.996614 + -0.0738133 0.00999809 -0.997222 + -0.0696983 0.014064 -0.997469 + -0.0692647 0.0087622 -0.99756 + -0.0692677 0.0153045 -0.997481 + -0.0806936 0.0142104 -0.996638 + -0.0791505 0.0161639 -0.996732 + -0.987919 0.00365368 -0.154929 + -0.0976099 0.0146429 -0.995117 + -0.0802099 0.00731592 -0.996751 + -0.0770248 0.0154131 -0.99691 + -0.0738133 0.00999809 -0.997222 + -0.0769036 0.0135372 -0.996947 + -0.0696983 0.014064 -0.997469 + -0.0782633 0.0167197 -0.996792 + -0.0791505 0.0161639 -0.996732 + -0.0680747 0.0126145 -0.9976 + -0.0692677 0.0153045 -0.997481 + -0.0713551 0.0126071 -0.997371 + -0.0696983 0.014064 -0.997469 + -0.0770318 0.013277 -0.99694 + -0.0769036 0.0135372 -0.996947 + -0.0769692 0.0127907 -0.996951 + -0.0770248 0.0154131 -0.99691 + -0.09169 0.0118922 -0.995717 + -0.0976099 0.0146429 -0.995117 + -0.961226 -0.000912105 -0.27576 + -0.987919 0.00365368 -0.154929 + 0.0413733 0.0762141 0.996233 + -0.976019 0.0195756 0.216802 + -0.991655 0.00794584 0.128677 + -0.987919 0.00365368 -0.154929 + -0.981755 0.00257595 -0.190135 + -0.0802099 0.00731592 -0.996751 + 0.0314529 0.28927 0.956731 + 0.0232932 0.279504 0.959862 + 0.0422777 0.171899 0.984207 + 0.039443 0.189171 0.981152 + 0.0625656 -0.00547889 0.998026 + 0.05022 0.111864 0.992454 + -0.0850929 0.0673294 -0.994096 + 0.014665 0.326354 0.945134 + -0.0918043 0.112942 -0.989351 + 0.0232932 0.279504 0.959862 + -0.0797397 0.103738 -0.991403 + 0.0314529 0.28927 0.956731 + -0.0739395 0.129092 -0.988872 + 0.133816 -0.94476 0.299203 + 0.0625656 -0.00547889 0.998026 + 0.0557088 0.118464 0.991394 + 0.05022 0.111864 0.992454 + 0.0351841 0.114549 0.992794 + 0.039443 0.189171 0.981152 + 0.0236655 0.209156 0.977596 + 0.014665 0.326354 0.945134 + 0.000476325 0.362395 0.932024 + -0.0850929 0.0673294 -0.994096 + -0.084963 0.0454129 -0.995349 + -0.0898234 0.0908168 -0.991808 + -0.0782633 0.0167197 -0.996792 + -0.0739395 0.129092 -0.988872 + -0.0680747 0.0126145 -0.9976 + -0.0797397 0.103738 -0.991403 + -0.0713551 0.0126071 -0.997371 + -0.0918043 0.112942 -0.989351 + -0.0770318 0.013277 -0.99694 + -0.0850929 0.0673294 -0.994096 + -0.0769692 0.0127907 -0.996951 + -0.084963 0.0454129 -0.995349 + -0.09169 0.0118922 -0.995717 + -0.929386 0.00415258 -0.369085 + -0.961226 -0.000912105 -0.27576 + -0.98499 0.031993 0.169618 + -0.987919 0.00365368 -0.154929 + -0.964506 0.0316779 0.262153 + -0.976019 0.0195756 0.216802 + 0.0351841 0.114549 0.992794 + 0.0413733 0.0762141 0.996233 + 0.0557088 0.118464 0.991394 + 0.0536379 0.102071 0.99333 + 0.133816 -0.94476 0.299203 + -0.18885 0.0410399 -0.981148 + 0.0207206 0.0173012 -0.999636 + -0.0898234 0.0908168 -0.991808 + -0.0209642 0.01643 -0.999645 + -0.0782633 0.0167197 -0.996792 + 0.0163959 0.0181447 -0.999701 + -0.0791505 0.0161639 -0.996732 + -0.0202993 0.0191358 -0.999611 + -0.0806936 0.0142104 -0.996638 + 0.00833061 0.0131569 -0.999879 + -0.422017 0.0742492 -0.903542 + -0.18885 0.0410399 -0.981148 + -0.216765 0.109972 -0.97001 + -0.0898234 0.0908168 -0.991808 + 0.0380028 0.303138 0.952189 + -0.0739395 0.129092 -0.988872 + 0.0492338 0.236761 0.97032 + 0.0314529 0.28927 0.956731 + 0.0502233 0.16447 0.985103 + 0.0422777 0.171899 0.984207 + 0.0566774 0.0414019 0.997534 + 0.0625656 -0.00547889 0.998026 + 0.110084 -0.834454 0.53997 + 0.133816 -0.94476 0.299203 + 0.0608747 -0.0746735 0.995348 + 0.0536379 0.102071 0.99333 + 0.0551099 0.0498299 0.997236 + 0.0413733 0.0762141 0.996233 + 0.0377618 0.0407015 0.998458 + -0.991655 0.00794584 0.128677 + 0.0595787 0.102965 0.992899 + 0.0520864 0.167989 0.984412 + 0.0553988 0.110052 0.992381 + 0.0502233 0.16447 0.985103 + 0.0505579 0.108648 0.992794 + 0.0566774 0.0414019 0.997534 + -0.0106999 0.115823 0.993212 + 0.110084 -0.834454 0.53997 + 0.0713193 -0.284815 0.955926 + 0.133816 -0.94476 0.299203 + 0.0731305 -0.00302584 0.997318 + 0.0536379 0.102071 0.99333 + -0.00853168 0.719625 0.69431 + 0.0452099 0.148099 0.987939 + 0.0162011 0.2904 0.956768 + -0.0106999 0.115823 0.993212 + 0.0713193 -0.284815 0.955926 + -0.372411 -0.160285 0.914122 + -0.400049 -0.200961 0.89419 + -0.147902 -0.151281 0.977363 + -0.15034 -0.173544 0.973283 + -0.0463816 -0.170893 0.984197 + 0.0356721 -0.258757 0.965284 + 0.146983 -0.25609 0.955413 + 0.247402 -0.280036 0.927563 + 0.947592 -0.110171 0.299885 + 0.978983 -0.0161592 0.2033 + 0.936761 0.00180685 0.349964 + 0.950349 0.00686749 0.311111 + 0.850607 -0.000880343 0.525801 + 0.847532 0.00618792 0.530708 + 0.672161 -0.00206218 0.740403 + 0.668307 0.0124996 0.743781 + 0.986663 -0.057905 -0.152129 + 0.933285 -0.0905707 -0.347529 + 0.98613 -0.056941 -0.1559 + 0.951303 -0.0283475 -0.30695 + 0.998793 -0.0253739 -0.0420498 + 0.992559 -0.0269304 -0.118749 + 0.995275 -0.0452923 0.0858853 + 0.99879 -0.0352564 0.0342942 + 0.99171 -0.0685029 0.108711 + 0.991708 -0.0369546 0.123081 + 0.982715 -0.081624 0.166159 + 0.978983 -0.0161592 0.2033 + 0.917115 -0.154491 0.367469 + 0.947592 -0.110171 0.299885 + 0.996071 -0.0585083 0.0664856 + 0.971624 -0.0764472 0.223836 + 0.993712 -0.0638155 0.0919993 + 0.952024 -0.0692079 0.298094 + 0.988606 -0.129785 0.0762456 + -0.351246 -0.127803 0.92752 + -0.372411 -0.160285 0.914122 + -0.144296 -0.112607 0.983106 + -0.147902 -0.151281 0.977363 + -0.00210209 -0.141606 0.989921 + -0.0463816 -0.170893 0.984197 + 0.147505 -0.169507 0.974428 + 0.146983 -0.25609 0.955413 + 0.424491 -0.249067 0.870502 + 0.247402 -0.280036 0.927563 + 0.479237 -0.297807 0.825617 + 0.490596 -0.37739 0.785425 + 0.648901 -0.336524 0.682407 + 0.629049 -0.45432 0.630786 + 0.779216 -0.466281 0.418814 + 0.607484 -0.697813 0.3795 + 0.728127 -0.675996 0.113403 + -0.431979 -0.626569 -0.648695 + -0.186205 -0.557314 -0.809153 + -0.255563 -0.369063 -0.893577 + 0.029414 -0.35736 -0.933503 + 0.0137247 -0.270755 -0.96255 + 0.296108 -0.283327 -0.912165 + 0.285474 -0.252676 -0.924478 + 0.575031 -0.274415 -0.770737 + 0.58418 -0.221476 -0.780821 + 0.848892 -0.245131 -0.468288 + 0.833035 -0.185907 -0.521049 + 0.984641 -0.161999 -0.0651029 + 0.933285 -0.0905707 -0.347529 + 0.988606 -0.129785 0.0762456 + 0.986663 -0.057905 -0.152129 + 0.993712 -0.0638155 0.0919993 + 0.98613 -0.056941 -0.1559 + 0.996071 -0.0585083 0.0664856 + 0.998793 -0.0253739 -0.0420498 + 0.987745 -0.0424225 0.150199 + 0.995275 -0.0452923 0.0858853 + 0.982953 -0.056352 0.175011 + 0.99171 -0.0685029 0.108711 + 0.82598 -0.280602 0.488897 + 0.870099 -0.302996 0.388744 + 0.891873 -0.295708 0.342226 + 0.879487 -0.310851 0.36038 + 0.887848 -0.266429 0.375156 + 0.871376 -0.247677 0.423509 + 0.786407 -0.262996 0.558926 + 0.699864 -0.238368 0.673329 + 0.786407 -0.262996 0.558926 + 0.828126 -0.177636 0.53165 + 0.871376 -0.247677 0.423509 + 0.913115 -0.160709 0.374691 + 0.905016 -0.246149 0.346926 + 0.89705 -0.24954 0.364734 + 0.870099 -0.302996 0.388744 + 0.526034 -0.153285 0.836536 + 0.82598 -0.280602 0.488897 + 0.733858 -0.481061 0.479618 + 0.860668 -0.274413 0.428891 + 0.693301 -0.501675 0.517354 + 0.760866 -0.28019 0.5853 + 0.555189 -0.468652 0.687117 + 0.659847 -0.292751 0.692025 + -0.986704 -0.0683436 0.147461 + -0.99389 -0.0624717 0.0909972 + -0.971401 -0.0755953 0.225089 + -0.991357 -0.0577951 0.117772 + -0.948897 -0.131664 0.286808 + -0.99065 -0.119204 -0.0663603 + -0.93583 -0.0414935 -0.350001 + -0.984389 -0.0783248 -0.157616 + -0.984044 -0.0274771 -0.175792 + -0.99389 -0.0624717 0.0909972 + -0.997778 -0.0163695 0.0645862 + -0.986704 -0.0683436 0.147461 + -0.795205 0.141092 0.589696 + -0.990641 0.0401434 -0.130457 + 0.0200139 0.0630059 0.997812 + -0.983977 0.0210049 -0.177053 + 0.025484 0.181513 0.983058 + -0.973229 0.0540916 -0.223383 + -0.0925189 -0.581694 0.808129 + -0.972298 -0.111622 -0.20537 + -0.092006 -0.329196 0.939768 + -0.983586 -0.059091 -0.170487 + 0.01872 -0.109557 0.993804 + -0.983667 -0.0423884 -0.174935 + -0.994493 -0.0137812 -0.103888 + 0.05032 0.135191 0.989541 + 0.0587697 -0.0663344 0.996065 + 0.0552213 0.0467669 0.997378 + 0.0606199 0.0448909 0.997151 + 0.0571909 0.074843 0.995554 + 0.0579236 0.0829841 0.994866 + 0.0636145 0.111346 0.991744 + 0.0939156 -0.889156 0.447863 + 0.0482057 0.0414274 0.997978 + 0.044036 -0.654875 0.754453 + 0.0200139 0.0630059 0.997812 + -0.992135 0.081055 0.0953881 + -0.795205 0.141092 0.589696 + 0.0247033 0.123524 0.992034 + -0.990641 0.0401434 -0.130457 + -0.992323 0.0489954 0.113557 + -0.984465 0.00313904 -0.175553 + -0.992629 0.00947062 -0.120822 + -0.995586 0.00117304 -0.0938471 + -0.994493 -0.0137812 -0.103888 + -0.993209 -0.0321922 -0.111799 + -0.983667 -0.0423884 -0.174935 + -0.995559 -0.0320434 -0.0885233 + -0.983586 -0.059091 -0.170487 + -0.967293 -0.0172904 -0.253071 + -0.972298 -0.111622 -0.20537 + -0.948328 -0.162378 -0.272593 + -0.0925189 -0.581694 0.808129 + -0.126949 -0.552145 -0.824027 + 0.0520104 -0.0534571 0.997215 + 0.0587697 -0.0663344 0.996065 + 0.0572684 0.0223486 0.998109 + 0.05032 0.135191 0.989541 + 0.0301574 0.656672 0.753573 + -0.0754381 -0.128077 -0.988891 + -0.072204 -0.15906 -0.984625 + -0.0685366 -0.047951 -0.996496 + -0.0668495 -0.155454 -0.985579 + -0.0739653 -0.0423842 -0.99636 + -0.07412 -0.165295 -0.983455 + -0.0815465 -0.0824104 -0.993257 + -0.081767 -0.184735 -0.979381 + -0.992869 -0.00761519 -0.118968 + -0.985968 -0.0294639 -0.164316 + -0.981124 -0.00697311 0.193256 + -0.954209 -0.0621457 0.292615 + 0.0520104 -0.0534571 0.997215 + 0.0503884 -0.210216 0.976356 + 0.0587697 -0.0663344 0.996065 + 0.0555889 -0.23121 0.971314 + 0.0466703 -0.063237 0.996907 + 0.0488951 -0.227598 0.972527 + 0.01872 -0.109557 0.993804 + 0.0430969 -0.283372 0.958041 + -0.092006 -0.329196 0.939768 + 0.0440425 -0.479703 0.876325 + -0.0925189 -0.581694 0.808129 + -0.0403046 -0.910676 -0.411151 + -0.126949 -0.552145 -0.824027 + -0.068625 -0.256772 -0.964032 + -0.0889081 -0.229621 -0.969211 + -0.072204 -0.15906 -0.984625 + -0.306941 -0.00227429 -0.951726 + -0.232082 -0.000629266 -0.972696 + -0.201506 0.00105099 -0.979487 + -0.0137022 0.000245985 -0.999906 + 0.0433846 0.000116438 -0.999058 + 0.198015 0.000798758 -0.980199 + 0.252991 -0.00171834 -0.967467 + 0.292567 -0.000109676 -0.956245 + -0.271633 -0.0213617 -0.962164 + -0.232082 -0.000629266 -0.972696 + -0.290362 -0.00950228 -0.95687 + -0.306941 -0.00227429 -0.951726 + -0.845682 -0.0196302 -0.533326 + -0.873528 -0.0540131 -0.483768 + -0.93583 -0.0414935 -0.350001 + -0.259071 -0.0624218 0.963839 + -0.373075 -0.0819341 0.924176 + -0.380342 -0.0754311 0.921765 + -0.68809 -0.0918524 0.719788 + -0.823034 -0.13963 0.550562 + -0.862272 -0.106485 0.495124 + -0.971401 -0.0755953 0.225089 + -0.921939 -0.0894273 0.37687 + -0.986704 -0.0683436 0.147461 + -0.994472 -0.0414841 0.0964616 + -0.997778 -0.0163695 0.0645862 + -0.995559 -0.0320434 -0.0885233 + -0.984044 -0.0274771 -0.175792 + -0.967293 -0.0172904 -0.253071 + -0.93583 -0.0414935 -0.350001 + -0.911636 -0.0191552 -0.410552 + -0.845682 -0.0196302 -0.533326 + -0.126949 -0.552145 -0.824027 + -0.290362 -0.00950228 -0.95687 + -0.0889081 -0.229621 -0.969211 + -0.271633 -0.0213617 -0.962164 + -0.072204 -0.15906 -0.984625 + -0.272409 -0.0141857 -0.962077 + -0.0754381 -0.128077 -0.988891 + -0.260424 -0.00811497 -0.96546 + -0.133804 0.000141974 -0.991008 + -0.232082 -0.000629266 -0.972696 + 0.000722472 2.73066e-05 -1 + -0.0137022 0.000245985 -0.999906 + 0.134531 -7.882e-05 -0.990909 + 0.175495 -0.00533188 -0.984466 + 0.130647 -8.45405e-06 -0.991429 + -0.566435 -0.276165 -0.776456 + -0.580286 -0.216527 -0.785101 + -0.284135 -0.19976 -0.937744 + -0.329748 -0.16685 -0.929208 + -0.0403114 -0.156919 -0.986788 + -0.0472572 -0.0908147 -0.994746 + 0.227667 -0.0990486 -0.968688 + 0.0434821 -0.0891689 -0.995067 + 0.30325 -0.117197 -0.945677 + 0.133139 -0.0230851 -0.990828 + 0.334409 -0.0336106 -0.941828 + 0.134719 -0.0227105 -0.990624 + -0.917135 -0.0941276 -0.387304 + -0.809977 -0.109391 -0.576169 + -0.887452 -0.176723 -0.425673 + -0.722978 -0.193565 -0.663201 + -0.845341 -0.240841 -0.476859 + -0.580286 -0.216527 -0.785101 + -0.827131 -0.305315 -0.471844 + -0.566435 -0.276165 -0.776456 + -0.804596 -0.359538 -0.472607 + -0.20114 -0.0479607 0.978388 + -0.259071 -0.0624218 0.963839 + -0.381051 -0.106005 0.918457 + -0.380342 -0.0754311 0.921765 + -0.744233 -0.168522 0.646311 + -0.823034 -0.13963 0.550562 + -0.884516 -0.169594 0.43459 + -0.948897 -0.131664 0.286808 + -0.985494 -0.160244 0.0558851 + -0.99065 -0.119204 -0.0663603 + -0.887452 -0.176723 -0.425673 + -0.984389 -0.0783248 -0.157616 + -0.917135 -0.0941276 -0.387304 + -0.93583 -0.0414935 -0.350001 + -0.809977 -0.109391 -0.576169 + -0.873528 -0.0540131 -0.483768 + -0.367932 -0.0654566 -0.927546 + -0.321615 -0.0430077 -0.945893 + -0.333555 -0.0329327 -0.942155 + -0.201506 0.00105099 -0.979487 + -0.135512 -0.0217537 -0.990537 + 0.0433846 0.000116438 -0.999058 + -0.0409778 -0.0228958 -0.998898 + 0.252991 -0.00171834 -0.967467 + 0.134719 -0.0227105 -0.990624 + 0.307545 -0.0223334 -0.951271 + 0.334409 -0.0336106 -0.941828 + -0.990588 0.00245068 0.136852 + -0.958285 0.00367518 0.28579 + -0.941972 0.00497934 0.335653 + -0.920142 0.00587726 0.391541 + -0.843763 0.00966278 0.536629 + -0.84585 0.00836422 0.533355 + -0.668692 0.0138677 0.74341 + -0.671867 0.0123243 0.740569 + -0.570941 0.0159964 0.820835 + -0.48709 0.00950341 0.8733 + -0.370062 0.00556194 0.92899 + -0.201602 -0.0197952 0.979267 + 0.479554 -0.125629 0.868473 + 0.380368 -0.0887057 0.920571 + 0.689762 -0.115316 0.714794 + 0.68563 -0.0928658 0.722002 + 0.950381 -0.114212 0.289365 + 0.690821 -0.107981 0.714917 + 0.920841 -0.0907668 0.379228 + 0.801836 -0.147735 0.578993 + 0.916914 -0.150783 0.369505 + 0.789259 -0.169034 0.590337 + 0.936529 -0.158102 0.312918 + 0.877928 -0.246754 0.41031 + 0.966677 -0.255937 0.00566637 + 0.947164 -0.320673 0.00700452 + 0.83364 -0.304629 -0.460701 + 0.826518 -0.36233 -0.430796 + 0.582472 -0.318371 -0.747908 + 0.592313 -0.420159 -0.687482 + 0.315156 -0.376497 -0.871164 + 0.377102 -0.496542 -0.781818 + 0.087777 -0.50212 -0.860332 + 0.621684 -0.552127 -0.555576 + 0.741839 -0.630196 -0.22919 + 0.803373 -0.46785 -0.368386 + 0.872662 -0.485681 0.0507512 + 0.923223 -0.383366 0.026255 + 0.818252 -0.364308 0.444684 + 0.844657 -0.309683 0.436637 + 0.659567 -0.297261 0.690368 + 0.69589 -0.251041 0.672842 + 0.465116 -0.243296 0.851161 + 0.434113 -0.186833 0.881272 + 0.394944 -0.177575 0.90138 + 0.360726 -0.118306 0.925138 + 0.144146 -0.133062 0.980569 + 0.140785 -0.111666 0.983723 + 0.0388769 -0.111331 0.993023 + 0.0474124 -0.0419368 0.997995 + -0.20114 -0.0479607 0.978388 + -0.0249156 -0.0493991 0.998468 + -0.259071 -0.0624218 0.963839 + -0.192305 -0.0628228 0.979322 + -0.373075 -0.0819341 0.924176 + -0.326605 -0.23692 0.914985 + -0.372169 -0.174851 0.911547 + -0.668907 -0.491267 0.557872 + -0.757929 -0.472305 0.449969 + -0.709663 -0.487208 0.508927 + -0.880466 -0.325283 0.344921 + -0.870881 -0.284709 0.400633 + -0.898519 -0.286003 0.332966 + -0.858053 -0.244977 0.451366 + -0.901659 -0.248269 0.354082 + -0.875346 -0.232908 0.423701 + -0.896498 -0.186106 0.402065 + -0.813816 -0.245471 0.526732 + -0.838492 -0.148569 0.524269 + -0.685617 -0.135347 0.71527 + -0.731433 -0.100796 0.674422 + -0.620384 -0.0841702 0.779769 + -0.611776 0.0397565 0.790031 + -0.626953 0.0143578 0.778925 + -0.657723 0.00220639 0.753257 + -0.48709 0.00950341 0.8733 + -0.707129 -0.00218749 0.707081 + -0.671867 0.0123243 0.740569 + -0.848033 -0.00687413 0.529898 + -0.84585 0.00836422 0.533355 + -0.921507 0.00530351 0.388326 + -0.920142 0.00587726 0.391541 + -0.963879 -0.00259773 0.266329 + -0.958285 0.00367518 0.28579 + -0.988054 -0.00531886 0.154014 + -0.990588 0.00245068 0.136852 + -0.999998 0.00130106 0.00129958 + -0.999949 0.0098085 -0.00251379 + -0.994609 0.00816789 -0.103378 + -0.997117 0.0247383 -0.0717317 + -0.9809 0.0184048 -0.193642 + -0.975638 0.0977632 -0.1964 + -0.973229 0.0540916 -0.223383 + 0.271998 -0.538614 0.797441 + 0.518917 -0.518134 0.679899 + 0.306863 -0.533619 0.78809 + 0.421495 -0.517961 0.744351 + 0.294243 -0.55654 0.776971 + 0.322249 -0.233069 0.917515 + 0.366699 -0.174674 0.913795 + 0.271998 -0.538614 0.797441 + 0.642832 -0.471802 0.603465 + 0.518917 -0.518134 0.679899 + 0.69719 -0.497617 0.516046 + 0.591013 -0.494171 0.637572 + 0.480445 -0.476266 0.73644 + 0.487717 -0.483479 0.726898 + 0.555189 -0.468652 0.687117 + 0.591013 -0.494171 0.637572 + 0.693301 -0.501675 0.517354 + 0.69719 -0.497617 0.516046 + 0.733858 -0.481061 0.479618 + 0.642832 -0.471802 0.603465 + 0.479554 -0.125629 0.868473 + 0.366699 -0.174674 0.913795 + 0.380368 -0.0887057 0.920571 + 0.322249 -0.233069 0.917515 + 0.239578 -0.0654054 0.968672 + 0.271998 -0.538614 0.797441 + -0.00349449 -0.53744 0.843295 + -0.0780888 -0.441776 0.893721 + -0.0866518 -0.510619 0.85543 + -0.00163825 -0.534722 0.845027 + -0.0173119 -0.53645 0.843755 + 0.00111439 -0.546558 0.83742 + 0.00442132 -0.530717 0.847538 + 0.0660926 -0.529826 0.845527 + 0.103929 -0.536996 0.837159 + 0.200259 -0.518658 0.831198 + 0.238795 -0.519552 0.820392 + 0.372779 -0.501383 0.780801 + 0.262123 -0.535965 0.802517 + 0.406992 -0.499796 0.764566 + -0.00447152 -0.330072 0.943945 + -0.0780888 -0.441776 0.893721 + 0.00788098 -0.41892 0.907989 + -0.00163825 -0.534722 0.845027 + 0.128639 -0.509673 0.850697 + 0.0722484 -0.528608 0.845786 + 0.193708 -0.499014 0.844667 + 0.200259 -0.518658 0.831198 + 0.316613 -0.493774 0.809903 + 0.372779 -0.501383 0.780801 + 0.44052 -0.472205 0.763521 + -0.298382 -0.482554 0.823474 + -0.0866518 -0.510619 0.85543 + -0.239389 -0.33708 0.910533 + -0.0780888 -0.441776 0.893721 + -0.117022 -0.270956 0.955452 + -0.00447152 -0.330072 0.943945 + -0.425392 -0.471397 0.772545 + -0.332547 -0.493719 0.803526 + -0.404848 -0.461691 0.789265 + -0.302207 -0.512622 0.803673 + -0.298382 -0.482554 0.823474 + -0.180641 -0.516765 0.836853 + -0.0866518 -0.510619 0.85543 + -0.0451605 -0.520944 0.852395 + -0.0173119 -0.53645 0.843755 + -0.00249652 -0.529768 0.848139 + 0.00442132 -0.530717 0.847538 + -0.00920554 -0.538183 0.842778 + 0.016364 -0.539039 0.842122 + 0.0141471 -0.556903 0.830457 + 0.0968111 -0.551476 0.828554 + 0.132665 -0.569768 0.811027 + 0.262123 -0.535965 0.802517 + 0.341807 -0.479551 0.808207 + 0.194503 -0.380493 0.904098 + 0.0603873 -0.425347 0.903013 + 0.0247216 -0.348225 0.937085 + 0.0150735 -0.327245 0.944819 + 0.0123194 -0.0528062 0.998529 + 0.401989 -0.473888 0.783476 + 0.447921 -0.457358 0.768239 + 0.341807 -0.479551 0.808207 + 0.412814 -0.442254 0.796238 + 0.194503 -0.380493 0.904098 + 0.348511 -0.374367 0.859296 + 0.28666 -0.285533 0.914493 + 0.554435 -0.308422 0.772967 + 0.340508 -0.0645907 0.938021 + 0.606686 -0.292678 0.739102 + 0.619969 -0.234608 0.74873 + 0.606686 -0.292678 0.739102 + 0.659274 -0.248052 0.709808 + 0.554435 -0.308422 0.772967 + 0.659847 -0.292751 0.692025 + 0.447921 -0.457358 0.768239 + 0.555189 -0.468652 0.687117 + 0.44052 -0.472205 0.763521 + 0.480445 -0.476266 0.73644 + 0.372779 -0.501383 0.780801 + 0.487717 -0.483479 0.726898 + 0.406992 -0.499796 0.764566 + 0.421495 -0.517961 0.744351 + 0.262123 -0.535965 0.802517 + 0.294243 -0.55654 0.776971 + 0.132665 -0.569768 0.811027 + 0.306863 -0.533619 0.78809 + 0.16033 -0.566804 0.808101 + 0.271998 -0.538614 0.797441 + 0.0536519 -0.568152 0.821173 + -0.00349449 -0.53744 0.843295 + -0.0259652 -0.548825 0.835534 + -0.151768 -0.564641 0.811262 + -0.105078 -0.568215 0.816144 + -0.282903 -0.552176 0.784262 + -0.123009 -0.554395 0.823113 + -0.271211 -0.531337 0.802575 + -0.224045 -0.525307 0.820888 + -0.357794 -0.502706 0.786937 + -0.332547 -0.493719 0.803526 + -0.475114 -0.477534 0.739072 + -0.425392 -0.471397 0.772545 + -0.462422 -0.462162 0.756685 + -0.404848 -0.461691 0.789265 + -0.413954 -0.437341 0.798358 + -0.298382 -0.482554 0.823474 + -0.282834 -0.281789 0.916842 + -0.239389 -0.33708 0.910533 + -0.215756 -0.214256 0.952651 + -0.117022 -0.270956 0.955452 + 0.0123194 -0.0528062 0.998529 + -0.00447152 -0.330072 0.943945 + 0.0150735 -0.327245 0.944819 + 0.00788098 -0.41892 0.907989 + 0.0603873 -0.425347 0.903013 + 0.128639 -0.509673 0.850697 + 0.341807 -0.479551 0.808207 + 0.277575 -0.507337 0.815819 + 0.401989 -0.473888 0.783476 + 0.44052 -0.472205 0.763521 + 0.447921 -0.457358 0.768239 + 0.986867 -0.0711275 0.145033 + 0.489258 -0.146392 0.859765 + 0.689762 -0.115316 0.714794 + 0.526034 -0.153285 0.836536 + 0.479554 -0.125629 0.868473 + 0.82598 -0.280602 0.488897 + 0.733858 -0.481061 0.479618 + 0.891873 -0.295708 0.342226 + 0.860668 -0.274413 0.428891 + 0.887848 -0.266429 0.375156 + 0.78876 -0.246269 0.563213 + 0.786407 -0.262996 0.558926 + 0.659274 -0.248052 0.709808 + 0.699864 -0.238368 0.673329 + 0.619969 -0.234608 0.74873 + 0.679001 -0.158022 0.716929 + 0.606686 -0.292678 0.739102 + 0.715544 -0.152717 0.68167 + 0.340508 -0.0645907 0.938021 + 0.0125749 0.0219446 0.99968 + 0.0535173 0.0219179 0.998326 + 0.181215 0.00825169 0.983409 + 0.786471 0.0885148 0.611252 + 0.345728 -0.0971205 0.933295 + 0.964237 -0.0520639 0.259878 + -0.396711 -0.326483 0.857921 + -0.995783 0.0437442 0.0806387 + -0.390252 -0.0764808 0.917526 + -0.225025 0.0479766 0.973171 + -0.201602 -0.0197952 0.979267 + -0.256634 0.0104866 0.966452 + -0.370062 0.00556194 0.92899 + -0.368773 0.0196256 0.929312 + -0.570941 0.0159964 0.820835 + -0.568044 0.016713 0.822828 + -0.668692 0.0138677 0.74341 + -0.665908 0.0165338 0.745851 + -0.843763 0.00966278 0.536629 + -0.843878 0.00999302 0.536442 + -0.941972 0.00497934 0.335653 + -0.943566 0.00485137 0.331149 + -0.990588 0.00245068 0.136852 + -0.993934 0.0120516 0.10932 + -0.999949 0.0098085 -0.00251379 + -0.999642 0.0255245 0.00804129 + -0.997117 0.0247383 -0.0717317 + -0.991186 0.101888 -0.0846649 + -0.975638 0.0977632 -0.1964 + -0.964618 0.100529 -0.243733 + -0.973229 0.0540916 -0.223383 + -0.422017 0.0742492 -0.903542 + -0.671466 0.145878 -0.726535 + -0.216765 0.109972 -0.97001 + -0.973229 0.0540916 -0.223383 + 0.0380028 0.303138 0.952189 + 0.025484 0.181513 0.983058 + 0.0520864 0.167989 0.984412 + 0.0482057 0.0414274 0.997978 + 0.0595787 0.102965 0.992899 + 0.0636145 0.111346 0.991744 + 0.0553988 0.110052 0.992381 + 0.0571909 0.074843 0.995554 + 0.0452099 0.148099 0.987939 + 0.0552213 0.0467669 0.997378 + 0.0539554 0.0426595 0.997632 + 0.05032 0.135191 0.989541 + -0.00956957 0.655085 0.755495 + 0.0301574 0.656672 0.753573 + 0.0563519 -0.603564 0.79532 + 0.0960393 -0.602002 0.792698 + 0.0608747 -0.0746735 0.995348 + 0.0572684 0.0223486 0.998109 + 0.0551099 0.0498299 0.997236 + 0.0520104 -0.0534571 0.997215 + 0.0377618 0.0407015 0.998458 + -0.981124 -0.00697311 0.193256 + -0.991655 0.00794584 0.128677 + -0.992869 -0.00761519 -0.118968 + -0.981755 0.00257595 -0.190135 + -0.0815465 -0.0824104 -0.993257 + -0.0802099 0.00731592 -0.996751 + -0.0739653 -0.0423842 -0.99636 + -0.0738133 0.00999809 -0.997222 + -0.0685366 -0.047951 -0.996496 + -0.0692647 0.0087622 -0.99756 + -0.0723158 0.00010239 -0.997382 + -0.0806936 0.0142104 -0.996638 + -0.133804 0.000141974 -0.991008 + 0.00833061 0.0131569 -0.999879 + 0.000722472 2.73066e-05 -1 + 0.0817325 0.0089328 -0.996614 + 0.130647 -8.45405e-06 -0.991429 + 0.0727741 -0.0659808 -0.995164 + 0.175495 -0.00533188 -0.984466 + 0.0732711 -0.169214 -0.982852 + 0.272955 -0.0161984 -0.96189 + 0.0893518 -0.24168 -0.966233 + 0.275218 -0.0225851 -0.961116 + 0.151717 -0.894506 -0.420525 + 0.292567 -0.000109676 -0.956245 + 0.362771 -0.0091744 -0.931833 + 0.252991 -0.00171834 -0.967467 + 0.322279 -0.0074673 -0.946615 + 0.307545 -0.0223334 -0.951271 + 0.349502 -0.0350416 -0.93628 + 0.334409 -0.0336106 -0.941828 + 0.385262 -0.0863701 -0.918756 + 0.30325 -0.117197 -0.945677 + 0.406087 -0.130527 -0.904464 + 0.227667 -0.0990486 -0.968688 + 0.246712 -0.162271 -0.955406 + -0.0403114 -0.156919 -0.986788 + 0.00262673 -0.195334 -0.980733 + -0.284135 -0.19976 -0.937744 + -0.277362 -0.254016 -0.926578 + -0.566435 -0.276165 -0.776456 + -0.553241 -0.316457 -0.770571 + -0.804596 -0.359538 -0.472607 + -0.764846 -0.457569 -0.453477 + -0.873267 -0.484533 -0.0512998 + -0.731335 -0.67239 -0.114193 + -0.739141 -0.639223 0.212286 + 0.460629 -0.578272 0.673367 + 0.174498 -0.520026 0.836136 + 0.228301 -0.361299 0.90407 + -0.0299403 -0.357323 0.933501 + -0.0135296 -0.270856 0.962525 + -0.277856 -0.281898 0.91833 + -0.226096 -0.265435 0.937243 + -0.479238 -0.270442 0.83498 + -0.400049 -0.200961 0.89419 + -0.456744 -0.206723 0.865246 + -0.372411 -0.160285 0.914122 + -0.381051 -0.106005 0.918457 + -0.351246 -0.127803 0.92752 + -0.20114 -0.0479607 0.978388 + -0.144296 -0.112607 0.983106 + 0.0388769 -0.111331 0.993023 + -0.00210209 -0.141606 0.989921 + 0.144146 -0.133062 0.980569 + 0.147505 -0.169507 0.974428 + 0.394944 -0.177575 0.90138 + 0.424491 -0.249067 0.870502 + 0.465116 -0.243296 0.851161 + 0.479237 -0.297807 0.825617 + 0.659567 -0.297261 0.690368 + 0.648901 -0.336524 0.682407 + 0.818252 -0.364308 0.444684 + 0.779216 -0.466281 0.418814 + 0.872662 -0.485681 0.0507512 + 0.728127 -0.675996 0.113403 + 0.741839 -0.630196 -0.22919 + -0.186205 -0.557314 -0.809153 + 0.087777 -0.50212 -0.860332 + 0.029414 -0.35736 -0.933503 + 0.315156 -0.376497 -0.871164 + 0.296108 -0.283327 -0.912165 + 0.582472 -0.318371 -0.747908 + 0.575031 -0.274415 -0.770737 + 0.83364 -0.304629 -0.460701 + 0.848892 -0.245131 -0.468288 + 0.966677 -0.255937 0.00566637 + 0.984641 -0.161999 -0.0651029 + 0.936529 -0.158102 0.312918 + 0.988606 -0.129785 0.0762456 + 0.916914 -0.150783 0.369505 + 0.952024 -0.0692079 0.298094 + 0.920841 -0.0907668 0.379228 + 0.971624 -0.0764472 0.223836 + 0.950381 -0.114212 0.289365 + 0.982953 -0.056352 0.175011 + 0.689762 -0.115316 0.714794 + 0.99171 -0.0685029 0.108711 + 0.986867 -0.0711275 0.145033 + 0.982715 -0.081624 0.166159 + 0.489258 -0.146392 0.859765 + 0.917115 -0.154491 0.367469 + 0.526034 -0.153285 0.836536 + 0.876882 -0.239622 0.416723 + 0.89705 -0.24954 0.364734 + 0.917115 -0.154491 0.367469 + 0.913115 -0.160709 0.374691 + 0.947592 -0.110171 0.299885 + 0.357213 0.0360971 0.933325 + 0.36278 0.0381554 0.931093 + 0.354851 0.0346138 0.934282 + 0.48963 0.0296276 0.871427 + 0.475166 0.0302242 0.879377 + 0.37635 0.0342205 0.925845 + 0.360014 0.0164526 0.932802 + 0.511544 0.0148924 0.859128 + 0.446037 0.0154005 0.894882 + 0.574152 0.0139314 0.81863 + 0.59917 0.00234074 0.800618 + 0.573725 0.0160324 0.818891 + 0.368566 0.0193364 0.9294 + 0.570373 0.0151217 0.821247 + 0.366786 0.018286 0.930126 + 0.456219 0.0149223 0.889743 + 0.243334 0.0202098 0.969732 + 0.446037 0.0154005 0.894882 + 0.360146 0.0173844 0.932734 + 0.360014 0.0164526 0.932802 + 0.357213 0.0360971 0.933325 + 0.37635 0.0342205 0.925845 + 0.36278 0.0381554 0.931093 + 0.562888 0.0329373 0.825876 + 0.48963 0.0296276 0.871427 + 0.625991 0.0126087 0.779728 + 0.59917 0.00234074 0.800618 + 0.377137 -0.0227927 0.925877 + 0.368566 0.0193364 0.9294 + 0.181215 0.00825169 0.983409 + 0.243334 0.0202098 0.969732 + 0.0125749 0.0219446 0.99968 + 0.843506 -0.00131975 0.537118 + 0.682588 0.0316539 0.730117 + 0.686187 -0.0978393 0.720815 + 0.617695 -0.0696033 0.783332 + 0.620359 -0.111666 0.776328 + 0.563641 -0.0805241 0.822086 + 0.674077 -0.0830994 0.733972 + 0.932185 -0.129835 0.337898 + 0.843506 -0.00131975 0.537118 + 0.842126 -0.126385 0.524262 + 0.686187 -0.0978393 0.720815 + 0.723496 -0.133317 0.677333 + 0.620359 -0.111666 0.776328 + 0.686442 -0.000728065 0.727184 + 0.682588 0.0316539 0.730117 + 0.850656 -0.005611 0.525693 + 0.843506 -0.00131975 0.537118 + 0.935831 0.00419512 0.352424 + 0.932185 -0.129835 0.337898 + 0.665216 0.0510877 0.744901 + 0.432847 0.0246889 0.901129 + 0.663051 0.0512163 0.74682 + 0.475166 0.0302242 0.879377 + 0.661105 0.051422 0.748529 + 0.48963 0.0296276 0.871427 + 0.659317 0.0313154 0.751213 + 0.562888 0.0329373 0.825876 + 0.661415 0.029451 0.749442 + 0.565511 0.0333274 0.824067 + 0.664049 0.00887219 0.747636 + 0.511544 0.0148924 0.859128 + 0.664436 0.0116312 0.747255 + 0.574152 0.0139314 0.81863 + 0.66484 0.0115679 0.746896 + 0.446037 0.0154005 0.894882 + 0.665197 0.0128107 0.746558 + 0.456219 0.0149223 0.889743 + 0.665125 0.0136148 0.746608 + 0.570373 0.0151217 0.821247 + 0.668307 0.0124996 0.743781 + 0.573725 0.0160324 0.818891 + 0.672161 -0.00206218 0.740403 + 0.59917 0.00234074 0.800618 + 0.686442 -0.000728065 0.727184 + 0.625991 0.0126087 0.779728 + 0.682588 0.0316539 0.730117 + 0.609006 0.057691 0.791065 + 0.617695 -0.0696033 0.783332 + 0.567833 -0.0551551 0.821294 + 0.563641 -0.0805241 0.822086 + 0.377137 -0.0227927 0.925877 + 0.674077 -0.0830994 0.733972 + 0.340508 -0.0645907 0.938021 + 0.706274 -0.110299 0.699294 + 0.715544 -0.152717 0.68167 + 0.692213 -0.126045 0.710601 + 0.679001 -0.158022 0.716929 + 0.620359 -0.111666 0.776328 + 0.699864 -0.238368 0.673329 + 0.723496 -0.133317 0.677333 + 0.828126 -0.177636 0.53165 + 0.842126 -0.126385 0.524262 + 0.913115 -0.160709 0.374691 + 0.932185 -0.129835 0.337898 + 0.947592 -0.110171 0.299885 + 0.935831 0.00419512 0.352424 + 0.936761 0.00180685 0.349964 + 0.850656 -0.005611 0.525693 + 0.850607 -0.000880343 0.525801 + 0.686442 -0.000728065 0.727184 + 0.672161 -0.00206218 0.740403 + 0.673497 0.0775002 0.735116 + 0.848096 0.0913888 0.521902 + 0.681578 0.0802888 0.727328 + 0.852454 0.103897 0.512374 + 0.682943 0.0952674 0.724232 + 0.854031 0.100551 0.510412 + 0.568503 0.0667631 0.819968 + 0.673497 0.0775002 0.735116 + 0.575657 0.0703031 0.814664 + 0.681578 0.0802888 0.727328 + 0.58364 0.0870263 0.807335 + 0.682943 0.0952674 0.724232 + 0.854031 0.100551 0.510412 + 0.685098 0.0930511 0.722483 + 0.682943 0.0952674 0.724232 + 0.584632 0.0903916 0.806247 + 0.58364 0.0870263 0.807335 + 0.378401 0.0654281 0.923326 + 0.575657 0.0703031 0.814664 + 0.372365 0.0533117 0.926554 + 0.568503 0.0667631 0.819968 + 0.586136 0.101424 0.803839 + 0.59319 0.108724 0.797687 + 0.384731 0.105365 0.916995 + 0.589844 0.107738 0.800298 + 0.371429 0.120276 0.920638 + 0.584678 0.122818 0.801915 + 0.563757 0.120516 0.817101 + 0.614304 0.131375 0.778056 + 0.535918 0.135788 0.833279 + 0.642792 0.117779 0.756932 + 0.563757 0.120516 0.817101 + 0.668154 0.117692 0.734655 + 0.584678 0.122818 0.801915 + 0.685622 0.108339 0.71985 + 0.589844 0.107738 0.800298 + 0.689253 0.106747 0.716614 + 0.59319 0.108724 0.797687 + 0.606579 0.117697 0.786263 + 0.586136 0.101424 0.803839 + 0.694812 0.120831 0.708969 + 0.371429 0.120276 0.920638 + 0.563757 0.120516 0.817101 + 0.330183 0.132482 0.934573 + 0.535918 0.135788 0.833279 + 0.361278 0.154602 0.919552 + 0.614304 0.131375 0.778056 + -0.955338 0.294586 0.0234302 + -0.734119 0.678881 0.0138236 + -0.0633419 0.0608633 -0.996134 + -0.716639 0.670527 -0.191891 + -0.988053 0.147135 -0.0458524 + -0.927641 0.166311 -0.334399 + -0.0633419 0.0608633 -0.996134 + -0.144234 0.155565 0.977239 + -0.955338 0.294586 0.0234302 + -0.932861 0.206506 0.29517 + -0.734119 0.678881 0.0138236 + -0.653971 -0.106578 0.748974 + -0.0180733 -0.174395 0.98451 + -0.0229032 -0.109221 0.993754 + -0.0186011 -0.0433094 0.998889 + -0.0177718 0.0799026 0.996644 + -0.00887221 -0.0132202 0.999873 + -0.0340834 -0.268143 0.962776 + -0.0121488 -0.0427887 0.99901 + 0.0226693 -0.296406 0.954793 + -0.0229032 -0.109221 0.993754 + 0.00756167 0.726484 0.687141 + -0.0177718 0.0799026 0.996644 + -0.0310655 0.158862 0.986812 + -0.0340834 -0.268143 0.962776 + 0.0226693 -0.296406 0.954793 + -0.00672933 0.0290716 0.999555 + -0.0110484 0.0759723 0.997049 + -0.00775901 0.0164771 0.999834 + -0.0510947 0.0541304 0.997226 + -0.0121488 -0.0427887 0.99901 + -0.639994 -0.00994665 0.768316 + -0.0229032 -0.109221 0.993754 + -0.85728 -0.0130984 0.514684 + -0.653971 -0.106578 0.748974 + -0.761826 -0.183916 0.621124 + -0.0180733 -0.174395 0.98451 + -0.0272049 0.187943 0.981803 + -0.0110484 0.0759723 0.997049 + -0.0117629 0.0812808 0.996622 + -0.00672933 0.0290716 0.999555 + -0.0130954 0.0509705 0.998614 + -0.00955646 -0.140025 0.990102 + -0.0125835 0.0477525 0.99878 + -0.0570403 0.688076 0.723393 + -0.0176886 0.682217 0.730936 + -0.00955646 -0.140025 0.990102 + 0.00496658 -0.1415 0.989926 + -0.00672933 0.0290716 0.999555 + -0.0176886 0.682217 0.730936 + -0.00775901 0.0164771 0.999834 + -0.0125835 0.0477525 0.99878 + -0.0186011 -0.0433094 0.998889 + -0.24368 0.0786037 0.966665 + -0.932861 0.206506 0.29517 + -0.144234 0.155565 0.977239 + -0.24368 0.0786037 0.966665 + -0.0180773 0.0817571 0.996488 + -0.0117629 0.0812808 0.996622 + -0.144234 0.155565 0.977239 + -0.0272049 0.187943 0.981803 + -0.0633419 0.0608633 -0.996134 + 0.82217 0.167558 0.544023 + 0.702666 0.646208 0.297784 + 0.456275 0.702762 0.545838 + -0.734119 0.678881 0.0138236 + -0.631682 0.672049 0.386429 + -0.932861 0.206506 0.29517 + -0.842203 0.167442 0.512502 + -0.24368 0.0786037 0.966665 + 0.792459 0.135965 0.594578 + 0.82217 0.167558 0.544023 + 0.623066 0.174035 0.762562 + 0.456275 0.702762 0.545838 + 0.342174 0.552823 0.759805 + -0.631682 0.672049 0.386429 + -0.513112 0.600339 0.61344 + -0.842203 0.167442 0.512502 + 0.207001 0.19492 0.958727 + 0.222565 0.184026 0.957392 + 0.361278 0.154602 0.919552 + 0.247562 0.155186 0.956363 + 0.330183 0.132482 0.934573 + 0.263608 0.13392 0.955289 + 0.371429 0.120276 0.920638 + 0.229314 0.430487 0.872981 + 0.207001 0.19492 0.958727 + 0.420168 0.178109 0.889796 + 0.361278 0.154602 0.919552 + 0.566352 0.149143 0.810557 + 0.614304 0.131375 0.778056 + 0.694812 0.120831 0.708969 + 0.853941 0.121784 0.505919 + 0.735076 0.114001 0.668331 + 0.868617 0.105634 0.484093 + 0.689253 0.106747 0.716614 + 0.859844 0.10646 0.499334 + 0.685622 0.108339 0.71985 + 0.857224 0.109983 0.503061 + 0.668154 0.117692 0.734655 + 0.845149 0.111086 0.522861 + 0.642792 0.117779 0.756932 + 0.825041 0.123142 0.551492 + 0.614304 0.131375 0.778056 + 0.792459 0.135965 0.594578 + 0.566352 0.149143 0.810557 + 0.623066 0.174035 0.762562 + 0.420168 0.178109 0.889796 + 0.342174 0.552823 0.759805 + 0.229314 0.430487 0.872981 + -0.513112 0.600339 0.61344 + 0.586136 0.101424 0.803839 + 0.676786 0.103677 0.728843 + 0.694812 0.120831 0.708969 + 0.824642 0.0983121 0.557045 + 0.853941 0.121784 0.505919 + 0.102256 0.0308836 0.994279 + 0.0657214 0.00213462 0.997836 + 0.17905 0.0375394 0.983124 + 0.180262 0.0350512 0.982994 + 0.357014 0.0134738 0.934002 + -0.998646 -0.0357334 0.0377929 + -0.993146 -0.0816028 0.0836803 + -0.999995 0.00130506 -0.00272662 + -0.999969 0.00728076 -0.00283115 + -0.99995 0.00653573 -0.00763167 + -0.992488 -0.0854414 0.0875658 + -0.996834 0.0664759 -0.0436344 + -0.902098 0.349501 -0.253115 + -0.996834 0.0664759 -0.0436344 + -0.99848 -0.0510832 0.0207029 + -0.992488 -0.0854414 0.0875658 + -0.99982 -0.00729988 0.0175069 + -0.980468 -0.16968 0.0994512 + -0.810049 0.303694 -0.501589 + -0.921156 0.331451 -0.203991 + -0.980655 0.135618 -0.141152 + -0.999969 0.00728076 -0.00283115 + -0.974302 -0.15636 0.162135 + -0.993146 -0.0816028 0.0836803 + -0.557474 0.088193 0.825497 + -0.995734 -0.0182274 0.0904536 + -0.835254 0.044524 0.548058 + -0.985827 -0.030196 0.165027 + -0.936778 0.0343918 0.348231 + -0.998646 -0.0357334 0.0377929 + -1 -0.000149736 -0.000771668 + -0.999995 0.00130506 -0.00272662 + -0.999463 0.0291888 -0.0149005 + -0.996834 0.0664759 -0.0436344 + -0.916002 0.356575 -0.183834 + -0.902098 0.349501 -0.253115 + -0.978908 -0.178373 0.0996144 + -0.99848 -0.0510832 0.0207029 + -0.255188 0.106515 0.961007 + -0.557474 0.088193 0.825497 + -0.239056 0.122498 0.963248 + -0.835254 0.044524 0.548058 + -0.211599 0.134756 0.968022 + -0.936778 0.0343918 0.348231 + -0.189374 0.158044 0.969102 + -0.962506 0.0437358 0.267711 + -0.958463 0.107217 0.264296 + -0.923204 0.109158 0.368481 + -0.924158 0.108965 0.366141 + -0.855927 0.109234 0.505427 + -0.847575 0.104477 0.52029 + -0.687478 0.106013 0.718426 + -0.664426 0.0956755 0.741205 + -0.589624 0.102168 0.80119 + -0.588514 0.113095 0.800538 + -0.389327 0.101423 0.915499 + -0.400552 0.107589 0.909935 + -0.255188 0.106515 0.961007 + -0.46955 0.117918 0.874996 + -0.239056 0.122498 0.963248 + -0.417868 0.130299 0.899115 + -0.211599 0.134756 0.968022 + -0.362176 0.151715 0.91968 + -0.189374 0.158044 0.969102 + -0.465522 0.0864492 0.880804 + -0.684435 0.105554 0.721392 + -0.683499 0.0951363 0.723725 + -0.855522 0.100093 0.507999 + -0.853993 0.103194 0.509948 + -0.923133 0.103735 0.370221 + -0.922175 0.1036 0.37264 + -0.957939 0.100768 0.268699 + -0.20159 0.0559937 0.977868 + -0.381618 0.0918159 0.919749 + -0.465522 0.0864492 0.880804 + -0.589397 0.104452 0.801063 + -0.684435 0.105554 0.721392 + -0.985998 0.000744952 0.166754 + -0.336735 0.0824186 0.937985 + -0.958634 0.000640249 0.284642 + -0.239661 0.0580694 0.969118 + -0.959386 0.00274855 0.282085 + -0.3867 0.098852 0.916892 + -0.239059 0.0912388 0.966709 + -0.213572 0.0943459 0.972361 + -0.336735 0.0824186 0.937985 + -0.433123 0.0806048 0.897723 + -0.985998 0.000744952 0.166754 + -0.981366 0.000663125 0.192145 + -0.857719 0.00343682 0.514107 + -0.959386 0.00274855 0.282085 + -0.183492 0.0371722 0.982318 + -0.239661 0.0580694 0.969118 + -0.20159 0.0559937 0.977868 + -0.239059 0.0912388 0.966709 + -0.381618 0.0918159 0.919749 + -0.3867 0.098852 0.916892 + -0.589397 0.104452 0.801063 + -0.243479 -0.00323714 0.969901 + -0.981366 0.000663125 0.192145 + -0.264474 0.00017893 0.964393 + -0.985998 0.000744952 0.166754 + -0.353824 0.000270401 0.935312 + -0.958634 0.000640249 0.284642 + -0.281779 0.000177986 0.959479 + -0.959386 0.00274855 0.282085 + -0.322454 0.00234942 0.946582 + -0.857719 0.00343682 0.514107 + -0.156109 -0.678298 0.718013 + -0.165666 -0.159224 0.973243 + 0.138111 -0.218796 0.965947 + -0.243479 -0.00323714 0.969901 + 0.301371 -0.00646588 0.953485 + -0.264474 0.00017893 0.964393 + 0.371942 -0.000254752 0.928256 + -0.353824 0.000270401 0.935312 + 0.281358 -0.000173339 0.959603 + -0.281779 0.000177986 0.959479 + 0.352956 -0.000219665 0.93564 + -0.322454 0.00234942 0.946582 + 0.981135 -0.00060013 0.193323 + 0.468329 0.0906193 0.878895 + 0.995184 -0.000681407 0.0980205 + 0.613428 0.0779165 0.785898 + 0.995923 -0.0338464 0.0836205 + 0.900539 0.0342346 0.433425 + 0.993883 -0.0163679 0.109214 + 0.996683 -0.05365 0.061191 + 0.138111 -0.218796 0.965947 + 0.993883 -0.0163679 0.109214 + 0.301371 -0.00646588 0.953485 + 0.995923 -0.0338464 0.0836205 + 0.371942 -0.000254752 0.928256 + 0.995184 -0.000681407 0.0980205 + 0.281358 -0.000173339 0.959603 + 0.981135 -0.00060013 0.193323 + 0.352956 -0.000219665 0.93564 + 0.388591 0.100098 0.915957 + 0.246136 0.107107 0.963299 + 0.249184 0.0973938 0.963546 + 0.468329 0.0906193 0.878895 + 0.364287 0.0821691 0.927655 + 0.981135 -0.00060013 0.193323 + 0.983813 -0.000620761 0.179195 + 0.352956 -0.000219665 0.93564 + 0.259093 -0.000190196 0.965852 + -0.322454 0.00234942 0.946582 + -0.145886 0.000102144 0.989301 + -0.857719 0.00343682 0.514107 + 0.145316 -0.0117865 0.989315 + 0.821917 -0.00844276 0.569545 + 0.942426 0.00194746 0.334408 + 0.174155 0.0318112 0.984204 + 0.194203 0.0504345 0.979664 + 0.17905 0.0375394 0.983124 + 0.259616 0.0618618 0.963729 + 0.382094 0.0911561 0.919617 + 0.18785 0.0863217 0.978397 + 0.259616 0.0618618 0.963729 + 0.269745 0.0779345 0.959773 + 0.194203 0.0504345 0.979664 + 0.930758 0.00135738 0.365634 + 0.942426 0.00194746 0.334408 + 0.339716 0.00221503 0.940525 + 0.145316 -0.0117865 0.989315 + 0.589643 0.103869 0.800957 + 0.388591 0.100098 0.915957 + 0.382094 0.0911561 0.919617 + 0.249184 0.0973938 0.963546 + 0.18785 0.0863217 0.978397 + 0.364287 0.0821691 0.927655 + 0.269745 0.0779345 0.959773 + 0.983813 -0.000620761 0.179195 + 0.930758 0.00135738 0.365634 + 0.259093 -0.000190196 0.965852 + 0.339716 0.00221503 0.940525 + -0.145886 0.000102144 0.989301 + 0.145316 -0.0117865 0.989315 + -0.252998 -0.0124925 0.967386 + -0.152927 -0.678672 0.718343 + -0.156109 -0.678298 0.718013 + 0.152889 -0.678531 0.718485 + 0.138111 -0.218796 0.965947 + 0.996226 -0.060019 0.0626954 + 0.996683 -0.05365 0.061191 + 1 -0.000232861 -0.000582445 + 0.993883 -0.0163679 0.109214 + 0.968234 0.0381247 0.247123 + 0.900539 0.0342346 0.433425 + 0.263608 0.13392 0.955289 + 0.208568 0.124465 0.970056 + 0.371429 0.120276 0.920638 + 0.246136 0.107107 0.963299 + 0.384731 0.105365 0.916995 + 0.388591 0.100098 0.915957 + 0.586136 0.101424 0.803839 + 0.589643 0.103869 0.800957 + 0.676786 0.103677 0.728843 + -0.982238 0.103699 0.156379 + -0.957939 0.100768 0.268699 + -0.958463 0.107217 0.264296 + -0.923133 0.103735 0.370221 + -0.923204 0.109158 0.368481 + -0.855522 0.100093 0.507999 + -0.855927 0.109234 0.505427 + -0.684435 0.105554 0.721392 + -0.687478 0.106013 0.718426 + -0.589397 0.104452 0.801063 + -0.589624 0.102168 0.80119 + -0.3867 0.098852 0.916892 + -0.389327 0.101423 0.915499 + -0.213572 0.0943459 0.972361 + -0.255188 0.106515 0.961007 + -0.433123 0.0806048 0.897723 + -0.557474 0.088193 0.825497 + -0.981366 0.000663125 0.192145 + -0.995734 -0.0182274 0.0904536 + -0.243479 -0.00323714 0.969901 + -0.985827 -0.030196 0.165027 + -0.165666 -0.159224 0.973243 + -0.998646 -0.0357334 0.0377929 + -0.156109 -0.678298 0.718013 + -0.993146 -0.0816028 0.0836803 + -0.152927 -0.678672 0.718343 + -0.974302 -0.15636 0.162135 + 0.958259 0.105898 0.265568 + 0.988827 0.103089 0.107671 + 0.985328 0.104993 0.134559 + 0.994799 0.10186 0.000293171 + 0.99477 0.102003 0.00532476 + 0.990783 0.100335 -0.0910074 + 0.992191 0.100949 -0.0732496 + 0.968532 0.0961801 -0.229556 + 0.973861 0.0986373 -0.204611 + 0.456128 0.0535522 -0.888301 + 0.554113 0.0734257 -0.829197 + 0.202132 0.030966 -0.978869 + 0.221766 0.0475359 -0.973941 + -0.021906 0.0267368 -0.999402 + 0.0125209 0.043046 -0.998995 + -0.220235 0.033758 -0.974863 + -0.210094 0.0467173 -0.976564 + -0.579938 0.0688987 -0.811742 + -0.492224 0.0707878 -0.867585 + -0.974054 0.0991563 -0.20344 + -0.970833 0.0997143 -0.218038 + -0.992266 0.102354 -0.0702304 + -0.991241 0.10205 -0.0838232 + -0.994644 0.103158 0.00646954 + -0.99466 0.103196 0.00158437 + -0.982238 0.103699 0.156379 + -0.989682 0.105683 0.0967508 + -0.958463 0.107217 0.264296 + 0.0425647 -0.422937 0.905159 + 0.0741961 -0.837761 0.540972 + 0.0252352 -0.234442 0.971803 + 0.793478 -0.256537 0.551889 + 0.651815 -0.107139 0.750772 + 0.877606 -0.0224866 0.478855 + 0.0252352 -0.234442 0.971803 + 0.0125148 -0.0989754 0.995011 + 0.0454301 -0.179072 0.982786 + 0.0104309 -0.0911511 0.995782 + 0.0252352 -0.234442 0.971803 + 0.634763 -0.0733192 0.769221 + 0.877606 -0.0224866 0.478855 + 0.0750443 -0.0420033 0.996295 + 0.979189 0.112981 0.168596 + 0.993461 0.111634 0.0239573 + 0.982512 0.120491 0.141958 + 0.0454301 -0.179072 0.982786 + 0.0190275 -0.026294 0.999473 + 0.0125148 -0.0989754 0.995011 + 0.00818028 -0.0183167 0.999799 + 0.050229 -0.293016 0.954787 + -0.00914494 -0.274942 0.961417 + 0.0330996 0.583512 0.81143 + -0.0214409 0.36004 0.93269 + 0.0104309 -0.0911511 0.995782 + -0.00914494 -0.274942 0.961417 + 0.0750443 -0.0420033 0.996295 + 0.00818028 -0.0183167 0.999799 + 0.971084 0.100115 -0.216731 + 0.992076 0.104771 -0.0693416 + 0.991348 0.101168 -0.0836302 + 0.99475 0.102145 0.00619676 + 0.994785 0.101976 0.00178872 + 0.994578 0.103585 0.00920996 + 0.994715 0.10264 -0.00249811 + 0.989367 0.10845 -0.0969123 + 0.992076 0.104771 -0.0693416 + 0.973787 0.111712 -0.198139 + 0.971084 0.100115 -0.216731 + 0.994529 0.104374 -0.00422785 + 0.994578 0.103585 0.00920996 + 0.992192 0.108846 -0.0608975 + 0.989367 0.10845 -0.0969123 + 0.97048 0.117468 -0.210641 + 0.973787 0.111712 -0.198139 + 0.994083 0.108549 0.00390055 + 0.994529 0.104374 -0.00422785 + 0.988084 0.113253 -0.104233 + 0.992192 0.108846 -0.0608975 + 0.981737 0.117375 -0.149721 + 0.97048 0.117468 -0.210641 + 0.993721 0.11099 -0.0141255 + 0.994083 0.108549 0.00390055 + 0.990531 0.113677 -0.0769822 + 0.988084 0.113253 -0.104233 + 0.980276 0.119095 -0.157717 + 0.981737 0.117375 -0.149721 + -0.988529 0.104058 0.109467 + -0.950178 0.104146 0.293794 + -0.987555 0.103699 0.118244 + -0.945099 0.103536 0.309949 + -0.978798 0.106966 0.174679 + -0.93507 0.111068 0.336614 + -0.927202 0.0988709 0.361277 + -0.950178 0.104146 0.293794 + -0.959565 0.106836 0.260425 + -0.988529 0.104058 0.109467 + -0.985064 0.106368 0.135406 + -0.815104 0.120095 0.566729 + -0.93507 0.111068 0.336614 + -0.84572 0.111106 0.521932 + -0.945099 0.103536 0.309949 + -0.860368 0.108585 0.497972 + -0.950178 0.104146 0.293794 + -0.889022 0.122887 0.441066 + -0.927202 0.0988709 0.361277 + -0.565535 0.147098 0.8115 + -0.815104 0.120095 0.566729 + -0.65795 0.122634 0.74301 + -0.84572 0.111106 0.521932 + -0.688204 0.114167 0.716479 + -0.860368 0.108585 0.497972 + -0.706493 0.112926 0.698652 + -0.889022 0.122887 0.441066 + -0.994628 0.103382 0.00523476 + -0.985064 0.106368 0.135406 + -0.994602 0.103757 0.000916794 + -0.988529 0.104058 0.109467 + -0.994492 0.104807 0.00134964 + -0.987555 0.103699 0.118244 + -0.994249 0.106964 0.00528041 + -0.978798 0.106966 0.174679 + -0.9804 0.118285 0.157558 + -0.93507 0.111068 0.336614 + -0.918318 0.129396 0.374098 + -0.815104 0.120095 0.566729 + -0.781306 0.142614 0.607637 + -0.565535 0.147098 0.8115 + -0.707585 0.169097 0.686098 + -0.367375 0.185362 0.911415 + -0.36292 0.467097 0.806294 + -0.235508 0.375703 0.896317 + 0.106753 0.41554 0.903289 + 0.105551 0.316833 0.94259 + -0.0312096 -0.373015 0.9273 + -0.913777 -0.00228753 -0.40621 + -0.0136057 -0.014691 -0.999799 + -0.692138 0.0173531 -0.721557 + -0.0174848 0.0370368 -0.999161 + -0.435617 0.225022 0.871552 + -0.107815 0.634471 0.76539 + -0.383639 0.0445501 0.922408 + -0.0427091 0.0742273 0.996326 + -0.92835 0.0150611 0.371402 + -0.0458382 -0.211087 0.976392 + -0.0312096 -0.373015 0.9273 + -0.125939 -0.664854 0.736281 + -0.0136057 -0.014691 -0.999799 + -0.0308203 0.0130091 -0.99944 + -0.00677073 0.0281792 -0.99958 + -0.00924663 0.0473795 -0.998834 + -0.107815 0.634471 0.76539 + -0.0313361 0.217266 0.975609 + -0.0427091 0.0742273 0.996326 + -0.992113 0.103045 -0.0713717 + -0.994628 0.103382 0.00523476 + -0.990535 0.10791 -0.0848264 + -0.994602 0.103757 0.000916794 + -0.990099 0.11168 -0.0850403 + -0.994492 0.104807 0.00134964 + -0.990111 0.113756 -0.0820943 + -0.994249 0.106964 0.00528041 + -0.988247 0.127093 -0.0849477 + -0.993476 0.114009 -0.00274624 + -0.0308203 0.0130091 -0.99944 + -0.993342 0.112731 0.023754 + -0.125939 -0.664854 0.736281 + -0.9804 0.118285 0.157558 + -0.0458382 -0.211087 0.976392 + -0.974214 0.102299 -0.2011 + -0.992113 0.103045 -0.0713717 + -0.969137 0.115998 -0.217527 + -0.990535 0.10791 -0.0848264 + -0.967465 0.125346 -0.219771 + -0.990099 0.11168 -0.0850403 + -0.966272 0.128961 -0.222907 + -0.990111 0.113756 -0.0820943 + -0.95978 0.138242 -0.24436 + -0.988247 0.127093 -0.0849477 + -0.566074 0.0891722 -0.819517 + -0.974214 0.102299 -0.2011 + -0.479097 0.146418 -0.865464 + -0.969137 0.115998 -0.217527 + -0.480768 0.180582 -0.858051 + -0.967465 0.125346 -0.219771 + -0.511753 0.188465 -0.838206 + -0.966272 0.128961 -0.222907 + -0.454474 0.182925 -0.871775 + -0.95978 0.138242 -0.24436 + -0.927641 0.166311 -0.334399 + -0.988247 0.127093 -0.0849477 + -0.988053 0.147135 -0.0458524 + -0.0308203 0.0130091 -0.99944 + -0.0633419 0.0608633 -0.996134 + -0.00924663 0.0473795 -0.998834 + -0.0272049 0.187943 0.981803 + -0.0313361 0.217266 0.975609 + -0.0110484 0.0759723 0.997049 + -0.0427091 0.0742273 0.996326 + -0.0510947 0.0541304 0.997226 + -0.92835 0.0150611 0.371402 + -0.85728 -0.0130984 0.514684 + -0.913777 -0.00228753 -0.40621 + -0.761826 -0.183916 0.621124 + -0.0312096 -0.373015 0.9273 + -0.0180733 -0.174395 0.98451 + -0.0458382 -0.211087 0.976392 + -0.0186011 -0.0433094 0.998889 + -0.9804 0.118285 0.157558 + -0.24368 0.0786037 0.966665 + -0.918318 0.129396 0.374098 + -0.842203 0.167442 0.512502 + -0.707585 0.169097 0.686098 + -0.513112 0.600339 0.61344 + -0.36292 0.467097 0.806294 + 0.229314 0.430487 0.872981 + 0.106753 0.41554 0.903289 + 0.207001 0.19492 0.958727 + 0.105551 0.316833 0.94259 + 0.222565 0.184026 0.957392 + 0.965501 0.2546 0.0546543 + 0.976212 0.0619814 0.207771 + -0.223828 0.0602511 -0.972765 + -0.566074 0.0891722 -0.819517 + -0.209101 0.129348 -0.969302 + -0.479097 0.146418 -0.865464 + -0.206236 0.173542 -0.96299 + -0.480768 0.180582 -0.858051 + -0.203052 0.186406 -0.961261 + -0.511753 0.188465 -0.838206 + -0.170225 0.179956 -0.968834 + -0.454474 0.182925 -0.871775 + -0.137921 0.177436 -0.97442 + -0.237943 0.191013 -0.952312 + -0.0143449 0.0570016 -0.998271 + -0.223828 0.0602511 -0.972765 + 0.0177318 0.13121 -0.991196 + -0.209101 0.129348 -0.969302 + 0.0101568 0.176668 -0.984218 + -0.206236 0.173542 -0.96299 + -0.0136764 0.190333 -0.981624 + -0.203052 0.186406 -0.961261 + -0.0151509 0.183711 -0.982864 + -0.170225 0.179956 -0.968834 + -0.0378605 0.184231 -0.982154 + -0.137921 0.177436 -0.97442 + 0.211943 0.0601087 -0.975432 + -0.0143449 0.0570016 -0.998271 + 0.224819 0.131276 -0.965517 + 0.0177318 0.13121 -0.991196 + 0.214495 0.173528 -0.961187 + 0.0101568 0.176668 -0.984218 + 0.188665 0.185597 -0.964344 + -0.0136764 0.190333 -0.981624 + 0.151664 0.178482 -0.972184 + -0.0151509 0.183711 -0.982864 + 0.0957422 0.18223 -0.978584 + -0.0378605 0.184231 -0.982154 + 0.533871 0.172597 -0.827763 + 0.449358 0.186355 -0.873699 + 0.944624 0.135608 -0.298823 + 0.940104 0.145936 -0.308071 + 0.978279 0.121594 -0.167885 + 0.988368 0.124756 -0.0869747 + 0.488647 0.0768008 -0.869095 + 0.211943 0.0601087 -0.975432 + 0.572462 0.133463 -0.808996 + 0.224819 0.131276 -0.965517 + 0.533871 0.172597 -0.827763 + 0.214495 0.173528 -0.961187 + 0.449358 0.186355 -0.873699 + 0.188665 0.185597 -0.964344 + 0.366677 0.184443 -0.911882 + 0.151664 0.178482 -0.972184 + 0.350701 0.185484 -0.917935 + 0.0957422 0.18223 -0.978584 + 0.025599 0.00555523 -0.999657 + 0.993721 0.11099 -0.0141255 + 0.988368 0.124756 -0.0869747 + 0.990531 0.113677 -0.0769822 + 0.978279 0.121594 -0.167885 + 0.980276 0.119095 -0.157717 + 0.944624 0.135608 -0.298823 + 0.981737 0.117375 -0.149721 + 0.949282 0.130391 -0.286114 + 0.97048 0.117468 -0.210641 + 0.572462 0.133463 -0.808996 + 0.973787 0.111712 -0.198139 + 0.488647 0.0768008 -0.869095 + 0.971084 0.100115 -0.216731 + 0.00900951 0.0408192 -0.999126 + 0.025599 0.00555523 -0.999657 + 0.167208 0.0578399 -0.984224 + 0.988368 0.124756 -0.0869747 + 0.968558 0.159625 -0.190829 + 0.940104 0.145936 -0.308071 + 0.871856 0.192695 -0.450261 + 0.350701 0.185484 -0.917935 + 0.785456 0.0104981 -0.618828 + 0.0124621 0.00200151 -0.99992 + 0.012038 0.0276515 -0.999545 + 0.025599 0.00555523 -0.999657 + 0.00944746 0.0438823 -0.998992 + 0.00900951 0.0408192 -0.999126 + 0.0335657 0.0287218 0.999024 + 0.913729 0.00336815 0.406311 + 0.923061 0.0244938 0.383874 + 0.785456 0.0104981 -0.618828 + 0.530069 0.0323726 -0.847337 + 0.012038 0.0276515 -0.999545 + 0.988192 0.104591 0.111971 + 0.994785 0.101976 0.00178872 + 0.984835 0.102618 0.139891 + 0.99475 0.102145 0.00619676 + 0.990851 0.101949 0.0884379 + 0.994715 0.10264 -0.00249811 + 0.980574 0.102917 0.166981 + 0.994578 0.103585 0.00920996 + 0.990555 0.102678 0.0908754 + 0.994529 0.104374 -0.00422785 + 0.979189 0.112981 0.168596 + 0.994083 0.108549 0.00390055 + 0.993461 0.111634 0.0239573 + 0.993721 0.11099 -0.0141255 + 0.0425647 -0.422937 0.905159 + 0.025599 0.00555523 -0.999657 + 0.0741961 -0.837761 0.540972 + 0.0124621 0.00200151 -0.99992 + 0.793478 -0.256537 0.551889 + 0.785456 0.0104981 -0.618828 + 0.877606 -0.0224866 0.478855 + 0.913729 0.00336815 0.406311 + 0.0750443 -0.0420033 0.996295 + 0.0335657 0.0287218 0.999024 + 0.00818028 -0.0183167 0.999799 + 0.00744668 0.0302017 0.999516 + 0.0190275 -0.026294 0.999473 + 0.228002 0.217014 0.949168 + -0.577162 0.27333 0.769529 + -0.216854 0.00773737 0.976173 + -0.958175 0.0463643 0.282403 + -0.922087 0.00741314 0.386912 + -0.99982 -0.00729988 0.0175069 + -0.988861 0.0017389 0.148834 + -0.980655 0.135618 -0.141152 + -0.931928 -0.195351 0.305529 + -0.974302 -0.15636 0.162135 + -0.149215 -0.645522 0.749024 + -0.152927 -0.678672 0.718343 + 0.150373 -0.67882 0.718743 + 0.152889 -0.678531 0.718485 + 0.991367 -0.0906966 0.0946831 + 0.996226 -0.060019 0.0626954 + 0.999999 -0.000966012 -0.000417222 + 1 -0.000232861 -0.000582445 + 0.998158 0.0530187 -0.0294905 + 0.968234 0.0381247 0.247123 + 0.999376 -0.0287489 0.0205377 + 0.976212 0.0619814 0.207771 + 0.996601 0.0803544 -0.0181476 + 0.965501 0.2546 0.0546543 + 0.93864 0.34173 0.0466539 + 0.999558 0.0269836 -0.0124795 + 0.990522 -0.0700741 0.118137 + 0.999998 0.000891741 -0.00163643 + 0.99669 0.0654976 -0.0481578 + 0.859479 0.490052 -0.145415 + -0.941264 0.316667 -0.117236 + -0.942762 0.318617 -0.0984003 + -0.998298 0.0539522 -0.0221501 + -0.99728 0.0736733 -0.00239543 + 0.936473 0.0777579 0.342011 + 0.99614 0.0863427 -0.0158392 + 0.859479 0.490052 -0.145415 + 0.928734 0.34815 -0.127452 + -0.941264 0.316667 -0.117236 + 0.94119 0.31622 -0.11902 + -0.966922 0.240143 -0.0859797 + -0.962173 0.264448 -0.0655021 + -0.99722 0.0719254 -0.0194873 + -0.996361 0.0577348 0.0627085 + -0.99836 -0.0475691 0.0318444 + 0.0852069 0.00447629 0.996353 + 0.202037 -0.00248597 0.979375 + 0.936473 0.0777579 0.342011 + 0.973036 0.00261923 0.230639 + 0.99614 0.0863427 -0.0158392 + 0.996659 0.00319883 0.0816072 + 0.999338 -0.0324728 0.0164197 + 0.986133 0.0966119 -0.134939 + 0.984768 -0.171521 -0.0285042 + 0.903456 0.316435 -0.289198 + 0.972754 -0.172301 0.155119 + 0.980633 -0.179247 0.0789305 + 0.998026 -0.0554943 0.0293911 + 0.99669 0.0654976 -0.0481578 + 0.999338 -0.0324728 0.0164197 + 0.990522 -0.0700741 0.118137 + 0.972754 -0.172301 0.155119 + 0.93864 0.34173 0.0466539 + 0.903456 0.316435 -0.289198 + 0.999558 0.0269836 -0.0124795 + 0.986133 0.0966119 -0.134939 + 0.961637 -0.177302 0.209327 + 0.793885 -0.148042 0.589771 + 0.15259 -0.590955 0.792142 + 0.169483 -0.209254 0.963062 + -0.114372 -0.204307 0.972203 + 0.202037 -0.00248597 0.979375 + -0.0980872 -0.00137172 0.995177 + 0.0852069 0.00447629 0.996353 + 0.854436 0.106839 0.508453 + 0.944584 0.103399 0.311561 + 0.924234 0.10723 0.366461 + 0.958259 0.105898 0.265568 + 0.958291 0.106853 0.265067 + 0.985328 0.104993 0.134559 + 0.988192 0.104591 0.111971 + 0.99477 0.102003 0.00532476 + 0.994785 0.101976 0.00178872 + 0.992191 0.100949 -0.0732496 + 0.991348 0.101168 -0.0836302 + 0.973861 0.0986373 -0.204611 + 0.971084 0.100115 -0.216731 + 0.554113 0.0734257 -0.829197 + 0.488647 0.0768008 -0.869095 + 0.221766 0.0475359 -0.973941 + 0.211943 0.0601087 -0.975432 + 0.0125209 0.043046 -0.998995 + -0.0143449 0.0570016 -0.998271 + -0.210094 0.0467173 -0.976564 + -0.223828 0.0602511 -0.972765 + -0.492224 0.0707878 -0.867585 + -0.566074 0.0891722 -0.819517 + -0.970833 0.0997143 -0.218038 + -0.974214 0.102299 -0.2011 + -0.991241 0.10205 -0.0838232 + -0.992113 0.103045 -0.0713717 + -0.99466 0.103196 0.00158437 + -0.994628 0.103382 0.00523476 + -0.989682 0.105683 0.0967508 + -0.985064 0.106368 0.135406 + -0.958463 0.107217 0.264296 + -0.959565 0.106836 0.260425 + -0.924158 0.108965 0.366141 + -0.927202 0.0988709 0.361277 + -0.855267 0.091514 0.510042 + -0.889022 0.122887 0.441066 + -0.69926 0.149605 0.699037 + -0.706493 0.112926 0.698652 + -0.599903 0.108189 0.792724 + -0.688204 0.114167 0.716479 + -0.46955 0.117918 0.874996 + -0.65795 0.122634 0.74301 + -0.417868 0.130299 0.899115 + -0.565535 0.147098 0.8115 + -0.362176 0.151715 0.91968 + -0.303453 0.178685 0.935942 + -0.189374 0.158044 0.969102 + -0.123378 0.19061 0.973882 + -0.962506 0.0437358 0.267711 + -0.996361 0.0577348 0.0627085 + -0.999463 0.0291888 -0.0149005 + -0.99836 -0.0475691 0.0318444 + -0.916002 0.356575 -0.183834 + -0.977461 -0.178794 0.11226 + -0.978908 -0.178373 0.0996144 + -0.99836 -0.0475691 0.0318444 + -0.99848 -0.0510832 0.0207029 + -0.998298 0.0539522 -0.0221501 + -0.99982 -0.00729988 0.0175069 + -0.99728 0.0736733 -0.00239543 + -0.958175 0.0463643 0.282403 + -0.957287 0.251018 0.1435 + -0.577162 0.27333 0.769529 + -0.942762 0.318617 -0.0984003 + 0.228002 0.217014 0.949168 + 0.859479 0.490052 -0.145415 + 0.946554 0.278838 0.162126 + 0.936473 0.0777579 0.342011 + 0.228002 0.217014 0.949168 + 0.0852069 0.00447629 0.996353 + -0.216854 0.00773737 0.976173 + -0.0980872 -0.00137172 0.995177 + -0.922087 0.00741314 0.386912 + -0.757774 -0.0959764 0.64542 + -0.931928 -0.195351 0.305529 + -0.114372 -0.204307 0.972203 + -0.149215 -0.645522 0.749024 + 0.15259 -0.590955 0.792142 + 0.150373 -0.67882 0.718743 + 0.961637 -0.177302 0.209327 + 0.991367 -0.0906966 0.0946831 + 0.999558 0.0269836 -0.0124795 + 0.999999 -0.000966012 -0.000417222 + 0.999998 0.000891741 -0.00163643 + 0.998158 0.0530187 -0.0294905 + 0.99669 0.0654976 -0.0481578 + 0.912929 0.348746 -0.211985 + 0.980633 -0.179247 0.0789305 + 0.977935 -0.178884 0.107906 + 0.998026 -0.0554943 0.0293911 + 0.999376 -0.0287489 0.0205377 + 0.998393 0.0522071 -0.0220544 + 0.996601 0.0803544 -0.0181476 + 0.961984 0.261881 -0.0774958 + 0.965501 0.2546 0.0546543 + -0.90896 0.415707 0.0312864 + -0.0609452 0.288732 0.955468 + -0.996361 0.0577348 0.0627085 + -0.123378 0.19061 0.973882 + 0.372365 0.0533117 0.926554 + 0.570405 0.0414849 0.820315 + 0.568503 0.0667631 0.819968 + 0.667092 0.0501944 0.743282 + 0.673497 0.0775002 0.735116 + 0.843093 0.0895194 0.530265 + 0.848096 0.0913888 0.521902 + 0.919778 0.0956965 0.380593 + 0.922402 0.0975088 0.373719 + 0.956389 0.100626 0.274216 + 0.921897 0.101934 0.373786 + 0.944584 0.103399 0.311561 + 0.854031 0.100551 0.510412 + 0.854436 0.106839 0.508453 + 0.685098 0.0930511 0.722483 + -0.252998 -0.0124925 0.967386 + -0.145886 0.000102144 0.989301 + -0.83482 -0.00393454 0.550508 + -0.857719 0.00343682 0.514107 + -0.13219 0.0266787 0.990865 + -0.183492 0.0371722 0.982318 + -0.248705 0.0427871 0.967634 + -0.20159 0.0559937 0.977868 + -0.373841 0.0600696 0.925546 + -0.465522 0.0864492 0.880804 + -0.589246 0.0903576 0.802885 + -0.683499 0.0951363 0.723725 + -0.681278 0.0979124 0.725447 + -0.853993 0.103194 0.509948 + -0.853277 0.0941871 0.512881 + -0.922175 0.1036 0.37264 + -0.919971 0.0969145 0.379817 + -0.957939 0.100768 0.268699 + -0.956108 0.100833 0.275119 + -0.982238 0.103699 0.156379 + -0.98922 0.103371 0.103726 + -0.994644 0.103158 0.00646954 + -0.99467 0.103105 -0.00130525 + -0.992266 0.102354 -0.0702304 + -0.990131 0.101505 -0.0966261 + -0.974054 0.0991563 -0.20344 + -0.964618 0.100529 -0.243733 + -0.579938 0.0688987 -0.811742 + -0.422017 0.0742492 -0.903542 + -0.220235 0.033758 -0.974863 + -0.18885 0.0410399 -0.981148 + -0.021906 0.0267368 -0.999402 + 0.0207206 0.0173012 -0.999636 + 0.202132 0.030966 -0.978869 + 0.216101 0.0250977 -0.976048 + 0.456128 0.0535522 -0.888301 + 0.55323 0.0858801 -0.82859 + 0.968532 0.0961801 -0.229556 + 0.973292 0.101489 -0.205917 + 0.990783 0.100335 -0.0910074 + 0.992559 0.100782 -0.0683339 + 0.994799 0.10186 0.000293171 + 0.994762 0.101899 0.00813227 + 0.988827 0.103089 0.107671 + 0.981973 0.101708 0.159328 + 0.956389 0.100626 0.274216 + 0.954889 0.0982374 0.280243 + 0.919778 0.0956965 0.380593 + 0.938996 0.0896355 0.332043 + 0.843093 0.0895194 0.530265 + 0.843436 0.0726022 0.532301 + 0.667092 0.0501944 0.743282 + 0.665216 0.0510877 0.744901 + 0.570405 0.0414849 0.820315 + 0.432847 0.0246889 0.901129 + 0.372365 0.0533117 0.926554 + 0.140079 0.0408297 0.989298 + 0.063067 0.0402268 0.997198 + 0.167837 0.0390305 0.985042 + 0.0618759 0.0197997 0.997887 + 0.158109 0.0186663 0.987245 + -0.529999 0.00952205 0.847945 + -0.0538163 0.030024 0.998099 + -0.112095 -0.0107504 0.993639 + 0.0618759 0.0197997 0.997887 + 0.0165432 0.0778725 0.996826 + 0.063067 0.0402268 0.997198 + 0.229379 -0.00592648 0.973319 + 0.140079 0.0408297 0.989298 + 0.357198 0.0167378 0.933879 + 0.357014 0.0134738 0.934002 + 0.356389 0.037597 0.933581 + 0.180262 0.0350512 0.982994 + 0.167837 0.0390305 0.985042 + 0.102256 0.0308836 0.994279 + 0.140079 0.0408297 0.989298 + 0.821917 -0.00844276 0.569545 + 0.229379 -0.00592648 0.973319 + 0.145316 -0.0117865 0.989315 + -0.112095 -0.0107504 0.993639 + -0.252998 -0.0124925 0.967386 + -0.529999 0.00952205 0.847945 + -0.83482 -0.00393454 0.550508 + 0.0111041 0.0481745 0.998777 + 0.0113735 0.0823783 0.996536 + 0.0103897 0.0751955 0.997115 + 0.014985 0.0885232 0.995961 + 0.0300972 0.211002 0.977022 + 0.260264 0.0692062 0.963054 + 0.0111041 0.0481745 0.998777 + 0.0412494 0.0839919 0.995612 + 0.0103897 0.0751955 0.997115 + 0.0352967 0.247346 0.968284 + 0.0300972 0.211002 0.977022 + 0.349652 0.0659647 0.934555 + 0.014985 0.0885232 0.995961 + 0.0210897 0.081856 0.996421 + 0.0113735 0.0823783 0.996536 + 0.0072415 0.0483875 0.998802 + 0.0111041 0.0481745 0.998777 + -0.0111273 -0.141882 0.989821 + 0.0187671 -0.138805 0.990142 + 0.0512951 0.68684 0.724996 + 0.010578 0.0231416 0.999676 + 0.930316 0.126554 0.344233 + 0.260264 0.0692062 0.963054 + 0.918875 0.163136 0.359242 + 0.0412494 0.0839919 0.995612 + 0.26221 0.385082 0.884849 + 0.0352967 0.247346 0.968284 + 0.955821 0.293297 -0.0195974 + 0.712876 0.701254 -0.00707947 + 0.26221 0.385082 0.884849 + 0.702666 0.646208 0.297784 + 0.918875 0.163136 0.359242 + 0.82217 0.167558 0.544023 + 0.930316 0.126554 0.344233 + 0.792459 0.135965 0.594578 + 0.921549 0.115807 0.37059 + 0.825041 0.123142 0.551492 + 0.945768 0.102217 0.30834 + 0.845149 0.111086 0.522861 + 0.937089 0.105044 0.332912 + 0.857224 0.109983 0.503061 + 0.951731 0.101374 0.289709 + 0.859844 0.10646 0.499334 + 0.944606 0.103601 0.311426 + 0.868617 0.105634 0.484093 + 0.942976 0.107994 0.314855 + 0.853941 0.121784 0.505919 + 0.924832 0.104019 0.365878 + 0.824642 0.0983121 0.557045 + 0.855901 0.107891 0.50576 + 0.676786 0.103677 0.728843 + 0.686576 0.10608 0.719278 + 0.589643 0.103869 0.800957 + 0.586938 0.102172 0.803159 + 0.382094 0.0911561 0.919617 + -0.83482 -0.00393454 0.550508 + -0.13219 0.0266787 0.990865 + -0.529999 0.00952205 0.847945 + -0.0670317 0.0356585 0.997113 + -0.0538163 0.030024 0.998099 + 0.0125749 0.0219446 0.99968 + 0.0618759 0.0197997 0.997887 + 0.243334 0.0202098 0.969732 + 0.158109 0.0186663 0.987245 + 0.360146 0.0173844 0.932734 + 0.167837 0.0390305 0.985042 + 0.359066 0.0352647 0.932646 + 0.356389 0.037597 0.933581 + 0.354851 0.0346138 0.934282 + 0.357198 0.0167378 0.933879 + 0.475166 0.0302242 0.879377 + 0.357014 0.0134738 0.934002 + 0.432847 0.0246889 0.901129 + 0.17905 0.0375394 0.983124 + 0.372365 0.0533117 0.926554 + 0.259616 0.0618618 0.963729 + 0.378401 0.0654281 0.923326 + 0.382094 0.0911561 0.919617 + 0.584632 0.0903916 0.806247 + 0.586938 0.102172 0.803159 + 0.685098 0.0930511 0.722483 + 0.686576 0.10608 0.719278 + 0.854436 0.106839 0.508453 + 0.855901 0.107891 0.50576 + 0.924234 0.10723 0.366461 + 0.924832 0.104019 0.365878 + 0.958291 0.106853 0.265067 + 0.942976 0.107994 0.314855 + 0.988192 0.104591 0.111971 + 0.944606 0.103601 0.311426 + 0.984835 0.102618 0.139891 + 0.951731 0.101374 0.289709 + 0.990851 0.101949 0.0884379 + 0.937089 0.105044 0.332912 + 0.980574 0.102917 0.166981 + 0.945768 0.102217 0.30834 + 0.990555 0.102678 0.0908754 + 0.921549 0.115807 0.37059 + 0.979189 0.112981 0.168596 + 0.930316 0.126554 0.344233 + 0.982512 0.120491 0.141958 + 0.260264 0.0692062 0.963054 + 0.0190275 -0.026294 0.999473 + 0.010578 0.0231416 0.999676 + 0.00744668 0.0302017 0.999516 + 0.0512951 0.68684 0.724996 + 0.0327661 0.684486 0.728289 + -0.0111273 -0.141882 0.989821 + 0.00744668 0.0302017 0.999516 + 0.0072415 0.0483875 0.998802 + 0.0335657 0.0287218 0.999024 + 0.0210897 0.081856 0.996421 + 0.923061 0.0244938 0.383874 + 0.349652 0.0659647 0.934555 + 0.530069 0.0323726 -0.847337 + 0.014985 0.0885232 0.995961 + 0.012038 0.0276515 -0.999545 + 0.0300972 0.211002 0.977022 + 0.00944746 0.0438823 -0.998992 + 0.0352967 0.247346 0.968284 + 0.00900951 0.0408192 -0.999126 + 0.26221 0.385082 0.884849 + 0.167208 0.0578399 -0.984224 + 0.955821 0.293297 -0.0195974 + 0.968558 0.159625 -0.190829 + 0.712876 0.701254 -0.00707947 + 0.66915 0.704451 -0.236615 + -0.546676 0.696851 -0.464268 + -0.118403 0.47389 -0.872588 + -0.237943 0.191013 -0.952312 + -0.0776294 0.286141 -0.955038 + -0.137921 0.177436 -0.97442 + -0.0241546 0.252791 -0.967219 + -0.0378605 0.184231 -0.982154 + 0.051851 0.238548 -0.969745 + 0.0957422 0.18223 -0.978584 + 0.121589 0.271109 -0.954838 + 0.350701 0.185484 -0.917935 + 0.591703 0.630381 -0.502501 + 0.871856 0.192695 -0.450261 + 0.66915 0.704451 -0.236615 + 0.968558 0.159625 -0.190829 + } + } + } + } +} diff --git a/models/multiplex-easyglider.skp b/models/multiplex-easyglider.skp new file mode 100644 index 0000000000000000000000000000000000000000..aa6d9ed8b76289ef3816931e616366bc4795f2a9 Binary files /dev/null and b/models/multiplex-easyglider.skp differ diff --git a/models/multiplex-twinstar.skp b/models/multiplex-twinstar.skp new file mode 100644 index 0000000000000000000000000000000000000000..30fd6f91775931cc2fc867dad1c416765adfdc94 Binary files /dev/null and b/models/multiplex-twinstar.skp differ diff --git a/models/walkera-4g6.skp b/models/walkera-4g6.skp new file mode 100644 index 0000000000000000000000000000000000000000..c419e93dd7c9c277d167cae87ac8fec66f32aead Binary files /dev/null and b/models/walkera-4g6.skp differ diff --git a/qgroundcontrol-plugins.pro b/qgroundcontrol-plugins.pro new file mode 100644 index 0000000000000000000000000000000000000000..5f00ac29488907920180b16eff1210166faa360b --- /dev/null +++ b/qgroundcontrol-plugins.pro @@ -0,0 +1,45 @@ +# ------------------------------------------------- +# QGroundControl - Micro Air Vehicle Groundstation +# Please see our website at +# Author: +# Lorenz Meier +# (c) 2009-2010 PIXHAWK Team +# This file is part of the mav groundstation project +# QGroundControl is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# QGroundControl is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# You should have received a copy of the GNU General Public License +# along with QGroundControl. If not, see . +# ------------------------------------------------- +# Include QMapControl map library +# prefer version from external directory / +# from http://github.com/pixhawk/qmapcontrol/ +# over bundled version in lib directory +# Version from GIT repository is preferred +# include ( "../qmapcontrol/QMapControl/QMapControl.pri" ) #{ +# Include bundled version if necessary + + CONFIG += designer plugin + TARGET = $$qtLibraryTarget($$TARGET) + TEMPLATE = lib + QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer + + FORMS = src/ui/designer/QGCParamSlider.ui + + HEADERS = src/ui/designer/QGCParamSlider.h \ + src/ui/designer/QGCParamSliderPlugin.h + SOURCES = src/ui/designer/QGCParamSlider.cc \ + src/ui/designer/QGCParamSliderPlugin.cc + + # install + target.path = $$[QT_INSTALL_PLUGINS]/designer + sources.files = $$SOURCES $$HEADERS *.pro + sources.path = $$[QT_INSTALL_EXAMPLES]/designer/worldtimeclockplugin + INSTALLS += target + + symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) diff --git a/qgroundcontrol.pri b/qgroundcontrol.pri index b0070967ebf9f9b1bacd25f341a244babf7409b9..d3be98e82ed0bcfce2c5965c290637039163134d 100644 --- a/qgroundcontrol.pri +++ b/qgroundcontrol.pri @@ -23,25 +23,35 @@ # #------------------------------------------------- + #$$BASEDIR/lib/qextserialport/include # $$BASEDIR/lib/openjaus/libjaus/include \ # $$BASEDIR/lib/openjaus/libopenJaus/include message(Qt version $$[QT_VERSION]) +message(Using Qt from $QTDIR) release { # DEFINES += QT_NO_DEBUG_OUTPUT # DEFINES += QT_NO_WARNING_OUTPUT } +QMAKE_POST_LINK += echo "Copying files" + +#QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$TARGETDIR/debug/. +#QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$TARGETDIR/release/. + # MAC OS X -macx { +macx { + + COMPILER_VERSION = $$system(gcc -v) + message(Using compiler $$COMPILER_VERSION) HARDWARE_PLATFORM = $$system(uname -a) - contains( HARDWARE_PLATFORM, 9.6.0 ) || contains( HARDWARE_PLATFORM, 9.7.0 ) || contains( HARDWARE_PLATFORM, 9.8.0 ) || || contains( HARDWARE_PLATFORM, 9.9.0 ) - { + contains( HARDWARE_PLATFORM, 9.6.0 ) || contains( HARDWARE_PLATFORM, 9.7.0 ) || contains( HARDWARE_PLATFORM, 9.8.0 ) || contains( HARDWARE_PLATFORM, 9.9.0 ) { # x86 Mac OS X Leopard 10.5 and earlier CONFIG += x86 cocoa phonon + CONFIG -= x86_64 message(Building for Mac OS X 32bit/Leopard 10.5 and earlier) # Enable function-profiling with the OS X saturn tool @@ -56,53 +66,110 @@ macx { message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later) } - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 - DESTDIR = $$BASEDIR/bin/mac - INCLUDEPATH += -framework SDL \ - $$BASEDIR/../mavlink/contrib/slugs/include \ - $$BASEDIR/../mavlink/include + #DESTDIR = $$BASEDIR/bin/mac + INCLUDEPATH += -framework SDL LIBS += -framework IOKit \ -framework SDL \ -framework CoreFoundation \ -framework ApplicationServices \ - # -framework GLUT \ -lm - + ICON = $$BASEDIR/images/icons/macx.icns + + # Copy audio files if needed + QMAKE_POST_LINK += && cp -rf $$BASEDIR/audio $$TARGETDIR/qgroundcontrol.app/Contents/MacOs + # Copy google earth starter file + QMAKE_POST_LINK += && cp -f $$BASEDIR/images/earth.html $$TARGETDIR/qgroundcontrol.app/Contents/MacOs + # Copy model files + #QMAKE_POST_LINK += && cp -f $$BASEDIR/models/*.dae $$TARGETDIR/qgroundcontrol.app/Contents/MacOs + + exists(/Library/Frameworks/osg.framework):exists(/Library/Frameworks/OpenThreads.framework) { + # No check for GLUT.framework since it's a MAC default + message("Building support for OpenSceneGraph") + DEPENDENCIES_PRESENT += osg + DEFINES += QGC_OSG_ENABLED + # Include OpenSceneGraph libraries + INCLUDEPATH += -framework GLUT \ + -framework Carbon \ + -framework OpenThreads \ + -framework osg \ + -framework osgViewer \ + -framework osgGA \ + -framework osgDB \ + -framework osgText \ + -framework osgWidget + + LIBS += -framework GLUT \ + -framework Carbon \ + -framework OpenThreads \ + -framework osg \ + -framework osgViewer \ + -framework osgGA \ + -framework osgDB \ + -framework osgText \ + -framework osgWidget + } + + exists(/usr/include/osgEarth) { + message("Building support for osgEarth") + DEPENDENCIES_PRESENT += osgearth + # Include osgEarth libraries + INCLUDEPATH += -framework GDAL \ + $$IN_PWD/lib/mac32-gcc/include \ + -framework GEOS \ + -framework SQLite3 \ + -framework osgFX \ + -framework osgTerrain + + LIBS += -framework GDAL \ + -framework GEOS \ + -framework SQLite3 \ + -framework osgFX \ + -framework osgTerrain + DEFINES += QGC_OSGEARTH_ENABLED + } + + + exists(/opt/local/include/libfreenect) { + message("Building support for libfreenect") + DEPENDENCIES_PRESENT += libfreenect + # Include libfreenect libraries + LIBS += -lfreenect + DEFINES += QGC_LIBFREENECT_ENABLED + } + + # osg/osgEarth dynamic casts might fail without this compiler option. + # see http://osgearth.org/wiki/FAQ for details. + #QMAKE_CXXFLAGS += -Wl,-E } # GNU/Linux -linux-g++ { +linux-g++ { - CONFIG += debug - debug { - DESTDIR = $$BASEDIR + DESTDIR = $$TARGETDIR/debug + CONFIG += debug } release { - DESTDIR = $$BASEDIR + DESTDIR = $$TARGETDIR/release + DEFINES += QT_NO_DEBUG } + + QMAKE_POST_LINK += cp -rf $$BASEDIR/audio $$DESTDIR/. + INCLUDEPATH += /usr/include \ + /usr/local/include \ /usr/include/qt4/phonon # $$BASEDIR/lib/flite/include \ # $$BASEDIR/lib/flite/lang - HARDWARE_PLATFORM = $$system(uname -a) - contains( HARDWARE_PLATFORM, x86_64 ) { - # 64-bit Linux - #LIBS += \ - #-L$$BASEDIR/lib/flite/linux64 - message(Building for GNU/Linux 64bit/x64) - } else { - # 32-bit Linux - #LIBS += \ - #-L$$BASEDIR/lib/flite/linux32 - message(Building for GNU/Linux 32bit/i386) - } + message(Building for GNU/Linux 32bit/i386) + LIBS += \ -L/usr/lib \ -lm \ @@ -113,38 +180,66 @@ linux-g++ { -lSDL \ -lSDLmain - #-lflite_cmu_us_rms \ - #-lflite_cmu_us_slt \ + exists(/usr/include/osg) { + message("Building support for OpenSceneGraph") + DEPENDENCIES_PRESENT += osg + # Include OpenSceneGraph libraries + LIBS += -losg \ + -losgViewer + DEFINES += QGC_OSG_ENABLED + } + + exists(/usr/include/osgEarth) | exists(/usr/local/include/osgEarth) { + message("Building support for osgEarth") + DEPENDENCIES_PRESENT += osgearth + # Include osgEarth libraries + LIBS += -losgEarth \ + -losgEarthUtil + DEFINES += QGC_OSGEARTH_ENABLED + } + + exists(/usr/local/include/libfreenect/libfreenect.h) { + message("Building support for libfreenect") + DEPENDENCIES_PRESENT += libfreenect + INCLUDEPATH += /usr/include/libusb-1.0 + # Include libfreenect libraries + LIBS += -lfreenect + DEFINES += QGC_LIBFREENECT_ENABLED + } + + QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$DESTDIR + QMAKE_POST_LINK += && cp -rf $$BASEDIR/data $$DESTDIR + QMAKE_POST_LINK += && mkdir -p $$DESTDIR/images + QMAKE_POST_LINK += && cp -rf $$BASEDIR/images/Vera.ttf $$DESTDIR/images/Vera.ttf + + # osg/osgEarth dynamic casts might fail without this compiler option. + # see http://osgearth.org/wiki/FAQ for details. + QMAKE_CXXFLAGS += -Wl,-E } linux-g++-64 { - CONFIG += debug debug { - DESTDIR = $$BASEDIR + DESTDIR = $$TARGETDIR/debug + CONFIG += debug } release { - DESTDIR = $$BASEDIR + DESTDIR = $$TARGETDIR/release + DEFINES += QT_NO_DEBUG } + + QMAKE_POST_LINK += cp -rf $$BASEDIR/audio $$DESTDIR/. + INCLUDEPATH += /usr/include \ /usr/include/qt4/phonon # $$BASEDIR/lib/flite/include \ # $$BASEDIR/lib/flite/lang - HARDWARE_PLATFORM = $$system(uname -a) - contains( HARDWARE_PLATFORM, x86_64 ) { - # 64-bit Linux - #LIBS += \ - #-L$$BASEDIR/lib/flite/linux64 - message(Building for GNU/Linux 64bit/x64) - } else { - # 32-bit Linux - #LIBS += \ - #-L$$BASEDIR/lib/flite/linux32 - message(Building for GNU/Linux 32bit/i386) - } + # 64-bit Linux + message(Building for GNU/Linux 64bit/x64 (g++-64)) + LIBS += \ -L/usr/lib \ -lm \ @@ -154,14 +249,123 @@ linux-g++-64 { -lflite \ -lSDL \ -lSDLmain + + exists(/usr/include/osg) { + message("Building support for OpenSceneGraph") + DEPENDENCIES_PRESENT += osg + # Include OpenSceneGraph libraries + LIBS += -losg \ + -losgViewer + DEFINES += QGC_OSG_ENABLED + } + + exists(/usr/include/osgEarth) { + message("Building support for osgEarth") + DEPENDENCIES_PRESENT += osgearth + # Include osgEarth libraries + LIBS += -losgEarth \ + -losgEarthUtil + DEFINES += QGC_OSGEARTH_ENABLED + } + + exists(/usr/local/include/libfreenect) { + message("Building support for libfreenect") + DEPENDENCIES_PRESENT += libfreenect + INCLUDEPATH += /usr/include/libusb-1.0 + # Include libfreenect libraries + LIBS += -lfreenect + DEFINES += QGC_LIBFREENECT_ENABLED + } + + QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$DESTDIR + QMAKE_POST_LINK += && cp -rf $$BASEDIR/data $$DESTDIR + QMAKE_POST_LINK += && mkdir -p $$DESTDIR/images + QMAKE_POST_LINK += && cp -rf $$BASEDIR/images/Vera.ttf $$DESTDIR/images/Vera.ttf + + # osg/osgEarth dynamic casts might fail without this compiler option. + # see http://osgearth.org/wiki/FAQ for details. + QMAKE_CXXFLAGS += -Wl,-E } +# Windows (32bit) +win32-msvc2008 { -# Windows (32bit/64bit) -win32 { + message(Building for Windows Visual Studio 2008 (32bit)) + + CONFIG += qaxcontainer + + # QWebkit is not needed on MS-Windows compilation environment + CONFIG -= webkit + + release { + CONFIG -= console + DEFINES += QT_NO_DEBUG + } + + debug { + CONFIG += console + } + + INCLUDEPATH += $$BASEDIR/lib/sdl/msvc/include \ + $$BASEDIR/lib/opal/include \ + $$BASEDIR/lib/msinttypes + #"C:\Program Files\Microsoft SDKs\Windows\v7.0\Include" + + LIBS += -L$$BASEDIR/lib/sdl/msvc/lib \ + -lSDLmain -lSDL + +exists($$BASEDIR/lib/osg123) { +message("Building support for OSG") +DEPENDENCIES_PRESENT += osg + +# Include OpenSceneGraph and osgEarth libraries +INCLUDEPATH += $$BASEDIR/lib/osgEarth/win32/include \ + $$BASEDIR/lib/osgEarth_3rdparty/win32/OpenSceneGraph-2.8.2/include +LIBS += -L$$BASEDIR/lib/osgEarth_3rdparty/win32/OpenSceneGraph-2.8.2/lib \ + -losg \ + -losgViewer \ + -losgGA \ + -losgDB \ + -losgText \ + -lOpenThreads +DEFINES += QGC_OSG_ENABLED +exists($$BASEDIR/lib/osgEarth123) { + DEPENDENCIES_PRESENT += osgearth + message("Building support for osgEarth") + DEFINES += QGC_OSGEARTH_ENABLED + LIBS += -L$$BASEDIR/lib/osgEarth/win32/lib \ + -losgEarth \ + -losgEarthUtil +} +} + + RC_FILE = $$BASEDIR/qgroundcontrol.rc + + # Copy dependencies + BASEDIR_WIN = $$replace(BASEDIR,"/","\\") + TARGETDIR_WIN = $$replace(TARGETDIR,"/","\\") + + exists($$TARGETDIR/debug) { + QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\debug\\SDL.dll\" + QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\debug\\audio\\\" /S /E /Y + QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\debug\\models\\\" /S /E /Y + QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\images\\earth.html\" \"$$TARGETDIR_WIN\\debug\\earth.html\" + } + + exists($$TARGETDIR/release) { + QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\release\\SDL.dll\" + QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\release\\audio\\\" /S /E /Y + QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\release\\models\\\" /S /E /Y + QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\images\\earth.html\" \"$$TARGETDIR_WIN\\release\\earth.html\" + } + +} + +# Windows (32bit) +win32-g++ { + + message(Building for Windows Platform (32bit)) - message(Building for Windows Platform (32/64bit)) - # Special settings for debug #CONFIG += CONSOLE @@ -172,18 +376,63 @@ win32 { LIBS += -L$$BASEDIR/lib/sdl/win32 \ -lmingw32 -lSDLmain -lSDL -mwindows + CONFIG += windows + debug { - DESTDIR = $$BASEDIR/bin + #DESTDIR = $$BUILDDIR/debug + CONFIG += console } release { - DESTDIR = $$BASEDIR/bin + CONFIG -= console + DEFINES += QT_NO_DEBUG + #DESTDIR = $$BUILDDIR/release } - + RC_FILE = $$BASEDIR/qgroundcontrol.rc -} + # Copy dependencies + system(cp): { + # CP command is available, use it instead of copy / xcopy + message("Using cp to copy image and audio files to executable") + debug { + QMAKE_POST_LINK += && cp $$BASEDIR/lib/sdl/win32/SDL.dll $$TARGETDIR/debug/SDL.dll + QMAKE_POST_LINK += && cp -r $$BASEDIR/audio $$TARGETDIR/debug/audio + QMAKE_POST_LINK += && cp -r $$BASEDIR/models $$TARGETDIR/debug/models + } + release { + QMAKE_POST_LINK += && cp $$BASEDIR/lib/sdl/win32/SDL.dll $$TARGETDIR/release/SDL.dll + QMAKE_POST_LINK += && cp -r $$BASEDIR/audio $$TARGETDIR/release/audio + QMAKE_POST_LINK += && cp -r $$BASEDIR/models $$TARGETDIR/release/models + } + + } else { + # No cp command available, go for copy / xcopy + # Copy dependencies + BASEDIR_WIN = $$replace(BASEDIR,"/","\\") + TARGETDIR_WIN = $$replace(TARGETDIR,"/","\\") + + exists($$TARGETDIR/debug) { + QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\debug\\SDL.dll\" + QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\debug\\audio\\\" /S /E /Y + QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\debug\\models\\\" /S /E /Y + QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\images\\earth.html\" \"$$TARGETDIR_WIN\\debug\\earth.html\" + } + + exists($$TARGETDIR/release) { + QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\release\\SDL.dll\" + QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\release\\audio\\\" /S /E /Y + QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\release\\models\\\" /S /E /Y + QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\images\\earth.html\" \"$$TARGETDIR_WIN\\release\\earth.html\" + } + +} + + # osg/osgEarth dynamic casts might fail without this compiler option. + # see http://osgearth.org/wiki/FAQ for details. + QMAKE_CXXFLAGS += -Wl,-E +} diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro index 647b0bd15f4d7523f7cf9b358b982bfbce8c76fa..bcbcd69792443382a521b5f367d7735201370b6e 100644 --- a/qgroundcontrol.pro +++ b/qgroundcontrol.pro @@ -1,14 +1,9 @@ -#------------------------------------------------- -# +# ------------------------------------------------- # QGroundControl - Micro Air Vehicle Groundstation -# # Please see our website at -# # Author: # Lorenz Meier -# # (c) 2009-2010 PIXHAWK Team -# # This file is part of the mav groundstation project # QGroundControl is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,10 +15,7 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with QGroundControl. If not, see . -# -#------------------------------------------------- - - +# ------------------------------------------------- # Include QMapControl map library # prefer version from external directory / # from http://github.com/pixhawk/qmapcontrol/ @@ -39,49 +31,62 @@ QT += network \ opengl \ svg \ xml \ - phonon + phonon \ + webkit TEMPLATE = app TARGET = qgroundcontrol -BASEDIR = . -BUILDDIR = build +BASEDIR = $$IN_PWD +TARGETDIR = $$OUT_PWD +BUILDDIR = $$TARGETDIR/build LANGUAGE = C++ -CONFIG += debug_and_release \ - console +CONFIG += console OBJECTS_DIR = $$BUILDDIR/obj MOC_DIR = $$BUILDDIR/moc UI_HEADERS_DIR = src/ui/generated - MAVLINK_CONF = "" -exists(user_config.pri) { - message("----- USING USER QGROUNDCONTROL CONFIG FROM user_config.pri -----") +# If the user config file exists, it will be included. +# if the variable MAVLINK_CONF contains the name of an +# additional project, QGroundControl includes the support +# of custom MAVLink messages of this project +exists(user_config.pri) { include(user_config.pri) + message("----- USING CUSTOM USER QGROUNDCONTROL CONFIG FROM user_config.pri -----") + message("Adding support for additional MAVLink messages for: " $$MAVLINK_CONF) + message("------------------------------------------------------------------------") } - INCLUDEPATH += $$BASEDIR/../mavlink/include/common - -contains(MAVLINK_CONF, pixhawk) { -# Remove the default set - it is included anyway -INCLUDEPATH -= $$BASEDIR/../mavlink/include/common -# PIXHAWK SPECIAL MESSAGES -INCLUDEPATH += $$BASEDIR/../mavlink/include/pixhawk -DEFINES += QGC_USE_PIXHAWK_MESSAGES +contains(MAVLINK_CONF, pixhawk) { + # Remove the default set - it is included anyway + INCLUDEPATH -= $$BASEDIR/../mavlink/include/common + + # PIXHAWK SPECIAL MESSAGES + INCLUDEPATH += $$BASEDIR/../mavlink/include/pixhawk + DEFINES += QGC_USE_PIXHAWK_MESSAGES } - -contains(MAVLINK_CONF, slugs) { -# Remove the default set - it is included anyway -INCLUDEPATH -= $$BASEDIR/../mavlink/include/common -# SLUGS SPECIAL MESSAGES -INCLUDEPATH += $$BASEDIR/../mavlink/include/slugs -DEFINES += QGC_USE_SLUGS_MESSAGES +contains(MAVLINK_CONF, slugs) { + # Remove the default set - it is included anyway + INCLUDEPATH -= $$BASEDIR/../mavlink/include/common + + # SLUGS SPECIAL MESSAGES + INCLUDEPATH += $$BASEDIR/../mavlink/include/slugs + DEFINES += QGC_USE_SLUGS_MESSAGES } - -contains(MAVLINK_CONF, ualberta) { -# Remove the default set - it is included anyway -INCLUDEPATH -= $$BASEDIR/../mavlink/include/common -# UALBERTA SPECIAL MESSAGES -INCLUDEPATH += $$BASEDIR/../mavlink/include/ualberta -DEFINES += QGC_USE_UALBERTA_MESSAGES +contains(MAVLINK_CONF, ualberta) { + # Remove the default set - it is included anyway + INCLUDEPATH -= $$BASEDIR/../mavlink/include/common + + # UALBERTA SPECIAL MESSAGES + INCLUDEPATH += $$BASEDIR/../mavlink/include/ualberta + DEFINES += QGC_USE_UALBERTA_MESSAGES +} +contains(MAVLINK_CONF, ardupilotmega) { + # Remove the default set - it is included anyway + INCLUDEPATH -= $$BASEDIR/../mavlink/include/common + + # UALBERTA SPECIAL MESSAGES + INCLUDEPATH += $$BASEDIR/../mavlink/include/ardupilotmega + DEFINES += QGC_USE_ARDUPILOTMEGA_MESSAGES } # } @@ -135,7 +140,21 @@ FORMS += src/ui/MainWindow.ui \ src/ui/QGCPxImuFirmwareUpdate.ui \ src/ui/QGCDataPlot2D.ui \ src/ui/QGCRemoteControlView.ui \ - src/ui/WaypointGlobalView.ui + src/ui/WaypointGlobalView.ui \ + src/ui/QMap3D.ui \ + src/ui/QGCWebView.ui \ + src/ui/map3D/QGCGoogleEarthView.ui \ + src/ui/map3D/QGCGoogleEarthViewWin.ui \ + src/ui/SlugsDataSensorView.ui \ + src/ui/SlugsHilSim.ui \ + src/ui/SlugsPIDControl.ui \ + src/ui/SlugsVideoCamControl.ui \ + src/ui/SlugsPadCameraControl.ui \ + src/ui/uas/QGCUnconnectedInfoWidget.ui \ + src/ui/designer/QGCToolWidget.ui \ + src/ui/designer/QGCParamSlider.ui \ + src/ui/designer/QGCActionButton.ui + INCLUDEPATH += src \ src/ui \ src/ui/linechart \ @@ -149,7 +168,9 @@ INCLUDEPATH += src \ src/ui/mavlink \ src/ui/param \ src/ui/watchdog \ - src/ui/map3D + src/ui/map3D \ + src/ui/designer + HEADERS += src/MG.h \ src/Core.h \ src/uas/UASInterface.h \ @@ -202,7 +223,7 @@ HEADERS += src/MG.h \ src/ui/linechart/Linecharts.h \ src/uas/SlugsMAV.h \ src/uas/PxQuadMAV.h \ - src/uas/ArduPilotMAV.h \ + src/uas/ArduPilotMegaMAV.h \ src/comm/MAVLinkSyntaxHighlighter.h \ src/ui/watchdog/WatchdogControl.h \ src/ui/watchdog/WatchdogProcessView.h \ @@ -218,23 +239,65 @@ HEADERS += src/MG.h \ src/ui/map/Waypoint2DIcon.h \ src/ui/map/MAV2DIcon.h \ src/ui/QGCRemoteControlView.h \ - src/ui/WaypointGlobalView.h \ src/ui/RadioCalibration/RadioCalibrationData.h \ src/ui/RadioCalibration/RadioCalibrationWindow.h \ src/ui/RadioCalibration/AirfoilServoCalibrator.h \ src/ui/RadioCalibration/SwitchCalibrator.h \ src/ui/RadioCalibration/CurveCalibrator.h \ src/ui/RadioCalibration/AbstractCalibrator.h \ - src/ui/map3D/Q3DWidget.h \ - src/ui/map3D/CheetahModel.h \ - src/ui/map3D/CheetahGL.h \ - src/ui/map3D/QMap3DWidget.h \ - src/ui/map3D/Texture.h \ - src/ui/map3D/TextureCache.h \ - src/ui/map3D/WebImage.h \ - src/ui/map3D/WebImageCache.h \ - src/ui/map3D/Imagery.h \ - src/comm/QGCMAVLink.h + src/comm/QGCMAVLink.h \ + src/ui/QGCWebView.h \ + src/ui/map3D/QGCWebPage.h \ + src/ui/SlugsDataSensorView.h \ + src/ui/SlugsHilSim.h \ + src/ui/SlugsPIDControl.h \ + src/ui/SlugsVideoCamControl.h \ + src/ui/SlugsPadCameraControl.h \ + src/ui/QGCMainWindowAPConfigurator.h \ + src/comm/MAVLinkSwarmSimulationLink.h \ + src/ui/uas/QGCUnconnectedInfoWidget.h \ + src/ui/designer/QGCToolWidget.h \ + src/ui/designer/QGCParamSlider.h \ + src/ui/designer/QGCActionButton.h \ + src/ui/designer/QGCToolWidgetItem.h + +# Google Earth is only supported on Mac OS and Windows with Visual Studio Compiler +macx|win32-msvc2008: { + HEADERS += src/ui/map3D/QGCGoogleEarthView.h +} + +contains(DEPENDENCIES_PRESENT, osg) { + message("Including headers for OpenSceneGraph") + + # Enable only if OpenSceneGraph is available + HEADERS += src/ui/map3D/Q3DWidget.h \ + src/ui/map3D/GCManipulator.h \ + src/ui/map3D/ImageWindowGeode.h \ + src/ui/map3D/QOSGWidget.h \ + src/ui/map3D/PixhawkCheetahGeode.h \ + src/ui/map3D/Pixhawk3DWidget.h \ + src/ui/map3D/Q3DWidgetFactory.h \ + src/ui/map3D/WebImageCache.h \ + src/ui/map3D/WebImage.h \ + src/ui/map3D/TextureCache.h \ + src/ui/map3D/Texture.h \ + src/ui/map3D/Imagery.h \ + src/ui/map3D/HUDScaleGeode.h \ + src/ui/map3D/WaypointGroupNode.h + contains(DEPENDENCIES_PRESENT, osgearth) { + message("Including headers for OSGEARTH") + + # Enable only if OpenSceneGraph is available + HEADERS += src/ui/map3D/QMap3D.h + } +} +contains(DEPENDENCIES_PRESENT, libfreenect) { + message("Including headers for libfreenect") + + # Enable only if libfreenect is available + HEADERS += src/input/Freenect.h +} + SOURCES += src/main.cc \ src/Core.cc \ src/uas/UASManager.cc \ @@ -282,7 +345,7 @@ SOURCES += src/main.cc \ src/ui/linechart/Linecharts.cc \ src/uas/SlugsMAV.cc \ src/uas/PxQuadMAV.cc \ - src/uas/ArduPilotMAV.cc \ + src/uas/ArduPilotMegaMAV.cc \ src/comm/MAVLinkSyntaxHighlighter.cc \ src/ui/watchdog/WatchdogControl.cc \ src/ui/watchdog/WatchdogProcessView.cc \ @@ -304,17 +367,59 @@ SOURCES += src/main.cc \ src/ui/RadioCalibration/CurveCalibrator.cc \ src/ui/RadioCalibration/AbstractCalibrator.cc \ src/ui/RadioCalibration/RadioCalibrationData.cc \ - src/ui/WaypointGlobalView.cc \ - src/ui/map3D/Q3DWidget.cc \ - src/ui/map3D/CheetahModel.cc \ - src/ui/map3D/CheetahGL.cc \ - src/ui/map3D/QMap3DWidget.cc \ - src/ui/map3D/Texture.cc \ - src/ui/map3D/TextureCache.cc \ - src/ui/map3D/WebImageCache.cc \ - src/ui/map3D/WebImage.cc \ - src/ui/map3D/Imagery.cc -RESOURCES = mavground.qrc + src/ui/QGCWebView.cc \ + src/ui/map3D/QGCWebPage.cc \ + src/ui/SlugsDataSensorView.cc \ + src/ui/SlugsHilSim.cc \ + src/ui/SlugsPIDControl.cpp \ + src/ui/SlugsVideoCamControl.cpp \ + src/ui/SlugsPadCameraControl.cpp \ + src/ui/QGCMainWindowAPConfigurator.cc \ + src/comm/MAVLinkSwarmSimulationLink.cc \ + src/ui/uas/QGCUnconnectedInfoWidget.cc \ + src/ui/designer/QGCToolWidget.cc \ + src/ui/designer/QGCParamSlider.cc \ + src/ui/designer/QGCActionButton.cc \ + src/ui/designer/QGCToolWidgetItem.cc + +macx|win32-msvc2008: { + SOURCES += src/ui/map3D/QGCGoogleEarthView.cc +} + +contains(DEPENDENCIES_PRESENT, osg) { + message("Including sources for OpenSceneGraph") + + # Enable only if OpenSceneGraph is available + SOURCES += src/ui/map3D/Q3DWidget.cc \ + src/ui/map3D/ImageWindowGeode.cc \ + src/ui/map3D/GCManipulator.cc \ + src/ui/map3D/QOSGWidget.cc \ + src/ui/map3D/PixhawkCheetahGeode.cc \ + src/ui/map3D/Pixhawk3DWidget.cc \ + src/ui/map3D/Q3DWidgetFactory.cc \ + src/ui/map3D/WebImageCache.cc \ + src/ui/map3D/WebImage.cc \ + src/ui/map3D/TextureCache.cc \ + src/ui/map3D/Texture.cc \ + src/ui/map3D/Imagery.cc \ + src/ui/map3D/HUDScaleGeode.cc \ + src/ui/map3D/WaypointGroupNode.cc \ + + + contains(DEPENDENCIES_PRESENT, osgearth) { + message("Including sources for osgEarth") + + # Enable only if OpenSceneGraph is available + SOURCES += src/ui/map3D/QMap3D.cc + } +} +contains(DEPENDENCIES_PRESENT, libfreenect) { + message("Including sources for libfreenect") + + # Enable only if libfreenect is available + SOURCES += src/input/Freenect.cc +} +RESOURCES += mavground.qrc # Include RT-LAB Library win32:exists(src/lib/opalrt/OpalApi.h):exists(C:/OPAL-RT/RT-LAB7.2.4/Common/bin) { diff --git a/src/Core.cc b/src/Core.cc index 7035d08c815bdc147efdf64e8a0567461087945f..b49eed18eab00942c85dadd72ccfd89f98197b69 100644 --- a/src/Core.cc +++ b/src/Core.cc @@ -66,7 +66,7 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv) { this->setApplicationName(QGC_APPLICATION_NAME); this->setApplicationVersion(QGC_APPLICATION_VERSION); - this->setOrganizationName(QLatin1String("PIXHAWK Association Zurich")); + this->setOrganizationName(QLatin1String("OPENMAV")); this->setOrganizationDomain("http://qgroundcontrol.org"); // Show splash screen @@ -105,16 +105,30 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv) // Start the user interface splashScreen->showMessage(tr("Starting User Interface"), Qt::AlignLeft | Qt::AlignBottom, QColor(62, 93, 141)); // Start UI - mainWindow = new MainWindow(); - - // Remove splash screen - splashScreen->finish(mainWindow); // Connect links // to make sure that all components are initialized when the // first messages arrive UDPLink* udpLink = new UDPLink(QHostAddress::Any, 14550); - mainWindow->addLink(udpLink); + // Listen on Multicast-Address 239.255.77.77, Port 14550 + //QHostAddress * multicast_udp = new QHostAddress("239.255.77.77"); + //UDPLink* udpLink = new UDPLink(*multicast_udp, 14550); + //mainWindow->addLink(udpLink); + +#ifdef OPAL_RT + // Add OpalRT Link, but do not connect + OpalLink* opalLink = new OpalLink(); + //mainWindow->addLink(opalLink); +#endif + // MAVLinkSimulationLink* simulationLink = new MAVLinkSimulationLink(MG::DIR::getSupportFilesDirectory() + "/demo-log.txt"); + MAVLinkSimulationLink* simulationLink = new MAVLinkSimulationLink(":/demo-log.txt"); + simulationLink->disconnect(); + //mainWindow->addLink(simulationLink); + + mainWindow = MainWindow::instance(); + + // Remove splash screen + splashScreen->finish(mainWindow); // Check if link could be connected if (!udpLink->connect()) @@ -137,15 +151,6 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv) QTimer::singleShot(200, mainWindow, SLOT(close())); } } - -#ifdef OPAL_RT - // Add OpalRT Link, but do not connect - OpalLink* opalLink = new OpalLink(); - mainWindow->addLink(opalLink); -#endif - // MAVLinkSimulationLink* simulationLink = new MAVLinkSimulationLink(MG::DIR::getSupportFilesDirectory() + "/demo-log.txt"); - MAVLinkSimulationLink* simulationLink = new MAVLinkSimulationLink(":/demo-log.txt"); - mainWindow->addLink(simulationLink); } /** @@ -154,6 +159,9 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv) **/ Core::~Core() { + //mainWindow->storeSettings(); + mainWindow->hide(); + mainWindow->deleteLater(); // Delete singletons delete LinkManager::instance(); delete UASManager::instance(); diff --git a/src/GAudioOutput.cc b/src/GAudioOutput.cc index 6d35f6215871ce4fed3a47faa7c7bdea303f36bd..87c66503a1ffd5769262c39b0e167679f97839c9 100644 --- a/src/GAudioOutput.cc +++ b/src/GAudioOutput.cc @@ -1,274 +1,350 @@ -/*===================================================================== - -QGroundControl Open Source Ground Control Station - -(c) 2009, 2010 QGROUNDCONTROL PROJECT - -This file is part of the QGROUNDCONTROL project - - QGROUNDCONTROL is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - QGROUNDCONTROL is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with QGROUNDCONTROL. If not, see . - -======================================================================*/ - -/** - * @file - * @brief Implementation of audio output - * - * @author Lorenz Meier - * - */ - -#include -#include -#include "GAudioOutput.h" -#include "MG.h" - -#include - -#ifdef Q_OS_MAC -#include -#endif - -// Speech synthesis is only supported with MSVC compiler -#if _MSC_VER -#include -using System; -using System.Speech.Synthesis; -#endif - -#ifdef Q_OS_LINUX -extern "C" { -#include - cst_voice* register_cmu_us_kal(const char* voxdir); -}; -#endif - - - -/** - * This class follows the singleton design pattern - * @see http://en.wikipedia.org/wiki/Singleton_pattern - * A call to this function thus returns the only instance of this object - * the call can occur at any place in the code, no reference to the - * GAudioOutput object has to be passed. - */ -GAudioOutput* GAudioOutput::instance() -{ - static GAudioOutput* _instance = 0; - if(_instance == 0) { - _instance = new GAudioOutput(); - // Set the application as parent to ensure that this object - // will be destroyed when the main application exits - _instance->setParent(qApp); - } - return _instance; -} - -GAudioOutput::GAudioOutput(QObject* parent) : QObject(parent), -voiceIndex(0), -emergency(false) -{ -#ifdef Q_OS_LINUX - flite_init(); -#endif - // Initialize audio output - m_media = new Phonon::MediaObject(this); - Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this); - createPath(m_media, audioOutput); - - // Prepare regular emergency signal, will be fired off on calling startEmergency() - emergencyTimer = new QTimer(); - connect(emergencyTimer, SIGNAL(timeout()), this, SLOT(beep())); - - switch (voiceIndex) - { - case 0: - selectFemaleVoice(); - break; - default: - selectMaleVoice(); - break; - } -} - -bool GAudioOutput::say(QString text, int severity) -{ - // TODO Add severity filter - Q_UNUSED(severity); - bool res = false; - if (!emergency) - { - - // Speech synthesis is only supported with MSVC compiler -#ifdef _MSC_VER - SpeechSynthesizer synth = new SpeechSynthesizer(); - synth.SelectVoice("Microsoft Anna"); - synth.SpeakText(text.toStdString().c_str()); - res = true; -#endif - -#ifdef Q_OS_LINUX - QTemporaryFile file; - file.setFileTemplate("XXXXXX.wav"); - if (file.open()) - { - cst_voice* v = register_cmu_us_kal(NULL); - cst_wave* wav = flite_text_to_wave(text.toStdString().c_str(), v); - // file.fileName() returns the unique file name - cst_wave_save(wav, file.fileName().toStdString().c_str(), "riff"); - m_media->setCurrentSource(Phonon::MediaSource(file.fileName().toStdString().c_str())); - m_media->play(); - res = true; - } -#endif - -#ifdef Q_OS_MAC - // Slashes necessary to have the right start to the sentence - // copying data prevents SpeakString from reading additional chars - text = "\\" + text; - QStdWString str = text.toStdWString(); - unsigned char str2[1024] = {}; - memcpy(str2, text.toAscii().data(), str.length()); - SpeakString(str2); - res = true; -#endif - } - return res; -} - -/** - * @param text This message will be played after the alert beep - */ -bool GAudioOutput::alert(QString text) -{ - if (!emergency) - { - // Play alert sound - beep(); - // Say alert message - say(text, 2); - return true; - } - else - { - return false; - } -} - -void GAudioOutput::notifyPositive() -{ - // Use QFile to transform path for all OS - QFile f(QCoreApplication::applicationDirPath()+QString("/audio/double_notify.wav")); - m_media->setCurrentSource(Phonon::MediaSource(f.fileName().toStdString().c_str())); - m_media->play(); -} - -void GAudioOutput::notifyNegative() -{ - // Use QFile to transform path for all OS - QFile f(QCoreApplication::applicationDirPath()+QString("/audio/flat_notify.wav")); - m_media->setCurrentSource(Phonon::MediaSource(f.fileName().toStdString().c_str())); - m_media->play(); -} - -/** - * The emergency sound will be played continously during the emergency. - * call stopEmergency() to disable it again. No speech synthesis or other - * audio output is available during the emergency. - * - * @return true if the emergency could be started, false else - */ -bool GAudioOutput::startEmergency() -{ - if (!emergency) - { - emergency = true; - // Beep immediately and then start timer - beep(); - emergencyTimer->start(1500); - QTimer::singleShot(5000, this, SLOT(stopEmergency())); - } - return true; -} - -/** - * Stops the continous emergency sound. Use startEmergency() to start - * the emergency sound. - * - * @return true if the emergency could be stopped, false else - */ -bool GAudioOutput::stopEmergency() -{ - if (emergency) - { - emergency = false; - emergencyTimer->stop(); - } - return true; -} - -void GAudioOutput::beep() -{ - // Use QFile to transform path for all OS - QFile f(QCoreApplication::applicationDirPath()+QString("/audio/alert.wav")); - m_media->setCurrentSource(Phonon::MediaSource(f.fileName().toStdString().c_str())); - m_media->play(); -} - -void GAudioOutput::selectFemaleVoice() -{ -#ifdef Q_OS_LINUX - //this->voice = register_cmu_us_slt(NULL); -#endif -} - -void GAudioOutput::selectMaleVoice() -{ -#ifdef Q_OS_LINUX - //this->voice = register_cmu_us_rms(NULL); -#endif -} - -/* -void GAudioOutput::selectNeutralVoice() -{ -#ifdef Q_OS_LINUX - this->voice = register_cmu_us_awb(NULL); -#endif -}*/ - -QStringList GAudioOutput::listVoices(void) -{ - QStringList l; -#ifdef Q_OS_LINUX2 - cst_voice *voice; - const cst_val *v; - - - - printf("Voices available: "); - for (v=flite_voice_list; v; v=val_cdr(v)) - { - voice = val_voice(val_car(v)); - QString s; - s.sprintf("%s",voice->name); - printf("%s",voice->name); - l.append(s); - } - printf("\n"); - -#endif - return l; - -} +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Implementation of audio output + * + * @author Lorenz Meier + * + */ + +#include +#include +#include +#include "GAudioOutput.h" +#include "MG.h" + +#include + +#ifdef Q_OS_MAC +#include +#endif + +// Speech synthesis is only supported with MSVC compiler +#if _MSC_VER2 +// Documentation: http://msdn.microsoft.com/en-us/library/ee125082%28v=VS.85%29.aspx +#define _ATL_APARTMENT_THREADED + +#include +//You may derive a class from CComModule and use it if you want to override something, +//but do not change the name of _Module +extern CComModule _Module; +#include + +#include + +//using System; +//using System.Speech.Synthesis; +#endif + +#ifdef Q_OS_LINUX +extern "C" { +#include + cst_voice* register_cmu_us_kal(const char* voxdir); +}; +#endif + + + +/** + * This class follows the singleton design pattern + * @see http://en.wikipedia.org/wiki/Singleton_pattern + * A call to this function thus returns the only instance of this object + * the call can occur at any place in the code, no reference to the + * GAudioOutput object has to be passed. + */ +GAudioOutput* GAudioOutput::instance() +{ + static GAudioOutput* _instance = 0; + if(_instance == 0) { + _instance = new GAudioOutput(); + // Set the application as parent to ensure that this object + // will be destroyed when the main application exits + _instance->setParent(qApp); + } + return _instance; +} + +#define QGC_GAUDIOOUTPUT_KEY QString("QGC_AUDIOOUTPUT_") + +GAudioOutput::GAudioOutput(QObject* parent) : QObject(parent), +voiceIndex(0), +emergency(false), +muted(false) +{ + // Load settings + QSettings settings; + settings.sync(); + muted = settings.value(QGC_GAUDIOOUTPUT_KEY+"muted", muted).toBool(); + + +#ifdef Q_OS_LINUX + flite_init(); +#endif + + #if _MSC_VER2 + + ISpVoice * pVoice = NULL; + if (FAILED(::CoInitialize(NULL))) + { + qDebug("Creating COM object for audio output failed!"); + } + else + { + + HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice;); + if( SUCCEEDED( hr ) ) + { + hr = pVoice->Speak(L"Hello world", 0, NULL); + pVoice->Release(); + pVoice = NULL; + } + } +#endif + // Initialize audio output + m_media = new Phonon::MediaObject(this); + Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this); + createPath(m_media, audioOutput); + + // Prepare regular emergency signal, will be fired off on calling startEmergency() + emergencyTimer = new QTimer(); + connect(emergencyTimer, SIGNAL(timeout()), this, SLOT(beep())); + + switch (voiceIndex) + { + case 0: + selectFemaleVoice(); + break; + default: + selectMaleVoice(); + break; + } +} + +GAudioOutput::~GAudioOutput() +{ + QSettings settings; + settings.setValue(QGC_GAUDIOOUTPUT_KEY+"muted", muted); + settings.sync(); +#ifdef _MSC_VER2 + ::CoUninitialize(); +#endif +} + +void GAudioOutput::mute(bool mute) +{ + this->muted = mute; +} + +bool GAudioOutput::isMuted() +{ + return this->muted; +} + +bool GAudioOutput::say(QString text, int severity) +{ + if (!muted) + { + // TODO Add severity filter + Q_UNUSED(severity); + bool res = false; + if (!emergency) + { + + // Speech synthesis is only supported with MSVC compiler +#ifdef _MSC_VER2 + SpeechSynthesizer synth = new SpeechSynthesizer(); + synth.SelectVoice("Microsoft Anna"); + synth.SpeakText(text.toStdString().c_str()); + res = true; +#endif + +#ifdef Q_OS_LINUX + QTemporaryFile file; + file.setFileTemplate("XXXXXX.wav"); + if (file.open()) + { + cst_voice* v = register_cmu_us_kal(NULL); + cst_wave* wav = flite_text_to_wave(text.toStdString().c_str(), v); + // file.fileName() returns the unique file name + cst_wave_save(wav, file.fileName().toStdString().c_str(), "riff"); + m_media->setCurrentSource(Phonon::MediaSource(file.fileName().toStdString().c_str())); + m_media->play(); + res = true; + } +#endif + +#ifdef Q_OS_MAC + // Slashes necessary to have the right start to the sentence + // copying data prevents SpeakString from reading additional chars + text = "\\" + text; + QStdWString str = text.toStdWString(); + unsigned char str2[1024] = {}; + memcpy(str2, text.toAscii().data(), str.length()); + SpeakString(str2); + res = true; +#endif + } + return res; +} + else + { + return false; + } +} + +/** + * @param text This message will be played after the alert beep + */ +bool GAudioOutput::alert(QString text) +{ + if (!emergency || !muted) + { + // Play alert sound + beep(); + // Say alert message + say(text, 2); + return true; + } + else + { + return false; + } +} + +void GAudioOutput::notifyPositive() +{ + if (!muted) + { + // Use QFile to transform path for all OS + QFile f(QCoreApplication::applicationDirPath()+QString("/audio/double_notify.wav")); + m_media->setCurrentSource(Phonon::MediaSource(f.fileName().toStdString().c_str())); + m_media->play(); +} +} + +void GAudioOutput::notifyNegative() +{ + if (!muted) + { + // Use QFile to transform path for all OS + QFile f(QCoreApplication::applicationDirPath()+QString("/audio/flat_notify.wav")); + m_media->setCurrentSource(Phonon::MediaSource(f.fileName().toStdString().c_str())); + m_media->play(); +} +} + +/** + * The emergency sound will be played continously during the emergency. + * call stopEmergency() to disable it again. No speech synthesis or other + * audio output is available during the emergency. + * + * @return true if the emergency could be started, false else + */ +bool GAudioOutput::startEmergency() +{ + if (!emergency) + { + emergency = true; + // Beep immediately and then start timer + if (!muted) beep(); + emergencyTimer->start(1500); + QTimer::singleShot(5000, this, SLOT(stopEmergency())); + } + return true; +} + +/** + * Stops the continous emergency sound. Use startEmergency() to start + * the emergency sound. + * + * @return true if the emergency could be stopped, false else + */ +bool GAudioOutput::stopEmergency() +{ + if (emergency) + { + emergency = false; + emergencyTimer->stop(); + } + return true; +} + +void GAudioOutput::beep() +{ + if (!muted) + { + // Use QFile to transform path for all OS + QFile f(QCoreApplication::applicationDirPath()+QString("/audio/alert.wav")); + m_media->setCurrentSource(Phonon::MediaSource(f.fileName().toStdString().c_str())); + m_media->play(); +} +} + +void GAudioOutput::selectFemaleVoice() +{ +#ifdef Q_OS_LINUX + //this->voice = register_cmu_us_slt(NULL); +#endif +} + +void GAudioOutput::selectMaleVoice() +{ +#ifdef Q_OS_LINUX + //this->voice = register_cmu_us_rms(NULL); +#endif +} + +/* +void GAudioOutput::selectNeutralVoice() +{ +#ifdef Q_OS_LINUX + this->voice = register_cmu_us_awb(NULL); +#endif +}*/ + +QStringList GAudioOutput::listVoices(void) +{ + QStringList l; +#ifdef Q_OS_LINUX2 + cst_voice *voice; + const cst_val *v; + + + + printf("Voices available: "); + for (v=flite_voice_list; v; v=val_cdr(v)) + { + voice = val_voice(val_car(v)); + QString s; + s.sprintf("%s",voice->name); + printf("%s",voice->name); + l.append(s); + } + printf("\n"); + +#endif + return l; + +} diff --git a/src/GAudioOutput.h b/src/GAudioOutput.h index b7ff3a2b90b9b3381ba59586c9307ef39c5c7ed9..a4889829d3ddcb14c8964b8ca616bc930fccf396 100644 --- a/src/GAudioOutput.h +++ b/src/GAudioOutput.h @@ -99,6 +99,10 @@ public slots: void notifyPositive(); /** @brief Notify about negative event */ void notifyNegative(); + /** @brief Mute/unmute sound */ + void mute(bool mute); + /** @brief Get the mute state */ + bool isMuted(); protected: #ifdef Q_OS_MAC @@ -112,8 +116,10 @@ protected: Phonon::AudioOutput* m_audioOutput; bool emergency; ///< Emergency status flag QTimer* emergencyTimer; + bool muted; private: GAudioOutput(QObject* parent=NULL); + ~GAudioOutput(); }; #endif // AUDIOOUTPUT_H diff --git a/src/MG.h b/src/MG.h index bde9c3d37f1867fbbb5452ae51b486d241962ecc..2e82de2c0c956e42274002b2ca98c08328fc0a0d 100644 --- a/src/MG.h +++ b/src/MG.h @@ -264,7 +264,7 @@ namespace MG * @param screenDiameter The screen diameter in mm, e.g. 13.3" = 338 mm. */ static void setPixelSize(int horizontalResolution, int verticalResolution, double screenDiameter) { - pixelSize = screenDiameter / sqrt((horizontalResolution^(2)) + (verticalResolution^(2))); + pixelSize = screenDiameter / sqrt(static_cast(horizontalResolution*horizontalResolution + verticalResolution*verticalResolution)); } private: diff --git a/src/QGC.h b/src/QGC.h index 1ea849a230599933f07ae20dbcd2c26714b81d24..e21a17d105b80dc8839f1bd2f83cb0eabc8fbaf6 100644 --- a/src/QGC.h +++ b/src/QGC.h @@ -11,9 +11,15 @@ namespace QGC const QColor colorGreen(20, 200, 20); const QColor colorYellow(255, 255, 0); const QColor colorDarkYellow(180, 180, 0); + const QColor colorBackground("#050508"); /** @brief Get the current ground time in microseconds */ quint64 groundTimeUsecs(); + + const QString APPNAME = "QGROUNDCONTROL"; + const QString COMPANYNAME = "OPENMAV"; } +#define QGC_EVENTLOOP_DEBUG 0 + #endif // QGC_H diff --git a/src/Waypoint.cc b/src/Waypoint.cc index 7901330b9a561a8350596491f2db95f510ccb9c5..bb351a4052818c54087fd21bcf9c9172d5d01e40 100644 --- a/src/Waypoint.cc +++ b/src/Waypoint.cc @@ -33,12 +33,14 @@ This file is part of the QGROUNDCONTROL project #include "Waypoint.h" #include -Waypoint::Waypoint(quint16 _id, float _x, float _y, float _z, float _yaw, bool _autocontinue, bool _current, float _orbit, int _holdTime) +Waypoint::Waypoint(quint16 _id, float _x, float _y, float _z, float _yaw, bool _autocontinue, bool _current, float _orbit, int _holdTime, MAV_FRAME _frame, MAV_ACTION _action) : id(_id), x(_x), y(_y), z(_z), yaw(_yaw), + frame(_frame), + action(_action), autocontinue(_autocontinue), current(_current), orbit(_orbit), @@ -75,6 +77,7 @@ bool Waypoint::load(QTextStream &loadStream) return false; } + void Waypoint::setId(quint16 id) { this->id = id; @@ -100,6 +103,16 @@ void Waypoint::setYaw(float yaw) this->yaw = yaw; } +void Waypoint::setAction(MAV_ACTION action) +{ + this->action = action; +} + +void Waypoint::setFrame(MAV_FRAME frame) +{ + this->frame = frame; +} + void Waypoint::setAutocontinue(bool autoContinue) { this->autocontinue = autoContinue; diff --git a/src/Waypoint.h b/src/Waypoint.h index 8e8f40025aa81d307354fc2e07fd439611b37966..6e4f6ae8a9e94b959fcbcb60e11cfe5f426bbccf 100644 --- a/src/Waypoint.h +++ b/src/Waypoint.h @@ -36,13 +36,16 @@ This file is part of the PIXHAWK project #include #include #include +#include "mavlink_types.h" class Waypoint : public QObject { Q_OBJECT public: - Waypoint(quint16 id = 0, float x = 0.0f, float y = 0.0f, float z = 0.0f, float yaw = 0.0f, bool autocontinue = false, bool current = false, float orbit = 0.1f, int holdTime = 2000); + Waypoint(quint16 id = 0, float x = 0.0f, float y = 0.0f, float z = 0.0f, float yaw = 0.0f, bool autocontinue = false, + bool current = false, float orbit = 0.1f, int holdTime = 2000, + MAV_FRAME frame=MAV_FRAME_GLOBAL, MAV_ACTION action=MAV_ACTION_NAVIGATE); ~Waypoint(); quint16 getId() const { return id; } @@ -54,6 +57,8 @@ public: bool getCurrent() const { return current; } float getOrbit() const { return orbit; } float getHoldTime() const { return holdTime; } + MAV_FRAME getFrame() const { return frame; } + MAV_ACTION getAction() const { return action; } void save(QTextStream &saveStream); bool load(QTextStream &loadStream); @@ -65,6 +70,8 @@ protected: float y; float z; float yaw; + MAV_FRAME frame; + MAV_ACTION action; bool autocontinue; bool current; float orbit; @@ -76,6 +83,8 @@ public slots: void setY(float y); void setZ(float z); void setYaw(float yaw); + void setAction(MAV_ACTION action); + void setFrame(MAV_FRAME frame); void setAutocontinue(bool autoContinue); void setCurrent(bool current); void setOrbit(float orbit); diff --git a/src/comm/LinkInterface.h b/src/comm/LinkInterface.h index b632b26ba5533c98082895a4f8bdfbcc181f4232..21efec7a0dbf9bc15d99130d4ab86ee10f8b5fd4 100644 --- a/src/comm/LinkInterface.h +++ b/src/comm/LinkInterface.h @@ -42,6 +42,7 @@ along with PIXHAWK. If not, see . class LinkInterface : public QThread { Q_OBJECT public: + LinkInterface(QObject* parent = 0) : QThread(parent) {} //virtual ~LinkInterface() = 0; /* Connection management */ diff --git a/src/comm/LinkManager.cc b/src/comm/LinkManager.cc index 76c4fde4c142de7e24b6655c863b4fd70b5106f2..c2cf73b94c9f5ac82a391f8cebdea6beb7c1d3fa 100644 --- a/src/comm/LinkManager.cc +++ b/src/comm/LinkManager.cc @@ -32,6 +32,7 @@ This file is part of the QGROUNDCONTROL project #include #include #include "LinkManager.h" +#include #include @@ -65,6 +66,8 @@ LinkManager::~LinkManager() void LinkManager::add(LinkInterface* link) { + if(!link) return; + connect(link, SIGNAL(destroyed(QObject*)), this, SLOT(removeLink(QObject*))); links.append(link); emit newLink(link); } @@ -73,6 +76,7 @@ void LinkManager::addProtocol(LinkInterface* link, ProtocolInterface* protocol) { // Connect link to protocol // the protocol will receive new bytes from the link + if(!link || !protocol) return; connect(link, SIGNAL(bytesReceived(LinkInterface*, QByteArray)), protocol, SLOT(receiveBytes(LinkInterface*, QByteArray))); // Store the connection information in the protocol links map protocolLinks.insertMulti(protocol, link); @@ -91,7 +95,8 @@ bool LinkManager::connectAll() foreach (LinkInterface* link, links) { - if(! link->connect()) allConnected = false; + if(!link) {} + else if(!link->connect()) allConnected = false; } return allConnected; @@ -103,7 +108,9 @@ bool LinkManager::disconnectAll() foreach (LinkInterface* link, links) { - if(! link->disconnect()) allDisconnected = false; + //static int i=0; + if(!link){} + else if(!link->disconnect()) allDisconnected = false; } return allDisconnected; @@ -111,14 +118,43 @@ bool LinkManager::disconnectAll() bool LinkManager::connectLink(LinkInterface* link) { + if(!link) return false; return link->connect(); } bool LinkManager::disconnectLink(LinkInterface* link) { + if(!link) return false; return link->disconnect(); } +void LinkManager::removeLink(QObject* link) +{ + LinkInterface* linkInterface = dynamic_cast(link); + // Add link to link list + if (links.contains(linkInterface)) + { + int linkIndex = links.indexOf(linkInterface); + links.removeAt(linkIndex); + } +} + +bool LinkManager::removeLink(LinkInterface* link) +{ + if(link) + { + for (int i=0; i < QList(links).size(); i++) + { + if(link==links.at(i)) + { + links.removeAt(i); //remove from link list + } + } + return true; + } + return false; +} + /** * The access time is linear in the number of links. * diff --git a/src/comm/LinkManager.h b/src/comm/LinkManager.h index b1768758b2a356362c37d93ed85ca5c22c1ca3e9..36ef64ceea4071d7e32f8c17e52e98e31bab2f58 100644 --- a/src/comm/LinkManager.h +++ b/src/comm/LinkManager.h @@ -67,6 +67,9 @@ public slots: void add(LinkInterface* link); void addProtocol(LinkInterface* link, ProtocolInterface* protocol); + void removeLink(QObject* link); + bool removeLink(LinkInterface* link); + bool connectAll(); bool connectLink(LinkInterface* link); diff --git a/src/comm/MAVLinkLightProtocol.cc b/src/comm/MAVLinkLightProtocol.cc index 4ce662538bf779f3f9a272cbd7ac5c737e4f8afd..43de4e4688e659f0f6c50237d824ca3961000a45 100644 --- a/src/comm/MAVLinkLightProtocol.cc +++ b/src/comm/MAVLinkLightProtocol.cc @@ -29,7 +29,7 @@ This file is part of the QGROUNDCONTROL project #include "MAVLinkLightProtocol.h" #include "UASManager.h" -#include "ArduPilotMAV.h" +#include "ArduPilotMegaMAV.h" #include "LinkManager.h" MAVLinkLightProtocol::MAVLinkLightProtocol() : @@ -113,7 +113,7 @@ void MAVLinkLightProtocol::receiveBytes(LinkInterface* link, QByteArray b) // // Check and (if necessary) create UAS object // if (uas == NULL) // { -// ArduPilotMAV* mav = new ArduPilotMAV(this, sysid); // FIXME change to msg.sysid if this field exists +// ArduPilotMegaMAV* mav = new ArduPilotMAV(this, sysid); // FIXME change to msg.sysid if this field exists // // Connect this robot to the UAS object // // it is IMPORTANT here to use the right object type, // // else the slot of the parent object is called (and thus the special diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index 5cedb4d88cd31ebfa0a10865ad6c583094eaf56b..fc9ccea4737c917b0132a995f26a94fd4de5da40 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -33,6 +33,7 @@ This file is part of the QGROUNDCONTROL project #include #include #include +#include #include "MG.h" #include "MAVLinkProtocol.h" @@ -42,9 +43,10 @@ This file is part of the QGROUNDCONTROL project #include "UAS.h" #include "SlugsMAV.h" #include "PxQuadMAV.h" -#include "ArduPilotMAV.h" +#include "ArduPilotMegaMAV.h" #include "configuration.h" #include "LinkManager.h" +#include "MainWindow.h" #include #include "QGC.h" @@ -141,8 +143,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b) // of its existence, as it only then can send and receive // it's first messages. - // FIXME Current debugging - // check if the UAS has the same id like this system + // Check if the UAS has the same id like this system if (message.sysid == getSystemId()) { qDebug() << "WARNING\nWARNING\nWARNING\nWARNING\nWARNING\nWARNING\nWARNING\n\n RECEIVED MESSAGE FROM THIS SYSTEM WITH ID" << message.msgid << "FROM COMPONENT" << message.compid; @@ -155,11 +156,32 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b) // First create new UAS object // Decode heartbeat message mavlink_heartbeat_t heartbeat; + // Reset version field to 0 + heartbeat.mavlink_version = 0; mavlink_msg_heartbeat_decode(&message, &heartbeat); + + // Check if the UAS has a different protocol version + if (heartbeat.mavlink_version != MAVLINK_VERSION) + { + // Bring up dialog to inform user + QMessageBox msgBox(MainWindow::instance()); + msgBox.setIcon(QMessageBox::Critical); + msgBox.setText(tr("The MAVLink protocol version on the MAV and QGroundControl mismatch!")); + msgBox.setInformativeText(tr("It is unsafe to use different MAVLink versions. QGroundControl therefore refuses to connect to system %1, which sends MAVLink version %2 (QGroundControl uses version %3).").arg(message.sysid).arg(heartbeat.mavlink_version).arg(MAVLINK_VERSION)); + msgBox.setStandardButtons(QMessageBox::Ok); + msgBox.setDefaultButton(QMessageBox::Ok); + msgBox.exec(); + + // Ignore this message and continue gracefully + continue; + } + switch (heartbeat.autopilot) { case MAV_AUTOPILOT_GENERIC: + uas = new UAS(this, message.sysid); + // Connect this robot to the UAS object connect(this, SIGNAL(messageReceived(LinkInterface*, mavlink_message_t)), uas, SLOT(receiveMessage(LinkInterface*, mavlink_message_t))); break; @@ -186,9 +208,9 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b) uas = mav; } break; - case MAV_AUTOPILOT_ARDUPILOT: + case MAV_AUTOPILOT_ARDUPILOTMEGA: { - ArduPilotMAV* mav = new ArduPilotMAV(this, message.sysid); + ArduPilotMegaMAV* mav = new ArduPilotMegaMAV(this, message.sysid); // Connect this robot to the UAS object // it is IMPORTANT here to use the right object type, // else the slot of the parent object is called (and thus the special @@ -202,11 +224,15 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b) break; } + // Set the autopilot type + uas->setAutopilotType((int)heartbeat.autopilot); // Make UAS aware that this link can be used to communicate with the actual robot uas->addLink(link); + // Now add UAS to "official" list, which makes the whole application aware of it UASManager::instance()->addUAS(uas); + } // Only count message if UAS exists for this message @@ -258,7 +284,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b) //if () // If a new loss was detected or we just hit one 128th packet step - if (lastLoss != totalLossCounter || (totalReceiveCounter == 128)) + if (lastLoss != totalLossCounter || (totalReceiveCounter % 64 == 0)) { // Calculate new loss ratio // Receive loss @@ -325,6 +351,8 @@ void MAVLinkProtocol::sendMessage(LinkInterface* link, mavlink_message_t message { // Create buffer uint8_t buffer[MAVLINK_MAX_PACKET_LEN]; + // Rewriting header to ensure correct link ID is set + if (link->getId() != 0) mavlink_finalize_message_chan(&message, this->getSystemId(), this->getComponentId(), link->getId(), message.len); // Write message into buffer, prepending start sign int len = mavlink_msg_to_send_buffer(buffer, &message); // If link is connected @@ -345,7 +373,7 @@ void MAVLinkProtocol::sendHeartbeat() if (m_heartbeatsEnabled) { mavlink_message_t beat; - mavlink_msg_heartbeat_pack(MG::SYSTEM::ID, MG::SYSTEM::COMPID,&beat, OCU, MAV_AUTOPILOT_GENERIC); + mavlink_msg_heartbeat_pack(getSystemId(), getComponentId(),&beat, OCU, MAV_AUTOPILOT_GENERIC); sendMessage(beat); } } diff --git a/src/comm/MAVLinkSimulationLink.cc b/src/comm/MAVLinkSimulationLink.cc index 065535f651dc1a44a83b429f4480ed20dd2e7996..9dcd0bc928f5848bcbb3a3bd4ccbe838752e0e01 100644 --- a/src/comm/MAVLinkSimulationLink.cc +++ b/src/comm/MAVLinkSimulationLink.cc @@ -55,7 +55,7 @@ This file is part of the QGROUNDCONTROL project * @param writeFile The received messages are written to that file * @param rate The rate at which the messages are sent (in intervals of milliseconds) **/ -MAVLinkSimulationLink::MAVLinkSimulationLink(QString readFile, QString writeFile, int rate) : +MAVLinkSimulationLink::MAVLinkSimulationLink(QString readFile, QString writeFile, int rate, QObject* parent) : LinkInterface(parent), readyBytes(0), timeOffset(0) { @@ -99,12 +99,6 @@ MAVLinkSimulationLink::MAVLinkSimulationLink(QString readFile, QString writeFile // Open packet log mavlinkLogFile = new QFile(MAVLinkProtocol::getLogfileName()); mavlinkLogFile->open(QIODevice::ReadOnly); - - // position at Pixhawk lab @ ETHZ - x = 5247273.0f; - y = 465955.0f; - z = -0.2f; - yaw = 0; } MAVLinkSimulationLink::~MAVLinkSimulationLink() @@ -198,6 +192,7 @@ void MAVLinkSimulationLink::mainloop() static unsigned int rate1hzCounter = 1; static unsigned int rate10hzCounter = 1; static unsigned int rate50hzCounter = 1; + static unsigned int circleCounter = 0; // Vary values @@ -294,16 +289,19 @@ void MAVLinkSimulationLink::mainloop() if (keys.value(i, "") == "Gyro_Phi") { rawImuValues.xgyro = d; + attitude.rollspeed = ((d-29.000)/15000.0)*2.7-2.7-2.65; } if (keys.value(i, "") == "Gyro_Theta") { rawImuValues.ygyro = d; + attitude.pitchspeed = ((d-29.000)/15000.0)*2.7-2.7-2.65; } if (keys.value(i, "") == "Gyro_Psi") { rawImuValues.zgyro = d; + attitude.yawspeed = ((d-29.000)/3000.0)*2.7-2.7-2.65; } #ifdef MAVLINK_ENABLED_PIXHAWK if (keys.value(i, "") == "Pressure") @@ -380,14 +378,17 @@ void MAVLinkSimulationLink::mainloop() // Move X Position - x = x*0.93f + 0.07f*(x+sin(QGC::groundTimeUsecs()) * 0.08f); - y = y*0.93f + 0.07f*(y+sin(QGC::groundTimeUsecs()) * 0.5f); - z = z*0.93f + 0.07f*(z+sin(QGC::groundTimeUsecs()*100000) * 0.1f); + x = 12.0*sin(((double)circleCounter)/100.0); + y = 5.0*cos(((double)circleCounter)/100.0); + z = 1.8 + 1.2*sin(((double)circleCounter)/60.0); + + circleCounter++; + // x = (x > 5.0f) ? 5.0f : x; // y = (y > 5.0f) ? 5.0f : y; // z = (z > 3.0f) ? 3.0f : z; -// + // x = (x < -5.0f) ? -5.0f : x; // y = (y < -5.0f) ? -5.0f : y; // z = (z < -3.0f) ? -3.0f : z; @@ -401,30 +402,44 @@ void MAVLinkSimulationLink::mainloop() streampointer += bufferlength; // Send back new position - mavlink_msg_local_position_pack(systemId, componentId, &ret, 0, y+z, y, -fabs(z), 0, 0, 0); + mavlink_msg_local_position_pack(systemId, componentId, &ret, 0, x, y, -fabs(z), 0, 0, 0); bufferlength = mavlink_msg_to_send_buffer(buffer, &ret); //add data into datastream memcpy(stream+streampointer,buffer, bufferlength); streampointer += bufferlength; - // GPS RAW - mavlink_msg_gps_raw_pack(systemId, componentId, &ret, 0, 3, 47.376417+(x*0.001), 8.548103+(y*0.001), z, 0, 0, 2.5f, 0.1f); +// // GPS RAW +// mavlink_msg_gps_raw_pack(systemId, componentId, &ret, 0, 3, 47.376417+(x*0.00001), 8.548103+(y*0.00001), z, 0, 0, 2.5f, 0.1f); +// bufferlength = mavlink_msg_to_send_buffer(buffer, &ret); +// //add data into datastream +// memcpy(stream+streampointer,buffer, bufferlength); +// streampointer += bufferlength; + + // GLOBAL POSITION + mavlink_msg_global_position_int_pack(systemId, componentId, &ret, (473780.28137103+(x))*1E3, (85489.9892510421+(y))*1E3, (z+550.0)*1000.0, 0*100.0, 0*100.0, 0*100.0); bufferlength = mavlink_msg_to_send_buffer(buffer, &ret); //add data into datastream memcpy(stream+streampointer,buffer, bufferlength); streampointer += bufferlength; - // GLOBAL POSITION - mavlink_msg_global_position_pack(systemId, componentId, &ret, 0, 3, 47.376417+(x*0.001), 8.548103+(y*0.001), z, 0, 0); + // GLOBAL POSITION VEHICLE 2 + mavlink_msg_global_position_int_pack(54, componentId, &ret, (473780.28137103+(x+0.002))*1E3, (85489.9892510421+((y/2)+0.3))*1E3, (z+570.0)*1000.0, 0*100.0, 0*100.0, 0*100.0); bufferlength = mavlink_msg_to_send_buffer(buffer, &ret); //add data into datastream memcpy(stream+streampointer,buffer, bufferlength); streampointer += bufferlength; +// // GLOBAL POSITION VEHICLE 3 +// mavlink_msg_global_position_int_pack(60, componentId, &ret, (473780.28137103+(x/2+0.002))*1E3, (85489.9892510421+((y*2)+0.3))*1E3, (z+590.0)*1000.0, 0*100.0, 0*100.0, 0*100.0); +// bufferlength = mavlink_msg_to_send_buffer(buffer, &ret); +// //add data into datastream +// memcpy(stream+streampointer,buffer, bufferlength); +// streampointer += bufferlength; + static int rcCounter = 0; if (rcCounter == 2) { - mavlink_rc_channels_t chan; + mavlink_rc_channels_raw_t chan; chan.chan1_raw = 1000 + ((int)(fabs(x) * 1000) % 2000); chan.chan2_raw = 1000 + ((int)(fabs(y) * 1000) % 2000); chan.chan3_raw = 1000 + ((int)(fabs(z) * 1000) % 2000); @@ -433,15 +448,8 @@ void MAVLinkSimulationLink::mainloop() chan.chan6_raw = (chan.chan3_raw + chan.chan2_raw) / 2.0f; chan.chan7_raw = (chan.chan4_raw + chan.chan2_raw) / 2.0f; chan.chan8_raw = (chan.chan6_raw + chan.chan2_raw) / 2.0f; - chan.chan1_255 = ((chan.chan1_raw - 1000)/1000.0f) * 255.0f; - chan.chan2_255 = ((chan.chan2_raw - 1000)/1000.0f) * 255.0f; - chan.chan3_255 = ((chan.chan3_raw - 1000)/1000.0f) * 255.0f; - chan.chan4_255 = ((chan.chan4_raw - 1000)/1000.0f) * 255.0f; - chan.chan5_255 = ((chan.chan5_raw - 1000)/1000.0f) * 255.0f; - chan.chan6_255 = ((chan.chan6_raw - 1000)/1000.0f) * 255.0f; - chan.chan7_255 = ((chan.chan7_raw - 1000)/1000.0f) * 255.0f; - chan.chan8_255 = ((chan.chan8_raw - 1000)/1000.0f) * 255.0f; - messageSize = mavlink_msg_rc_channels_encode(systemId, componentId, &msg, &chan); + chan.rssi = 100; + messageSize = mavlink_msg_rc_channels_raw_encode(systemId, componentId, &msg, &chan); // Allocate buffer with packet data bufferlength = mavlink_msg_to_send_buffer(buffer, &msg); //add data into datastream @@ -522,6 +530,7 @@ void MAVLinkSimulationLink::mainloop() detectionCounter++; status.vbat = voltage * 1000; // millivolts + status.load = 33 * detectionCounter % 1000; // Pack message and get size of encoded byte string messageSize = mavlink_msg_sys_status_encode(systemId, componentId, &msg, &status); @@ -534,7 +543,7 @@ void MAVLinkSimulationLink::mainloop() // Pack debug text message mavlink_statustext_t text; text.severity = 0; - strcpy((char*)(text.text), "DEBUG MESSAGE TEXT"); + strcpy((char*)(text.text), "Text message from system 32"); mavlink_msg_statustext_encode(systemId, componentId, &msg, &text); bufferlength = mavlink_msg_to_send_buffer(buffer, &msg); memcpy(stream+streampointer, buffer, bufferlength); @@ -573,16 +582,17 @@ void MAVLinkSimulationLink::mainloop() // Send controller states - uint8_t attControl = 1; - uint8_t posXYControl = 1; - uint8_t posZControl = 0; - uint8_t posYawControl = 1; - uint8_t gpsLock = 2; - uint8_t visLock = 3; - uint8_t posLock = qMax(gpsLock, visLock); #ifdef MAVLINK_ENABLED_PIXHAWK + uint8_t attControl = 1; + uint8_t posXYControl = 1; + uint8_t posZControl = 0; + uint8_t posYawControl = 1; + + uint8_t gpsLock = 2; + uint8_t visLock = 3; + uint8_t posLock = qMax(gpsLock, visLock); messageSize = mavlink_msg_control_status_pack(systemId, componentId, &msg, posLock, visLock, gpsLock, attControl, posXYControl, posZControl, posYawControl); #endif @@ -591,37 +601,41 @@ void MAVLinkSimulationLink::mainloop() streampointer += bufferlength; - /* + // HEARTBEAT VEHICLE 2 // Pack message and get size of encoded byte string - messageSize = mavlink_msg_heartbeat_pack(42, componentId, &msg, MAV_FIXED_WING); + messageSize = mavlink_msg_heartbeat_pack(54, componentId, &msg, MAV_FIXED_WING, MAV_AUTOPILOT_ARDUPILOTMEGA); // Allocate buffer with packet data bufferlength = mavlink_msg_to_send_buffer(buffer, &msg); //add data into datastream memcpy(stream+streampointer,buffer, bufferlength); streampointer += bufferlength; +// // HEARTBEAT VEHICLE 3 + +// // Pack message and get size of encoded byte string +// messageSize = mavlink_msg_heartbeat_pack(60, componentId, &msg, MAV_FIXED_WING, MAV_AUTOPILOT_PIXHAWK); +// // Allocate buffer with packet data +// bufferlength = mavlink_msg_to_send_buffer(buffer, &msg); +// //add data into datastream +// memcpy(stream+streampointer,buffer, bufferlength); +// streampointer += bufferlength; + // STATUS VEHICLE 2 - sys_status_t status2; + mavlink_sys_status_t status2; status2.mode = MAV_MODE_LOCKED; status2.vbat = voltage; + status2.load = 120; status2.status = MAV_STATE_STANDBY; // Pack message and get size of encoded byte string - messageSize = mavlink_msg_sys_status_encode(systemId, componentId, &msg, &status); + messageSize = mavlink_msg_sys_status_encode(54, componentId, &msg, &status); // Allocate buffer with packet data bufferlength = mavlink_msg_to_send_buffer(buffer, &msg); //add data into datastream memcpy(stream+streampointer,buffer, bufferlength); streampointer += bufferlength; - */ - //qDebug() << "BOOT" << "BUF LEN" << bufferlength << "POINTER" << streampointer; - - // AUX STATUS - #ifdef MAVLINK_ENABLED_PIXHAWK - rawAuxValues.vbat = voltage; -#endif rate1hzCounter = 1; } @@ -673,7 +687,7 @@ qint64 MAVLinkSimulationLink::bytesAvailable() void MAVLinkSimulationLink::writeBytes(const char* data, qint64 size) { - qDebug() << "Simulation received " << size << " bytes from groundstation: "; + //qDebug() << "Simulation received " << size << " bytes from groundstation: "; // Increase write counter //bitsSentTotal += size * 8; @@ -793,31 +807,6 @@ void MAVLinkSimulationLink::writeBytes(const char* data, qint64 size) j++; } - /* - // Pack message and get size of encoded byte string - mavlink_msg_param_value_pack(systemId, componentId, &msg, (int8_t*)"ROLL_K_P", 0.5f); - // Allocate buffer with packet data - bufferlength = mavlink_msg_to_send_buffer(buffer, &msg); - //add data into datastream - memcpy(stream+streampointer,buffer, bufferlength); - streampointer+=bufferlength; - - // Pack message and get size of encoded byte string - mavlink_msg_param_value_pack(systemId, componentId, &msg, (int8_t*)"PITCH_K_P", 0.6f); - // Allocate buffer with packet data - bufferlength = mavlink_msg_to_send_buffer(buffer, &msg); - //add data into datastream - memcpy(stream+streampointer,buffer, bufferlength); - streampointer+=bufferlength; - - // Pack message and get size of encoded byte string - mavlink_msg_param_value_pack(systemId, componentId, &msg, (int8_t*)"YAW_K_P", 0.8f); - // Allocate buffer with packet data - bufferlength = mavlink_msg_to_send_buffer(buffer, &msg); - //add data into datastream - memcpy(stream+streampointer,buffer, bufferlength); - streampointer+=bufferlength;*/ - qDebug() << "SIMULATION SENT PARAMETERS TO GCS"; } } @@ -850,10 +839,10 @@ void MAVLinkSimulationLink::writeBytes(const char* data, qint64 size) } - unsigned char v=data[i]; - fprintf(stderr,"%02x ", v); + //unsigned char v=data[i]; + //fprintf(stderr,"%02x ", v); } - fprintf(stderr,"\n"); + //fprintf(stderr,"\n"); readyBufferMutex.lock(); for (int i = 0; i < streampointer; i++) @@ -940,6 +929,18 @@ bool MAVLinkSimulationLink::connect() return true; } +/** + * Connect the link. + * + * @param connect true connects the link, false disconnects it + * @return True if connection has been established, false if connection + * couldn't be established. + **/ +void MAVLinkSimulationLink::connectLink() +{ + this->connect(); +} + /** * Connect the link. * diff --git a/src/comm/MAVLinkSimulationLink.h b/src/comm/MAVLinkSimulationLink.h index 49cc4d5c028bd36b3a9432a86fc43cb3b719c96c..383cb71aac0527b1291b50e78ce2230b177cc91b 100644 --- a/src/comm/MAVLinkSimulationLink.h +++ b/src/comm/MAVLinkSimulationLink.h @@ -47,7 +47,7 @@ class MAVLinkSimulationLink : public LinkInterface { Q_OBJECT public: - MAVLinkSimulationLink(QString readFile="", QString writeFile="", int rate=5); + MAVLinkSimulationLink(QString readFile="", QString writeFile="", int rate=5, QObject* parent = 0); ~MAVLinkSimulationLink(); bool isConnected(); qint64 bytesAvailable(); @@ -85,16 +85,18 @@ public: public slots: void writeBytes(const char* data, qint64 size); void readBytes(); - void mainloop(); + /** @brief Mainloop simulating the mainloop of the MAV */ + virtual void mainloop(); bool connectLink(bool connect); + void connectLink(); protected: // UAS properties float roll, pitch, yaw; - float x, y, z; - float spX, spY, spZ, spYaw; + double x, y, z; + double spX, spY, spZ, spYaw; int battery; QTimer* timer; @@ -126,7 +128,7 @@ protected: void enqueue(uint8_t* stream, uint8_t* index, mavlink_message_t* msg); static const uint8_t systemId = 220; - static const uint8_t componentId = 0; + static const uint8_t componentId = 200; static const uint16_t version = 1000; signals: diff --git a/src/comm/MAVLinkSwarmSimulationLink.cc b/src/comm/MAVLinkSwarmSimulationLink.cc new file mode 100644 index 0000000000000000000000000000000000000000..a3ec913d9a1aefd9c01cde27dcefe6fbcc0133bc --- /dev/null +++ b/src/comm/MAVLinkSwarmSimulationLink.cc @@ -0,0 +1,12 @@ +#include "MAVLinkSwarmSimulationLink.h" + +MAVLinkSwarmSimulationLink::MAVLinkSwarmSimulationLink(QString readFile, QString writeFile, int rate, QObject *parent) : + MAVLinkSimulationLink(readFile, writeFile, rate, parent) +{ +} + + +void MAVLinkSwarmSimulationLink::mainloop() +{ + +} diff --git a/src/comm/MAVLinkSwarmSimulationLink.h b/src/comm/MAVLinkSwarmSimulationLink.h new file mode 100644 index 0000000000000000000000000000000000000000..8a35c43e1f01fd8116c5af9e3b768995d5f97d3c --- /dev/null +++ b/src/comm/MAVLinkSwarmSimulationLink.h @@ -0,0 +1,19 @@ +#ifndef MAVLINKSWARMSIMULATIONLINK_H +#define MAVLINKSWARMSIMULATIONLINK_H + +#include "MAVLinkSimulationLink.h" + +class MAVLinkSwarmSimulationLink : public MAVLinkSimulationLink +{ + Q_OBJECT +public: + MAVLinkSwarmSimulationLink(QString readFile="", QString writeFile="", int rate=5, QObject *parent = 0); + +signals: + +public slots: + void mainloop(); + +}; + +#endif // MAVLINKSWARMSIMULATIONLINK_H diff --git a/src/comm/MAVLinkXMLParser.cc b/src/comm/MAVLinkXMLParser.cc index 0fdd681097eba219e52cdfab3ac213ce944900d2..cca446668350a87461cf71bd55112a4ab5c1afcd 100644 --- a/src/comm/MAVLinkXMLParser.cc +++ b/src/comm/MAVLinkXMLParser.cc @@ -1,24 +1,4 @@ /*===================================================================== - -QGroundControl Open Source Ground Control Station - -(c) 2009, 2010 QGROUNDCONTROL PROJECT - -This file is part of the QGROUNDCONTROL project - - QGROUNDCONTROL is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - QGROUNDCONTROL is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with QGROUNDCONTROL. If not, see . - ======================================================================*/ /** @@ -88,6 +68,7 @@ bool MAVLinkXMLParser::generate() // Sanity check variables QList* usedMessageIDs = new QList(); QMap* usedMessageNames = new QMap(); + QMap* usedEnumNames = new QMap(); QList< QPair > cFiles; QString lcmStructDefs = ""; @@ -109,6 +90,8 @@ bool MAVLinkXMLParser::generate() QString messagesDirName = ".";//"generated"; QDir dir(outputDirName + "/" + messagesDirName); + int mavlinkVersion = 0; + // Start main header @@ -118,6 +101,8 @@ bool MAVLinkXMLParser::generate() mainHeader += "\n#include \"../protocol.h\"\n"; mainHeader += "\n#define MAVLINK_ENABLED_" + pureFileName.toUpper() + "\n\n"; + QString enums; + // Run through root children while(!n.isNull()) @@ -168,23 +153,23 @@ bool MAVLinkXMLParser::generate() // OLD MODE: MERGE BOTH FILES -// const QString instanceText(QString::fromUtf8(file.readAll())); -// includeDoc.setContent(instanceText); -// // Get all messages -// QDomNode in = includeDoc.documentElement().firstChild(); -// QDomElement ie = in.toElement(); -// if (!ie.isNull()) -// { -// if (ie.tagName() == "messages" || ie.tagName() == "include") -// { -// QDomNode ref = n.parentNode().insertAfter(in, n); -// if (ref.isNull()) -// { -// emit parseState(QString("ERROR: Inclusion failed: XML syntax error in file %1. Wrong/misspelled XML?\nAbort.").arg(fileName)); -// return false; -// } -// } -// } + // const QString instanceText(QString::fromUtf8(file.readAll())); + // includeDoc.setContent(instanceText); + // // Get all messages + // QDomNode in = includeDoc.documentElement().firstChild(); + // QDomElement ie = in.toElement(); + // if (!ie.isNull()) + // { + // if (ie.tagName() == "messages" || ie.tagName() == "include") + // { + // QDomNode ref = n.parentNode().insertAfter(in, n); + // if (ref.isNull()) + // { + // emit parseState(QString("ERROR: Inclusion failed: XML syntax error in file %1. Wrong/misspelled XML?\nAbort.").arg(fileName)); + // return false; + // } + // } + // } emit parseState(QString("End of inclusion from file: %1").arg(incFileName)); } @@ -196,6 +181,133 @@ bool MAVLinkXMLParser::generate() } } + // Handle all enum tags + else if (e.tagName() == "version") + { + //QString fieldType = e.attribute("type", ""); + //QString fieldName = e.attribute("name", ""); + QString fieldText = e.text(); + + // Check if version has been previously set + if (mavlinkVersion != 0) + { + emit parseState(QString("ERROR: Protocol version tag set twice, please use it only once. First version was %1, second version is %2.\nAbort.").arg(mavlinkVersion).arg(fieldText)); + return false; + } + + bool ok; + int version = fieldText.toInt(&ok); + if (ok && (version > 0) && (version < 256)) + { + // Set MAVLink version + mavlinkVersion = version; + } + else + { + emit parseState(QString("ERROR: Reading version string failed: %1, string is not an integer number between 1 and 255.\nAbort.").arg(fieldText)); + return false; + } + } + // Handle all enum tags + else if (e.tagName() == "enums") + { + // One down into the enums list + p = n; + n = n.firstChild(); + while (!n.isNull()) + { + e = n.toElement(); + + QString currEnum; + QString currEnumEnd; + // Comment + QString comment; + + if(!e.isNull() && e.tagName() == "enum") + { + // Get enum name + QString enumName = e.attribute("name", "").toLower(); + if (enumName.size() == 0) + { + emit parseState(tr("ERROR: Missing required name=\"\" attribute for tag %2 near line %1\nAbort.").arg(QString::number(e.lineNumber()), e.tagName())); + return false; + } + else + { + // Sanity check: Accept only enum names not used previously + if (usedEnumNames->contains(enumName)) + { + emit parseState(tr("ERROR: Enum name %1 used twice, second occurence near line %2 of file %3\nAbort.").arg(enumName, QString::number(e.lineNumber()), fileName)); + return false; + } + else + { + usedEnumNames->insert(enumName, QString::number(e.lineNumber())); + } + + // Everything sane, starting with enum content + currEnum = "enum " + enumName.toUpper() + "\n{\n"; + currEnumEnd = "};\n\n"; + + int nextEnumValue = 0; + + // Get the message fields + QDomNode f = e.firstChild(); + while (!f.isNull()) + { + QDomElement e2 = f.toElement(); + if (!e2.isNull() && e2.tagName() == "entry") + { + QString fieldValue = e2.attribute("value", ""); + + // If value was given, use it, if not, use the enum iterator + // value. The iterator value gets reset by manual values + + QString fieldName = e2.attribute("name", ""); + if (fieldValue.length() == 0) + { + fieldValue = QString::number(nextEnumValue); + nextEnumValue++; + } + else + { + bool ok; + nextEnumValue = fieldValue.toInt(&ok) + 1; + if (!ok) + { + emit parseState(tr("ERROR: Enum entry %1 has not a valid number (%2) in the value field.\nAbort.").arg(fieldName, fieldValue)); + return false; + } + } + + // Add comment of field if there is one + QString fieldComment; + if (e2.text().length() > 0) + { + fieldComment = " /* " + e2.text() + "*/"; + } + currEnum += "\t" + fieldName.toUpper() + "=" + fieldValue + "," + fieldComment + "\n"; + } + else if(!e2.isNull() && e2.tagName() == "description") + { + comment = e2.text() + comment; + } + f = f.nextSibling(); + } + } + // Add the last parsed enum + // Remove the last comma, as the last value has none + int commaPosition = currEnum.lastIndexOf(","); + currEnum.remove(commaPosition, 1); + + enums += "/** @brief " + comment + " */\n" + currEnum + currEnumEnd; + } // Element is non-zero and element name is + n = n.nextSibling(); + } // While through + // One up, back into the structure + n = p; + } + // Handle all message tags else if (e.tagName() == "messages") { @@ -247,7 +359,11 @@ bool MAVLinkXMLParser::generate() QString messageType("mavlink_message_t"); // Build up function call - QString commentContainer("/**\n * @brief Send a %1 message\n *\n%2 * @return length of the message in bytes (excluding serial stream start sign)\n */\n"); + QString commentContainer("/**\n * @brief Pack a %1 message\n * @param system_id ID of this system\n * @param component_id ID of this component (e.g. 200 for IMU)\n * @param msg The MAVLink message to compress the data into\n *\n%2 * @return length of the message in bytes (excluding serial stream start sign)\n */\n"); + QString commentPackChanContainer("/**\n * @brief Pack a %1 message\n * @param system_id ID of this system\n * @param component_id ID of this component (e.g. 200 for IMU)\n * @param chan The MAVLink channel this message was sent over\n * @param msg The MAVLink message to compress the data into\n%2 * @return length of the message in bytes (excluding serial stream start sign)\n */\n"); + QString commentSendContainer("/**\n * @brief Send a %1 message\n * @param chan MAVLink channel to send the message\n *\n%2 */\n"); + QString commentEncodeContainer("/**\n * @brief Encode a %1 struct into a message\n *\n * @param system_id ID of this system\n * @param component_id ID of this component (e.g. 200 for IMU)\n * @param msg The MAVLink message to compress the data into\n * @param %1 C-struct to read the message contents from\n */\n"); + QString commentDecodeContainer("/**\n * @brief Decode a %1 message into a struct\n *\n * @param msg The message to decode\n * @param %1 C-struct to decode the message contents into\n */\n"); QString commentEntry(" * @param %1 %2\n"); QString idDefine = QString("#define MAVLINK_MSG_ID_%1 %2").arg(messageName.toUpper(), QString::number(messageId)); QString arrayDefines; @@ -258,7 +374,8 @@ bool MAVLinkXMLParser::generate() QString decode("static inline void mavlink_msg_%1_decode(const mavlink_message_t* msg, %2* %1)\n{\n%3}\n"); QString pack("static inline uint16_t mavlink_msg_%1_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg%2)\n{\n\tuint16_t i = 0;\n\tmsg->msgid = MAVLINK_MSG_ID_%3;\n\n%4\n\treturn mavlink_finalize_message(msg, system_id, component_id, i);\n}\n\n"); - QString compactSend("#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS\n\nstatic inline void mavlink_msg_%3_send(%1 chan%5)\n{\n\t%2 msg;\n\tmavlink_msg_%3_pack(mavlink_system.sysid, mavlink_system.compid, &msg%4);\n\tmavlink_send_uart(chan, &msg);\n}\n\n#endif"); + QString packChan("static inline uint16_t mavlink_msg_%1_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg%2)\n{\n\tuint16_t i = 0;\n\tmsg->msgid = MAVLINK_MSG_ID_%3;\n\n%4\n\treturn mavlink_finalize_message_chan(msg, system_id, component_id, chan, i);\n}\n\n"); + QString compactSend("#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS\n\nstatic inline void mavlink_msg_%3_send(%1 chan%5)\n{\n\t%2 msg;\n\tmavlink_msg_%3_pack_chan(mavlink_system.sysid, mavlink_system.compid, chan, &msg%4);\n\tmavlink_send_uart(chan, &msg);\n}\n\n#endif"); //QString compactStructSend = "#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS\n\nstatic inline void mavlink_msg_%3_struct_send(%1 chan%5)\n{\n\t%2 msg;\n\tmavlink_msg_%3_encode(mavlink_system.sysid, mavlink_system.compid, &msg%4);\n\tmavlink_send_uart(chan, &msg);\n}\n\n#endif"; QString unpacking; QString prepends; @@ -285,11 +402,28 @@ bool MAVLinkXMLParser::generate() QString unpackingCode; QString unpackingComment = QString("/**\n * @brief Get field %1 from %2 message\n *\n * @return %3\n */\n").arg(fieldName, messageName, fieldText); - // Send arguments are the same for integral types and arrays - sendArguments += ", " + fieldName; + // Send arguments do not work for the version field + if (!fieldType.contains("uint8_t_mavlink_version")) + { + // Send arguments are the same for integral types and arrays + sendArguments += ", " + fieldName; + commentLines += commentEntry.arg(fieldName, fieldText); + } + + // MAVLink version field + // this is a special field always containing the version define + if (fieldType.contains("uint8_t_mavlink_version")) + { + // Add field to C structure + cStructLines += QString("\t%1 %2; ///< %3\n").arg("uint8_t", fieldName, fieldText); + // Add pack line to message_xx_pack function + packLines += QString("\ti += put_uint8_t_by_index(%1, i, msg->payload); // %2\n").arg(mavlinkVersion).arg(fieldText); + // Add decode function for this type + decodeLines += QString("\t%1->%2 = mavlink_msg_%1_get_%2(msg);\n").arg(messageName, fieldName); + } // Array handling is different from simple types - if (fieldType.startsWith("array")) + else if (fieldType.startsWith("array")) { int arrayLength = QString(fieldType.split("[").at(1).split("]").first()).toInt(); QString arrayType = fieldType.split("[").first(); @@ -299,7 +433,7 @@ bool MAVLinkXMLParser::generate() // Add field to C structure cStructLines += QString("\t%1 %2[%3]; ///< %4\n").arg("int8_t", fieldName, QString::number(arrayLength), fieldText); // Add pack line to message_xx_pack function - packLines += QString("\ti += put_%1_by_index(%2, %3, i, msg->payload); //%4\n").arg(arrayType, fieldName, QString::number(arrayLength), fieldText); + packLines += QString("\ti += put_%1_by_index(%2, %3, i, msg->payload); // %4\n").arg(arrayType, fieldName, QString::number(arrayLength), fieldText); // Add decode function for this type decodeLines += QString("\tmavlink_msg_%1_get_%2(msg, %1->%2);\n").arg(messageName, fieldName); arrayDefines += QString("#define MAVLINK_MSG_%1_FIELD_%2_LEN %3\n").arg(messageName.toUpper(), fieldName.toUpper(), QString::number(arrayLength)); @@ -314,7 +448,7 @@ bool MAVLinkXMLParser::generate() // Add field to C structure cStructLines += QString("\t%1 %2[%3]; ///< %4\n").arg("char", fieldName, QString::number(arrayLength), fieldText); // Add pack line to message_xx_pack function - packLines += QString("\ti += put_%1_by_index(%2, %3, i, msg->payload); //%4\n").arg(arrayType, fieldName, QString::number(arrayLength), e2.text()); + packLines += QString("\ti += put_%1_by_index(%2, %3, i, msg->payload); // %4\n").arg(arrayType, fieldName, QString::number(arrayLength), e2.text()); // Add decode function for this type decodeLines += QString("\tmavlink_msg_%1_get_%2(msg, %1->%2);\n").arg(messageName, fieldName); arrayDefines += QString("#define MAVLINK_MSG_%1_FIELD_%2_LEN %3\n").arg(messageName.toUpper(), fieldName.toUpper(), QString::number(arrayLength)); @@ -330,7 +464,7 @@ bool MAVLinkXMLParser::generate() // Add field to C structure cStructLines += QString("\t%1 %2[%3]; ///< %4\n").arg(arrayType, fieldName, QString::number(arrayLength), fieldText); // Add pack line to message_xx_pack function - packLines += QString("\ti += put_array_by_index((int8_t*)%1, sizeof(%2)*%3, i, msg->payload); //%4\n").arg(fieldName, arrayType, QString::number(arrayLength), fieldText); + packLines += QString("\ti += put_array_by_index((int8_t*)%1, sizeof(%2)*%3, i, msg->payload); // %4\n").arg(fieldName, arrayType, QString::number(arrayLength), fieldText); // Add decode function for this type decodeLines += QString("\tmavlink_msg_%1_get_%2(msg, %1->%2);\n").arg(messageName, fieldName); arrayDefines += QString("#define MAVLINK_MSG_%1_FIELD_%2_LEN %3\n").arg(messageName.toUpper(), fieldName.toUpper(), QString::number(arrayLength)); @@ -338,7 +472,7 @@ bool MAVLinkXMLParser::generate() unpackingCode = QString("\n\tmemcpy(r_data, msg->payload%1, sizeof(%2)*%3);\n\treturn sizeof(%2)*%3;").arg(prepends, arrayType, QString::number(arrayLength)); unpacking += unpackingComment + QString("static inline uint16_t mavlink_msg_%1_get_%2(const mavlink_message_t* msg, %3* r_data)\n{\n%4\n}\n\n").arg(messageName, fieldName, arrayType, unpackingCode); -// decodeLines += ""; + // decodeLines += ""; prepends += QString("+sizeof(%1)*%2").arg(arrayType, QString::number(arrayLength)); } @@ -351,16 +485,20 @@ bool MAVLinkXMLParser::generate() // Add field to C structure cStructLines += QString("\t%1 %2; ///< %3\n").arg(fieldType, fieldName, fieldText); // Add pack line to message_xx_pack function - packLines += QString("\ti += put_%1_by_index(%2, i, msg->payload); //%3\n").arg(fieldType, fieldName, e2.text()); + packLines += QString("\ti += put_%1_by_index(%2, i, msg->payload); // %3\n").arg(fieldType, fieldName, e2.text()); // Add decode function for this type decodeLines += QString("\t%1->%2 = mavlink_msg_%1_get_%2(msg);\n").arg(messageName, fieldName); } - commentLines += commentEntry.arg(fieldName, fieldText); + // -// QString unpackingCode; + // QString unpackingCode; - if (fieldType == "uint8_t" || fieldType == "int8_t") + if (fieldType == "uint8_t_mavlink_version") + { + unpackingCode = QString("\treturn (%1)(msg->payload%2)[0];").arg("uint8_t", prepends); + } + else if (fieldType == "uint8_t" || fieldType == "int8_t") { unpackingCode = QString("\treturn (%1)(msg->payload%2)[0];").arg(fieldType, prepends); } @@ -391,8 +529,14 @@ bool MAVLinkXMLParser::generate() // Generate the message decoding function + if (fieldType.contains("uint8_t_mavlink_version")) + { + unpacking += unpackingComment + QString("static inline %1 mavlink_msg_%2_get_%3(const mavlink_message_t* msg)\n{\n%4\n}\n\n").arg("uint8_t", messageName, fieldName, unpackingCode); + decodeLines += ""; + prepends += "+sizeof(uint8_t)"; + } // Array handling is different from simple types - if (fieldType.startsWith("array")) + else if (fieldType.startsWith("array")) { unpacking += unpackingComment + QString("static inline uint16_t mavlink_msg_%1_get_%2(const mavlink_message_t* msg, int8_t* r_data)\n{\n%4\n}\n\n").arg(messageName, fieldName, unpackingCode); decodeLines += ""; @@ -423,10 +567,11 @@ bool MAVLinkXMLParser::generate() cStruct = cStruct.arg(cStructName, cStructLines); lcmStructDefs.append("\n").append(cStruct).append("\n"); pack = pack.arg(messageName, packParameters, messageName.toUpper(), packLines); + packChan = packChan.arg(messageName, packParameters, messageName.toUpper(), packLines); encode = encode.arg(messageName).arg(cStructName).arg(packArguments); decode = decode.arg(messageName).arg(cStructName).arg(decodeLines); compactSend = compactSend.arg(channelType, messageType, messageName, sendArguments, packParameters); - QString cFile = "// MESSAGE " + messageName.toUpper() + " PACKING\n\n" + idDefine + "\n\n" + cStruct + "\n\n" + arrayDefines + "\n\n" + commentContainer.arg(messageName.toLower(), commentLines) + pack + encode + "\n" + compactSend + "\n" + "// MESSAGE " + messageName.toUpper() + " UNPACKING\n\n" + unpacking + decode; + QString cFile = "// MESSAGE " + messageName.toUpper() + " PACKING\n\n" + idDefine + "\n\n" + cStruct + "\n\n" + arrayDefines + "\n\n" + commentContainer.arg(messageName.toLower(), commentLines) + pack + commentPackChanContainer.arg(messageName.toLower(), commentLines) + packChan + commentEncodeContainer.arg(messageName.toLower()) + encode + "\n" + commentSendContainer.arg(messageName.toLower(), commentLines) + compactSend + "\n" + "// MESSAGE " + messageName.toUpper() + " UNPACKING\n\n" + unpacking + commentDecodeContainer.arg(messageName.toLower()) + decode; cFiles.append(qMakePair(QString("mavlink_msg_%1.h").arg(messageName), cFile)); } // Check if tag = message } // Check if e = NULL @@ -438,6 +583,7 @@ bool MAVLinkXMLParser::generate() } // Check if e = NULL n = n.nextSibling(); } // While through include and messages + // One up - current node = parent n = p; } // Check if tag = mavlink @@ -445,7 +591,19 @@ bool MAVLinkXMLParser::generate() n = n.nextSibling(); } // While through root children + // Add version to main header + + mainHeader += "// MAVLINK VERSION\n\n"; + mainHeader += QString("#ifndef MAVLINK_VERSION\n#define MAVLINK_VERSION %1\n#endif\n\n").arg(mavlinkVersion); + mainHeader += QString("#if (MAVLINK_VERSION == 0)\n#undef MAVLINK_VERSION\n#define MAVLINK_VERSION %1\n#endif\n\n").arg(mavlinkVersion); + + // Add enums to main header + + mainHeader += "// ENUM DEFINITIONS\n\n"; + mainHeader += enums; + mainHeader += "\n"; + mainHeader += "// MESSAGE DEFINITIONS\n\n"; // Create directory if it doesn't exist, report result in success if (!dir.exists()) success = success && dir.mkpath(outputDirName + "/" + messagesDirName); for (int i = 0; i < cFiles.size(); i++) @@ -482,10 +640,10 @@ bool MAVLinkXMLParser::generate() mavlinkHeader.close(); // Write C structs / lcm definitions -// QFile lcmStructs(outputDirName + "/mavlink.lcm"); -// ok = lcmStructs.open(QIODevice::WriteOnly | QIODevice::Text); -// success = success && ok; -// lcmStructs.write(lcmStructDefs.toLatin1()); + // QFile lcmStructs(outputDirName + "/mavlink.lcm"); + // ok = lcmStructs.open(QIODevice::WriteOnly | QIODevice::Text); + // success = success && ok; + // lcmStructs.write(lcmStructDefs.toLatin1()); return success; } diff --git a/src/comm/OpalLink.cc b/src/comm/OpalLink.cc index b3a467c5fb48d8f1aa5a550d2da3a655bd73302a..7a3cc924132296a384155ec384f83a8cbd1f38a5 100644 --- a/src/comm/OpalLink.cc +++ b/src/comm/OpalLink.cc @@ -143,7 +143,7 @@ void OpalLink::writeBytes(const char *bytes, qint64 length) // this->sendRCValues = static_cast(rc.enabled); // } // break; -#ifdef MAVLINK_ENABLED_UALBERTA +#ifdef MAVLINK_ENABLED_UALBERTA_MESSAGES case MAVLINK_MSG_ID_RADIO_CALIBRATION: { mavlink_radio_calibration_t radio; @@ -378,7 +378,7 @@ void OpalLink::getSignals() if (sendRCValues) { mavlink_message_t rc; - mavlink_msg_rc_channels_pack(systemID, componentID, &rc, + mavlink_msg_rc_channels_raw_pack(systemID, componentID, &rc, duty2PulseMicros(values[OpalRT::RAW_CHANNEL_1]), duty2PulseMicros(values[OpalRT::RAW_CHANNEL_2]), duty2PulseMicros(values[OpalRT::RAW_CHANNEL_3]), @@ -387,14 +387,6 @@ void OpalLink::getSignals() duty2PulseMicros(values[OpalRT::RAW_CHANNEL_6]), duty2PulseMicros(values[OpalRT::RAW_CHANNEL_7]), duty2PulseMicros(values[OpalRT::RAW_CHANNEL_8]), - rescaleNorm(values[OpalRT::NORM_CHANNEL_1], OpalRT::NORM_CHANNEL_1), - rescaleNorm(values[OpalRT::NORM_CHANNEL_2], OpalRT::NORM_CHANNEL_2), - rescaleNorm(values[OpalRT::NORM_CHANNEL_3], OpalRT::NORM_CHANNEL_3), - rescaleNorm(values[OpalRT::NORM_CHANNEL_4], OpalRT::NORM_CHANNEL_4), - rescaleNorm(values[OpalRT::NORM_CHANNEL_5], OpalRT::NORM_CHANNEL_5), - rescaleNorm(values[OpalRT::NORM_CHANNEL_6], OpalRT::NORM_CHANNEL_6), - rescaleNorm(values[OpalRT::NORM_CHANNEL_7], OpalRT::NORM_CHANNEL_7), - rescaleNorm(values[OpalRT::NORM_CHANNEL_8], OpalRT::NORM_CHANNEL_8), 0 //rssi unused ); receiveMessage(rc); diff --git a/src/comm/QGCMAVLink.h b/src/comm/QGCMAVLink.h index d09d896c3b1fdd05642f104b5cd44c3e0c7966d9..b03e72e2712505f84e9bd5354a5151252b936243 100644 --- a/src/comm/QGCMAVLink.h +++ b/src/comm/QGCMAVLink.h @@ -45,8 +45,8 @@ This file is part of the QGROUNDCONTROL project #include #endif -#ifdef QGC_USE_ARDUPILOT_MESSAGES -#include +#ifdef QGC_USE_ARDUPILOTMEGA_MESSAGES +#include #endif diff --git a/src/comm/SerialLink.cc b/src/comm/SerialLink.cc index 09d6fa96e433c92f897eb3217a73dc7da13a142f..afb4da35eb6ec34cbe76e3ab36c6569f81286d67 100644 --- a/src/comm/SerialLink.cc +++ b/src/comm/SerialLink.cc @@ -1,24 +1,4 @@ /*===================================================================== - -QGroundControl Open Source Ground Control Station - -(c) 2009, 2010 QGROUNDCONTROL PROJECT - -This file is part of the QGROUNDCONTROL project - - QGROUNDCONTROL is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - QGROUNDCONTROL is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with QGROUNDCONTROL. If not, see . - ======================================================================*/ /** * @file @@ -30,10 +10,13 @@ This file is part of the QGROUNDCONTROL project #include #include +#include #include #include "SerialLink.h" #include "LinkManager.h" +#include "QGC.h" #include +#include #ifdef _WIN32 #include "windows.h" #endif @@ -54,17 +37,29 @@ SerialLink::SerialLink(QString portname, BaudRateType baudrate, FlowType flow, P #endif // Set unique ID and add link to the list of links this->id = getNextLinkId(); + + // *nix (Linux, MacOS tested) serial port support + port = new QextSerialPort(porthandle, QextSerialPort::Polling); + //port = new QextSerialPort(porthandle, QextSerialPort::EventDriven); + this->baudrate = baudrate; this->flow = flow; this->parity = parity; this->dataBits = dataBits; this->stopBits = stopBits; this->timeout = 1; ///< The timeout controls how long the program flow should wait for new serial bytes. As we're polling, we don't want to wait at all. + port->setTimeout(timeout); // Timeout of 0 ms, we don't want to wait for data, we just poll again next time + port->setBaudRate(baudrate); + port->setFlowControl(flow); + port->setParity(parity); + port->setDataBits(dataBits); + port->setStopBits(stopBits); // Set the port name if (porthandle == "") { - name = tr("serial link ") + QString::number(getId()) + tr(" (unconfigured)"); + // name = tr("serial link ") + QString::number(getId()) + tr(" (unconfigured)"); + name = tr("Serial Link ") + QString::number(getId()); } else { @@ -87,14 +82,7 @@ SerialLink::SerialLink(QString portname, BaudRateType baudrate, FlowType flow, P //some other error occurred. Inform user. } #else - // *nix (Linux, MacOS tested) serial port support - port = new QextSerialPort(porthandle, QextSerialPort::Polling); - port->setTimeout(timeout); // Timeout of 0 ms, we don't want to wait for data, we just poll again next time - port->setBaudRate(baudrate); - port->setFlowControl(flow); - port->setParity(parity); - port->setDataBits(dataBits); - port->setStopBits(stopBits); + #endif // Link is setup, register it with link manager @@ -104,10 +92,37 @@ SerialLink::SerialLink(QString portname, BaudRateType baudrate, FlowType flow, P SerialLink::~SerialLink() { disconnect(); - delete port; + if(port) delete port; port = NULL; } +void SerialLink::loadSettings() +{ + // Load defaults from settings + QSettings settings(QGC::COMPANYNAME, QGC::APPNAME); + settings.sync(); + if (settings.contains("SERIALLINK_COMM_PORT")) + { + setPortName(settings.value("SERIALLINK_COMM_PORT").toString()); + setBaudRateType(settings.value("SERIALLINK_COMM_BAUD").toInt()); + setParityType(settings.value("SERIALLINK_COMM_PARITY").toInt()); + setStopBitsType(settings.value("SERIALLINK_COMM_STOPBITS").toInt()); + setDataBitsType(settings.value("SERIALLINK_COMM_DATABITS").toInt()); + } +} + +void SerialLink::writeSettings() +{ + // Store settings + QSettings settings(QGC::COMPANYNAME, QGC::APPNAME); + settings.setValue("SERIALLINK_COMM_PORT", this->porthandle); + settings.setValue("SERIALLINK_COMM_BAUD", getBaudRateType()); + settings.setValue("SERIALLINK_COMM_PARITY", getParityType()); + settings.setValue("SERIALLINK_COMM_STOPBITS", getStopBitsType()); + settings.setValue("SERIALLINK_COMM_DATABITS", getDataBitsType()); + settings.sync(); +} + /** * @brief Runs the thread @@ -158,18 +173,18 @@ void SerialLink::writeBytes(const char* data, qint64 size) if(port->isOpen()) { int b = port->write(data, size); - qDebug() << "Transmitted " << b << "bytes:"; + qDebug() << "Serial link " << this->getName() << "transmitted" << b << "bytes:"; // Increase write counter bitsSentTotal += size * 8; - int i; - for (i=0; ibytesAvailable(); + if(numBytes > 0) { /* Read as much data in buffer as possible without overflow */ @@ -236,6 +252,8 @@ bool SerialLink::disconnect() port->close(); dataMutex.unlock(); + if(this->isRunning()) this->terminate(); //stop running the thread, restart it upon connect + bool closed = true; //port->isOpen(); @@ -292,9 +310,12 @@ bool SerialLink::hardwareConnect() statisticsMutex.unlock(); bool connectionUp = isConnected(); - if(connectionUp) { + if(connectionUp) + { emit connected(); emit connected(true); + + writeSettings(); } return connectionUp; @@ -308,7 +329,14 @@ bool SerialLink::hardwareConnect() **/ bool SerialLink::isConnected() { - return port->isOpen(); + if (port) + { + return port->isOpen(); + } + else + { + return false; + } } int SerialLink::getId() @@ -331,7 +359,8 @@ void SerialLink::setName(QString name) qint64 SerialLink::getNominalDataRate() { qint64 dataRate = 0; - switch (baudrate) { + switch (baudrate) + { case BAUD50: dataRate = 50; break; @@ -397,6 +426,13 @@ qint64 SerialLink::getNominalDataRate() break; case BAUD256000: dataRate = 256000; + // Windows-specific high-end baudrates + case BAUD230400: + dataRate = 230400; + case BAUD460800: + dataRate = 460800; + case BAUD921600: + dataRate = 921600; break; } return dataRate; @@ -498,7 +534,8 @@ bool SerialLink::setPortName(QString portName) if(portName.trimmed().length() > 0) { bool reconnect = false; - if(isConnected()) { + if(isConnected()) + { disconnect(); reconnect = true; } @@ -513,7 +550,7 @@ bool SerialLink::setPortName(QString portName) this->porthandle = "\\\\.\\" + this->porthandle; } #endif - delete port; + if(port) delete port; port = new QextSerialPort(porthandle, QextSerialPort::Polling); port->setBaudRate(baudrate); @@ -605,8 +642,17 @@ bool SerialLink::setBaudRateType(int rateIndex) baudrate = BAUD128000; break; case 21: + baudrate = BAUD230400; + break; + case 22: baudrate = BAUD256000; break; + case 23: + baudrate = BAUD460800; + break; + case 24: + baudrate = BAUD921600; + break; default: // If none of the above cases matches, there must be an error accepted = false; @@ -626,12 +672,14 @@ bool SerialLink::setBaudRate(int rate) { bool reconnect = false; bool accepted = true; // This is changed if none of the data rates matches - if(isConnected()) { + if(isConnected()) + { disconnect(); reconnect = true; } - switch (rate) { + switch (rate) + { case 50: baudrate = BAUD50; break; @@ -695,30 +743,48 @@ bool SerialLink::setBaudRate(int rate) case 128000: baudrate = BAUD128000; break; + case 230400: + baudrate = BAUD230400; + break; case 256000: baudrate = BAUD256000; break; + case 460800: + baudrate = BAUD460800; + break; + case 921600: + baudrate = BAUD921600; + break; default: // If none of the above cases matches, there must be an error accepted = false; break; } - port->setBaudRate(this->baudrate); - if(reconnect) connect(); - return accepted; + if (port) + { + port->setBaudRate(this->baudrate); + if(reconnect) connect(); + return accepted; + } + else + { + return false; + } } bool SerialLink::setFlowType(int flow) { bool reconnect = false; bool accepted = true; - if(isConnected()) { + if(isConnected()) + { disconnect(); reconnect = true; } - switch (flow) { + switch (flow) + { case FLOW_OFF: this->flow = FLOW_OFF; break; @@ -742,12 +808,14 @@ bool SerialLink::setParityType(int parity) { bool reconnect = false; bool accepted = true; - if(isConnected()) { + if(isConnected()) + { disconnect(); reconnect = true; } - switch (parity) { + switch (parity) + { case PAR_NONE: this->parity = PAR_NONE; break; @@ -774,11 +842,14 @@ bool SerialLink::setParityType(int parity) return accepted; } + +// FIXME Works not as anticipated by user! bool SerialLink::setDataBitsType(int dataBits) { bool accepted = true; - switch (dataBits) { + switch (dataBits) + { case 5: this->dataBits = DATA_5; break; @@ -806,6 +877,7 @@ bool SerialLink::setDataBitsType(int dataBits) return accepted; } +// FIXME WORKS NOT AS ANTICIPATED BY USER! bool SerialLink::setStopBitsType(int stopBits) { bool reconnect = false; @@ -815,7 +887,8 @@ bool SerialLink::setStopBitsType(int stopBits) reconnect = true; } - switch (stopBits) { + switch (stopBits) + { case 1: this->stopBits = STOP_1; break; diff --git a/src/comm/SerialLink.h b/src/comm/SerialLink.h index dce2386e06d5132831a94022c23028fa144a9185..3bac202b8cf753e0510663815de76b464dbbfc17 100644 --- a/src/comm/SerialLink.h +++ b/src/comm/SerialLink.h @@ -91,6 +91,9 @@ public: qint64 getBitsSent(); qint64 getBitsReceived(); + void loadSettings(); + void writeSettings(); + void run(); int getLinkQuality(); diff --git a/src/comm/SerialLinkInterface.h b/src/comm/SerialLinkInterface.h index 22e00a8615a11df20fc7d99606a9c006962911cb..49b5335f9811db78cd9873c505e9b14e0ed89f44 100644 --- a/src/comm/SerialLinkInterface.h +++ b/src/comm/SerialLinkInterface.h @@ -57,6 +57,8 @@ public slots: virtual bool setParityType(int parity) = 0; virtual bool setDataBitsType(int dataBits) = 0; virtual bool setStopBitsType(int stopBits) = 0; + virtual void loadSettings() = 0; + virtual void writeSettings() = 0; }; diff --git a/src/comm/UDPLink.cc b/src/comm/UDPLink.cc index ebd768ec87059ab6d1389ec3d8f16f8cc69b341b..0574c1eff8a90a4b2da323fe4c2e46d19406c1a4 100644 --- a/src/comm/UDPLink.cc +++ b/src/comm/UDPLink.cc @@ -36,6 +36,7 @@ This file is part of the QGROUNDCONTROL project #include "UDPLink.h" #include "LinkManager.h" #include "MG.h" +//#include UDPLink::UDPLink(QHostAddress host, quint16 port) { @@ -197,11 +198,46 @@ bool UDPLink::connect() { socket = new QUdpSocket(this); + //Check if we are using a multicast-address +// bool multicast = false; +// if (host.isInSubnet(QHostAddress("224.0.0.0"),4)) +// { +// multicast = true; +// connectState = socket->bind(port, QUdpSocket::ShareAddress); +// } +// else +// { + connectState = socket->bind(host, port); +// } + + //Provides Multicast functionality to UdpSocket + /* not working yet + if (multicast) + { + int sendingFd = socket->socketDescriptor(); + + if (sendingFd != -1) + { + // set up destination address + struct sockaddr_in sendAddr; + memset(&sendAddr,0,sizeof(sendAddr)); + sendAddr.sin_family=AF_INET; + sendAddr.sin_addr.s_addr=inet_addr(HELLO_GROUP); + sendAddr.sin_port=htons(port); + + // set TTL + unsigned int ttl = 1; // restricted to the same subnet + if (setsockopt(sendingFd, IPPROTO_IP, IP_MULTICAST_TTL, (unsigned int*)&ttl, sizeof(ttl) ) < 0) + { + std::cout << "TTL failed\n"; + } + } + } + */ + //QObject::connect(socket, SIGNAL(readyRead()), this, SLOT(readPendingDatagrams())); QObject::connect(socket, SIGNAL(readyRead()), this, SLOT(readBytes())); - connectState = socket->bind(host, port); - emit connected(connectState); if (connectState) { diff --git a/src/comm/UDPLink.h b/src/comm/UDPLink.h index 6682aae0009792707992105c639b91e1395b865a..fb1eb079c09cfbc57c209ebfe89c5f873cf4117e 100644 --- a/src/comm/UDPLink.h +++ b/src/comm/UDPLink.h @@ -46,6 +46,7 @@ class UDPLink : public LinkInterface public: UDPLink(QHostAddress host = QHostAddress::Any, quint16 port = 14550); + //UDPLink(QHostAddress host = "239.255.76.67", quint16 port = 7667); ~UDPLink(); bool isConnected(); diff --git a/src/configuration.h b/src/configuration.h index 16650c1e009f189bc4a2c18038ccf67d74ffc50e..64a17c93f3cec5848b3f58224680536fb926dd5a 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -1,8 +1,14 @@ #ifndef CONFIGURATION_H #define CONFIGURATION_H +#include "mavlink.h" + /** @brief Polling interval in ms */ -#define SERIAL_POLL_INTERVAL 2 +#ifdef MAVLINK_ENABLED_SLUGS + #define SERIAL_POLL_INTERVAL 7 +#else + #define SERIAL_POLL_INTERVAL 7 +#endif /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 @@ -10,6 +16,6 @@ #define WITH_TEXT_TO_SPEECH 1 #define QGC_APPLICATION_NAME "QGroundControl" -#define QGC_APPLICATION_VERSION "v. 0.7.7 (Beta)" +#define QGC_APPLICATION_VERSION "v. 0.8.0 (Beta)" #endif // CONFIGURATION_H diff --git a/src/input/Freenect.cc b/src/input/Freenect.cc new file mode 100644 index 0000000000000000000000000000000000000000..1ac1bba5483e4f9bc8577685364246a9bcf54c6a --- /dev/null +++ b/src/input/Freenect.cc @@ -0,0 +1,474 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Definition of the class Freenect. + * + * @author Lionel Heng + * + */ + +#include "Freenect.h" + +#include +#include +#include + +Freenect::Freenect() + : context(NULL) + , device(NULL) + , tiltAngle(0) + , rgbData(new QByteArray) + , rawDepthData(new QByteArray) + , coloredDepthData(new QByteArray) + , pointCloud3D(new QVector) + , pointCloud6D(new QVector) +{ + +} + +Freenect::~Freenect() +{ + if (device != NULL) + { + freenect_stop_depth(device); + freenect_stop_video(device); + } + + freenect_close_device(device); + + freenect_shutdown(context); +} + +bool +Freenect::init(int userDeviceNumber) +{ + // read in settings + readConfigFile(); + + // populate gamma lookup table + for (int i = 0; i < 2048; ++i) + { + float v = static_cast(i) / 2048.0f; + v = powf(v, 3.0f) * 6.0f; + gammaTable[i] = static_cast(v * 6.0f * 256.0f); + } + + // populate depth projection matrix + for (int i = 0; i < FREENECT_FRAME_H; ++i) + { + for (int j = 0; j < FREENECT_FRAME_W; ++j) + { + QVector2D originalPoint(j, i); + QVector2D rectifiedPoint; + rectifyPoint(originalPoint, rectifiedPoint, depthCameraParameters); + + QVector3D rectifiedRay; + projectPixelTo3DRay(rectifiedPoint, rectifiedRay, depthCameraParameters); + + depthProjectionMatrix[i * FREENECT_FRAME_W + j] = rectifiedRay; + + rectifyPoint(originalPoint, rectifiedPoint, rgbCameraParameters); + rgbRectificationMap[i * FREENECT_FRAME_W + j] = rectifiedPoint; + } + } + + if (freenect_init(&context, NULL) < 0) + { + return false; + } + + freenect_set_log_level(context, FREENECT_LOG_DEBUG); + + if (freenect_num_devices(context) < 1) + { + return false; + } + + if (freenect_open_device(context, &device, userDeviceNumber) < 0) + { + return false; + } + + freenect_set_user(device, this); + + memset(rgb, 0, FREENECT_VIDEO_RGB_SIZE); + memset(depth, 0, FREENECT_DEPTH_11BIT_SIZE); + + // set Kinect parameters + if (freenect_set_tilt_degs(device, tiltAngle) != 0) + { + return false; + } + if (freenect_set_led(device, LED_RED) != 0) + { + return false; + } + if (freenect_set_video_format(device, FREENECT_VIDEO_RGB) != 0) + { + return false; + } + if (freenect_set_depth_format(device, FREENECT_DEPTH_11BIT) != 0) + { + return false; + } + freenect_set_video_callback(device, videoCallback); + freenect_set_depth_callback(device, depthCallback); + + if (freenect_start_depth(device) != 0) + { + return false; + } + if (freenect_start_video(device) != 0) + { + return false; + } + + thread.reset(new FreenectThread(device)); + thread->start(); + + return true; +} + +bool +Freenect::process(void) +{ + if (freenect_process_events(context) < 0) + { + return false; + } + + freenect_raw_tilt_state* state; + freenect_update_tilt_state(device); + state = freenect_get_tilt_state(device); + freenect_get_mks_accel(state, &ax, &ay, &az); + + return true; +} + +QSharedPointer +Freenect::getRgbData(void) +{ + QMutexLocker locker(&rgbMutex); + rgbData->clear(); + rgbData->append(rgb, FREENECT_VIDEO_RGB_SIZE); + + return rgbData; +} + +QSharedPointer +Freenect::getRawDepthData(void) +{ + QMutexLocker locker(&depthMutex); + rawDepthData->clear(); + rawDepthData->append(depth, FREENECT_DEPTH_11BIT_SIZE); + + return rawDepthData; +} + +QSharedPointer +Freenect::getColoredDepthData(void) +{ + QMutexLocker locker(&coloredDepthMutex); + coloredDepthData->clear(); + coloredDepthData->append(coloredDepth, FREENECT_VIDEO_RGB_SIZE); + + return coloredDepthData; +} + +QSharedPointer< QVector > +Freenect::get3DPointCloudData(void) +{ + QMutexLocker locker(&depthMutex); + + pointCloud3D->clear(); + unsigned short* data = reinterpret_cast(depth); + for (int i = 0; i < FREENECT_FRAME_PIX; ++i) + { + if (data[i] > 0 && data[i] <= 2048) + { + double range = baseline * depthCameraParameters.fx + / (1.0 / 8.0 * (disparityOffset + - static_cast(data[i]))); + + if (range > 0.0f) + { + QVector3D ray = depthProjectionMatrix[i]; + ray *= range; + + pointCloud3D->push_back(QVector3D(ray.x(), ray.y(), ray.z())); + } + } + } + + return pointCloud3D; +} + +QSharedPointer< QVector > +Freenect::get6DPointCloudData(void) +{ + get3DPointCloudData(); + + pointCloud6D->clear(); + for (int i = 0; i < pointCloud3D->size(); ++i) + { + Vector6D point; + + point.x = pointCloud3D->at(i).x(); + point.y = pointCloud3D->at(i).y(); + point.z = pointCloud3D->at(i).z(); + + QVector4D transformedPoint = transformMatrix * QVector4D(point.x, point.y, point.z, 1.0); + + float iz = 1.0 / transformedPoint.z(); + QVector2D rectifiedPoint(transformedPoint.x() * iz * rgbCameraParameters.fx + rgbCameraParameters.cx, + transformedPoint.y() * iz * rgbCameraParameters.fy + rgbCameraParameters.cy); + + QVector2D originalPoint; + unrectifyPoint(rectifiedPoint, originalPoint, rgbCameraParameters); + + if (originalPoint.x() >= 0.0 && originalPoint.x() < FREENECT_FRAME_W && + originalPoint.y() >= 0.0 && originalPoint.y() < FREENECT_FRAME_H) + { + int x = static_cast(originalPoint.x()); + int y = static_cast(originalPoint.y()); + unsigned char* pixel = reinterpret_cast(rgb) + + (y * FREENECT_FRAME_W + x) * 3; + + point.r = pixel[0]; + point.g = pixel[1]; + point.b = pixel[2]; + + pointCloud6D->push_back(point); + } + } + + return pointCloud6D; +} + +int +Freenect::getTiltAngle(void) const +{ + return tiltAngle; +} + +void +Freenect::setTiltAngle(int angle) +{ + if (angle > 30) + { + angle = 30; + } + if (angle < -30) + { + angle = -30; + } + + tiltAngle = angle; +} + +Freenect::FreenectThread::FreenectThread(freenect_device* _device) +{ + device = _device; +} + +void +Freenect::FreenectThread::run(void) +{ + Freenect* freenect = static_cast(freenect_get_user(device)); + while (1) + { + freenect->process(); + } +} + +void +Freenect::readConfigFile(void) +{ + QSettings settings("data/kinect.cal", QSettings::IniFormat, 0); + + rgbCameraParameters.cx = settings.value("rgb/principal_point/x").toDouble(); + rgbCameraParameters.cy = settings.value("rgb/principal_point/y").toDouble(); + rgbCameraParameters.fx = settings.value("rgb/focal_length/x").toDouble(); + rgbCameraParameters.fy = settings.value("rgb/focal_length/y").toDouble(); + rgbCameraParameters.k[0] = settings.value("rgb/distortion/k1").toDouble(); + rgbCameraParameters.k[1] = settings.value("rgb/distortion/k2").toDouble(); + rgbCameraParameters.k[2] = settings.value("rgb/distortion/k3").toDouble(); + rgbCameraParameters.k[3] = settings.value("rgb/distortion/k4").toDouble(); + rgbCameraParameters.k[4] = settings.value("rgb/distortion/k5").toDouble(); + + depthCameraParameters.cx = settings.value("depth/principal_point/x").toDouble(); + depthCameraParameters.cy = settings.value("depth/principal_point/y").toDouble(); + depthCameraParameters.fx = settings.value("depth/focal_length/x").toDouble(); + depthCameraParameters.fy = settings.value("depth/focal_length/y").toDouble(); + depthCameraParameters.k[0] = settings.value("depth/distortion/k1").toDouble(); + depthCameraParameters.k[1] = settings.value("depth/distortion/k2").toDouble(); + depthCameraParameters.k[2] = settings.value("depth/distortion/k3").toDouble(); + depthCameraParameters.k[3] = settings.value("depth/distortion/k4").toDouble(); + depthCameraParameters.k[4] = settings.value("depth/distortion/k5").toDouble(); + + transformMatrix = QMatrix4x4(settings.value("transform/R11").toDouble(), + settings.value("transform/R12").toDouble(), + settings.value("transform/R13").toDouble(), + settings.value("transform/Tx").toDouble(), + settings.value("transform/R21").toDouble(), + settings.value("transform/R22").toDouble(), + settings.value("transform/R23").toDouble(), + settings.value("transform/Ty").toDouble(), + settings.value("transform/R31").toDouble(), + settings.value("transform/R32").toDouble(), + settings.value("transform/R33").toDouble(), + settings.value("transform/Tz").toDouble(), + 0.0, 0.0, 0.0, 1.0); + transformMatrix = transformMatrix.inverted(); + + baseline = settings.value("transform/baseline").toDouble(); + disparityOffset = settings.value("transform/disparity_offset").toDouble(); +} + +void +Freenect::rectifyPoint(const QVector2D& originalPoint, + QVector2D& rectifiedPoint, + const IntrinsicCameraParameters& params) +{ + double x = (originalPoint.x() - params.cx) / params.fx; + double y = (originalPoint.y() - params.cy) / params.fy; + + double x0 = x; + double y0 = y; + + // eliminate lens distortion iteratively + for (int i = 0; i < 4; ++i) + { + double r2 = x * x + y * y; + + // tangential distortion vector [dx dy] + double dx = 2 * params.k[2] * x * y + params.k[3] * (r2 + 2 * x * x); + double dy = params.k[2] * (r2 + 2 * y * y) + 2 * params.k[3] * x * y; + + double icdist = 1.0 / (1.0 + r2 * (params.k[0] + r2 * (params.k[1] + r2 * params.k[4]))); + x = (x0 - dx) * icdist; + y = (y0 - dy) * icdist; + } + + rectifiedPoint.setX(x * params.fx + params.cx); + rectifiedPoint.setY(y * params.fy + params.cy); +} + +void +Freenect::unrectifyPoint(const QVector2D& rectifiedPoint, + QVector2D& originalPoint, + const IntrinsicCameraParameters& params) +{ + double x = (rectifiedPoint.x() - params.cx) / params.fx; + double y = (rectifiedPoint.y() - params.cy) / params.fy; + + double r2 = x * x + y * y; + + // tangential distortion vector [dx dy] + double dx = 2 * params.k[2] * x * y + params.k[3] * (r2 + 2 * x * x); + double dy = params.k[2] * (r2 + 2 * y * y) + 2 * params.k[3] * x * y; + + double cdist = 1.0 + r2 * (params.k[0] + r2 * (params.k[1] + r2 * params.k[4])); + x = x * cdist + dx; + y = y * cdist + dy; + + originalPoint.setX(x * params.fx + params.cx); + originalPoint.setY(y * params.fy + params.cy); +} + +void +Freenect::projectPixelTo3DRay(const QVector2D& pixel, QVector3D& ray, + const IntrinsicCameraParameters& params) +{ + ray.setX((pixel.x() - params.cx) / params.fx); + ray.setY((pixel.y() - params.cy) / params.fy); + ray.setZ(1.0); +} + +void +Freenect::videoCallback(freenect_device* device, void* video, uint32_t timestamp) +{ + Freenect* freenect = static_cast(freenect_get_user(device)); + + QMutexLocker locker(&freenect->rgbMutex); + memcpy(freenect->rgb, video, FREENECT_VIDEO_RGB_SIZE); +} + +void +Freenect::depthCallback(freenect_device* device, void* depth, uint32_t timestamp) +{ + Freenect* freenect = static_cast(freenect_get_user(device)); + uint16_t* data = reinterpret_cast(depth); + + QMutexLocker depthLocker(&freenect->depthMutex); + memcpy(freenect->depth, data, FREENECT_DEPTH_11BIT_SIZE); + + QMutexLocker coloredDepthLocker(&freenect->coloredDepthMutex); + unsigned short* src = reinterpret_cast(data); + unsigned char* dst = reinterpret_cast(freenect->coloredDepth); + for (int i = 0; i < FREENECT_FRAME_PIX; ++i) + { + unsigned short pval = freenect->gammaTable[src[i]]; + unsigned short lb = pval & 0xFF; + switch (pval >> 8) + { + case 0: + dst[3 * i] = 255; + dst[3 * i + 1] = 255 - lb; + dst[3 * i + 2] = 255 - lb; + break; + case 1: + dst[3 * i] = 255; + dst[3 * i + 1] = lb; + dst[3 * i + 2] = 0; + break; + case 2: + dst[3 * i] = 255 - lb; + dst[3 * i + 1] = 255; + dst[3 * i + 2] = 0; + break; + case 3: + dst[3 * i] = 0; + dst[3 * i + 1] = 255; + dst[3 * i + 2] = lb; + break; + case 4: + dst[3 * i] = 0; + dst[3 * i + 1] = 255 - lb; + dst[3 * i + 2] = 255; + break; + case 5: + dst[3 * i] = 0; + dst[3 * i + 1] = 0; + dst[3 * i + 2] = 255 - lb; + break; + default: + dst[3 * i] = 0; + dst[3 * i + 1] = 0; + dst[3 * i + 2] = 0; + break; + } + } +} diff --git a/src/input/Freenect.h b/src/input/Freenect.h new file mode 100644 index 0000000000000000000000000000000000000000..8fd316ebc296ba089c3cd3c0013e96e416b1f259 --- /dev/null +++ b/src/input/Freenect.h @@ -0,0 +1,156 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Definition of the class Freenect. + * + * @author Lionel Heng + * + */ + +#ifndef FREENECT_H +#define FREENECT_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class Freenect +{ +public: + Freenect(); + ~Freenect(); + + bool init(int userDeviceNumber = 0); + bool process(void); + + QSharedPointer getRgbData(void); + QSharedPointer getRawDepthData(void); + QSharedPointer getColoredDepthData(void); + QSharedPointer< QVector > get3DPointCloudData(void); + + typedef struct + { + double x; + double y; + double z; + unsigned char r; + unsigned char g; + unsigned char b; + } Vector6D; + QSharedPointer< QVector > get6DPointCloudData(); + + int getTiltAngle(void) const; + void setTiltAngle(int angle); + +private: + typedef struct + { + // coordinates of principal point + double cx; + double cy; + + // focal length in pixels + double fx; + double fy; + + // distortion parameters + double k[5]; + + } IntrinsicCameraParameters; + + void readConfigFile(void); + + void rectifyPoint(const QVector2D& originalPoint, + QVector2D& rectifiedPoint, + const IntrinsicCameraParameters& params); + void unrectifyPoint(const QVector2D& rectifiedPoint, + QVector2D& originalPoint, + const IntrinsicCameraParameters& params); + void projectPixelTo3DRay(const QVector2D& pixel, QVector3D& ray, + const IntrinsicCameraParameters& params); + + static void videoCallback(freenect_device* device, void* video, uint32_t timestamp); + static void depthCallback(freenect_device* device, void* depth, uint32_t timestamp); + + freenect_context* context; + freenect_device* device; + + class FreenectThread : public QThread + { + public: + explicit FreenectThread(freenect_device* _device); + + protected: + virtual void run(void); + + freenect_device* device; + }; + QScopedPointer thread; + + IntrinsicCameraParameters rgbCameraParameters; + IntrinsicCameraParameters depthCameraParameters; + + QMatrix4x4 transformMatrix; + double baseline; + double disparityOffset; + + // tilt angle of Kinect camera + int tiltAngle; + + // rgbd data + char rgb[FREENECT_VIDEO_RGB_SIZE]; + QMutex rgbMutex; + + char depth[FREENECT_DEPTH_11BIT_SIZE]; + QMutex depthMutex; + + char coloredDepth[FREENECT_VIDEO_RGB_SIZE]; + QMutex coloredDepthMutex; + + // accelerometer data + double ax, ay, az; + double dx, dy, dz; + + // gamma map + unsigned short gammaTable[2048]; + + QVector3D depthProjectionMatrix[FREENECT_FRAME_PIX]; + QVector2D rgbRectificationMap[FREENECT_FRAME_PIX]; + + // variables for use outside class + QSharedPointer rgbData; + QSharedPointer rawDepthData; + QSharedPointer coloredDepthData; + QSharedPointer< QVector > pointCloud3D; + QSharedPointer< QVector > pointCloud6D; +}; + +#endif // FREENECT_H diff --git a/src/lib/qextserialport/posix_qextserialport.cpp b/src/lib/qextserialport/posix_qextserialport.cpp index 32c6320caf5f6f1907a7c43e18803ce767d18ed6..99247130b041c23ef84584331203465e984ffe2d 100644 --- a/src/lib/qextserialport/posix_qextserialport.cpp +++ b/src/lib/qextserialport/posix_qextserialport.cpp @@ -41,7 +41,7 @@ This constructor assigns the device name to the name of the first port on the sp See the other constructors if you need to open a different port. */ Posix_QextSerialPort::Posix_QextSerialPort(QextSerialBase::QueryMode mode) -: QextSerialBase() + : QextSerialBase() { setQueryMode(mode); init(); @@ -52,9 +52,9 @@ Posix_QextSerialPort::Posix_QextSerialPort(QextSerialBase::QueryMode mode) Copy constructor. */ Posix_QextSerialPort::Posix_QextSerialPort(const Posix_QextSerialPort& s) - : QextSerialBase(s.port) + : QextSerialBase(s.port) { - setOpenMode(s.openMode()); + setOpenMode(s.openMode()); port = s.port; Settings.BaudRate=s.Settings.BaudRate; Settings.DataBits=s.Settings.DataBits; @@ -76,7 +76,7 @@ name is the name of the device, which is windowsystem-specific, e.g."COM1" or "/dev/ttyS0". */ Posix_QextSerialPort::Posix_QextSerialPort(const QString & name, QextSerialBase::QueryMode mode) - : QextSerialBase(name) + : QextSerialBase(name) { setQueryMode(mode); init(); @@ -87,7 +87,7 @@ Posix_QextSerialPort::Posix_QextSerialPort(const QString & name, QextSerialBase: Constructs a port with default name and specified settings. */ Posix_QextSerialPort::Posix_QextSerialPort(const PortSettings& settings, QextSerialBase::QueryMode mode) - : QextSerialBase() + : QextSerialBase() { setBaudRate(settings.BaudRate); setDataBits(settings.DataBits); @@ -105,7 +105,7 @@ Posix_QextSerialPort::Posix_QextSerialPort(const PortSettings& settings, QextSer Constructs a port with specified name and settings. */ Posix_QextSerialPort::Posix_QextSerialPort(const QString & name, const PortSettings& settings, QextSerialBase::QueryMode mode) - : QextSerialBase(name) + : QextSerialBase(name) { setBaudRate(settings.BaudRate); setDataBits(settings.DataBits); @@ -123,8 +123,8 @@ Posix_QextSerialPort::Posix_QextSerialPort(const QString & name, const PortSetti Override the = operator. */ Posix_QextSerialPort& Posix_QextSerialPort::operator=(const Posix_QextSerialPort& s) -{ - setOpenMode(s.openMode()); + { + setOpenMode(s.openMode()); port = s.port; Settings.BaudRate=s.Settings.BaudRate; Settings.DataBits=s.Settings.DataBits; @@ -142,9 +142,9 @@ Posix_QextSerialPort& Posix_QextSerialPort::operator=(const Posix_QextSerialPort void Posix_QextSerialPort::init() { - fd = 0; - if (queryMode() == QextSerialBase::EventDriven) - qWarning("POSIX doesn't have event driven mechanism implemented yet"); + fd = 0; + if (queryMode() == QextSerialBase::EventDriven) + qWarning("POSIX doesn't have event driven mechanism implemented yet"); } /*! @@ -194,7 +194,10 @@ BAUD1800. BAUD76800 57600 76800 *BAUD115200 115200 115200 BAUD128000 128000 115200 + BAUD230400 230400 115200 BAUD256000 256000 115200 + BAUD460800 460800 115200 + BAUD921600 921600 115200 \endverbatim */ void Posix_QextSerialPort::setBaudRate(BaudRateType baudRate) @@ -202,300 +205,306 @@ void Posix_QextSerialPort::setBaudRate(BaudRateType baudRate) LOCK_MUTEX(); if (Settings.BaudRate!=baudRate) { switch (baudRate) { - case BAUD14400: - Settings.BaudRate=BAUD9600; - break; + case BAUD14400: + Settings.BaudRate=BAUD9600; + break; - case BAUD56000: - Settings.BaudRate=BAUD38400; - break; + case BAUD56000: + Settings.BaudRate=BAUD38400; + break; - case BAUD76800: + case BAUD76800: #ifndef B76800 - Settings.BaudRate=BAUD57600; + Settings.BaudRate=BAUD57600; #else - Settings.BaudRate=baudRate; + Settings.BaudRate=baudRate; #endif - break; + break; - case BAUD128000: - case BAUD256000: - Settings.BaudRate=BAUD115200; - break; + case BAUD128000: + case BAUD230400: + case BAUD460800: + case BAUD921600: + case BAUD256000: + Settings.BaudRate=BAUD115200; + break; - default: - Settings.BaudRate=baudRate; - break; + default: + Settings.BaudRate=baudRate; + break; } } if (isOpen()) { switch (baudRate) { /*50 baud*/ - case BAUD50: - TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows does not support 50 baud operation."); + case BAUD50: + TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows does not support 50 baud operation."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B50; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B50; #else - cfsetispeed(&Posix_CommConfig, B50); - cfsetospeed(&Posix_CommConfig, B50); + cfsetispeed(&Posix_CommConfig, B50); + cfsetospeed(&Posix_CommConfig, B50); #endif - break; + break; /*75 baud*/ - case BAUD75: - TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows does not support 75 baud operation."); + case BAUD75: + TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows does not support 75 baud operation."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B75; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B75; #else - cfsetispeed(&Posix_CommConfig, B75); - cfsetospeed(&Posix_CommConfig, B75); + cfsetispeed(&Posix_CommConfig, B75); + cfsetospeed(&Posix_CommConfig, B75); #endif - break; + break; /*110 baud*/ - case BAUD110: + case BAUD110: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B110; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B110; #else - cfsetispeed(&Posix_CommConfig, B110); - cfsetospeed(&Posix_CommConfig, B110); + cfsetispeed(&Posix_CommConfig, B110); + cfsetospeed(&Posix_CommConfig, B110); #endif - break; + break; /*134.5 baud*/ - case BAUD134: - TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows does not support 134.5 baud operation."); + case BAUD134: + TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows does not support 134.5 baud operation."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B134; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B134; #else - cfsetispeed(&Posix_CommConfig, B134); - cfsetospeed(&Posix_CommConfig, B134); + cfsetispeed(&Posix_CommConfig, B134); + cfsetospeed(&Posix_CommConfig, B134); #endif - break; + break; /*150 baud*/ - case BAUD150: - TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows does not support 150 baud operation."); + case BAUD150: + TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows does not support 150 baud operation."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B150; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B150; #else - cfsetispeed(&Posix_CommConfig, B150); - cfsetospeed(&Posix_CommConfig, B150); + cfsetispeed(&Posix_CommConfig, B150); + cfsetospeed(&Posix_CommConfig, B150); #endif - break; + break; /*200 baud*/ - case BAUD200: - TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows does not support 200 baud operation."); + case BAUD200: + TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows does not support 200 baud operation."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B200; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B200; #else - cfsetispeed(&Posix_CommConfig, B200); - cfsetospeed(&Posix_CommConfig, B200); + cfsetispeed(&Posix_CommConfig, B200); + cfsetospeed(&Posix_CommConfig, B200); #endif - break; + break; /*300 baud*/ - case BAUD300: + case BAUD300: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B300; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B300; #else - cfsetispeed(&Posix_CommConfig, B300); - cfsetospeed(&Posix_CommConfig, B300); + cfsetispeed(&Posix_CommConfig, B300); + cfsetospeed(&Posix_CommConfig, B300); #endif - break; + break; /*600 baud*/ - case BAUD600: + case BAUD600: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B600; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B600; #else - cfsetispeed(&Posix_CommConfig, B600); - cfsetospeed(&Posix_CommConfig, B600); + cfsetispeed(&Posix_CommConfig, B600); + cfsetospeed(&Posix_CommConfig, B600); #endif - break; + break; /*1200 baud*/ - case BAUD1200: + case BAUD1200: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B1200; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B1200; #else - cfsetispeed(&Posix_CommConfig, B1200); - cfsetospeed(&Posix_CommConfig, B1200); + cfsetispeed(&Posix_CommConfig, B1200); + cfsetospeed(&Posix_CommConfig, B1200); #endif - break; + break; /*1800 baud*/ - case BAUD1800: - TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows and IRIX do not support 1800 baud operation."); + case BAUD1800: + TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows and IRIX do not support 1800 baud operation."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B1800; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B1800; #else - cfsetispeed(&Posix_CommConfig, B1800); - cfsetospeed(&Posix_CommConfig, B1800); + cfsetispeed(&Posix_CommConfig, B1800); + cfsetospeed(&Posix_CommConfig, B1800); #endif - break; + break; /*2400 baud*/ - case BAUD2400: + case BAUD2400: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B2400; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B2400; #else - cfsetispeed(&Posix_CommConfig, B2400); - cfsetospeed(&Posix_CommConfig, B2400); + cfsetispeed(&Posix_CommConfig, B2400); + cfsetospeed(&Posix_CommConfig, B2400); #endif - break; + break; /*4800 baud*/ - case BAUD4800: + case BAUD4800: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B4800; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B4800; #else - cfsetispeed(&Posix_CommConfig, B4800); - cfsetospeed(&Posix_CommConfig, B4800); + cfsetispeed(&Posix_CommConfig, B4800); + cfsetospeed(&Posix_CommConfig, B4800); #endif - break; + break; /*9600 baud*/ - case BAUD9600: + case BAUD9600: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B9600; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B9600; #else - cfsetispeed(&Posix_CommConfig, B9600); - cfsetospeed(&Posix_CommConfig, B9600); + cfsetispeed(&Posix_CommConfig, B9600); + cfsetospeed(&Posix_CommConfig, B9600); #endif - break; + break; /*14400 baud*/ - case BAUD14400: - TTY_WARNING("Posix_QextSerialPort: POSIX does not support 14400 baud operation. Switching to 9600 baud."); + case BAUD14400: + TTY_WARNING("Posix_QextSerialPort: POSIX does not support 14400 baud operation. Switching to 9600 baud."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B9600; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B9600; #else - cfsetispeed(&Posix_CommConfig, B9600); - cfsetospeed(&Posix_CommConfig, B9600); + cfsetispeed(&Posix_CommConfig, B9600); + cfsetospeed(&Posix_CommConfig, B9600); #endif - break; + break; /*19200 baud*/ - case BAUD19200: + case BAUD19200: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B19200; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B19200; #else - cfsetispeed(&Posix_CommConfig, B19200); - cfsetospeed(&Posix_CommConfig, B19200); + cfsetispeed(&Posix_CommConfig, B19200); + cfsetospeed(&Posix_CommConfig, B19200); #endif - break; + break; /*38400 baud*/ - case BAUD38400: + case BAUD38400: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B38400; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B38400; #else - cfsetispeed(&Posix_CommConfig, B38400); - cfsetospeed(&Posix_CommConfig, B38400); + cfsetispeed(&Posix_CommConfig, B38400); + cfsetospeed(&Posix_CommConfig, B38400); #endif - break; + break; /*56000 baud*/ - case BAUD56000: - TTY_WARNING("Posix_QextSerialPort: POSIX does not support 56000 baud operation. Switching to 38400 baud."); + case BAUD56000: + TTY_WARNING("Posix_QextSerialPort: POSIX does not support 56000 baud operation. Switching to 38400 baud."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B38400; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B38400; #else - cfsetispeed(&Posix_CommConfig, B38400); - cfsetospeed(&Posix_CommConfig, B38400); + cfsetispeed(&Posix_CommConfig, B38400); + cfsetospeed(&Posix_CommConfig, B38400); #endif - break; + break; /*57600 baud*/ - case BAUD57600: + case BAUD57600: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B57600; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B57600; #else - cfsetispeed(&Posix_CommConfig, B57600); - cfsetospeed(&Posix_CommConfig, B57600); + cfsetispeed(&Posix_CommConfig, B57600); + cfsetospeed(&Posix_CommConfig, B57600); #endif - break; + break; /*76800 baud*/ - case BAUD76800: - TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows and some POSIX systems do not support 76800 baud operation."); + case BAUD76800: + TTY_PORTABILITY_WARNING("Posix_QextSerialPort Portability Warning: Windows and some POSIX systems do not support 76800 baud operation."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag&=(~CBAUD); #ifdef B76800 - Posix_CommConfig.c_cflag|=B76800; + Posix_CommConfig.c_cflag|=B76800; #else - TTY_WARNING("Posix_QextSerialPort: Posix_QextSerialPort was compiled without 76800 baud support. Switching to 57600 baud."); - Posix_CommConfig.c_cflag|=B57600; + TTY_WARNING("Posix_QextSerialPort: Posix_QextSerialPort was compiled without 76800 baud support. Switching to 57600 baud."); + Posix_CommConfig.c_cflag|=B57600; #endif //B76800 #else //CBAUD #ifdef B76800 - cfsetispeed(&Posix_CommConfig, B76800); - cfsetospeed(&Posix_CommConfig, B76800); + cfsetispeed(&Posix_CommConfig, B76800); + cfsetospeed(&Posix_CommConfig, B76800); #else - TTY_WARNING("Posix_QextSerialPort: Posix_QextSerialPort was compiled without 76800 baud support. Switching to 57600 baud."); - cfsetispeed(&Posix_CommConfig, B57600); - cfsetospeed(&Posix_CommConfig, B57600); + TTY_WARNING("Posix_QextSerialPort: Posix_QextSerialPort was compiled without 76800 baud support. Switching to 57600 baud."); + cfsetispeed(&Posix_CommConfig, B57600); + cfsetospeed(&Posix_CommConfig, B57600); #endif //B76800 #endif //CBAUD - break; + break; /*115200 baud*/ - case BAUD115200: + case BAUD115200: #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B115200; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B115200; #else - cfsetispeed(&Posix_CommConfig, B115200); - cfsetospeed(&Posix_CommConfig, B115200); + cfsetispeed(&Posix_CommConfig, B115200); + cfsetospeed(&Posix_CommConfig, B115200); #endif - break; + break; /*128000 baud*/ - case BAUD128000: - TTY_WARNING("Posix_QextSerialPort: POSIX does not support 128000 baud operation. Switching to 115200 baud."); + case BAUD128000: + TTY_WARNING("Posix_QextSerialPort: POSIX does not support 128000 baud operation. Switching to 115200 baud."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B115200; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B115200; #else - cfsetispeed(&Posix_CommConfig, B115200); - cfsetospeed(&Posix_CommConfig, B115200); + cfsetispeed(&Posix_CommConfig, B115200); + cfsetospeed(&Posix_CommConfig, B115200); #endif - break; + break; /*256000 baud*/ - case BAUD256000: - TTY_WARNING("Posix_QextSerialPort: POSIX does not support 256000 baud operation. Switching to 115200 baud."); + case BAUD230400: + case BAUD460800: + case BAUD921600: + case BAUD256000: + TTY_WARNING("Posix_QextSerialPort: POSIX does not support baud rates above 115200 baud. Switching to 115200 baud."); #ifdef CBAUD - Posix_CommConfig.c_cflag&=(~CBAUD); - Posix_CommConfig.c_cflag|=B115200; + Posix_CommConfig.c_cflag&=(~CBAUD); + Posix_CommConfig.c_cflag|=B115200; #else - cfsetispeed(&Posix_CommConfig, B115200); - cfsetospeed(&Posix_CommConfig, B115200); + cfsetispeed(&Posix_CommConfig, B115200); + cfsetospeed(&Posix_CommConfig, B115200); #endif - break; + break; } tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); } @@ -536,56 +545,56 @@ void Posix_QextSerialPort::setDataBits(DataBitsType dataBits) switch(dataBits) { /*5 data bits*/ - case DATA_5: - if (Settings.StopBits==STOP_2) { - TTY_WARNING("Posix_QextSerialPort: 5 Data bits cannot be used with 2 stop bits."); - } - else { - Settings.DataBits=dataBits; - Posix_CommConfig.c_cflag&=(~CSIZE); - Posix_CommConfig.c_cflag|=CS5; - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - } - break; + case DATA_5: + if (Settings.StopBits==STOP_2) { + TTY_WARNING("Posix_QextSerialPort: 5 Data bits cannot be used with 2 stop bits."); + } + else { + Settings.DataBits=dataBits; + Posix_CommConfig.c_cflag&=(~CSIZE); + Posix_CommConfig.c_cflag|=CS5; + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + } + break; /*6 data bits*/ case DATA_6: - if (Settings.StopBits==STOP_1_5) { - TTY_WARNING("Posix_QextSerialPort: 6 Data bits cannot be used with 1.5 stop bits."); - } - else { - Settings.DataBits=dataBits; - Posix_CommConfig.c_cflag&=(~CSIZE); - Posix_CommConfig.c_cflag|=CS6; - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - } - break; + if (Settings.StopBits==STOP_1_5) { + TTY_WARNING("Posix_QextSerialPort: 6 Data bits cannot be used with 1.5 stop bits."); + } + else { + Settings.DataBits=dataBits; + Posix_CommConfig.c_cflag&=(~CSIZE); + Posix_CommConfig.c_cflag|=CS6; + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + } + break; /*7 data bits*/ case DATA_7: - if (Settings.StopBits==STOP_1_5) { - TTY_WARNING("Posix_QextSerialPort: 7 Data bits cannot be used with 1.5 stop bits."); - } - else { - Settings.DataBits=dataBits; - Posix_CommConfig.c_cflag&=(~CSIZE); - Posix_CommConfig.c_cflag|=CS7; - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - } - break; + if (Settings.StopBits==STOP_1_5) { + TTY_WARNING("Posix_QextSerialPort: 7 Data bits cannot be used with 1.5 stop bits."); + } + else { + Settings.DataBits=dataBits; + Posix_CommConfig.c_cflag&=(~CSIZE); + Posix_CommConfig.c_cflag|=CS7; + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + } + break; /*8 data bits*/ case DATA_8: - if (Settings.StopBits==STOP_1_5) { - TTY_WARNING("Posix_QextSerialPort: 8 Data bits cannot be used with 1.5 stop bits."); - } - else { - Settings.DataBits=dataBits; - Posix_CommConfig.c_cflag&=(~CSIZE); - Posix_CommConfig.c_cflag|=CS8; - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - } - break; + if (Settings.StopBits==STOP_1_5) { + TTY_WARNING("Posix_QextSerialPort: 8 Data bits cannot be used with 1.5 stop bits."); + } + else { + Settings.DataBits=dataBits; + Posix_CommConfig.c_cflag&=(~CSIZE); + Posix_CommConfig.c_cflag|=CS8; + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + } + break; } } UNLOCK_MUTEX(); @@ -625,60 +634,60 @@ void Posix_QextSerialPort::setParity(ParityType parity) switch (parity) { /*space parity*/ - case PAR_SPACE: - if (Settings.DataBits==DATA_8) { - TTY_PORTABILITY_WARNING("Posix_QextSerialPort: Space parity is only supported in POSIX with 7 or fewer data bits"); - } - else { - - /*space parity not directly supported - add an extra data bit to simulate it*/ - Posix_CommConfig.c_cflag&=~(PARENB|CSIZE); - switch(Settings.DataBits) { - case DATA_5: - Settings.DataBits=DATA_6; - Posix_CommConfig.c_cflag|=CS6; - break; - - case DATA_6: - Settings.DataBits=DATA_7; - Posix_CommConfig.c_cflag|=CS7; - break; - - case DATA_7: - Settings.DataBits=DATA_8; - Posix_CommConfig.c_cflag|=CS8; - break; - - case DATA_8: - break; - } - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + case PAR_SPACE: + if (Settings.DataBits==DATA_8) { + TTY_PORTABILITY_WARNING("Posix_QextSerialPort: Space parity is only supported in POSIX with 7 or fewer data bits"); + } + else { + + /*space parity not directly supported - add an extra data bit to simulate it*/ + Posix_CommConfig.c_cflag&=~(PARENB|CSIZE); + switch(Settings.DataBits) { + case DATA_5: + Settings.DataBits=DATA_6; + Posix_CommConfig.c_cflag|=CS6; + break; + + case DATA_6: + Settings.DataBits=DATA_7; + Posix_CommConfig.c_cflag|=CS7; + break; + + case DATA_7: + Settings.DataBits=DATA_8; + Posix_CommConfig.c_cflag|=CS8; + break; + + case DATA_8: + break; } - break; + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + } + break; /*mark parity - WINDOWS ONLY*/ case PAR_MARK: - TTY_WARNING("Posix_QextSerialPort: Mark parity is not supported by POSIX."); - break; + TTY_WARNING("Posix_QextSerialPort: Mark parity is not supported by POSIX."); + break; /*no parity*/ case PAR_NONE: - Posix_CommConfig.c_cflag&=(~PARENB); - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - break; + Posix_CommConfig.c_cflag&=(~PARENB); + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + break; /*even parity*/ case PAR_EVEN: - Posix_CommConfig.c_cflag&=(~PARODD); - Posix_CommConfig.c_cflag|=PARENB; - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - break; + Posix_CommConfig.c_cflag&=(~PARODD); + Posix_CommConfig.c_cflag|=PARENB; + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + break; /*odd parity*/ case PAR_ODD: - Posix_CommConfig.c_cflag|=(PARENB|PARODD); - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - break; + Posix_CommConfig.c_cflag|=(PARENB|PARODD); + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + break; } } UNLOCK_MUTEX(); @@ -713,28 +722,28 @@ void Posix_QextSerialPort::setStopBits(StopBitsType stopBits) switch (stopBits) { /*one stop bit*/ - case STOP_1: - Settings.StopBits=stopBits; - Posix_CommConfig.c_cflag&=(~CSTOPB); - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - break; + case STOP_1: + Settings.StopBits=stopBits; + Posix_CommConfig.c_cflag&=(~CSTOPB); + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + break; /*1.5 stop bits*/ - case STOP_1_5: - TTY_WARNING("Posix_QextSerialPort: 1.5 stop bit operation is not supported by POSIX."); - break; + case STOP_1_5: + TTY_WARNING("Posix_QextSerialPort: 1.5 stop bit operation is not supported by POSIX."); + break; /*two stop bits*/ - case STOP_2: - if (Settings.DataBits==DATA_5) { - TTY_WARNING("Posix_QextSerialPort: 2 stop bits cannot be used with 5 data bits"); - } - else { - Settings.StopBits=stopBits; - Posix_CommConfig.c_cflag|=CSTOPB; - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - } - break; + case STOP_2: + if (Settings.DataBits==DATA_5) { + TTY_WARNING("Posix_QextSerialPort: 2 stop bits cannot be used with 5 data bits"); + } + else { + Settings.StopBits=stopBits; + Posix_CommConfig.c_cflag|=CSTOPB; + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + } + break; } } UNLOCK_MUTEX(); @@ -763,24 +772,24 @@ void Posix_QextSerialPort::setFlowControl(FlowType flow) switch(flow) { /*no flow control*/ - case FLOW_OFF: - Posix_CommConfig.c_cflag&=(~CRTSCTS); - Posix_CommConfig.c_iflag&=(~(IXON|IXOFF|IXANY)); - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - break; + case FLOW_OFF: + Posix_CommConfig.c_cflag&=(~CRTSCTS); + Posix_CommConfig.c_iflag&=(~(IXON|IXOFF|IXANY)); + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + break; /*software (XON/XOFF) flow control*/ - case FLOW_XONXOFF: - Posix_CommConfig.c_cflag&=(~CRTSCTS); - Posix_CommConfig.c_iflag|=(IXON|IXOFF|IXANY); - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - break; + case FLOW_XONXOFF: + Posix_CommConfig.c_cflag&=(~CRTSCTS); + Posix_CommConfig.c_iflag|=(IXON|IXOFF|IXANY); + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + break; - case FLOW_HARDWARE: - Posix_CommConfig.c_cflag|=CRTSCTS; - Posix_CommConfig.c_iflag&=(~(IXON|IXOFF|IXANY)); - tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); - break; + case FLOW_HARDWARE: + Posix_CommConfig.c_cflag|=CRTSCTS; + Posix_CommConfig.c_iflag&=(~(IXON|IXOFF|IXANY)); + tcsetattr(fd, TCSAFLUSH, &Posix_CommConfig); + break; } } UNLOCK_MUTEX(); @@ -811,11 +820,11 @@ void Posix_QextSerialPort::setTimeout(long millisec) Posix_Copy_Timeout.tv_usec = millisec % 1000; if (isOpen()) { if (millisec == -1) - fcntl(fd, F_SETFL, O_NDELAY); + fcntl(fd, F_SETFL, O_NDELAY); else - //O_SYNC should enable blocking ::write() - //however this seems not working on Linux 2.6.21 (works on OpenBSD 4.2) - fcntl(fd, F_SETFL, O_SYNC); + //O_SYNC should enable blocking ::write() + //however this seems not working on Linux 2.6.21 (works on OpenBSD 4.2) + fcntl(fd, F_SETFL, O_SYNC); tcgetattr(fd, & Posix_CommConfig); Posix_CommConfig.c_cc[VTIME] = millisec/100; tcsetattr(fd, TCSAFLUSH, & Posix_CommConfig); @@ -969,18 +978,18 @@ Translates a system-specific error code to a QextSerialPort error code. Used in void Posix_QextSerialPort::translateError(ulong error) { switch (error) { - case EBADF: - case ENOTTY: - lastErr=E_INVALID_FD; - break; - - case EINTR: - lastErr=E_CAUGHT_NON_BLOCKED_SIGNAL; - break; - - case ENOMEM: - lastErr=E_NO_MEMORY; - break; + case EBADF: + case ENOTTY: + lastErr=E_INVALID_FD; + break; + + case EINTR: + lastErr=E_CAUGHT_NON_BLOCKED_SIGNAL; + break; + + case ENOMEM: + lastErr=E_NO_MEMORY; + break; } } @@ -1122,7 +1131,7 @@ qint64 Posix_QextSerialPort::writeData(const char * data, qint64 maxSize) int retVal = 0; retVal = ::write(fd, data, maxSize); if (retVal == -1) - lastErr = E_WRITE_FAILED; + lastErr = E_WRITE_FAILED; UNLOCK_MUTEX(); return (qint64)retVal; diff --git a/src/lib/qextserialport/qextserialbase.h b/src/lib/qextserialport/qextserialbase.h index c4656c1d35c69c7478513f70731c6068599fa2c7..0b4a2765185309e8a398658c6907bdee6f9e8a01 100644 --- a/src/lib/qextserialport/qextserialbase.h +++ b/src/lib/qextserialport/qextserialbase.h @@ -92,8 +92,11 @@ enum BaudRateType BAUD57600, BAUD76800, //POSIX ONLY BAUD115200, - BAUD128000, //WINDOWS ONLY - BAUD256000 //WINDOWS ONLY + BAUD128000, // WINDOWS ONLY + BAUD230400, // WINDOWS ONLY + BAUD256000, // WINDOWS ONLY + BAUD460800, // WINDOWS ONLY + BAUD921600 // WINDOWS ONLY }; enum DataBitsType diff --git a/src/lib/qextserialport/win_qextserialport.cpp b/src/lib/qextserialport/win_qextserialport.cpp index 49c5fc8c06a755404d55c3e380ed30f5b7f970e4..39768baf45a54702020ba8f15df4ab5dd0cdb4bb 100644 --- a/src/lib/qextserialport/win_qextserialport.cpp +++ b/src/lib/qextserialport/win_qextserialport.cpp @@ -114,19 +114,19 @@ Win_QextSerialPort::Win_QextSerialPort(const QString & name, const PortSettings& setFlowControl(settings.FlowControl); setTimeout(settings.Timeout_Millisec); setQueryMode(mode); - init(); + init(); } void Win_QextSerialPort::init() { - _bytesToWrite = 0; - overlap.Internal = 0; - overlap.InternalHigh = 0; - overlap.Offset = 0; - overlap.OffsetHigh = 0; - overlap.hEvent = CreateEvent(NULL, true, false, NULL); - overlapThread = new Win_QextSerialThread(this); - bytesToWriteLock = new QReadWriteLock; + _bytesToWrite = 0; + overlap.Internal = 0; + overlap.InternalHigh = 0; + overlap.Offset = 0; + overlap.OffsetHigh = 0; + overlap.hEvent = CreateEvent(NULL, true, false, NULL); + overlapThread = new Win_QextSerialThread(this); + bytesToWriteLock = new QReadWriteLock; } /*! @@ -178,11 +178,11 @@ if the port associated with the class is already open. The port is also configu settings, as stored in the Settings structure. */ bool Win_QextSerialPort::open(OpenMode mode) { - unsigned long confSize = sizeof(COMMCONFIG); - Win_CommConfig.dwSize = confSize; - DWORD dwFlagsAndAttributes = 0; - if (queryMode() == QextSerialBase::EventDriven) - dwFlagsAndAttributes += FILE_FLAG_OVERLAPPED; + unsigned long confSize = sizeof(COMMCONFIG); + Win_CommConfig.dwSize = confSize; + DWORD dwFlagsAndAttributes = 0; + if (queryMode() == QextSerialBase::EventDriven) + dwFlagsAndAttributes += FILE_FLAG_OVERLAPPED; LOCK_MUTEX(); if (mode == QIODevice::NotOpen) @@ -190,7 +190,7 @@ bool Win_QextSerialPort::open(OpenMode mode) { if (!isOpen()) { /*open the port*/ Win_Handle=CreateFileA(port.toAscii(), GENERIC_READ|GENERIC_WRITE, - FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, dwFlagsAndAttributes, NULL); + FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, dwFlagsAndAttributes, NULL); if (Win_Handle!=INVALID_HANDLE_VALUE) { /*configure port settings*/ GetCommConfig(Win_Handle, &Win_CommConfig, &confSize); @@ -211,24 +211,24 @@ bool Win_QextSerialPort::open(OpenMode mode) { SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); //init event driven approach - if (queryMode() == QextSerialBase::EventDriven) { - Win_CommTimeouts.ReadIntervalTimeout = MAXDWORD; - Win_CommTimeouts.ReadTotalTimeoutMultiplier = 0; - Win_CommTimeouts.ReadTotalTimeoutConstant = 0; - Win_CommTimeouts.WriteTotalTimeoutMultiplier = 0; - Win_CommTimeouts.WriteTotalTimeoutConstant = 0; - SetCommTimeouts(Win_Handle, &Win_CommTimeouts); + if (queryMode() == QextSerialBase::EventDriven) { + Win_CommTimeouts.ReadIntervalTimeout = MAXDWORD; + Win_CommTimeouts.ReadTotalTimeoutMultiplier = 0; + Win_CommTimeouts.ReadTotalTimeoutConstant = 0; + Win_CommTimeouts.WriteTotalTimeoutMultiplier = 0; + Win_CommTimeouts.WriteTotalTimeoutConstant = 0; + SetCommTimeouts(Win_Handle, &Win_CommTimeouts); if (!SetCommMask( Win_Handle, EV_TXEMPTY | EV_RXCHAR | EV_DSR)) { - qWarning("failed to set Comm Mask. Error code: %ld", GetLastError()); - UNLOCK_MUTEX(); - return false; + qWarning("failed to set Comm Mask. Error code: %ld", GetLastError()); + UNLOCK_MUTEX(); + return false; } overlapThread->start(); } - QIODevice::open(mode); + QIODevice::open(mode); } } else { - UNLOCK_MUTEX(); + UNLOCK_MUTEX(); return false; } UNLOCK_MUTEX(); @@ -245,16 +245,16 @@ void Win_QextSerialPort::close() LOCK_MUTEX(); if (isOpen()) { - flush(); - if (overlapThread->isRunning()) { - overlapThread->stop(); - if (QThread::currentThread() != overlapThread) - overlapThread->wait(); - } + flush(); + if (overlapThread->isRunning()) { + overlapThread->stop(); + if (QThread::currentThread() != overlapThread) + overlapThread->wait(); + } if (CloseHandle(Win_Handle)) Win_Handle = INVALID_HANDLE_VALUE; - _bytesToWrite = 0; - QIODevice::close(); + _bytesToWrite = 0; + QIODevice::close(); } UNLOCK_MUTEX(); @@ -353,32 +353,32 @@ is currently open (use isOpen() function to check if port is open). qint64 Win_QextSerialPort::readData(char *data, qint64 maxSize) { DWORD retVal; - + LOCK_MUTEX(); retVal = 0; - if (queryMode() == QextSerialBase::EventDriven) { - OVERLAPPED overlapRead; - overlapRead.Internal = 0; - overlapRead.InternalHigh = 0; - overlapRead.Offset = 0; - overlapRead.OffsetHigh = 0; - overlapRead.hEvent = CreateEvent(NULL, true, false, NULL); - if (!ReadFile(Win_Handle, (void*)data, (DWORD)maxSize, & retVal, & overlapRead)) { - if (GetLastError() == ERROR_IO_PENDING) - GetOverlappedResult(Win_Handle, & overlapRead, & retVal, true); - else { - lastErr = E_READ_FAILED; - retVal = (DWORD)-1; - } - } - CloseHandle(overlapRead.hEvent); - } else if (!ReadFile(Win_Handle, (void*)data, (DWORD)maxSize, & retVal, NULL)) { + if (queryMode() == QextSerialBase::EventDriven) { + OVERLAPPED overlapRead; + overlapRead.Internal = 0; + overlapRead.InternalHigh = 0; + overlapRead.Offset = 0; + overlapRead.OffsetHigh = 0; + overlapRead.hEvent = CreateEvent(NULL, true, false, NULL); + if (!ReadFile(Win_Handle, (void*)data, (DWORD)maxSize, & retVal, & overlapRead)) { + if (GetLastError() == ERROR_IO_PENDING) + GetOverlappedResult(Win_Handle, & overlapRead, & retVal, true); + else { + lastErr = E_READ_FAILED; + retVal = (DWORD)-1; + } + } + CloseHandle(overlapRead.hEvent); + } else if (!ReadFile(Win_Handle, (void*)data, (DWORD)maxSize, & retVal, NULL)) { lastErr = E_READ_FAILED; retVal = (DWORD)-1; } - UNLOCK_MUTEX(); + UNLOCK_MUTEX(); return (qint64)retVal; } @@ -394,8 +394,8 @@ is currently open (use isOpen() function to check if port is open). */ qint64 Win_QextSerialPort::writeData(const char *data, qint64 maxSize) { - DWORD retVal; - + DWORD retVal; + LOCK_MUTEX(); retVal = 0; @@ -403,21 +403,21 @@ qint64 Win_QextSerialPort::writeData(const char *data, qint64 maxSize) bytesToWriteLock->lockForWrite(); _bytesToWrite += maxSize; bytesToWriteLock->unlock(); - overlapWrite.Internal = 0; - overlapWrite.InternalHigh = 0; - overlapWrite.Offset = 0; - overlapWrite.OffsetHigh = 0; - overlapWrite.hEvent = CreateEvent(NULL, true, false, NULL); - if (!WriteFile(Win_Handle, (void*)data, (DWORD)maxSize, & retVal, & overlapWrite)) { - lastErr = E_WRITE_FAILED; - retVal = (DWORD)-1; - } else - retVal = maxSize; + overlapWrite.Internal = 0; + overlapWrite.InternalHigh = 0; + overlapWrite.Offset = 0; + overlapWrite.OffsetHigh = 0; + overlapWrite.hEvent = CreateEvent(NULL, true, false, NULL); + if (!WriteFile(Win_Handle, (void*)data, (DWORD)maxSize, & retVal, & overlapWrite)) { + lastErr = E_WRITE_FAILED; + retVal = (DWORD)-1; + } else + retVal = maxSize; } else if (!WriteFile(Win_Handle, (void*)data, (DWORD)maxSize, & retVal, NULL)) { - lastErr = E_WRITE_FAILED; - retVal = (DWORD)-1; - } - + lastErr = E_WRITE_FAILED; + retVal = (DWORD)-1; + } + UNLOCK_MUTEX(); return (qint64)retVal; @@ -453,30 +453,30 @@ void Win_QextSerialPort::setFlowControl(FlowType flow) { switch(flow) { /*no flow control*/ - case FLOW_OFF: - Win_CommConfig.dcb.fOutxCtsFlow=FALSE; - Win_CommConfig.dcb.fRtsControl=RTS_CONTROL_DISABLE; - Win_CommConfig.dcb.fInX=FALSE; - Win_CommConfig.dcb.fOutX=FALSE; - SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); - break; + case FLOW_OFF: + Win_CommConfig.dcb.fOutxCtsFlow=FALSE; + Win_CommConfig.dcb.fRtsControl=RTS_CONTROL_DISABLE; + Win_CommConfig.dcb.fInX=FALSE; + Win_CommConfig.dcb.fOutX=FALSE; + SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); + break; /*software (XON/XOFF) flow control*/ - case FLOW_XONXOFF: - Win_CommConfig.dcb.fOutxCtsFlow=FALSE; - Win_CommConfig.dcb.fRtsControl=RTS_CONTROL_DISABLE; - Win_CommConfig.dcb.fInX=TRUE; - Win_CommConfig.dcb.fOutX=TRUE; - SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); - break; + case FLOW_XONXOFF: + Win_CommConfig.dcb.fOutxCtsFlow=FALSE; + Win_CommConfig.dcb.fRtsControl=RTS_CONTROL_DISABLE; + Win_CommConfig.dcb.fInX=TRUE; + Win_CommConfig.dcb.fOutX=TRUE; + SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); + break; - case FLOW_HARDWARE: - Win_CommConfig.dcb.fOutxCtsFlow=TRUE; - Win_CommConfig.dcb.fRtsControl=RTS_CONTROL_HANDSHAKE; - Win_CommConfig.dcb.fInX=FALSE; - Win_CommConfig.dcb.fOutX=FALSE; - SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); - break; + case FLOW_HARDWARE: + Win_CommConfig.dcb.fOutxCtsFlow=TRUE; + Win_CommConfig.dcb.fRtsControl=RTS_CONTROL_HANDSHAKE; + Win_CommConfig.dcb.fInX=FALSE; + Win_CommConfig.dcb.fOutX=FALSE; + SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); + break; } } UNLOCK_MUTEX(); @@ -503,33 +503,33 @@ void Win_QextSerialPort::setParity(ParityType parity) { switch (parity) { /*space parity*/ - case PAR_SPACE: - if (Settings.DataBits==DATA_8) { - TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: Space parity with 8 data bits is not supported by POSIX systems."); - } - Win_CommConfig.dcb.fParity=TRUE; - break; + case PAR_SPACE: + if (Settings.DataBits==DATA_8) { + TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: Space parity with 8 data bits is not supported by POSIX systems."); + } + Win_CommConfig.dcb.fParity=TRUE; + break; /*mark parity - WINDOWS ONLY*/ case PAR_MARK: - TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: Mark parity is not supported by POSIX systems"); - Win_CommConfig.dcb.fParity=TRUE; - break; + TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: Mark parity is not supported by POSIX systems"); + Win_CommConfig.dcb.fParity=TRUE; + break; /*no parity*/ case PAR_NONE: - Win_CommConfig.dcb.fParity=FALSE; - break; + Win_CommConfig.dcb.fParity=FALSE; + break; /*even parity*/ case PAR_EVEN: - Win_CommConfig.dcb.fParity=TRUE; - break; + Win_CommConfig.dcb.fParity=TRUE; + break; /*odd parity*/ case PAR_ODD: - Win_CommConfig.dcb.fParity=TRUE; - break; + Win_CommConfig.dcb.fParity=TRUE; + break; } SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); } @@ -570,48 +570,48 @@ void Win_QextSerialPort::setDataBits(DataBitsType dataBits) { switch(dataBits) { /*5 data bits*/ - case DATA_5: - if (Settings.StopBits==STOP_2) { - TTY_WARNING("Win_QextSerialPort: 5 Data bits cannot be used with 2 stop bits."); - } - else { - Win_CommConfig.dcb.ByteSize=5; - SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); - } - break; + case DATA_5: + if (Settings.StopBits==STOP_2) { + TTY_WARNING("Win_QextSerialPort: 5 Data bits cannot be used with 2 stop bits."); + } + else { + Win_CommConfig.dcb.ByteSize=5; + SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); + } + break; /*6 data bits*/ case DATA_6: - if (Settings.StopBits==STOP_1_5) { - TTY_WARNING("Win_QextSerialPort: 6 Data bits cannot be used with 1.5 stop bits."); - } - else { - Win_CommConfig.dcb.ByteSize=6; - SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); - } - break; + if (Settings.StopBits==STOP_1_5) { + TTY_WARNING("Win_QextSerialPort: 6 Data bits cannot be used with 1.5 stop bits."); + } + else { + Win_CommConfig.dcb.ByteSize=6; + SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); + } + break; /*7 data bits*/ case DATA_7: - if (Settings.StopBits==STOP_1_5) { - TTY_WARNING("Win_QextSerialPort: 7 Data bits cannot be used with 1.5 stop bits."); - } - else { - Win_CommConfig.dcb.ByteSize=7; - SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); - } - break; + if (Settings.StopBits==STOP_1_5) { + TTY_WARNING("Win_QextSerialPort: 7 Data bits cannot be used with 1.5 stop bits."); + } + else { + Win_CommConfig.dcb.ByteSize=7; + SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); + } + break; /*8 data bits*/ case DATA_8: - if (Settings.StopBits==STOP_1_5) { - TTY_WARNING("Win_QextSerialPort: 8 Data bits cannot be used with 1.5 stop bits."); - } - else { - Win_CommConfig.dcb.ByteSize=8; - SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); - } - break; + if (Settings.StopBits==STOP_1_5) { + TTY_WARNING("Win_QextSerialPort: 8 Data bits cannot be used with 1.5 stop bits."); + } + else { + Win_CommConfig.dcb.ByteSize=8; + SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); + } + break; } } UNLOCK_MUTEX(); @@ -649,33 +649,33 @@ void Win_QextSerialPort::setStopBits(StopBitsType stopBits) { switch (stopBits) { /*one stop bit*/ - case STOP_1: - Win_CommConfig.dcb.StopBits=ONESTOPBIT; - SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); - break; + case STOP_1: + Win_CommConfig.dcb.StopBits=ONESTOPBIT; + SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); + break; /*1.5 stop bits*/ - case STOP_1_5: - TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: 1.5 stop bit operation is not supported by POSIX."); - if (Settings.DataBits!=DATA_5) { - TTY_WARNING("Win_QextSerialPort: 1.5 stop bits can only be used with 5 data bits"); - } - else { - Win_CommConfig.dcb.StopBits=ONE5STOPBITS; - SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); - } - break; + case STOP_1_5: + TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: 1.5 stop bit operation is not supported by POSIX."); + if (Settings.DataBits!=DATA_5) { + TTY_WARNING("Win_QextSerialPort: 1.5 stop bits can only be used with 5 data bits"); + } + else { + Win_CommConfig.dcb.StopBits=ONE5STOPBITS; + SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); + } + break; /*two stop bits*/ case STOP_2: - if (Settings.DataBits==DATA_5) { - TTY_WARNING("Win_QextSerialPort: 2 stop bits cannot be used with 5 data bits"); - } - else { - Win_CommConfig.dcb.StopBits=TWOSTOPBITS; - SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); - } - break; + if (Settings.DataBits==DATA_5) { + TTY_WARNING("Win_QextSerialPort: 2 stop bits cannot be used with 5 data bits"); + } + else { + Win_CommConfig.dcb.StopBits=TWOSTOPBITS; + SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); + } + break; } } UNLOCK_MUTEX(); @@ -713,156 +713,175 @@ are speeds that are usable on both Windows and POSIX. *BAUD115200 115200 115200 BAUD128000 128000 115200 BAUD256000 256000 115200 + BAUD230400 230400 115200 + BAUD256000 256000 115200 + BAUD460800 460800 115200 + BAUD921600 921600 115200 \endverbatim */ void Win_QextSerialPort::setBaudRate(BaudRateType baudRate) { LOCK_MUTEX(); if (Settings.BaudRate!=baudRate) { switch (baudRate) { - case BAUD50: - case BAUD75: - case BAUD134: - case BAUD150: - case BAUD200: - Settings.BaudRate=BAUD110; - break; - - case BAUD1800: - Settings.BaudRate=BAUD1200; - break; - - case BAUD76800: - Settings.BaudRate=BAUD57600; - break; - - default: - Settings.BaudRate=baudRate; - break; + case BAUD50: + case BAUD75: + case BAUD134: + case BAUD150: + case BAUD200: + Settings.BaudRate=BAUD110; + break; + + case BAUD1800: + Settings.BaudRate=BAUD1200; + break; + + case BAUD76800: + Settings.BaudRate=BAUD57600; + break; + + default: + Settings.BaudRate=baudRate; + break; } } if (isOpen()) { switch (baudRate) { /*50 baud*/ - case BAUD50: - TTY_WARNING("Win_QextSerialPort: Windows does not support 50 baud operation. Switching to 110 baud."); - Win_CommConfig.dcb.BaudRate=CBR_110; - break; + case BAUD50: + TTY_WARNING("Win_QextSerialPort: Windows does not support 50 baud operation. Switching to 110 baud."); + Win_CommConfig.dcb.BaudRate=CBR_110; + break; /*75 baud*/ - case BAUD75: - TTY_WARNING("Win_QextSerialPort: Windows does not support 75 baud operation. Switching to 110 baud."); - Win_CommConfig.dcb.BaudRate=CBR_110; - break; + case BAUD75: + TTY_WARNING("Win_QextSerialPort: Windows does not support 75 baud operation. Switching to 110 baud."); + Win_CommConfig.dcb.BaudRate=CBR_110; + break; /*110 baud*/ - case BAUD110: - Win_CommConfig.dcb.BaudRate=CBR_110; - break; + case BAUD110: + Win_CommConfig.dcb.BaudRate=CBR_110; + break; /*134.5 baud*/ - case BAUD134: - TTY_WARNING("Win_QextSerialPort: Windows does not support 134.5 baud operation. Switching to 110 baud."); - Win_CommConfig.dcb.BaudRate=CBR_110; - break; + case BAUD134: + TTY_WARNING("Win_QextSerialPort: Windows does not support 134.5 baud operation. Switching to 110 baud."); + Win_CommConfig.dcb.BaudRate=CBR_110; + break; /*150 baud*/ - case BAUD150: - TTY_WARNING("Win_QextSerialPort: Windows does not support 150 baud operation. Switching to 110 baud."); - Win_CommConfig.dcb.BaudRate=CBR_110; - break; + case BAUD150: + TTY_WARNING("Win_QextSerialPort: Windows does not support 150 baud operation. Switching to 110 baud."); + Win_CommConfig.dcb.BaudRate=CBR_110; + break; /*200 baud*/ - case BAUD200: - TTY_WARNING("Win_QextSerialPort: Windows does not support 200 baud operation. Switching to 110 baud."); - Win_CommConfig.dcb.BaudRate=CBR_110; - break; + case BAUD200: + TTY_WARNING("Win_QextSerialPort: Windows does not support 200 baud operation. Switching to 110 baud."); + Win_CommConfig.dcb.BaudRate=CBR_110; + break; /*300 baud*/ - case BAUD300: - Win_CommConfig.dcb.BaudRate=CBR_300; - break; + case BAUD300: + Win_CommConfig.dcb.BaudRate=CBR_300; + break; /*600 baud*/ - case BAUD600: - Win_CommConfig.dcb.BaudRate=CBR_600; - break; + case BAUD600: + Win_CommConfig.dcb.BaudRate=CBR_600; + break; /*1200 baud*/ - case BAUD1200: - Win_CommConfig.dcb.BaudRate=CBR_1200; - break; + case BAUD1200: + Win_CommConfig.dcb.BaudRate=CBR_1200; + break; /*1800 baud*/ - case BAUD1800: - TTY_WARNING("Win_QextSerialPort: Windows does not support 1800 baud operation. Switching to 1200 baud."); - Win_CommConfig.dcb.BaudRate=CBR_1200; - break; + case BAUD1800: + TTY_WARNING("Win_QextSerialPort: Windows does not support 1800 baud operation. Switching to 1200 baud."); + Win_CommConfig.dcb.BaudRate=CBR_1200; + break; /*2400 baud*/ - case BAUD2400: - Win_CommConfig.dcb.BaudRate=CBR_2400; - break; + case BAUD2400: + Win_CommConfig.dcb.BaudRate=CBR_2400; + break; /*4800 baud*/ - case BAUD4800: - Win_CommConfig.dcb.BaudRate=CBR_4800; - break; + case BAUD4800: + Win_CommConfig.dcb.BaudRate=CBR_4800; + break; /*9600 baud*/ - case BAUD9600: - Win_CommConfig.dcb.BaudRate=CBR_9600; - break; + case BAUD9600: + Win_CommConfig.dcb.BaudRate=CBR_9600; + break; /*14400 baud*/ - case BAUD14400: - TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 14400 baud operation."); - Win_CommConfig.dcb.BaudRate=CBR_14400; - break; + case BAUD14400: + TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 14400 baud operation."); + Win_CommConfig.dcb.BaudRate=CBR_14400; + break; /*19200 baud*/ - case BAUD19200: - Win_CommConfig.dcb.BaudRate=CBR_19200; - break; + case BAUD19200: + Win_CommConfig.dcb.BaudRate=CBR_19200; + break; /*38400 baud*/ - case BAUD38400: - Win_CommConfig.dcb.BaudRate=CBR_38400; - break; + case BAUD38400: + Win_CommConfig.dcb.BaudRate=CBR_38400; + break; /*56000 baud*/ - case BAUD56000: - TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 56000 baud operation."); - Win_CommConfig.dcb.BaudRate=CBR_56000; - break; + case BAUD56000: + TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 56000 baud operation."); + Win_CommConfig.dcb.BaudRate=CBR_56000; + break; /*57600 baud*/ - case BAUD57600: - Win_CommConfig.dcb.BaudRate=CBR_57600; - break; + case BAUD57600: + Win_CommConfig.dcb.BaudRate=CBR_57600; + break; /*76800 baud*/ - case BAUD76800: - TTY_WARNING("Win_QextSerialPort: Windows does not support 76800 baud operation. Switching to 57600 baud."); - Win_CommConfig.dcb.BaudRate=CBR_57600; - break; + case BAUD76800: + TTY_WARNING("Win_QextSerialPort: Windows does not support 76800 baud operation. Switching to 57600 baud."); + Win_CommConfig.dcb.BaudRate=CBR_57600; + break; /*115200 baud*/ - case BAUD115200: - Win_CommConfig.dcb.BaudRate=CBR_115200; - break; + case BAUD115200: + Win_CommConfig.dcb.BaudRate=CBR_115200; + break; /*128000 baud*/ - case BAUD128000: - TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 128000 baud operation."); - Win_CommConfig.dcb.BaudRate=CBR_128000; - break; + case BAUD128000: + TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 128000 baud operation."); + Win_CommConfig.dcb.BaudRate=CBR_128000; + break; /*256000 baud*/ - case BAUD256000: - TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 256000 baud operation."); - Win_CommConfig.dcb.BaudRate=CBR_256000; - break; + case BAUD256000: + TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 256000 baud operation."); + Win_CommConfig.dcb.BaudRate=CBR_256000; + break; + /*230400 baud*/ + case BAUD230400: + TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 230400 baud operation."); + Win_CommConfig.dcb.BaudRate=CBR_230400; + break; + /*460800 baud*/ + case BAUD460800: + TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 460800 baud operation."); + Win_CommConfig.dcb.BaudRate=CBR_460800; + break; + /*921600 baud*/ + case BAUD921600: + TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 921600 baud operation."); + Win_CommConfig.dcb.BaudRate=CBR_921600; + break; } SetCommConfig(Win_Handle, &Win_CommConfig, sizeof(COMMCONFIG)); } @@ -948,55 +967,55 @@ ulong Win_QextSerialPort::lineStatus(void) { bool Win_QextSerialPort::waitForReadyRead(int msecs) { - //@todo implement - return false; + //@todo implement + return false; } qint64 Win_QextSerialPort::bytesToWrite() const { - return _bytesToWrite; + return _bytesToWrite; } void Win_QextSerialPort::monitorCommEvent() { - DWORD eventMask = 0; - - ResetEvent(overlap.hEvent); - if (!WaitCommEvent(Win_Handle, & eventMask, & overlap)) - if (GetLastError() != ERROR_IO_PENDING) - qCritical("WaitCommEvent error %ld\n", GetLastError()); - - if (WaitForSingleObject(overlap.hEvent, INFINITE) == WAIT_OBJECT_0) { - //overlap event occured - DWORD undefined; - if (!GetOverlappedResult(Win_Handle, & overlap, & undefined, false)) { - qWarning("CommEvent overlapped error %ld", GetLastError()); - return; - } - if (eventMask & EV_RXCHAR) { - if (sender() != this) - emit readyRead(); - } - if (eventMask & EV_TXEMPTY) { - DWORD numBytes; - GetOverlappedResult(Win_Handle, & overlapWrite, & numBytes, true); - bytesToWriteLock->lockForWrite(); - if (sender() != this) - emit bytesWritten(bytesToWrite()); - _bytesToWrite = 0; - bytesToWriteLock->unlock(); - } - if (eventMask & EV_DSR) - if (lineStatus() & LS_DSR) - emit dsrChanged(true); - else - emit dsrChanged(false); - } + DWORD eventMask = 0; + + ResetEvent(overlap.hEvent); + if (!WaitCommEvent(Win_Handle, & eventMask, & overlap)) + if (GetLastError() != ERROR_IO_PENDING) + qCritical("WaitCommEvent error %ld\n", GetLastError()); + + if (WaitForSingleObject(overlap.hEvent, INFINITE) == WAIT_OBJECT_0) { + //overlap event occured + DWORD undefined; + if (!GetOverlappedResult(Win_Handle, & overlap, & undefined, false)) { + qWarning("CommEvent overlapped error %ld", GetLastError()); + return; + } + if (eventMask & EV_RXCHAR) { + if (sender() != this) + emit readyRead(); + } + if (eventMask & EV_TXEMPTY) { + DWORD numBytes; + GetOverlappedResult(Win_Handle, & overlapWrite, & numBytes, true); + bytesToWriteLock->lockForWrite(); + if (sender() != this) + emit bytesWritten(bytesToWrite()); + _bytesToWrite = 0; + bytesToWriteLock->unlock(); + } + if (eventMask & EV_DSR) + if (lineStatus() & LS_DSR) + emit dsrChanged(true); + else + emit dsrChanged(false); + } } void Win_QextSerialPort::terminateCommWait() { - SetCommMask(Win_Handle, 0); + SetCommMask(Win_Handle, 0); } @@ -1013,17 +1032,17 @@ void Win_QextSerialPort::setTimeout(long millisec) { LOCK_MUTEX(); Settings.Timeout_Millisec = millisec; - if (millisec == -1) { - Win_CommTimeouts.ReadIntervalTimeout = MAXDWORD; - Win_CommTimeouts.ReadTotalTimeoutConstant = 0; - } else { - Win_CommTimeouts.ReadIntervalTimeout = millisec; - Win_CommTimeouts.ReadTotalTimeoutConstant = millisec; - } - Win_CommTimeouts.ReadTotalTimeoutMultiplier = 0; - Win_CommTimeouts.WriteTotalTimeoutMultiplier = millisec; - Win_CommTimeouts.WriteTotalTimeoutConstant = 0; - if (queryMode() != QextSerialBase::EventDriven) + if (millisec == -1) { + Win_CommTimeouts.ReadIntervalTimeout = MAXDWORD; + Win_CommTimeouts.ReadTotalTimeoutConstant = 0; + } else { + Win_CommTimeouts.ReadIntervalTimeout = millisec; + Win_CommTimeouts.ReadTotalTimeoutConstant = millisec; + } + Win_CommTimeouts.ReadTotalTimeoutMultiplier = 0; + Win_CommTimeouts.WriteTotalTimeoutMultiplier = millisec; + Win_CommTimeouts.WriteTotalTimeoutConstant = 0; + if (queryMode() != QextSerialBase::EventDriven) SetCommTimeouts(Win_Handle, &Win_CommTimeouts); UNLOCK_MUTEX(); @@ -1033,19 +1052,19 @@ void Win_QextSerialPort::setTimeout(long millisec) { Win_QextSerialThread::Win_QextSerialThread(Win_QextSerialPort * qesp): QThread() { - this->qesp = qesp; - terminate = false; + this->qesp = qesp; + terminate = false; } void Win_QextSerialThread::stop() { - terminate = true; - qesp->terminateCommWait(); + terminate = true; + qesp->terminateCommWait(); } void Win_QextSerialThread::run() { - while (!terminate) - qesp->monitorCommEvent(); - terminate = false; + while (!terminate) + qesp->monitorCommEvent(); + terminate = false; } diff --git a/src/lib/qextserialport/win_qextserialport.h b/src/lib/qextserialport/win_qextserialport.h index 1de6138c4f3bdda56b203510a57dde7e2c095a10..d3358f2d5b67648674db1513662a6b899005f2c4 100644 --- a/src/lib/qextserialport/win_qextserialport.h +++ b/src/lib/qextserialport/win_qextserialport.h @@ -5,6 +5,16 @@ #include #include +/* These baudrates work on windows, but are not part of the windows headers */ +#ifndef CBR_230400 +#define CBR_230400 230400 +#endif +#ifndef CBR_460800 +#define CBR_460800 460800 +#endif +#ifndef CBR_921600 +#define CBR_921600 921600 +#endif /*if all warning messages are turned off, flag portability warnings to be turned off as well*/ #ifdef _TTY_NOWARN_ diff --git a/src/uas/ArduPilotMAV.cc b/src/uas/ArduPilotMegaMAV.cc similarity index 74% rename from src/uas/ArduPilotMAV.cc rename to src/uas/ArduPilotMegaMAV.cc index a1cbe3f1f6af0a1ff9f994f71f6459c3f35ebd4c..b2f9a7b1e262d1e6aa325ed53bc53c4191aa2d30 100644 --- a/src/uas/ArduPilotMAV.cc +++ b/src/uas/ArduPilotMegaMAV.cc @@ -1,5 +1,4 @@ /*===================================================================== - QGroundControl Open Source Ground Control Station (c) 2009, 2010 QGROUNDCONTROL PROJECT @@ -10,15 +9,15 @@ This file is part of the QGROUNDCONTROL project it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + QGROUNDCONTROL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with QGROUNDCONTROL. If not, see . - + ======================================================================*/ /** @@ -27,9 +26,9 @@ This file is part of the QGROUNDCONTROL project * @author Your Name here */ -#include "ArduPilotMAV.h" +#include "ArduPilotMegaMAV.h" -ArduPilotMAV::ArduPilotMAV(MAVLinkProtocol* mavlink, int id) : +ArduPilotMegaMAV::ArduPilotMegaMAV(MAVLinkProtocol* mavlink, int id) : UAS(mavlink, id)//, // place other initializers here { @@ -43,21 +42,24 @@ ArduPilotMAV::ArduPilotMAV(MAVLinkProtocol* mavlink, int id) : * messages can be sent back to the system via this link * @param message MAVLink message, as received from the MAVLink protocol stack */ -void ArduPilotMAV::receiveMessage(LinkInterface* link, mavlink_message_t message) +void ArduPilotMegaMAV::receiveMessage(LinkInterface* link, mavlink_message_t message) { // Let UAS handle the default message set UAS::receiveMessage(link, message); - - // Handle your special messages - switch (message.msgid) + + if (message.sysid == uasId) { - case MAVLINK_MSG_ID_HEARTBEAT: + // Handle your special messages + switch (message.msgid) { - qDebug() << "ARDUPILOT RECEIVED HEARTBEAT"; + case MAVLINK_MSG_ID_HEARTBEAT: + { + //qDebug() << "ARDUPILOT RECEIVED HEARTBEAT"; + break; + } + default: + //qDebug() << "\nARDUPILOT RECEIVED MESSAGE WITH ID" << message.msgid; break; } - default: - qDebug() << "\nARDUPILOT RECEIVED MESSAGE WITH ID" << message.msgid; - break; } } diff --git a/src/uas/ArduPilotMAV.h b/src/uas/ArduPilotMegaMAV.h similarity index 88% rename from src/uas/ArduPilotMAV.h rename to src/uas/ArduPilotMegaMAV.h index 29f4a183dfa585648d33ffa4be867daf3a560e19..00866830defc5fd9f9d559670f609ebb95151e0e 100644 --- a/src/uas/ArduPilotMAV.h +++ b/src/uas/ArduPilotMegaMAV.h @@ -21,16 +21,16 @@ This file is part of the QGROUNDCONTROL project ======================================================================*/ -#ifndef ARDUPILOTMAV_H -#define ARDUPILOTMAV_H +#ifndef ARDUPILOTMEGAMAV_H +#define ARDUPILOTMEGAMAV_H #include "UAS.h" -class ArduPilotMAV : public UAS +class ArduPilotMegaMAV : public UAS { Q_OBJECT public: - ArduPilotMAV(MAVLinkProtocol* mavlink, int id = 0); + ArduPilotMegaMAV(MAVLinkProtocol* mavlink, int id = 0); public slots: /** @brief Receive a MAVLink message from this MAV */ void receiveMessage(LinkInterface* link, mavlink_message_t message); diff --git a/src/uas/PxQuadMAV.cc b/src/uas/PxQuadMAV.cc index ccf5f42c3328f4fcf9d2eb6c6dfff736ef717969..2b9739ee4d9ed5108f0d1029410abc537b3855da 100644 --- a/src/uas/PxQuadMAV.cc +++ b/src/uas/PxQuadMAV.cc @@ -41,12 +41,12 @@ void PxQuadMAV::receiveMessage(LinkInterface* link, mavlink_message_t message) { // Let UAS handle the default message set UAS::receiveMessage(link, message); - mavlink_message_t* msg = &message; //qDebug() << "PX RECEIVED" << msg->sysid << msg->compid << msg->msgid; // Only compile this portion if matching MAVLink packets have been compiled #ifdef MAVLINK_ENABLED_PIXHAWK + mavlink_message_t* msg = &message; if (message.sysid == uasId) { @@ -104,17 +104,6 @@ void PxQuadMAV::receiveMessage(LinkInterface* link, mavlink_message_t message) emit processChanged(this->uasId, payload.watchdog_id, payload.process_id, payload.state, (payload.muted == 1) ? true : false, payload.crashes, payload.pid); } break; - case MAVLINK_MSG_ID_DEBUG_VECT: - { - mavlink_debug_vect_t vect; - mavlink_msg_debug_vect_decode(msg, &vect); - QString str((const char*)vect.name); - quint64 time = getUnixTime(vect.usec); - emit valueChanged(uasId, str+".x", vect.x, time); - emit valueChanged(uasId, str+".y", vect.y, time); - emit valueChanged(uasId, str+".z", vect.z, time); - } - break; case MAVLINK_MSG_ID_VISION_POSITION_ESTIMATE: { mavlink_vision_position_estimate_t pos; @@ -179,5 +168,9 @@ void PxQuadMAV::sendProcessCommand(int watchdogId, int processId, unsigned int c mavlink_message_t msg; mavlink_msg_watchdog_command_encode(mavlink->getSystemId(), mavlink->getComponentId(), &msg, &payload); sendMessage(msg); +#else + Q_UNUSED(watchdogId); + Q_UNUSED(processId); + Q_UNUSED(command); #endif } diff --git a/src/uas/SlugsMAV.cc b/src/uas/SlugsMAV.cc index 5fbf1c931041a58a3e25447ed2e40e872909515a..7692bd4966a2ffa7e301131d75c0831fccf676ff 100644 --- a/src/uas/SlugsMAV.cc +++ b/src/uas/SlugsMAV.cc @@ -1,34 +1,52 @@ -/*===================================================================== +#include "SlugsMAV.h" -QGroundControl Open Source Ground Control Station +#include -(c) 2009, 2010 QGROUNDCONTROL PROJECT +SlugsMAV::SlugsMAV(MAVLinkProtocol* mavlink, int id) : + UAS(mavlink, id)//, + // Place other initializers here +{ + widgetTimer = new QTimer (this); + widgetTimer->setInterval(SLUGS_UPDATE_RATE); -This file is part of the QGROUNDCONTROL project + connect (widgetTimer, SIGNAL(timeout()), + this, SLOT(emitSignals())); - QGROUNDCONTROL is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. + widgetTimer->start(); - QGROUNDCONTROL is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + // clear all the state structures + memset(&mlRawImuData ,0, sizeof(mavlink_raw_imu_t)); - You should have received a copy of the GNU General Public License - along with QGROUNDCONTROL. If not, see . +#ifdef MAVLINK_ENABLED_SLUGS -======================================================================*/ -#include "SlugsMAV.h" + memset(&mlGpsData, 0, sizeof(mavlink_gps_raw_t)); + memset(&mlCpuLoadData, 0, sizeof(mavlink_cpu_load_t)); + memset(&mlAirData, 0, sizeof(mavlink_air_data_t)); + memset(&mlSensorBiasData, 0, sizeof(mavlink_sensor_bias_t)); + memset(&mlDiagnosticData, 0, sizeof(mavlink_diagnostic_t)); + memset(&mlPilotConsoleData, 0, sizeof(mavlink_pilot_console_t)); + memset(&mlFilteredData ,0, sizeof(mavlink_filtered_data_t)); + memset(&mlBoot ,0, sizeof(mavlink_boot_t)); + memset(&mlGpsDateTime ,0, sizeof(mavlink_gps_date_time_t)); + memset(&mlApMode ,0, sizeof(mavlink_set_mode_t)); + memset(&mlPwmCommands ,0, sizeof(mavlink_pwm_commands_t)); + memset(&mlPidValues ,0, sizeof(mavlink_pid_values_t)); + memset(&mlSinglePid ,0, sizeof(mavlink_pid_t)); + memset(&mlNavigation ,0, sizeof(mavlink_slugs_navigation_t)); + memset(&mlDataLog ,0, sizeof(mavlink_data_log_t)); + memset(&mlPassthrough ,0, sizeof(mavlink_ctrl_srfc_pt_t)); + memset(&mlActionAck,0, sizeof(mavlink_action_ack_t)); + memset(&mlAction ,0, sizeof(mavlink_slugs_action_t)); -#include -SlugsMAV::SlugsMAV(MAVLinkProtocol* mavlink, int id) : - UAS(mavlink, id)//, - // Place other initializers here -{ + updateRoundRobin = 0; + + + + uasId = id; + + #endif } /** @@ -44,104 +62,197 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message) // Let UAS handle the default message set UAS::receiveMessage(link, message); - // Handle your special messages mavlink_message_t* msg = &message; - switch (message.msgid) + if (message.sysid == uasId) { - case MAVLINK_MSG_ID_HEARTBEAT: + // Handle your special messages mavlink_message_t* msg = &message; + switch (message.msgid) { - qDebug() << "SLUGS RECEIVED HEARTBEAT"; - break; - } #ifdef MAVLINK_ENABLED_SLUGS - case MAVLINK_MSG_ID_CPU_LOAD: - { - mavlink_cpu_load_t cpu_load; - quint64 time = getUnixTime(0); - mavlink_msg_cpu_load_decode(&message,&cpu_load); + case MAVLINK_MSG_ID_BOOT: + mavlink_msg_boot_decode(&message,&mlBoot); + emit slugsBootMsg(uasId, mlBoot); + break; - emit valueChanged(uasId, tr("SensorDSC Load"), cpu_load.sensLoad, time); - emit valueChanged(uasId, tr("ControlDSC Load"), cpu_load.ctrlLoad, time); - emit valueChanged(uasId, tr("Battery Volt"), cpu_load.batVolt, time); + case MAVLINK_MSG_ID_ATTITUDE: + mavlink_msg_attitude_decode(&message, &mlAttitude); + break; + case MAVLINK_MSG_ID_GPS_RAW: + mavlink_msg_gps_raw_decode(&message, &mlGpsData); break; - } - case MAVLINK_MSG_ID_AIR_DATA: - { - mavlink_air_data_t air_data; - quint64 time = getUnixTime(0); - mavlink_msg_air_data_decode(&message,&air_data); - emit valueChanged(uasId, tr("Dynamic Pressure"), air_data.dynamicPressure,time); - emit valueChanged(uasId, tr("Static Pressure"),air_data.staticPressure, time); - emit valueChanged(uasId, tr("Temp"),air_data.temperature,time); + case MAVLINK_MSG_ID_ACTION_ACK: // 62 + mavlink_msg_action_ack_decode(&message,&mlActionAck); break; - } - case MAVLINK_MSG_ID_SENSOR_BIAS: - { - mavlink_sensor_bias_t sensor_bias; - quint64 time = getUnixTime(0); - mavlink_msg_sensor_bias_decode(&message,&sensor_bias); - emit valueChanged(uasId,tr("Ax Bias"),sensor_bias.axBias, time); - emit valueChanged(uasId,tr("Ay Bias"),sensor_bias.ayBias,time); - emit valueChanged(uasId,tr("Az Bias"),sensor_bias.azBias,time); - emit valueChanged(uasId,tr("Gx Bias"),sensor_bias.gxBias,time); - emit valueChanged(uasId,tr("Gy Bias"),sensor_bias.gyBias,time); - emit valueChanged(uasId,tr("Gz Bias"),sensor_bias.gzBias,time); + case MAVLINK_MSG_ID_CPU_LOAD: //170 + mavlink_msg_cpu_load_decode(&message,&mlCpuLoadData); break; - } - case MAVLINK_MSG_ID_DIAGNOSTIC: - { - mavlink_diagnostic_t diagnostic; - quint64 time = getUnixTime(0); - mavlink_msg_diagnostic_decode(&message,&diagnostic); - emit valueChanged(uasId,tr("Diag F1"),diagnostic.diagFl1,time); - emit valueChanged(uasId,tr("Diag F2"),diagnostic.diagFl2,time); - emit valueChanged(uasId,tr("Diag F3"),diagnostic.diagFl3,time); - emit valueChanged(uasId,tr("Diag S1"),diagnostic.diagSh1,time); - emit valueChanged(uasId,tr("Diag S2"),diagnostic.diagSh2,time); - emit valueChanged(uasId,tr("Diag S3"),diagnostic.diagSh3,time); + case MAVLINK_MSG_ID_AIR_DATA: //171 + mavlink_msg_air_data_decode(&message,&mlAirData); break; - } - case MAVLINK_MSG_ID_PILOT_CONSOLE: - { - mavlink_pilot_console_t pilot; - quint64 time = getUnixTime(0); - mavlink_msg_pilot_console_decode(&message,&pilot); - emit valueChanged(uasId,"dt",pilot.dt,time); - emit valueChanged(uasId,"dla",pilot.dla,time); - emit valueChanged(uasId,"dra",pilot.dra,time); - emit valueChanged(uasId,"dr",pilot.dr,time); - emit valueChanged(uasId,"de",pilot.de,time); + case MAVLINK_MSG_ID_SENSOR_BIAS: //172 + mavlink_msg_sensor_bias_decode(&message,&mlSensorBiasData); break; - } - case MAVLINK_MSG_ID_PWM_COMMANDS: - { - mavlink_pwm_commands_t pwm; - quint64 time = getUnixTime(0); - mavlink_msg_pwm_commands_decode(&message,&pwm); - emit valueChanged(uasId,"dt_c",pwm.dt_c,time); - emit valueChanged(uasId,"dla_c",pwm.dla_c,time); - emit valueChanged(uasId,"dra_c",pwm.dra_c,time); - emit valueChanged(uasId,"dr_c",pwm.dr_c,time); - emit valueChanged(uasId,"dle_c",pwm.dle_c,time); - emit valueChanged(uasId,"dre_c",pwm.dre_c,time); - emit valueChanged(uasId,"dlf_c",pwm.dlf_c,time); - emit valueChanged(uasId,"drf_c",pwm.drf_c,time); - emit valueChanged(uasId,"da1_c",pwm.aux1,time); - emit valueChanged(uasId,"da2_c",pwm.aux2,time); + case MAVLINK_MSG_ID_DIAGNOSTIC: //173 + mavlink_msg_diagnostic_decode(&message,&mlDiagnosticData); + break; + case MAVLINK_MSG_ID_PILOT_CONSOLE: //174 + mavlink_msg_pilot_console_decode(&message,&mlPilotConsoleData); break; - } + + case MAVLINK_MSG_ID_PWM_COMMANDS: //175 + mavlink_msg_pwm_commands_decode(&message,&mlPwmCommands); + break; + + case MAVLINK_MSG_ID_SLUGS_NAVIGATION://176 + mavlink_msg_slugs_navigation_decode(&message,&mlNavigation); + break; + + case MAVLINK_MSG_ID_DATA_LOG: //177 + mavlink_msg_data_log_decode(&message,&mlDataLog); + break; + + case MAVLINK_MSG_ID_FILTERED_DATA: //178 + mavlink_msg_filtered_data_decode(&message,&mlFilteredData); + break; + + case MAVLINK_MSG_ID_GPS_DATE_TIME: //179 + mavlink_msg_gps_date_time_decode(&message,&mlGpsDateTime); + break; + + case MAVLINK_MSG_ID_MID_LVL_CMDS: //180 + + break; + + case MAVLINK_MSG_ID_CTRL_SRFC_PT: //181 + + break; + + case MAVLINK_MSG_ID_PID: //182 + memset(&mlSinglePid,0,sizeof(mavlink_pid_t)); + mavlink_msg_pid_decode(&message, &mlSinglePid); + qDebug() << "\nSLUGS RECEIVED PID Message = "< 10? 1: updateRoundRobin + 1; + + +} + +#ifdef MAVLINK_ENABLED_SLUGS +void SlugsMAV::emitGpsSignals (void){ + + qDebug()<<"After Emit GPS Signal"< 0){ + emit globalPositionChanged(this, + mlGpsData.lon, + mlGpsData.lat, + mlGpsData.alt, + 0.0); + + emit slugsGPSCogSog(uasId,mlGpsData.hdg, mlGpsData.v); + +// // Smaller than threshold and not NaN +// if (mlGpsData.v < 1000000 && mlGpsData.v == mlGpsData.v){ +// // emit speedChanged(this, (double)mlGpsData.v, 0.0, 0.0, 0.0); + +// } +// else { +// emit textMessageReceived(uasId, uasId, 255, QString("GCS ERROR: RECEIVED INVALID SPEED OF %1 m/s").arg(mlGpsData.v)); +// } + //} + +} + +void SlugsMAV::emitPidSignal() +{ + qDebug() << "\nSLUGS RECEIVED PID Message"; + emit slugsPidValues(uasId, mlSinglePid); + +} + +#endif // MAVLINK_ENABLED_SLUGS diff --git a/src/uas/SlugsMAV.h b/src/uas/SlugsMAV.h index e62866f3f0a015bf2ad537d41f927defa695bf29..c30996d32369dbb66290b71af97408fac7cd748b 100644 --- a/src/uas/SlugsMAV.h +++ b/src/uas/SlugsMAV.h @@ -25,7 +25,10 @@ This file is part of the QGROUNDCONTROL project #define SLUGSMAV_H #include "UAS.h" +#include "mavlink.h" +#include +#define SLUGS_UPDATE_RATE 100 // in ms class SlugsMAV : public UAS { Q_OBJECT @@ -36,6 +39,91 @@ public: public slots: /** @brief Receive a MAVLink message from this MAV */ void receiveMessage(LinkInterface* link, mavlink_message_t message); + + void emitSignals (void); + + + +signals: + + void slugsRawImu(int uasId, const mavlink_raw_imu_t& rawData); + void slugsGPSCogSog(int uasId, double cog, double sog); + +#ifdef MAVLINK_ENABLED_SLUGS + + void slugsCPULoad(int systemId, const mavlink_cpu_load_t& cpuLoad); + void slugsAirData(int systemId, const mavlink_air_data_t& airData); + void slugsSensorBias(int systemId, const mavlink_sensor_bias_t& sensorBias); + void slugsDiagnostic(int systemId, const mavlink_diagnostic_t& diagnostic); + void slugsPilotConsolePWM(int systemId, const mavlink_pilot_console_t& pilotConsole); + void slugsPWM(int systemId, const mavlink_pwm_commands_t& pwmCommands); + void slugsNavegation(int systemId, const mavlink_slugs_navigation_t& slugsNavigation); + void slugsDataLog(int systemId, const mavlink_data_log_t& dataLog); + void slugsFilteredData(int systemId, const mavlink_filtered_data_t& filteredData); + void slugsGPSDateTime(int systemId, const mavlink_gps_date_time_t& gpsDateTime); + void slugsActionAck(int systemId, const mavlink_action_ack_t& actionAck); + + void slugsPidValues(int systemId, const mavlink_pid_t& pidValues); + + void slugsBootMsg(int uasId, mavlink_boot_t& boot); + void slugsAttitude(int uasId, mavlink_attitude_t& attitude); + + + +#endif + +protected: + + typedef struct _mavlink_pid_values_t { + float P[11]; + float I[11]; + float D[11]; + }mavlink_pid_values_t; + + unsigned char updateRoundRobin; + QTimer* widgetTimer; + + + mavlink_raw_imu_t mlRawImuData; + +#ifdef MAVLINK_ENABLED_SLUGS + mavlink_gps_raw_t mlGpsData; + mavlink_attitude_t mlAttitude; + mavlink_cpu_load_t mlCpuLoadData; + mavlink_air_data_t mlAirData; + mavlink_sensor_bias_t mlSensorBiasData; + mavlink_diagnostic_t mlDiagnosticData; + mavlink_pilot_console_t mlPilotConsoleData; + mavlink_filtered_data_t mlFilteredData; + mavlink_boot_t mlBoot; + mavlink_gps_date_time_t mlGpsDateTime; + mavlink_mid_lvl_cmds_t mlMidLevelCommands; + mavlink_set_mode_t mlApMode; + mavlink_pwm_commands_t mlPwmCommands; + mavlink_pid_values_t mlPidValues; + mavlink_pid_t mlSinglePid; + + mavlink_slugs_navigation_t mlNavigation; + mavlink_data_log_t mlDataLog; + mavlink_ctrl_srfc_pt_t mlPassthrough; + mavlink_action_ack_t mlActionAck; + + mavlink_slugs_action_t mlAction; + + + + + // Standart messages MAVLINK used by SLUGS +private: + + + void emitGpsSignals (void); + void emitPidSignal(void); + + int uasId; + +#endif // if SLUGS + }; #endif // SLUGSMAV_H diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 0ad9e8cfa512978bdce54ef0471d0489cf23c7ff..7fc1a66aebdf09878ee138b03d2015baf272b3d9 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -1,24 +1,4 @@ -/*===================================================================== - -QGroundControl Open Source Ground Control Station - -(c) 2009, 2010 QGROUNDCONTROL PROJECT - -This file is part of the QGROUNDCONTROL project - - QGROUNDCONTROL is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - QGROUNDCONTROL is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with QGROUNDCONTROL. If not, see . - +/*=================================================================== ======================================================================*/ /** @@ -43,43 +23,64 @@ This file is part of the QGROUNDCONTROL project #include "GAudioOutput.h" #include "MAVLinkProtocol.h" #include "QGCMAVLink.h" +#include "LinkManager.h" +#include "SerialLink.h" + +#ifndef M_PI +#define M_PI 3.14159265358979323846 /* pi */ +#endif + +#ifndef M_PI_2 +#define M_PI_2 1.57079632679489661923 /* pi/2 */ +#endif + +#ifndef M_PI_4 +#define M_PI_4 0.78539816339744830962 /* pi/4 */ +#endif + + UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(), - uasId(id), - startTime(MG::TIME::getGroundTimeNow()), - commStatus(COMM_DISCONNECTED), - name(""), - links(new QList()), - unknownPackets(), - mavlink(protocol), - waypointManager(*this), - thrustSum(0), - thrustMax(10), - startVoltage(0), - currentVoltage(12.0f), - lpVoltage(12.0f), - mode(MAV_MODE_UNINIT), - status(MAV_STATE_UNINIT), - onboardTimeOffset(0), - controlRollManual(true), - controlPitchManual(true), - controlYawManual(true), - controlThrustManual(true), - manualRollAngle(0), - manualPitchAngle(0), - manualYawAngle(0), - manualThrust(0), - receiveDropRate(0), - sendDropRate(0), - lowBattAlarm(false), - positionLock(false), - localX(0), - localY(0), - localZ(0), - roll(0), - pitch(0), - yaw(0), - statusTimeout(new QTimer(this)) +uasId(id), +startTime(MG::TIME::getGroundTimeNow()), +commStatus(COMM_DISCONNECTED), +name(""), +autopilot(-1), +links(new QList()), +unknownPackets(), +mavlink(protocol), +waypointManager(*this), +thrustSum(0), +thrustMax(10), +startVoltage(0), +currentVoltage(12.0f), +lpVoltage(12.0f), +mode(MAV_MODE_UNINIT), +status(MAV_STATE_UNINIT), +onboardTimeOffset(0), +controlRollManual(true), +controlPitchManual(true), +controlYawManual(true), +controlThrustManual(true), +manualRollAngle(0), +manualPitchAngle(0), +manualYawAngle(0), +manualThrust(0), +receiveDropRate(0), +sendDropRate(0), +lowBattAlarm(false), +positionLock(false), +localX(0.0), +localY(0.0), +localZ(0.0), +latitude(0.0), +longitude(0.0), +altitude(0.0), +roll(0.0), +pitch(0.0), +yaw(0.0), +statusTimeout(new QTimer(this)), +paramsOnceRequested(false) { color = UASInterface::getNextColor(); setBattery(LIPOLY, 3); @@ -90,6 +91,7 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(), UAS::~UAS() { delete links; + links=NULL; } int UAS::getUASID() const @@ -121,17 +123,18 @@ void UAS::setSelected() void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) { + if (!link) return; if (!links->contains(link)) { addLink(link); -// qDebug() << __FILE__ << __LINE__ << "ADDED LINK!" << link->getName(); + // qDebug() << __FILE__ << __LINE__ << "ADDED LINK!" << link->getName(); } -// else -// { -// qDebug() << __FILE__ << __LINE__ << "DID NOT ADD LINK" << link->getName() << "ALREADY IN LIST"; -// } + // else + // { + // qDebug() << __FILE__ << __LINE__ << "DID NOT ADD LINK" << link->getName() << "ALREADY IN LIST"; + // } -// qDebug() << "UAS RECEIVED from" << message.sysid << "component" << message.compid << "msg id" << message.msgid << "seq no" << message.seq; + // qDebug() << "UAS RECEIVED from" << message.sysid << "component" << message.compid << "msg id" << message.msgid << "seq no" << message.seq; if (message.sysid == uasId) { @@ -146,8 +149,10 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) if (this->type != mavlink_msg_heartbeat_get_type(&message)) { this->type = mavlink_msg_heartbeat_get_type(&message); + this->autopilot = mavlink_msg_heartbeat_get_autopilot(&message); emit systemTypeSet(this, type); } + break; case MAVLINK_MSG_ID_BOOT: getStatusForCode((int)MAV_STATE_BOOT, uasState, stateDescription); @@ -175,6 +180,8 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) getStatusForCode((int)state.status, uasState, stateDescription); emit statusChanged(this, uasState, stateDescription); emit statusChanged(this->status); + emit loadChanged(this,state.load/10.0f); + emit UAS::valueChanged(uasId, "Load", ((float)state.load)/1000.0f, MG::TIME::getGroundTimeNow()); stateAudio = " changed status to " + uasState; } @@ -210,6 +217,9 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) case (uint8_t)MAV_MODE_TEST3: mode = "TEST3 MODE"; break; + case (uint8_t)MAV_MODE_RC_TRAINING: + mode = "RC TRAINING MODE"; + break; default: mode = "UNINIT MODE"; break; @@ -238,7 +248,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) } // COMMUNICATIONS DROP RATE - emit dropRateChanged(this->getUASID(), state.packet_drop); + emit dropRateChanged(this->getUASID(), state.packet_drop/1000.0f); //qDebug() << __FILE__ << __LINE__ << "RCV LOSS: " << state.packet_drop; // AUDIO @@ -272,9 +282,9 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) emit valueChanged(uasId, "Accel. X", raw.xacc, time); emit valueChanged(uasId, "Accel. Y", raw.yacc, time); emit valueChanged(uasId, "Accel. Z", raw.zacc, time); - emit valueChanged(uasId, "Gyro Phi", raw.xgyro, time); - emit valueChanged(uasId, "Gyro Theta", raw.ygyro, time); - emit valueChanged(uasId, "Gyro Psi", raw.zgyro, time); + emit valueChanged(uasId, "Gyro Phi", static_cast(raw.xgyro), time); + emit valueChanged(uasId, "Gyro Theta", static_cast(raw.ygyro), time); + emit valueChanged(uasId, "Gyro Psi", static_cast(raw.zgyro), time); emit valueChanged(uasId, "Mag. X", raw.xmag, time); emit valueChanged(uasId, "Mag. Y", raw.ymag, time); emit valueChanged(uasId, "Mag. Z", raw.zmag, time); @@ -290,15 +300,24 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) roll = attitude.roll; pitch = attitude.pitch; yaw = attitude.yaw; +// emit valueChanged(uasId, "roll IMU", mavlink_msg_attitude_get_roll(&message), time); +// emit valueChanged(uasId, "pitch IMU", mavlink_msg_attitude_get_pitch(&message), time); +// emit valueChanged(uasId, "yaw IMU", mavlink_msg_attitude_get_yaw(&message), time); emit valueChanged(uasId, "roll IMU", mavlink_msg_attitude_get_roll(&message), time); emit valueChanged(uasId, "pitch IMU", mavlink_msg_attitude_get_pitch(&message), time); emit valueChanged(uasId, "yaw IMU", mavlink_msg_attitude_get_yaw(&message), time); - emit valueChanged(this, "roll IMU", mavlink_msg_attitude_get_roll(&message), time); - emit valueChanged(this, "pitch IMU", mavlink_msg_attitude_get_pitch(&message), time); - emit valueChanged(this, "yaw IMU", mavlink_msg_attitude_get_yaw(&message), time); emit valueChanged(uasId, "rollspeed IMU", attitude.rollspeed, time); emit valueChanged(uasId, "pitchspeed IMU", attitude.pitchspeed, time); emit valueChanged(uasId, "yawspeed IMU", attitude.yawspeed, time); + + // Emit in angles + emit valueChanged(uasId, "roll (deg)", (attitude.roll/M_PI)*180.0, time); + emit valueChanged(uasId, "pitch (deg)", (attitude.pitch/M_PI)*180.0, time); + emit valueChanged(uasId, "yaw (deg)", (attitude.yaw/M_PI)*180.0, time); + emit valueChanged(uasId, "roll V (deg/s)", (attitude.rollspeed/M_PI)*180.0, time); + emit valueChanged(uasId, "pitch V (deg/s)", (attitude.pitchspeed/M_PI)*180.0, time); + emit valueChanged(uasId, "yaw V (deg/s)", (attitude.yawspeed/M_PI)*180.0, time); + emit attitudeChanged(this, mavlink_msg_attitude_get_roll(&message), mavlink_msg_attitude_get_pitch(&message), mavlink_msg_attitude_get_yaw(&message), time); } break; @@ -320,6 +339,10 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) emit valueChanged(uasId, "Vz", pos.vz, time); emit localPositionChanged(this, pos.x, pos.y, pos.z, time); emit speedChanged(this, pos.vx, pos.vy, pos.vz, time); + + // qDebug()<<"Local Position = "<notifyPositive(); } positionLock = true; + //TODO fix this hack for forwarding of global position for patch antenna tracking + forwardMessage(message); } break; case MAVLINK_MSG_ID_GPS_RAW: @@ -363,7 +394,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) // SANITY CHECK // only accept values in a realistic range - // quint64 time = getUnixTime(pos.usec); + // quint64 time = getUnixTime(pos.usec); quint64 time = MG::TIME::getGroundTimeNow(); emit valueChanged(uasId, "lat", pos.lat, time); @@ -405,48 +436,73 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) } } break; - case MAVLINK_MSG_ID_RC_CHANNELS: + case MAVLINK_MSG_ID_GPS_LOCAL_ORIGIN_SET: + { + mavlink_gps_local_origin_set_t pos; + mavlink_msg_gps_local_origin_set_decode(&message, &pos); + // FIXME Emit to other components + } + break; + case MAVLINK_MSG_ID_RAW_PRESSURE: { - mavlink_rc_channels_t channels; - mavlink_msg_rc_channels_decode(&message, &channels); + mavlink_raw_pressure_t pressure; + mavlink_msg_raw_pressure_decode(&message, &pressure); + emit valueChanged(uasId, "Abs pressure", pressure.press_abs, this->getUnixTime(0)); + emit valueChanged(uasId, "Diff pressure 1", pressure.press_diff1, this->getUnixTime(0)); + emit valueChanged(uasId, "Diff pressure 2", pressure.press_diff2, this->getUnixTime(0)); + } + break; + case MAVLINK_MSG_ID_RC_CHANNELS_RAW: + { + mavlink_rc_channels_raw_t channels; + mavlink_msg_rc_channels_raw_decode(&message, &channels); emit remoteControlRSSIChanged(channels.rssi/255.0f); - for (int i = 0; i < 8; i++) - { - switch (i) - { - case 0: - emit remoteControlChannelChanged(i, channels.chan1_raw, channels.chan1_255/255.0f); - break; - case 1: - emit remoteControlChannelChanged(i, channels.chan2_raw, channels.chan2_255/255.0f); - break; - case 2: - emit remoteControlChannelChanged(i, channels.chan3_raw, channels.chan3_255/255.0f); - break; - case 3: - emit remoteControlChannelChanged(i, channels.chan4_raw, channels.chan4_255/255.0f); - break; - case 4: - emit remoteControlChannelChanged(i, channels.chan5_raw, channels.chan5_255/255.0f); - break; - case 5: - emit remoteControlChannelChanged(i, channels.chan6_raw, channels.chan6_255/255.0f); - break; - case 6: - emit remoteControlChannelChanged(i, channels.chan7_raw, channels.chan7_255/255.0f); - break; - case 7: - emit remoteControlChannelChanged(i, channels.chan8_raw, channels.chan8_255/255.0f); - break; - } - } + emit remoteControlChannelRawChanged(0, channels.chan1_raw); + emit remoteControlChannelRawChanged(1, channels.chan2_raw); + emit remoteControlChannelRawChanged(2, channels.chan3_raw); + emit remoteControlChannelRawChanged(3, channels.chan4_raw); + emit remoteControlChannelRawChanged(4, channels.chan5_raw); + emit remoteControlChannelRawChanged(5, channels.chan6_raw); + emit remoteControlChannelRawChanged(6, channels.chan7_raw); + emit remoteControlChannelRawChanged(7, channels.chan8_raw); + } + break; + case MAVLINK_MSG_ID_RC_CHANNELS_SCALED: + { + mavlink_rc_channels_scaled_t channels; + mavlink_msg_rc_channels_scaled_decode(&message, &channels); + emit remoteControlRSSIChanged(channels.rssi/255.0f); + emit remoteControlChannelScaledChanged(0, channels.chan1_scaled/10000.0f); + emit remoteControlChannelScaledChanged(1, channels.chan2_scaled/10000.0f); + emit remoteControlChannelScaledChanged(2, channels.chan3_scaled/10000.0f); + emit remoteControlChannelScaledChanged(3, channels.chan4_scaled/10000.0f); + emit remoteControlChannelScaledChanged(4, channels.chan5_scaled/10000.0f); + emit remoteControlChannelScaledChanged(5, channels.chan6_scaled/10000.0f); + emit remoteControlChannelScaledChanged(6, channels.chan7_scaled/10000.0f); + emit remoteControlChannelScaledChanged(7, channels.chan8_scaled/10000.0f); } break; case MAVLINK_MSG_ID_PARAM_VALUE: { mavlink_param_value_t value; mavlink_msg_param_value_decode(&message, &value); - emit parameterChanged(uasId, message.compid, QString((char*)value.param_id), value.param_value); + + QString parameterName = QString((char*)value.param_id); + int component = message.compid; + float val = value.param_value; + + // Insert component if necessary + if (!parameters.contains(component)) + { + parameters.insert(component, new QMap()); + } + + // Insert parameter into registry + if (parameters.value(component)->contains(parameterName)) parameters.value(component)->remove(parameterName); + parameters.value(component)->insert(parameterName, val); + + // Emit change + emit parameterChanged(uasId, message.compid, parameterName, val); } break; case MAVLINK_MSG_ID_DEBUG: @@ -556,6 +612,33 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) emit textMessageReceived(uasId, message.compid, severity, text); } break; + case MAVLINK_MSG_ID_DEBUG_VECT: + { + mavlink_debug_vect_t vect; + mavlink_msg_debug_vect_decode(&message, &vect); + QString str((const char*)vect.name); + quint64 time = getUnixTime(vect.usec); + emit valueChanged(uasId, str+".x", vect.x, time); + emit valueChanged(uasId, str+".y", vect.y, time); + emit valueChanged(uasId, str+".z", vect.z, time); + } + break; + //#ifdef MAVLINK_ENABLED_PIXHAWK + // case MAVLINK_MSG_ID_POINT_OF_INTEREST: + // { + // mavlink_point_of_interest_t poi; + // mavlink_msg_point_of_interest_decode(&message, &poi); + // emit poiFound(this, poi.type, poi.color, QString((QChar*)poi.name, MAVLINK_MSG_POINT_OF_INTEREST_FIELD_NAME_LEN), poi.x, poi.y, poi.z); + // } + // break; + // case MAVLINK_MSG_ID_POINT_OF_INTEREST_CONNECTION: + // { + // mavlink_point_of_interest_connection_t poi; + // mavlink_msg_point_of_interest_connection_decode(&message, &poi); + // emit poiConnectionFound(this, poi.type, poi.color, QString((QChar*)poi.name, MAVLINK_MSG_POINT_OF_INTEREST_CONNECTION_FIELD_NAME_LEN), poi.x1, poi.y1, poi.z1, poi.x2, poi.y2, poi.z2); + // } + // break; + //#endif #ifdef MAVLINK_ENABLED_UALBERTA case MAVLINK_MSG_ID_NAV_FILTER_BIAS: { @@ -594,12 +677,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) for (int i=0; i radioData = new RadioCalibrationData(aileron, - elevator, - rudder, - gyro, - pitch, - throttle); + QPointer radioData = new RadioCalibrationData(aileron, elevator, rudder, gyro, pitch, throttle); emit radioCalibrationReceived(radioData); delete radioData; } @@ -621,50 +699,90 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) } } +void UAS::setLocalOriginAtCurrentGPSPosition() +{ + + bool result = false; + QMessageBox msgBox; + msgBox.setIcon(QMessageBox::Warning); + msgBox.setText("Setting new World Coordinate Frame Origin"); + msgBox.setInformativeText("Do you want to set a new origin? Waypoints defined in the local frame will be shifted in their physical location"); + msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel); + msgBox.setDefaultButton(QMessageBox::Cancel); + int ret = msgBox.exec(); + + // Close the message box shortly after the click to prevent accidental clicks + QTimer::singleShot(5000, &msgBox, SLOT(reject())); + + + if (ret == QMessageBox::Yes) + { + mavlink_message_t msg; + mavlink_msg_action_pack(mavlink->getSystemId(), mavlink->getSystemId(), &msg, this->getUASID(), 0, MAV_ACTION_SET_ORIGIN); + // Send message twice to increase chance that it reaches its goal + sendMessage(msg); + // Wait 5 ms + MG::SLEEP::usleep(5000); + // Send again + sendMessage(msg); + result = true; + } +} + void UAS::setLocalPositionSetpoint(float x, float y, float z, float yaw) { - #ifdef MAVLINK_ENABLED_PIXHAWK +#ifdef MAVLINK_ENABLED_PIXHAWK mavlink_message_t msg; mavlink_msg_position_control_setpoint_set_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, 0, 0, x, y, z, yaw); sendMessage(msg); - #endif +#else + Q_UNUSED(x); + Q_UNUSED(y); + Q_UNUSED(z); + Q_UNUSED(yaw); +#endif } void UAS::setLocalPositionOffset(float x, float y, float z, float yaw) { #ifdef MAVLINK_ENABLED_PIXHAWK - mavlink_message_t msg; - mavlink_msg_position_control_offset_set_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, 0, x, y, z, yaw); - sendMessage(msg); + mavlink_message_t msg; + mavlink_msg_position_control_offset_set_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, 0, x, y, z, yaw); + sendMessage(msg); +#else + Q_UNUSED(x); + Q_UNUSED(y); + Q_UNUSED(z); + Q_UNUSED(yaw); #endif } void UAS::startRadioControlCalibration() { - mavlink_message_t msg; - mavlink_msg_action_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, MAV_COMP_ID_IMU, MAV_ACTION_CALIBRATE_RC); - sendMessage(msg); + mavlink_message_t msg; + mavlink_msg_action_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, MAV_COMP_ID_IMU, MAV_ACTION_CALIBRATE_RC); + sendMessage(msg); } void UAS::startDataRecording() { - mavlink_message_t msg; - mavlink_msg_action_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, MAV_COMP_ID_IMU, MAV_ACTION_REC_START); - sendMessage(msg); + mavlink_message_t msg; + mavlink_msg_action_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, MAV_COMP_ID_IMU, MAV_ACTION_REC_START); + sendMessage(msg); } void UAS::pauseDataRecording() { - mavlink_message_t msg; - mavlink_msg_action_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, MAV_COMP_ID_IMU, MAV_ACTION_REC_PAUSE); - sendMessage(msg); + mavlink_message_t msg; + mavlink_msg_action_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, MAV_COMP_ID_IMU, MAV_ACTION_REC_PAUSE); + sendMessage(msg); } void UAS::stopDataRecording() { - mavlink_message_t msg; - mavlink_msg_action_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, MAV_COMP_ID_IMU, MAV_ACTION_REC_STOP); - sendMessage(msg); + mavlink_message_t msg; + mavlink_msg_action_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, MAV_COMP_ID_IMU, MAV_ACTION_REC_STOP); + sendMessage(msg); } void UAS::startMagnetometerCalibration() @@ -710,8 +828,12 @@ quint64 UAS::getUnixTime(quint64 time) // 60 seconds // 1000 milliseconds // 1000 microseconds +#ifndef _MSC_VER else if (time < 1261440000000000LLU) - { +#else + else if (time < 1261440000000000) +#endif + { if (onboardTimeOffset == 0) { onboardTimeOffset = MG::TIME::getGroundTimeNow() - time/1000; @@ -726,9 +848,26 @@ quint64 UAS::getUnixTime(quint64 time) } } +QList UAS::getParameterNames(int component) +{ + if (parameters.contains(component)) + { + return parameters.value(component)->keys(); + } + else + { + return QList(); + } +} + +QList UAS::getComponentIds() +{ + return parameters.keys(); +} + void UAS::setMode(int mode) { - if ((uint8_t)mode >= MAV_MODE_LOCKED && (uint8_t)mode <= MAV_MODE_TEST3) + if ((uint8_t)mode >= MAV_MODE_LOCKED && (uint8_t)mode <= MAV_MODE_RC_TRAINING) { mavlink_message_t msg; mavlink_msg_set_mode_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, (uint8_t)uasId, (uint8_t)mode); @@ -747,12 +886,36 @@ void UAS::sendMessage(mavlink_message_t message) } } +void UAS::forwardMessage(mavlink_message_t message) +{ + // Emit message on all links that are currently connected + QListlink_list = LinkManager::instance()->getLinksForProtocol(mavlink); + foreach(LinkInterface* link, link_list) + { + SerialLink* serial = dynamic_cast(link); + if(serial != 0) + { + + for(int i=0;isize();i++) + { + if(serial != links->at(i)) + { + qDebug()<<"Forwarding Over link: "<getName()<<" "<getSystemId(), mavlink->getComponentId(), link->getId(), message.len); // If link is connected if (link->isConnected()) { @@ -860,20 +1023,21 @@ void UAS::readParametersFromStorage() sendMessage(msg); } -void UAS::enableAllDataTransmission(bool enabled) +void UAS::enableAllDataTransmission(int rate) { -#ifdef MAVLINK_ENABLED_PIXHAWK // Buffers to write data to mavlink_message_t msg; mavlink_request_data_stream_t stream; // Select the message to request from now on // 0 is a magic ID and will enable/disable the standard message set except for heartbeat - stream.req_stream_id = 0; + stream.req_stream_id = MAV_DATA_STREAM_ALL; // Select the update rate in Hz the message should be send // All messages will be send with their default rate + // TODO: use 0 to turn off and get rid of enable/disable? will require + // a different magic flag for turning on defaults, possibly something really high like 1111 ? stream.req_message_rate = 0; // Start / stop the message - stream.start_stop = (enabled) ? 1 : 0; + stream.start_stop = (rate) ? 1 : 0; // The system which should take this command stream.target_system = uasId; // The component / subsystem which should take this command @@ -883,21 +1047,19 @@ void UAS::enableAllDataTransmission(bool enabled) // Send message twice to increase chance of reception sendMessage(msg); sendMessage(msg); -#endif } -void UAS::enableRawSensorDataTransmission(bool enabled) +void UAS::enableRawSensorDataTransmission(int rate) { -#ifdef MAVLINK_ENABLED_PIXHAWK // Buffers to write data to mavlink_message_t msg; mavlink_request_data_stream_t stream; // Select the message to request from now on - stream.req_stream_id = 1; + stream.req_stream_id = MAV_DATA_STREAM_RAW_SENSORS; // Select the update rate in Hz the message should be send - stream.req_message_rate = 200; + stream.req_message_rate = rate; // Start / stop the message - stream.start_stop = (enabled) ? 1 : 0; + stream.start_stop = (rate) ? 1 : 0; // The system which should take this command stream.target_system = uasId; // The component / subsystem which should take this command @@ -907,21 +1069,19 @@ void UAS::enableRawSensorDataTransmission(bool enabled) // Send message twice to increase chance of reception sendMessage(msg); sendMessage(msg); -#endif } -void UAS::enableExtendedSystemStatusTransmission(bool enabled) +void UAS::enableExtendedSystemStatusTransmission(int rate) { -#ifdef MAVLINK_ENABLED_PIXHAWK // Buffers to write data to mavlink_message_t msg; mavlink_request_data_stream_t stream; // Select the message to request from now on - stream.req_stream_id = 2; + stream.req_stream_id = MAV_DATA_STREAM_EXTENDED_STATUS; // Select the update rate in Hz the message should be send - stream.req_message_rate = 10; + stream.req_message_rate = rate; // Start / stop the message - stream.start_stop = (enabled) ? 1 : 0; + stream.start_stop = (rate) ? 1 : 0; // The system which should take this command stream.target_system = uasId; // The component / subsystem which should take this command @@ -931,21 +1091,23 @@ void UAS::enableExtendedSystemStatusTransmission(bool enabled) // Send message twice to increase chance of reception sendMessage(msg); sendMessage(msg); -#endif } -void UAS::enableRCChannelDataTransmission(bool enabled) +void UAS::enableRCChannelDataTransmission(int rate) { -#ifdef MAVLINK_ENABLED_PIXHAWK - // Buffers to write data to +#if defined(MAVLINK_ENABLED_UALBERTA_MESSAGES) + mavlink_message_t msg; + mavlink_msg_request_rc_channels_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, enabled); + sendMessage(msg); +#else mavlink_message_t msg; mavlink_request_data_stream_t stream; // Select the message to request from now on - stream.req_stream_id = 3; + stream.req_stream_id = MAV_DATA_STREAM_RC_CHANNELS; // Select the update rate in Hz the message should be send - stream.req_message_rate = 200; + stream.req_message_rate = rate; // Start / stop the message - stream.start_stop = (enabled) ? 1 : 0; + stream.start_stop = (rate) ? 1 : 0; // The system which should take this command stream.target_system = uasId; // The component / subsystem which should take this command @@ -958,18 +1120,17 @@ void UAS::enableRCChannelDataTransmission(bool enabled) #endif } -void UAS::enableRawControllerDataTransmission(bool enabled) +void UAS::enableRawControllerDataTransmission(int rate) { -#ifdef MAVLINK_ENABLED_PIXHAWK // Buffers to write data to mavlink_message_t msg; mavlink_request_data_stream_t stream; // Select the message to request from now on - stream.req_stream_id = 4; + stream.req_stream_id = MAV_DATA_STREAM_RAW_CONTROLLER; // Select the update rate in Hz the message should be send - stream.req_message_rate = 200; + stream.req_message_rate = rate; // Start / stop the message - stream.start_stop = (enabled) ? 1 : 0; + stream.start_stop = (rate) ? 1 : 0; // The system which should take this command stream.target_system = uasId; // The component / subsystem which should take this command @@ -979,21 +1140,19 @@ void UAS::enableRawControllerDataTransmission(bool enabled) // Send message twice to increase chance of reception sendMessage(msg); sendMessage(msg); -#endif } -void UAS::enableRawSensorFusionTransmission(bool enabled) +void UAS::enableRawSensorFusionTransmission(int rate) { -#ifdef MAVLINK_ENABLED_PIXHAWK // Buffers to write data to mavlink_message_t msg; mavlink_request_data_stream_t stream; // Select the message to request from now on - stream.req_stream_id = 5; + stream.req_stream_id = MAV_DATA_STREAM_RAW_SENSOR_FUSION; // Select the update rate in Hz the message should be send - stream.req_message_rate = 200; + stream.req_message_rate = rate; // Start / stop the message - stream.start_stop = (enabled) ? 1 : 0; + stream.start_stop = (rate) ? 1 : 0; // The system which should take this command stream.target_system = uasId; // The component / subsystem which should take this command @@ -1003,21 +1162,19 @@ void UAS::enableRawSensorFusionTransmission(bool enabled) // Send message twice to increase chance of reception sendMessage(msg); sendMessage(msg); -#endif } -void UAS::enablePositionTransmission(bool enabled) +void UAS::enablePositionTransmission(int rate) { -#ifdef MAVLINK_ENABLED_PIXHAWK // Buffers to write data to mavlink_message_t msg; mavlink_request_data_stream_t stream; // Select the message to request from now on - stream.req_stream_id = 6; + stream.req_stream_id = MAV_DATA_STREAM_POSITION; // Select the update rate in Hz the message should be send - stream.req_message_rate = 200; + stream.req_message_rate = rate; // Start / stop the message - stream.start_stop = (enabled) ? 1 : 0; + stream.start_stop = (rate) ? 1 : 0; // The system which should take this command stream.target_system = uasId; // The component / subsystem which should take this command @@ -1027,21 +1184,19 @@ void UAS::enablePositionTransmission(bool enabled) // Send message twice to increase chance of reception sendMessage(msg); sendMessage(msg); -#endif } -void UAS::enableExtra1Transmission(bool enabled) +void UAS::enableExtra1Transmission(int rate) { - #ifdef MAVLINK_ENABLED_PIXHAWK // Buffers to write data to mavlink_message_t msg; mavlink_request_data_stream_t stream; // Select the message to request from now on - stream.req_stream_id = 7; + stream.req_stream_id = MAV_DATA_STREAM_EXTRA1; // Select the update rate in Hz the message should be send - stream.req_message_rate = 200; + stream.req_message_rate = rate; // Start / stop the message - stream.start_stop = (enabled) ? 1 : 0; + stream.start_stop = (rate) ? 1 : 0; // The system which should take this command stream.target_system = uasId; // The component / subsystem which should take this command @@ -1051,21 +1206,19 @@ void UAS::enableExtra1Transmission(bool enabled) // Send message twice to increase chance of reception sendMessage(msg); sendMessage(msg); -#endif } -void UAS::enableExtra2Transmission(bool enabled) +void UAS::enableExtra2Transmission(int rate) { - #ifdef MAVLINK_ENABLED_PIXHAWK // Buffers to write data to mavlink_message_t msg; mavlink_request_data_stream_t stream; // Select the message to request from now on - stream.req_stream_id = 8; + stream.req_stream_id = MAV_DATA_STREAM_EXTRA2; // Select the update rate in Hz the message should be send - stream.req_message_rate = 200; + stream.req_message_rate = rate; // Start / stop the message - stream.start_stop = (enabled) ? 1 : 0; + stream.start_stop = (rate) ? 1 : 0; // The system which should take this command stream.target_system = uasId; // The component / subsystem which should take this command @@ -1075,21 +1228,19 @@ void UAS::enableExtra2Transmission(bool enabled) // Send message twice to increase chance of reception sendMessage(msg); sendMessage(msg); -#endif } -void UAS::enableExtra3Transmission(bool enabled) +void UAS::enableExtra3Transmission(int rate) { - #ifdef MAVLINK_ENABLED_PIXHAWK // Buffers to write data to mavlink_message_t msg; mavlink_request_data_stream_t stream; // Select the message to request from now on - stream.req_stream_id = 9; + stream.req_stream_id = MAV_DATA_STREAM_EXTRA3; // Select the update rate in Hz the message should be send - stream.req_message_rate = 200; + stream.req_message_rate = rate; // Start / stop the message - stream.start_stop = (enabled) ? 1 : 0; + stream.start_stop = (rate) ? 1 : 0; // The system which should take this command stream.target_system = uasId; // The component / subsystem which should take this command @@ -1099,7 +1250,6 @@ void UAS::enableExtra3Transmission(bool enabled) // Send message twice to increase chance of reception sendMessage(msg); sendMessage(msg); -#endif } /** @@ -1194,17 +1344,15 @@ void UAS::setManualControlCommands(double roll, double pitch, double yaw, double manualYawAngle = yaw * yawScaling; manualThrust = thrust * thrustScaling; -// if(mode == (int)MAV_MODE_MANUAL) -// { - #ifdef MAVLINK_ENABLED_PIXHAWK - mavlink_message_t message; - mavlink_msg_manual_control_pack(MG::SYSTEM::ID, MG::SYSTEM::COMPID, &message, this->uasId, (float)manualRollAngle, (float)manualPitchAngle, (float)manualYawAngle, (float)manualThrust, controlRollManual, controlPitchManual, controlYawManual, controlThrustManual); - sendMessage(message); - //qDebug() << __FILE__ << __LINE__ << ": SENT MANUAL CONTROL MESSAGE: roll" << manualRollAngle << " pitch: " << manualPitchAngle << " yaw: " << manualYawAngle << " thrust: " << manualThrust; + // if(mode == (int)MAV_MODE_MANUAL) + // { + mavlink_message_t message; + mavlink_msg_manual_control_pack(MG::SYSTEM::ID, MG::SYSTEM::COMPID, &message, this->uasId, (float)manualRollAngle, (float)manualPitchAngle, (float)manualYawAngle, (float)manualThrust, controlRollManual, controlPitchManual, controlYawManual, controlThrustManual); + sendMessage(message); + qDebug() << __FILE__ << __LINE__ << ": SENT MANUAL CONTROL MESSAGE: roll" << manualRollAngle << " pitch: " << manualPitchAngle << " yaw: " << manualYawAngle << " thrust: " << manualThrust; - emit attitudeThrustSetPointChanged(this, roll, pitch, yaw, thrust, MG::TIME::getGroundTimeNow()); - #endif -// } + emit attitudeThrustSetPointChanged(this, roll, pitch, yaw, thrust, MG::TIME::getGroundTimeNow()); + // } } int UAS::getSystemType() @@ -1226,7 +1374,7 @@ void UAS::receiveButton(int buttonIndex) break; } -// qDebug() << __FILE__ << __LINE__ << ": Received button clicked signal (button # is: " << buttonIndex << "), UNIMPLEMENTED IN MAVLINK!"; + // qDebug() << __FILE__ << __LINE__ << ": Received button clicked signal (button # is: " << buttonIndex << "), UNIMPLEMENTED IN MAVLINK!"; } @@ -1432,7 +1580,7 @@ void UAS::addLink(LinkInterface* link) links->append(link); } //links->append(link); - //qDebug() << " ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK"; + //qDebug() << link<<" ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK ADDED LINK"; } /** diff --git a/src/uas/UAS.h b/src/uas/UAS.h index 9c2ef9a3beeef15b7155fe12537d291bd0c9dbd8..d246b6772a0cd166e6ecef4276edc96cb9cb71d5 100644 --- a/src/uas/UAS.h +++ b/src/uas/UAS.h @@ -79,22 +79,26 @@ public: /** @brief Get the links associated with this robot */ QList* getLinks(); - double getLocalX() const { return localX; }; - double getLocalY() const { return localY; }; - double getLocalZ() const { return localZ; }; + double getLocalX() const { return localX; } + double getLocalY() const { return localY; } + double getLocalZ() const { return localZ; } + double getLatitude() const { return latitude; } + double getLongitude() const { return longitude; } + double getAltitude() const { return altitude; } - double getRoll() const { return roll; }; - double getPitch() const { return pitch; }; - double getYaw() const { return yaw; }; + double getRoll() const { return roll; } + double getPitch() const { return pitch; } + double getYaw() const { return yaw; } friend class UASWaypointManager; protected: int uasId; ///< Unique system ID - int type; ///< UAS type (from type enum) + unsigned char type; ///< UAS type (from type enum) quint64 startTime; ///< The time the UAS was switched on CommStatus commStatus; ///< Communication status QString name; ///< Human-friendly name of the vehicle, e.g. bravo + int autopilot; ///< Type of the Autopilot: -1: None, 0: Generic, 1: PIXHAWK, 2: SLUGS, 3: Ardupilot (up to 15 types), defined in MAV_AUTOPILOT_TYPE ENUM QList* links; ///< List of links this UAS can be reached by QList unknownPackets; ///< Packet IDs which are unknown and have been received MAVLinkProtocol* mavlink; ///< Reference to the MAVLink instance @@ -139,10 +143,18 @@ protected: double localX; double localY; double localZ; + double latitude; + double longitude; + double altitude; + double speedX; ///< True speed in X axis + double speedY; ///< True speed in Y axis + double speedZ; ///< True speed in Z axis double roll; double pitch; double yaw; QTimer* statusTimeout; ///< Timer for various status timeouts + QMap* > parameters; ///< All parameters + bool paramsOnceRequested; ///< If the parameter list has been read at least once /** @brief Set the current battery type */ void setBattery(BatteryType type, int cells); @@ -158,6 +170,8 @@ protected: public: UASWaypointManager &getWaypointManager(void) { return waypointManager; } int getSystemType(); + int getAutopilotType() {return autopilot;} + void setAutopilotType(int apType) { autopilot = apType;} public slots: /** @brief Launches the system **/ @@ -187,7 +201,7 @@ public slots: //void requestWaypoints(); FIXME tbd //void clearWaypointList(); FIXME tbd - void requestParameters(); + /** @brief Enable the motors */ void enable_motors(); /** @brief Disable the motors */ @@ -202,19 +216,25 @@ public slots: void addLink(LinkInterface* link); /** @brief Receive a message from one of the communication links. */ - void receiveMessage(LinkInterface* link, mavlink_message_t message); + virtual void receiveMessage(LinkInterface* link, mavlink_message_t message); /** @brief Send a message over this link (to this or to all UAS on this link) */ void sendMessage(LinkInterface* link, mavlink_message_t message); /** @brief Send a message over all links this UAS can be reached with (!= all links) */ void sendMessage(mavlink_message_t message); + /** @brief Temporary Hack for sending packets to patch Antenna. Send a message over all serial links except for this UAS's */ + void forwardMessage(mavlink_message_t message); + /** @brief Set this UAS as the system currently in focus, e.g. in the main display widgets */ void setSelected(); /** @brief Set current mode of operation, e.g. auto or manual */ void setMode(int mode); + /** @brief Request all parameters */ + void requestParameters(); + /** @brief Set a system parameter */ void setParameter(int component, QString id, float value); @@ -223,20 +243,28 @@ public slots: /** @brief Read parameters from permanent storage */ void readParametersFromStorage(); - void enableAllDataTransmission(bool enabled); - void enableRawSensorDataTransmission(bool enabled); - void enableExtendedSystemStatusTransmission(bool enabled); - void enableRCChannelDataTransmission(bool enabled); - void enableRawControllerDataTransmission(bool enabled); - void enableRawSensorFusionTransmission(bool enabled); - void enablePositionTransmission(bool enabled); - void enableExtra1Transmission(bool enabled); - void enableExtra2Transmission(bool enabled); - void enableExtra3Transmission(bool enabled); + /** @brief Get the names of all parameters */ + QList getParameterNames(int component); + + /** @brief Get the ids of all components */ + QList getComponentIds(); + + void enableAllDataTransmission(int rate); + void enableRawSensorDataTransmission(int rate); + void enableExtendedSystemStatusTransmission(int rate); + void enableRCChannelDataTransmission(int rate); + void enableRawControllerDataTransmission(int rate); + void enableRawSensorFusionTransmission(int rate); + void enablePositionTransmission(int rate); + void enableExtra1Transmission(int rate); + void enableExtra2Transmission(int rate); + void enableExtra3Transmission(int rate); /** @brief Update the system state */ void updateState(); + /** @brief Set world frame origin at current GPS position */ + void setLocalOriginAtCurrentGPSPosition(); /** @brief Set local position setpoint */ void setLocalPositionSetpoint(float x, float y, float z, float yaw); /** @brief Add an offset in body frame to the setpoint */ diff --git a/src/uas/UASInterface.h b/src/uas/UASInterface.h index 7141405745ff0628a3d6e99e9a9ee30968c4cee0..ae577205ef6297cc118fcbb01f9a561cf146d475 100644 --- a/src/uas/UASInterface.h +++ b/src/uas/UASInterface.h @@ -70,6 +70,10 @@ public: virtual double getLocalY() const = 0; virtual double getLocalZ() const = 0; + virtual double getLatitude() const = 0; + virtual double getLongitude() const = 0; + virtual double getAltitude() const = 0; + virtual double getRoll() const = 0; virtual double getPitch() const = 0; virtual double getYaw() const = 0; @@ -122,6 +126,7 @@ public: ///> Map will start from beginning when the first 20 colors are exceeded colors.append(QColor(231,72,28)); + colors.append(QColor(104,64,240)); colors.append(QColor(203,254,121)); colors.append(QColor(161,252,116)); colors.append(QColor(232,33,47)); @@ -136,11 +141,10 @@ public: colors.append(QColor(87,231,246)); colors.append(QColor(151,59,239)); colors.append(QColor(81,183,244)); - colors.append(QColor(104,64,240)); colors.append(QColor(75,133,243)); colors.append(QColor(242,255,128)); colors.append(QColor(230,126,23)); - nextColor++; + nextColor = 0; } return colors[nextColor++]; } @@ -153,6 +157,9 @@ public: return color; } + virtual int getAutopilotType() = 0; + virtual void setAutopilotType(int apType)= 0; + public slots: /** @brief Launches the system/Liftof **/ @@ -190,6 +197,8 @@ public slots: //virtual void requestWaypoints() = 0; /** @brief Clear all existing waypoints on the robot */ //virtual void clearWaypointList() = 0; + /** @brief Set world frame origin at current GPS position */ + virtual void setLocalOriginAtCurrentGPSPosition() = 0; /** @brief Request all onboard parameters of all components */ virtual void requestParameters() = 0; /** @brief Write parameter to permanent storage */ @@ -220,12 +229,12 @@ public slots: */ virtual void setSelected() = 0; - virtual void enableAllDataTransmission(bool enabled) = 0; - virtual void enableRawSensorDataTransmission(bool enabled) = 0; - virtual void enableExtendedSystemStatusTransmission(bool enabled) = 0; - virtual void enableRCChannelDataTransmission(bool enabled) = 0; - virtual void enableRawControllerDataTransmission(bool enabled) = 0; - virtual void enableRawSensorFusionTransmission(bool enabled) = 0; + virtual void enableAllDataTransmission(int rate) = 0; + virtual void enableRawSensorDataTransmission(int rate) = 0; + virtual void enableExtendedSystemStatusTransmission(int rate) = 0; + virtual void enableRCChannelDataTransmission(int rate) = 0; + virtual void enableRawControllerDataTransmission(int rate) = 0; + virtual void enableRawSensorFusionTransmission(int rate) = 0; virtual void setLocalPositionSetpoint(float x, float y, float z, float yaw) = 0; virtual void setLocalPositionOffset(float x, float y, float z, float yaw) = 0; @@ -235,6 +244,8 @@ public slots: virtual void startGyroscopeCalibration() = 0; virtual void startPressureCalibration() = 0; + + protected: QColor color; @@ -258,6 +269,10 @@ signals: * @param text the status text * @param severity The severity of the message, 0 for plain debug messages, 10 for very critical messages */ + + void poiFound(UASInterface* uas, int type, int colorIndex, QString message, float x, float y, float z); + void poiConnectionFound(UASInterface* uas, int type, int colorIndex, QString message, float x1, float y1, float z1, float x2, float y2, float z2); + void textMessageReceived(int uasid, int componentid, int severity, QString text); /** * @brief Update the error count of a device @@ -352,8 +367,10 @@ signals: void positionZControlEnabled(bool enabled); /** @brief Heading control enabled/disabled */ void positionYawControlEnabled(bool enabled); - /** @brief Value of a remote control channel */ - void remoteControlChannelChanged(int channelId, float raw, float normalized); + /** @brief Value of a remote control channel (raw) */ + void remoteControlChannelRawChanged(int channelId, float raw); + /** @brief Value of a remote control channel (scaled)*/ + void remoteControlChannelScaledChanged(int channelId, float normalized); /** @brief Remote control RSSI changed */ void remoteControlRSSIChanged(float rssi); /** @brief Radio Calibration Data has been received from the MAV*/ @@ -379,6 +396,11 @@ signals: * @param fix 0: No IR/Ultrasound sensor, N > 0: Found N active sensors */ void irUltraSoundLocalizationChanged(UASInterface* uas, int fix); + + + + + }; Q_DECLARE_INTERFACE(UASInterface, "org.qgroundcontrol/1.0"); diff --git a/src/uas/UASManager.cc b/src/uas/UASManager.cc index bba66dda702204e6c166734d75a54b22bd9cc618..37f02e79c827e0ae10f3af57a2c21583a82ac4b2 100644 --- a/src/uas/UASManager.cc +++ b/src/uas/UASManager.cc @@ -71,6 +71,18 @@ void UASManager::run() void UASManager::addUAS(UASInterface* uas) { + // WARNING: The active uas is set here + // and then announced below. This is necessary + // to make sure the getActiveUAS() function + // returns the UAS once the UASCreated() signal + // is emitted. The code is thus NOT redundant. + bool firstUAS = false; + if (activeUAS == NULL) + { + firstUAS = true; + activeUAS = uas; + } + // Only execute if there is no UAS at this index if (!systems.contains(uas->getUASID())) { @@ -79,20 +91,30 @@ void UASManager::addUAS(UASInterface* uas) } // If there is no active UAS yet, set the first one as the active UAS - if (activeUAS == NULL) + if (firstUAS) { setActiveUAS(uas); } } +QList UASManager::getUASList() +{ + return systems.values(); +} + UASInterface* UASManager::getActiveUAS() { - if(!activeUAS) - { - QMessageBox msgBox; - msgBox.setText(tr("No Micro Air Vehicle connected. Please connect one first.")); - msgBox.exec(); - } +// if(!activeUAS) +// { +// QMessageBox msgBox; +// msgBox.setText(tr("No Micro Air Vehicle connected. Please connect one first.")); +// msgBox.exec(); +// } + return activeUAS; ///< Return zero pointer if no UAS has been loaded +} + +UASInterface* UASManager::silentGetActiveUAS() +{ return activeUAS; ///< Return zero pointer if no UAS has been loaded } diff --git a/src/uas/UASManager.h b/src/uas/UASManager.h index 7b8dabfb501bdc190b78e186440b094857a218e8..b4d97789df578036d4b7a56d914a673ced3a159a 100644 --- a/src/uas/UASManager.h +++ b/src/uas/UASManager.h @@ -57,6 +57,7 @@ public: * @return NULL pointer if no UAS exists, active UAS else **/ UASInterface* getActiveUAS(); + UASInterface* silentGetActiveUAS(); /** * @brief Get the UAS with this id * @@ -68,6 +69,8 @@ public: **/ UASInterface* getUASForId(int id); + QList getUASList(); + public slots: diff --git a/src/uas/UASWaypointManager.cc b/src/uas/UASWaypointManager.cc index 38bab37e092e8a030c78401f282fcb43a4ffb780..0b039674b7728b3d9cb5d9f21046c4251b6e1d08 100644 --- a/src/uas/UASWaypointManager.cc +++ b/src/uas/UASWaypointManager.cc @@ -131,8 +131,9 @@ void UASWaypointManager::handleWaypoint(quint8 systemId, quint8 compId, mavlink_ if(wp->seq == current_wp_id) { - Waypoint *lwp = new Waypoint(wp->seq, wp->x, wp->y, wp->z, wp->yaw, wp->autocontinue, wp->current, wp->param1, wp->param2); - localAddWaypoint(lwp); + qDebug() << "Got WP: " << wp->seq << wp->x << wp->y << wp->z << wp->yaw << wp->autocontinue << wp->current << wp->param1 << wp->param2 << (MAV_FRAME) wp->frame << (MAV_ACTION) wp->action; + Waypoint *lwp = new Waypoint(wp->seq, wp->x, wp->y, wp->z, wp->yaw, wp->autocontinue, wp->current, wp->param1, wp->param2, (MAV_FRAME) wp->frame, (MAV_ACTION) wp->action); + addWaypoint(lwp); //get next waypoint current_wp_id++; @@ -153,6 +154,7 @@ void UASWaypointManager::handleWaypoint(quint8 systemId, quint8 compId, mavlink_ current_partner_compid = 0; protocol_timer.stop(); + emit readGlobalWPFromUAS(false); emit updateStatusString("done."); qDebug() << "got all waypoints from ID " << systemId; @@ -288,17 +290,18 @@ int UASWaypointManager::setCurrentWaypoint(quint16 seq) return -1; } -void UASWaypointManager::localAddWaypoint(Waypoint *wp) +void UASWaypointManager::addWaypoint(Waypoint *wp) { if (wp) { wp->setId(waypoints.size()); waypoints.insert(waypoints.size(), wp); + emit waypointListChanged(); } } -int UASWaypointManager::localRemoveWaypoint(quint16 seq) +int UASWaypointManager::removeWaypoint(quint16 seq) { if (seq < waypoints.size()) { @@ -316,7 +319,7 @@ int UASWaypointManager::localRemoveWaypoint(quint16 seq) return -1; } -void UASWaypointManager::localMoveWaypoint(quint16 cur_seq, quint16 new_seq) +void UASWaypointManager::moveWaypoint(quint16 cur_seq, quint16 new_seq) { if (cur_seq != new_seq && cur_seq < waypoints.size() && new_seq < waypoints.size()) { @@ -344,7 +347,7 @@ void UASWaypointManager::localMoveWaypoint(quint16 cur_seq, quint16 new_seq) } } -void UASWaypointManager::localSaveWaypoints(const QString &saveFile) +void UASWaypointManager::saveWaypoints(const QString &saveFile) { QFile file(saveFile); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) @@ -358,7 +361,7 @@ void UASWaypointManager::localSaveWaypoints(const QString &saveFile) file.close(); } -void UASWaypointManager::localLoadWaypoints(const QString &loadFile) +void UASWaypointManager::loadWaypoints(const QString &loadFile) { QFile file(loadFile); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) @@ -383,16 +386,22 @@ void UASWaypointManager::localLoadWaypoints(const QString &loadFile) } file.close(); + emit loadWPFile(); emit waypointListChanged(); + } + void UASWaypointManager::globalAddWaypoint(Waypoint *wp) { - + // FIXME Will be removed + Q_UNUSED(wp); } int UASWaypointManager::globalRemoveWaypoint(quint16 seq) { + // FIXME Will be removed + Q_UNUSED(seq); return 0; } @@ -414,6 +423,7 @@ void UASWaypointManager::clearWaypointList() void UASWaypointManager::readWaypoints() { + emit readGlobalWPFromUAS(true); if(current_state == WP_IDLE) { while(waypoints.size()>0) @@ -421,6 +431,7 @@ void UASWaypointManager::readWaypoints() Waypoint *t = waypoints.back(); delete t; waypoints.pop_back(); + } protocol_timer.start(PROTOCOL_TIMEOUT_MS); @@ -432,6 +443,7 @@ void UASWaypointManager::readWaypoints() current_partner_compid = MAV_COMP_ID_WAYPOINTPLANNER; sendWaypointRequestList(); + } } @@ -474,8 +486,8 @@ void UASWaypointManager::writeWaypoints() cur_d->orbit_direction = 0; cur_d->param1 = cur_s->getOrbit(); cur_d->param2 = cur_s->getHoldTime(); - // TODO: Replace this value depending on the type of waypoint - cur_d->type = 1; //FIXME: we only use local waypoints at the moment + cur_d->frame = cur_s->getFrame(); + cur_d->action = cur_s->getAction(); cur_d->seq = i; // don't read out the sequence number of the waypoint class cur_d->x = cur_s->getX(); cur_d->y = cur_s->getY(); @@ -541,6 +553,7 @@ void UASWaypointManager::sendWaypointCount() wpc.target_component = MAV_COMP_ID_WAYPOINTPLANNER; wpc.count = current_count; + qDebug() << "sent waypoint count (" << wpc.count << ") to ID " << wpc.target_system; emit updateStatusString(QString("start transmitting waypoints...")); mavlink_msg_waypoint_count_encode(uas.mavlink->getSystemId(), uas.mavlink->getComponentId(), &message, &wpc); @@ -565,6 +578,8 @@ void UASWaypointManager::sendWaypointRequestList() MG::SLEEP::usleep(PROTOCOL_DELAY_MS * 1000); qDebug() << "sent waypoint list request to ID " << wprl.target_system; + + } void UASWaypointManager::sendWaypointRequest(quint16 seq) diff --git a/src/uas/UASWaypointManager.h b/src/uas/UASWaypointManager.h index a16c8d3fe9a433a2af487b62f1da8751f042ab7d..39c13194c6b7cea7bc3a2ac3fb44b9a592f3749e 100644 --- a/src/uas/UASWaypointManager.h +++ b/src/uas/UASWaypointManager.h @@ -79,18 +79,24 @@ public: /*@{*/ void clearWaypointList(); ///< Sends the waypoint clear all message to the MAV void readWaypoints(); ///< Requests the MAV's current waypoint list - void writeWaypoints(); ///< Sends the local waypoint list to the MAV + void writeWaypoints(); ///< Sends the waypoint list to the MAV int setCurrentWaypoint(quint16 seq); ///< Changes the current waypoint and sends the sequence number of the waypoint that should get the new target waypoint to the UAS /*@}*/ - /** @name Local waypoint list operations */ + /** @name Waypoint list operations */ /*@{*/ - const QVector &getWaypointList(void) { return waypoints; } ///< Returns a const reference to the local waypoint list. + const QVector &getWaypointList(void) { return waypoints; } ///< Returns a const reference to the waypoint list. + void addWaypoint(Waypoint *wp); ///< adds a new waypoint to the end of the list and changes its sequence number accordingly + int removeWaypoint(quint16 seq); ///< locally remove the specified waypoint from the storage + void moveWaypoint(quint16 cur_seq, quint16 new_seq); ///< locally move a waypoint from its current position cur_seq to a new position new_seq + void saveWaypoints(const QString &saveFile); ///< saves the local waypoint list to saveFile + void loadWaypoints(const QString &loadFile); ///< loads a waypoint list from loadFile void localAddWaypoint(Waypoint *wp); ///< locally adds a new waypoint to the end of the list and changes its sequence number accordingly int localRemoveWaypoint(quint16 seq); ///< locally remove the specified waypoint from the storage void localMoveWaypoint(quint16 cur_seq, quint16 new_seq); ///< locally move a waypoint from its current position cur_seq to a new position new_seq void localSaveWaypoints(const QString &saveFile); ///< saves the local waypoint list to saveFile void localLoadWaypoints(const QString &loadFile); ///< loads a waypoint list from loadFile + /*@}*/ /** @name Global waypoint list operations */ @@ -120,6 +126,9 @@ signals: void currentWaypointChanged(quint16); ///< emits the new current waypoint sequence number void updateStatusString(const QString &); ///< emits the current status string + void loadWPFile(); ///< emits signal that a file wp has been load + void readGlobalWPFromUAS(bool value); ///< emits signal when finish to read Global WP from UAS + private: UAS &uas; ///< Reference to the corresponding UAS quint32 current_retries; ///< The current number of retries left diff --git a/src/ui/CommConfigurationWindow.cc b/src/ui/CommConfigurationWindow.cc index 5aba706ef7494e04afa19a83e73594c83be68501..33e57ba2514c5bc6138ac22f3b9a228362158e88 100644 --- a/src/ui/CommConfigurationWindow.cc +++ b/src/ui/CommConfigurationWindow.cc @@ -47,6 +47,7 @@ This file is part of the QGROUNDCONTROL project #endif #include "MAVLinkProtocol.h" #include "MAVLinkSettingsWidget.h" +#include "LinkManager.h" CommConfigurationWindow::CommConfigurationWindow(LinkInterface* link, ProtocolInterface* protocol, QWidget *parent, Qt::WindowFlags flags) : QWidget(parent, flags) { @@ -55,6 +56,14 @@ CommConfigurationWindow::CommConfigurationWindow(LinkInterface* link, ProtocolIn // Setup the user interface according to link type ui.setupUi(this); + // add link types + ui.linkType->addItem("Serial",QGC_LINK_SERIAL); + ui.linkType->addItem("UDP",QGC_LINK_UDP); + ui.linkType->addItem("Simulation",QGC_LINK_SIMULATION); + ui.linkType->addItem("Serial Forwarding",QGC_LINK_FORWARDING); + + ui.connectionType->addItem("MAVLink", QGC_PROTOCOL_MAVLINK); + // Create action to open this menu // Create configuration action for this link // Connect the current UAS @@ -191,11 +200,20 @@ void CommConfigurationWindow::setLinkName(QString name) void CommConfigurationWindow::remove() { - link->disconnect(); - //delete link; - //delete action; + if(action) delete action; //delete action first since it has a pointer to link + action=NULL; + + if(link) + { + LinkManager::instance()->removeLink(link); //remove link from LinkManager list + link->disconnect(); //disconnect port, and also calls terminate() to stop the thread + if (link->isRunning()) link->terminate(); // terminate() the serial thread just in case it is still running + link->wait(); // wait() until thread is stoped before deleting + delete link; + } + link=NULL; + this->window()->close(); - qDebug() << "TODO: Link cannot be deleted: CommConfigurationWindow::remove() NOT IMPLEMENTED!"; } void CommConfigurationWindow::connectionState(bool connect) diff --git a/src/ui/CommConfigurationWindow.h b/src/ui/CommConfigurationWindow.h index f190aa95694b5457750e901660bdce194e56eef4..93f1566aeceb26a15d5f080291402eaa40f470bc 100644 --- a/src/ui/CommConfigurationWindow.h +++ b/src/ui/CommConfigurationWindow.h @@ -39,6 +39,19 @@ This file is part of the QGROUNDCONTROL project #include "ProtocolInterface.h" #include "ui_CommSettings.h" +enum qgc_link_t +{ + QGC_LINK_SERIAL, + QGC_LINK_UDP, + QGC_LINK_SIMULATION, + QGC_LINK_FORWARDING +}; + +enum qgc_protocol_t +{ + QGC_PROTOCOL_MAVLINK +}; + #ifdef OPAL_RT #include "OpalLink.h" #endif diff --git a/src/ui/CommSettings.ui b/src/ui/CommSettings.ui index 8aec750ea97e720f99ae659f9a5c723cae78563f..71a4c30cd881d5eda30099d868921d2cd96e4d38 100644 --- a/src/ui/CommSettings.ui +++ b/src/ui/CommSettings.ui @@ -43,23 +43,7 @@ - - - - Serial Link - - - - - UDP - - - - - Simulation - - - + @@ -71,13 +55,8 @@ - 0 + -1 - - - MAVLink - - diff --git a/src/ui/DebugConsole.cc b/src/ui/DebugConsole.cc index d91de4a9ecf47762afaa758e9d5fb84ea0cde28d..36629e67db572a008d6b646bf14a06c61928f9d9 100644 --- a/src/ui/DebugConsole.cc +++ b/src/ui/DebugConsole.cc @@ -125,12 +125,28 @@ void DebugConsole::addLink(LinkInterface* link) // Register for name changes connect(link, SIGNAL(nameChanged(QString)), this, SLOT(updateLinkName(QString))); + connect(link, SIGNAL(destroyed(QObject*)), this, SLOT(removeLink(QObject*))); +} + +void DebugConsole::removeLink(QObject* link) +{ + LinkInterface* linkInterface = dynamic_cast(link); + // Add link to link list + if (links.contains(linkInterface)) + { + int linkIndex = links.indexOf(linkInterface); + + links.removeAt(linkIndex); + + m_ui->linkComboBox->removeItem(linkIndex); + } + if (link == currLink) currLink = NULL; } void DebugConsole::linkSelected(int linkId) { // Disconnect - if (currLink != NULL) + if (currLink) { disconnect(currLink, SIGNAL(bytesReceived(LinkInterface*,QByteArray)), this, SLOT(receiveBytes(LinkInterface*, QByteArray))); } @@ -205,30 +221,30 @@ void DebugConsole::paintEvent(QPaintEvent *event) { Q_UNUSED(event); // Update bandwidth - if (holdOn) - { - //qDebug() << "Data rate:" << dataRate/1000.0f << "kB/s"; - QString rate("data rate: %1"); - rate.arg(dataRate); - QPainter painter(this); - painter.setRenderHint(QPainter::HighQualityAntialiasing); - painter.translate(width()/5.0f, height()/5.0f); - - - - //QFont font("Bitstream Vera Sans"); - QFont font = painter.font(); - font.setPixelSize((int)(60.0f)); - - QFontMetrics metrics = QFontMetrics(font); - int border = qMax(4, metrics.leading()); - QRect rect = metrics.boundingRect(0, 0, width() - 2*border, int(height()*0.125), - Qt::AlignLeft | Qt::TextWordWrap, rate); - painter.setPen(QColor(255, 50, 50)); - painter.setRenderHint(QPainter::TextAntialiasing); - painter.drawText(QRect(QPoint(static_cast(width()/5.0f), static_cast(height()/5.0f)), QPoint(static_cast(width() - width()/5.0f), static_cast(height() - height()/5.0f))), rate); - //Qt::AlignRight | Qt::TextWordWrap - } +// if (holdOn) +// { +// //qDebug() << "Data rate:" << dataRate/1000.0f << "kB/s"; +// QString rate("data rate: %1"); +// rate.arg(dataRate); +// QPainter painter(this); +// painter.setRenderHint(QPainter::HighQualityAntialiasing); +// painter.translate(width()/5.0f, height()/5.0f); + + + +// //QFont font("Bitstream Vera Sans"); +// QFont font = painter.font(); +// font.setPixelSize((int)(60.0f)); + +// QFontMetrics metrics = QFontMetrics(font); +// int border = qMax(4, metrics.leading()); +// QRect rect = metrics.boundingRect(0, 0, width() - 2*border, int(height()*0.125), +// Qt::AlignLeft | Qt::TextWordWrap, rate); +// painter.setPen(QColor(255, 50, 50)); +// painter.setRenderHint(QPainter::TextAntialiasing); +// painter.drawText(QRect(QPoint(static_cast(width()/5.0f), static_cast(height()/5.0f)), QPoint(static_cast(width() - width()/5.0f), static_cast(height() - height()/5.0f))), rate); +// //Qt::AlignRight | Qt::TextWordWrap +// } } void DebugConsole::receiveBytes(LinkInterface* link, QByteArray bytes) diff --git a/src/ui/DebugConsole.h b/src/ui/DebugConsole.h index ffc97c45b7dce72ddb960f438473f7ad76d7d9cf..b68fa7c114358444da1345f23765afe54d992169 100644 --- a/src/ui/DebugConsole.h +++ b/src/ui/DebugConsole.h @@ -59,6 +59,8 @@ public: public slots: /** @brief Add a link to the list of monitored links */ void addLink(LinkInterface* link); + /** @brief Remove a link from the list */ + void removeLink(QObject* link); /** @brief Update a link name */ void updateLinkName(QString name); /** @brief Select a link for the active view */ diff --git a/src/ui/DebugConsole.ui b/src/ui/DebugConsole.ui index 191cb1092830b3f44e50100b5544856d05d95853..833c490be5f17a458e060930ff751c3bfcc06ab2 100644 --- a/src/ui/DebugConsole.ui +++ b/src/ui/DebugConsole.ui @@ -6,7 +6,7 @@ 0 0 - 435 + 402 185 @@ -77,14 +77,24 @@ Enable auto hold to lower the CPU consumption - Auto hold + Hold - + + + + 300 + 50 + + + + 60 + + @@ -98,13 +108,22 @@ + + + 80 + 0 + + Type the bytes to send here, use 0xAA format for HEX (Check HEX checkbox above) - + + + 5 + diff --git a/src/ui/HDDisplay.cc b/src/ui/HDDisplay.cc index 5d9a449154c8af3e6406eae0773b0fc52373c629..a73bbccc48349e3e5d4e2f7d2911cc4917092453 100644 --- a/src/ui/HDDisplay.cc +++ b/src/ui/HDDisplay.cc @@ -1,24 +1,4 @@ /*===================================================================== - -PIXHAWK Micro Air Vehicle Flying Robotics Toolkit - -(c) 2009, 2010 PIXHAWK PROJECT - -This file is part of the PIXHAWK project - - PIXHAWK is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - PIXHAWK is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with PIXHAWK. If not, see . - ======================================================================*/ /** @@ -33,15 +13,22 @@ This file is part of the PIXHAWK project #include #include #include +#include +#include #include +#include +#include #include "UASManager.h" #include "HDDisplay.h" #include "ui_HDDisplay.h" #include "MG.h" - +#include "QGC.h" +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif #include -HDDisplay::HDDisplay(QStringList* plotList, QWidget *parent) : +HDDisplay::HDDisplay(QStringList* plotList, QString title, QWidget *parent) : QGraphicsView(parent), uas(NULL), values(QMap()), @@ -70,52 +57,61 @@ HDDisplay::HDDisplay(QStringList* plotList, QWidget *parent) : strongStrokeWidth(1.5f), normalStrokeWidth(1.0f), fineStrokeWidth(0.5f), - acceptList(plotList), + acceptList(new QStringList()), lastPaintTime(0), + columns(3), m_ui(new Ui::HDDisplay) { + setWindowTitle(title); //m_ui->setupUi(this); - // Check if acceptlist exists - if (!acceptList) + // Add all items in accept list to gauge + if (plotList) { - acceptList = new QStringList(); + for(int i = 0; i < plotList->length(); ++i) + { + addGauge(plotList->at(i)); + } } -// setBackgroundBrush(QBrush(backgroundColor)); -// setDragMode(QGraphicsView::ScrollHandDrag); -// setCacheMode(QGraphicsView::CacheBackground); -// // FIXME Handle full update with care - ressource intensive -// setViewportUpdateMode(QGraphicsView::FullViewportUpdate); -// -// setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform); -// -// //Set-up the scene -// QGraphicsScene* Scene = new QGraphicsScene(this); -// setScene(Scene); -// -// //Populate the scene -// for(int x = 0; x < 1000; x = x + 25) { -// for(int y = 0; y < 1000; y = y + 25) { -// -// if(x % 100 == 0 && y % 100 == 0) { -// Scene->addRect(x, y, 2, 2); -// -// QString pointString; -// QTextStream stream(&pointString); -// stream << "(" << x << "," << y << ")"; -// QGraphicsTextItem* item = Scene->addText(pointString); -// item->setPos(x, y); -// } else { -// Scene->addRect(x, y, 1, 1); -// } -// } -// } -// -// //Set-up the view -// setSceneRect(0, 0, 1000, 1000); -// setCenter(QPointF(500.0, 500.0)); //A modified version of centerOn(), handles special cases -// setCursor(Qt::OpenHandCursor); + restoreState(); + + createActions(); + + // setBackgroundBrush(QBrush(backgroundColor)); + // setDragMode(QGraphicsView::ScrollHandDrag); + // setCacheMode(QGraphicsView::CacheBackground); + // // FIXME Handle full update with care - ressource intensive + // setViewportUpdateMode(QGraphicsView::FullViewportUpdate); + // + // setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform); + // + // //Set-up the scene + // QGraphicsScene* Scene = new QGraphicsScene(this); + // setScene(Scene); + // + // //Populate the scene + // for(int x = 0; x < 1000; x = x + 25) { + // for(int y = 0; y < 1000; y = y + 25) { + // + // if(x % 100 == 0 && y % 100 == 0) { + // Scene->addRect(x, y, 2, 2); + // + // QString pointString; + // QTextStream stream(&pointString); + // stream << "(" << x << "," << y << ")"; + // QGraphicsTextItem* item = Scene->addText(pointString); + // item->setPos(x, y); + // } else { + // Scene->addRect(x, y, 1, 1); + // } + // } + // } + // + // //Set-up the view + // setSceneRect(0, 0, 1000, 1000); + // setCenter(QPointF(500.0, 500.0)); //A modified version of centerOn(), handles special cases + // setCursor(Qt::OpenHandCursor); this->setMinimumHeight(125); @@ -132,7 +128,7 @@ HDDisplay::HDDisplay(QStringList* plotList, QWidget *parent) : if(!QFile::exists(fontFileName)) qDebug() << "ERROR! font file: " << fontFileName << " DOES NOT EXIST!"; fontDatabase.addApplicationFont(fontFileName); - font = fontDatabase.font(fontFamilyName, "Roman", (int)(10*scalingFactor*1.2f+0.5f)); + font = fontDatabase.font(fontFamilyName, "Roman", qMax(5, (int)(10*scalingFactor*1.2f+0.5f))); if (font.family() != fontFamilyName) qDebug() << "ERROR! Font not loaded: " << fontFamilyName; // Connect with UAS @@ -144,12 +140,13 @@ HDDisplay::HDDisplay(QStringList* plotList, QWidget *parent) : HDDisplay::~HDDisplay() { + saveState(); delete m_ui; } void HDDisplay::enableGLRendering(bool enable) { - + Q_UNUSED(enable); } void HDDisplay::triggerUpdate() @@ -167,8 +164,177 @@ void HDDisplay::paintEvent(QPaintEvent * event) renderOverlay(); } +void HDDisplay::contextMenuEvent (QContextMenuEvent* event) +{ + QMenu menu(this); + menu.addAction(addGaugeAction); + menu.addActions(getItemRemoveActions()); + menu.addSeparator(); + menu.addAction(setColumnsAction); + menu.addAction(setTitleAction); + menu.exec(event->globalPos()); +} + +void HDDisplay::saveState() +{ + QSettings settings; + + QString instruments; + // Restore instrument settings + for (int i = 0; i < acceptList->count(); i++) + { + QString key = acceptList->at(i); + instruments += "|" + QString::number(minValues.value(key, -1.0))+","+key+","+QString::number(maxValues.value(key, +1.0)); + } + + qDebug() << "Saving" << instruments; + + settings.setValue(windowTitle()+"_gauges", instruments); + settings.sync(); +} + +void HDDisplay::restoreState() +{ + QSettings settings; + settings.sync(); + + QStringList instruments = settings.value(windowTitle()+"_gauges").toString().split('|'); + for (int i = 0; i < instruments.count(); i++) + { + addGauge(instruments.at(i)); + } +} + +QList HDDisplay::getItemRemoveActions() +{ + QList actions; + for(int i = 0; i < acceptList->length(); ++i) + { + QString gauge = acceptList->at(i); + QAction* remove = new QAction(tr("Remove %1 gauge").arg(gauge), this); + remove->setStatusTip(tr("Removes the %1 gauge from the view.").arg(gauge)); + remove->setData(gauge); + connect(remove, SIGNAL(triggered()), this, SLOT(removeItemByAction())); + actions.append(remove); + } + return actions; +} + +void HDDisplay::removeItemByAction() +{ + QAction* trigger = qobject_cast(QObject::sender()); + if (trigger) + { + QString item = trigger->data().toString(); + int index = acceptList->indexOf(item); + acceptList->removeAt(index); + minValues.remove(item); + maxValues.remove(item); + } +} + +void HDDisplay::addGauge() +{ + QStringList items; + for (int i = 0; i < values.count(); ++i) + { + items.append(QString("%1,%2,%3").arg("-180").arg(values.keys().at(i)).arg("+180")); + } + bool ok; + QString item = QInputDialog::getItem(this, tr("Add Gauge Instrument"), + tr("Format: min, curve name, max"), items, 0, true, &ok); + if (ok && !item.isEmpty()) + { + addGauge(item); + } +} + +void HDDisplay::addGauge(const QString& gauge) +{ + if (gauge.length() > 0) + { + QStringList parts = gauge.split(','); + if (parts.count() > 1) + { + double val; + bool ok; + + QString key = parts.at(1); + + if (!acceptList->contains(key)) + { + // Convert min to double number + val = parts.first().toDouble(&ok); + if (ok) minValues.insert(key, val); + // Convert max to double number + val = parts.last().toDouble(&ok); + if (ok) maxValues.insert(key, val); + // Add value to acceptlist + acceptList->append(key); + } + } + else + { + if (!acceptList->contains(gauge)) + { + acceptList->append(parts.first()); + } + } + } +} + +void HDDisplay::createActions() +{ + addGaugeAction = new QAction(tr("New &Gauge"), this); + addGaugeAction->setStatusTip(tr("Add a new gauge to the view by adding its name from the linechart")); + connect(addGaugeAction, SIGNAL(triggered()), this, SLOT(addGauge())); + + setTitleAction = new QAction(tr("Set Widget Title"), this); + setTitleAction->setStatusTip(tr("Set the title caption of this tool widget")); + connect(setTitleAction, SIGNAL(triggered()), this, SLOT(setTitle())); + + setColumnsAction = new QAction(tr("Set Number of Instrument Columns"), this); + setColumnsAction->setStatusTip(tr("Set number of columns to draw")); + connect(setColumnsAction, SIGNAL(triggered()), this, SLOT(setColumns())); +} + + +void HDDisplay::setColumns() +{ + bool ok; + int i = QInputDialog::getInt(this, tr("Number of Instrument Columns"), + tr("Columns:"), columns, 1, 15, 1, &ok); + if (ok) + { + columns = i; + } +} + +void HDDisplay::setColumns(int cols) +{ + columns = cols; +} + +void HDDisplay::setTitle() +{ + QDockWidget* parent = dynamic_cast(this->parentWidget()); + if (parent) + { + bool ok; + QString text = QInputDialog::getText(this, tr("New title"), + tr("Widget title:"), QLineEdit::Normal, + parent->windowTitle(), &ok); + if (ok && !text.isEmpty()) + parent->setWindowTitle(text); + this->setWindowTitle(text); + } +} + void HDDisplay::renderOverlay() { +#if (QGC_EVENTLOOP_DEBUG) + qDebug() << "EVENTLOOP:" << __FILE__ << __LINE__; +#endif quint64 refreshInterval = 100; quint64 currTime = MG::TIME::getGroundTimeNow(); if (currTime - lastPaintTime < refreshInterval) @@ -182,6 +348,13 @@ void HDDisplay::renderOverlay() // Update scaling factor // adjust scaling to fit both horizontally and vertically scalingFactor = this->width()/vwidth; + + // Adjust vheight dynamically according to the number of rows + float vColWidth = vwidth / columns; + int vRows = ceil(acceptList->length()/(float)columns); + // Assuming square instruments, vheight is column width*row count + vheight = vColWidth * vRows; + double scalingFactorH = this->height()/vheight; if (scalingFactorH < scalingFactor) scalingFactor = scalingFactorH; @@ -189,7 +362,6 @@ void HDDisplay::renderOverlay() painter.setRenderHint(QPainter::Antialiasing, true); painter.setRenderHint(QPainter::HighQualityAntialiasing, true); //painter.fillRect(QRect(0, 0, width(), height()), backgroundColor); - const int columns = 3; const float spacing = 0.4f; // 40% of width const float gaugeWidth = vwidth / (((float)columns) + (((float)columns+1) * spacing + spacing * 0.5f)); const QColor gaugeColor = QColor(200, 200, 200); @@ -210,7 +382,7 @@ void HDDisplay::renderOverlay() drawGauge(xCoord, yCoord, gaugeWidth/2.0f, minValues.value(value, -1.0f), maxValues.value(value, 1.0f), value, values.value(value, minValues.value(value, 0.0f)), gaugeColor, &painter, goodRanges.value(value, qMakePair(0.0f, 0.5f)), critRanges.value(value, qMakePair(0.7f, 1.0f)), true); xCoord += gaugeWidth + leftSpacing; // Move one row down if necessary - if (xCoord + gaugeWidth > vwidth) + if (xCoord + gaugeWidth*0.9f > vwidth) { yCoord += topSpacing + gaugeWidth; xCoord = leftSpacing + gaugeWidth/2.0f; @@ -218,16 +390,6 @@ void HDDisplay::renderOverlay() } } -void HDDisplay::start() -{ - refreshTimer->start(); -} - -void HDDisplay::stop() -{ - refreshTimer->stop(); -} - /** * * @param uas the UAS/MAV to monitor/display with the HUD @@ -235,20 +397,17 @@ void HDDisplay::stop() void HDDisplay::setActiveUAS(UASInterface* uas) { //qDebug() << "ATTEMPTING TO SET UAS"; - if (this->uas != NULL && this->uas != uas) + if (this->uas != NULL) { // Disconnect any previously connected active MAV - disconnect(uas, SIGNAL(valueChanged(UASInterface*,QString,double,quint64)), this, SLOT(updateValue(UASInterface*,QString,double,quint64))); + disconnect(this->uas, SIGNAL(valueChanged(int,QString,double,quint64)), this, SLOT(updateValue(int,QString,double,quint64))); } // Now connect the new UAS - //if (this->uas != uas) - // { //qDebug() << "UAS SET!" << "ID:" << uas->getUASID(); // Setup communication - connect(uas, SIGNAL(valueChanged(UASInterface*,QString,double,quint64)), this, SLOT(updateValue(UASInterface*,QString,double,quint64))); - //} + connect(uas, SIGNAL(valueChanged(int,QString,double,quint64)), this, SLOT(updateValue(int,QString,double,quint64))); this->uas = uas; } @@ -351,9 +510,14 @@ void HDDisplay::drawGauge(float xRef, float yRef, float radius, float min, float // per max. change const float rangeScale = ((2.0f * M_PI) / (max - min)) * 0.72f; - const float nameHeight = radius / 2.5f; + const float scaledValue = (value-min)*rangeScale; + + float nameHeight = radius / 2.6f; paintText(name.toUpper(), color, nameHeight*0.7f, xRef-radius, yRef-radius, painter); + // Ensure some space + nameHeight *= 1.2f; + if (!solid) { circlePen.setStyle(Qt::DotLine); @@ -366,18 +530,17 @@ void HDDisplay::drawGauge(float xRef, float yRef, float radius, float min, float //drawCircle(xRef, yRef+nameHeight, radius, 0.0f, 170.0f, 1.0f, color, painter); QString label; - label.sprintf("%05.1f", value); + label.sprintf("% 06.1f", value); // Text // height - const float textHeight = radius/2.0f; - const float textX = xRef-radius/6.0f; + const float textHeight = radius/2.1f; + const float textX = xRef-radius/3.0f; const float textY = yRef+radius/2.0f; // Draw background rectangle - // FIXME add background color for use in instrument panel - QBrush brush(QColor(0, 0, 0), Qt::SolidPattern); + QBrush brush(QGC::colorBackground, Qt::SolidPattern); painter->setBrush(brush); painter->setPen(Qt::NoPen); painter->drawRect(refToScreenX(xRef-radius/2.5f), refToScreenY(yRef+nameHeight+radius/4.0f), refToScreenX(radius+radius/2.0f), refToScreenY((radius - radius/4.0f)*1.2f)); @@ -403,7 +566,7 @@ void HDDisplay::drawGauge(float xRef, float yRef, float radius, float min, float // Draw the value //painter->setPen(textColor); - paintText(label, color, textHeight, textX, textY+nameHeight, painter); + paintText(label, QGC::colorCyan, textHeight, textX, textY+nameHeight, painter); //paintText(label, color, ((radius - radius/3.0f)*1.1f), xRef-radius/2.5f, yRef+radius/3.0f, painter); // Draw the needle @@ -421,7 +584,7 @@ void HDDisplay::drawGauge(float xRef, float yRef, float radius, float min, float p.replace(5, QPointF(xRef-maxWidth/2.0f, yRef+nameHeight+radius * 0.05f)); - rotatePolygonClockWiseRad(p, value*rangeScale+zeroRotation, QPointF(xRef, yRef+nameHeight)); + rotatePolygonClockWiseRad(p, scaledValue+zeroRotation, QPointF(xRef, yRef+nameHeight)); QBrush indexBrush; indexBrush.setColor(color); @@ -587,20 +750,17 @@ float HDDisplay::refLineWidthToPen(float line) return line * 2.50f; } -void HDDisplay::updateValue(UASInterface* uas, QString name, double value, quint64 msec) +void HDDisplay::updateValue(int uasId, QString name, double value, quint64 msec) { - Q_UNUSED(uas); - //if (this->uas == uas) - //{ - // Update mean - const float oldMean = valuesMean.value(name, 0.0f); - const int meanCount = valuesCount.value(name, 0); - valuesMean.insert(name, (oldMean * meanCount + value) / (meanCount + 1)); - valuesCount.insert(name, meanCount + 1); - valuesDot.insert(name, (value - values.value(name, 0.0f)) / ((msec - lastUpdate.value(name, 0))/1000.0f)); - values.insert(name, value); - lastUpdate.insert(name, msec); - //} + Q_UNUSED(uasId); + // Update mean + const float oldMean = valuesMean.value(name, 0.0f); + const int meanCount = valuesCount.value(name, 0); + valuesMean.insert(name, (oldMean * meanCount + value) / (meanCount + 1)); + valuesCount.insert(name, meanCount + 1); + valuesDot.insert(name, (value - values.value(name, 0.0f)) / ((msec - lastUpdate.value(name, 0))/1000.0f)); + values.insert(name, value); + lastUpdate.insert(name, msec); } /** @@ -667,7 +827,22 @@ void HDDisplay::changeEvent(QEvent *e) } +void HDDisplay::showEvent(QShowEvent* event) +{ + // React only to internal (pre-display) + // events + Q_UNUSED(event); + refreshTimer->start(updateInterval); +} +void HDDisplay::hideEvent(QHideEvent* event) +{ + // React only to internal (pre-display) + // events + Q_UNUSED(event); + refreshTimer->stop(); + saveState(); +} ///** diff --git a/src/ui/HDDisplay.h b/src/ui/HDDisplay.h index 0461c4cc1e85180a535e49430f0e64874456f1c3..0ddb8a354779982b788ca99ddc79857875f6f451 100644 --- a/src/ui/HDDisplay.h +++ b/src/ui/HDDisplay.h @@ -37,6 +37,7 @@ This file is part of the QGROUNDCONTROL project #include #include #include +#include #include #include @@ -58,16 +59,31 @@ class HDDisplay : public QGraphicsView { Q_OBJECT public: - HDDisplay(QStringList* plotList, QWidget *parent = 0); + HDDisplay(QStringList* plotList, QString title="", QWidget *parent = 0); ~HDDisplay(); public slots: /** @brief Update a HDD value */ - void updateValue(UASInterface* uas, QString name, double value, quint64 msec); - void start(); - void stop(); + void updateValue(int uasId, QString name, double value, quint64 msec); void setActiveUAS(UASInterface* uas); + /** @brief Removes a plot item by the action data */ + void removeItemByAction(); + /** @brief Bring up the menu to add a gauge */ + void addGauge(); + /** @brief Add a gauge using this spec string */ + void addGauge(const QString& gauge); + /** @brief Set the title of this widget and any existing parent dock widget */ + void setTitle(); + /** @brief Set the number of colums via popup */ + void setColumns(); + /** @brief Set the number of colums */ + void setColumns(int cols); + /** @brief Save the current layout and state to disk */ + void saveState(); + /** @brief Restore the last layout and state from disk */ + void restoreState(); + protected slots: void enableGLRendering(bool enable); //void render(QPainter* painter, const QRectF& target = QRectF(), const QRect& source = QRect(), Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio); @@ -75,8 +91,13 @@ protected slots: void triggerUpdate(); protected: - void changeEvent(QEvent *e); - void paintEvent(QPaintEvent * event); + void changeEvent(QEvent* e); + void paintEvent(QPaintEvent* event); + void showEvent(QShowEvent* event); + void hideEvent(QHideEvent* event); + void contextMenuEvent(QContextMenuEvent* event); + QList getItemRemoveActions(); + void createActions(); float refLineWidthToPen(float line); float refToScreenX(float x); float refToScreenY(float y); @@ -142,6 +163,7 @@ protected: int warningBlinkRate; ///< Blink rate of warning messages, will be rounded to the refresh rate QTimer* refreshTimer; ///< The main timer, controls the update rate + static const int updateInterval = 120; ///< Update interval in milliseconds QPainter* hudPainter; QFont font; ///< The HUD font, per default the free Bitstream Vera SANS, which is very close to actual HUD fonts QFontDatabase fontDatabase;///< Font database, only used to load the TrueType font file (the HUD font is directly loaded from file rather than from the system) @@ -154,6 +176,11 @@ protected: QStringList* acceptList; ///< Variable names to plot quint64 lastPaintTime; ///< Last time this widget was refreshed + int columns; ///< Number of instrument columns + + QAction* addGaugeAction; ///< Action adding a gauge + QAction* setTitleAction; ///< Action setting the title + QAction* setColumnsAction; ///< Action setting the number of columns private: Ui::HDDisplay *m_ui; diff --git a/src/ui/HSIDisplay.cc b/src/ui/HSIDisplay.cc index e7b0944dfd1277845699e7335a9c85490111b1b6..f8c73ce12d7cb08df7af9d411722465d94dce290 100644 --- a/src/ui/HSIDisplay.cc +++ b/src/ui/HSIDisplay.cc @@ -46,7 +46,7 @@ This file is part of the QGROUNDCONTROL project #include HSIDisplay::HSIDisplay(QWidget *parent) : - HDDisplay(NULL, parent), + HDDisplay(NULL, "", parent), gpsSatellites(), satellitesUsed(0), attXSet(0), @@ -100,10 +100,10 @@ HSIDisplay::HSIDisplay(QWidget *parent) : topMargin(3.0f) { connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(setActiveUAS(UASInterface*))); - refreshTimer->setInterval(120); + refreshTimer->setInterval(updateInterval); -// this->setScene(new QGraphicsScene(-metricWidth/2.0f, -metricWidth/2.0f, metricWidth, metricWidth, this)); + // this->setScene(new QGraphicsScene(-metricWidth/2.0f, -metricWidth/2.0f, metricWidth, metricWidth, this)); xCenterPos = vwidth/2.0f; yCenterPos = vheight/2.0f + topMargin - bottomMargin; @@ -138,6 +138,9 @@ void HSIDisplay::paintEvent(QPaintEvent * event) void HSIDisplay::renderOverlay() { +#if (QGC_EVENTLOOP_DEBUG) + qDebug() << "EVENTLOOP:" << __FILE__ << __LINE__; +#endif // Center location of the HSI gauge items float bottomMargin = 3.0f; @@ -432,43 +435,46 @@ void HSIDisplay::setMetricWidth(double width) */ void HSIDisplay::setActiveUAS(UASInterface* uas) { - if (this->uas != NULL && this->uas != uas) - { - // Disconnect any previously connected active MAV - //disconnect(uas, SIGNAL(valueChanged(UASInterface*,QString,double,quint64)), this, SLOT(updateValue(UASInterface*,QString,double,quint64))); - } - - - HDDisplay::setActiveUAS(uas); - //qDebug() << "ATTEMPTING TO SET UAS"; - - - connect(uas, SIGNAL(gpsSatelliteStatusChanged(int,int,float,float,float,bool)), this, SLOT(updateSatellite(int,int,float,float,float,bool))); - connect(uas, SIGNAL(localPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateLocalPosition(UASInterface*,double,double,double,quint64))); - connect(uas, SIGNAL(globalPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateGlobalPosition(UASInterface*,double,double,double,quint64))); - connect(uas, SIGNAL(attitudeThrustSetPointChanged(UASInterface*,double,double,double,double,quint64)), this, SLOT(updateAttitudeSetpoints(UASInterface*,double,double,double,double,quint64))); - connect(uas, SIGNAL(positionSetPointsChanged(int,float,float,float,float,quint64)), this, SLOT(updatePositionSetpoints(int,float,float,float,float,quint64))); - connect(uas, SIGNAL(speedChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateSpeed(UASInterface*,double,double,double,quint64))); - connect(uas, SIGNAL(attitudeChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateAttitude(UASInterface*,double,double,double,quint64))); + if (this->uas != NULL) + { + disconnect(this->uas, SIGNAL(gpsSatelliteStatusChanged(int,int,float,float,float,bool)), this, SLOT(updateSatellite(int,int,float,float,float,bool))); + disconnect(this->uas, SIGNAL(localPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateLocalPosition(UASInterface*,double,double,double,quint64))); + disconnect(this->uas, SIGNAL(globalPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateGlobalPosition(UASInterface*,double,double,double,quint64))); + disconnect(this->uas, SIGNAL(attitudeThrustSetPointChanged(UASInterface*,double,double,double,double,quint64)), this, SLOT(updateAttitudeSetpoints(UASInterface*,double,double,double,double,quint64))); + disconnect(this->uas, SIGNAL(positionSetPointsChanged(int,float,float,float,float,quint64)), this, SLOT(updatePositionSetpoints(int,float,float,float,float,quint64))); + disconnect(this->uas, SIGNAL(speedChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateSpeed(UASInterface*,double,double,double,quint64))); + disconnect(this->uas, SIGNAL(attitudeChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateAttitude(UASInterface*,double,double,double,quint64))); + + disconnect(this->uas, SIGNAL(attitudeControlEnabled(bool)), this, SLOT(updateAttitudeControllerEnabled(bool))); + disconnect(this->uas, SIGNAL(positionXYControlEnabled(bool)), this, SLOT(updatePositionXYControllerEnabled(bool))); + disconnect(this->uas, SIGNAL(positionZControlEnabled(bool)), this, SLOT(updatePositionZControllerEnabled(bool))); + disconnect(this->uas, SIGNAL(positionYawControlEnabled(bool)), this, SLOT(updatePositionYawControllerEnabled(bool))); + + disconnect(this->uas, SIGNAL(localizationChanged(UASInterface*,int)), this, SLOT(updateLocalization(UASInterface*,int))); + disconnect(this->uas, SIGNAL(visionLocalizationChanged(UASInterface*,int)), this, SLOT(updateVisionLocalization(UASInterface*,int))); + disconnect(this->uas, SIGNAL(gpsLocalizationChanged(UASInterface*,int)), this, SLOT(updateGpsLocalization(UASInterface*,int))); + disconnect(this->uas, SIGNAL(irUltraSoundLocalizationChanged(UASInterface*,int)), this, SLOT(updateInfraredUltrasoundLocalization(UASInterface*,int))); + } - connect(uas, SIGNAL(attitudeControlEnabled(bool)), this, SLOT(updateAttitudeControllerEnabled(bool))); - connect(uas, SIGNAL(positionXYControlEnabled(bool)), this, SLOT(updatePositionXYControllerEnabled(bool))); - connect(uas, SIGNAL(positionZControlEnabled(bool)), this, SLOT(updatePositionZControllerEnabled(bool))); - connect(uas, SIGNAL(positionYawControlEnabled(bool)), this, SLOT(updatePositionYawControllerEnabled(bool))); + connect(uas, SIGNAL(gpsSatelliteStatusChanged(int,int,float,float,float,bool)), this, SLOT(updateSatellite(int,int,float,float,float,bool))); + connect(uas, SIGNAL(localPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateLocalPosition(UASInterface*,double,double,double,quint64))); + connect(uas, SIGNAL(globalPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateGlobalPosition(UASInterface*,double,double,double,quint64))); + connect(uas, SIGNAL(attitudeThrustSetPointChanged(UASInterface*,double,double,double,double,quint64)), this, SLOT(updateAttitudeSetpoints(UASInterface*,double,double,double,double,quint64))); + connect(uas, SIGNAL(positionSetPointsChanged(int,float,float,float,float,quint64)), this, SLOT(updatePositionSetpoints(int,float,float,float,float,quint64))); + connect(uas, SIGNAL(speedChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateSpeed(UASInterface*,double,double,double,quint64))); + connect(uas, SIGNAL(attitudeChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateAttitude(UASInterface*,double,double,double,quint64))); - connect(uas, SIGNAL(localizationChanged(UASInterface*,int)), this, SLOT(updateLocalization(UASInterface*,int))); - connect(uas, SIGNAL(visionLocalizationChanged(UASInterface*,int)), this, SLOT(updateVisionLocalization(UASInterface*,int))); - connect(uas, SIGNAL(gpsLocalizationChanged(UASInterface*,int)), this, SLOT(updateGpsLocalization(UASInterface*,int))); - connect(uas, SIGNAL(irUltraSoundLocalizationChanged(UASInterface*,int)), this, SLOT(updateInfraredUltrasoundLocalization(UASInterface*,int))); + connect(uas, SIGNAL(attitudeControlEnabled(bool)), this, SLOT(updateAttitudeControllerEnabled(bool))); + connect(uas, SIGNAL(positionXYControlEnabled(bool)), this, SLOT(updatePositionXYControllerEnabled(bool))); + connect(uas, SIGNAL(positionZControlEnabled(bool)), this, SLOT(updatePositionZControllerEnabled(bool))); + connect(uas, SIGNAL(positionYawControlEnabled(bool)), this, SLOT(updatePositionYawControllerEnabled(bool))); - // Now connect the new UAS + connect(uas, SIGNAL(localizationChanged(UASInterface*,int)), this, SLOT(updateLocalization(UASInterface*,int))); + connect(uas, SIGNAL(visionLocalizationChanged(UASInterface*,int)), this, SLOT(updateVisionLocalization(UASInterface*,int))); + connect(uas, SIGNAL(gpsLocalizationChanged(UASInterface*,int)), this, SLOT(updateGpsLocalization(UASInterface*,int))); + connect(uas, SIGNAL(irUltraSoundLocalizationChanged(UASInterface*,int)), this, SLOT(updateInfraredUltrasoundLocalization(UASInterface*,int))); - //if (this->uas != uas) - // { - //qDebug() << "UAS SET!" << "ID:" << uas->getUASID(); - // Setup communication - //connect(uas, SIGNAL(valueChanged(UASInterface*,QString,double,quint64)), this, SLOT(updateValue(UASInterface*,QString,double,quint64))); - //} + this->uas = uas; } void HSIDisplay::updateSpeed(UASInterface* uas, double vx, double vy, double vz, quint64 time) @@ -478,7 +484,7 @@ void HSIDisplay::updateSpeed(UASInterface* uas, double vx, double vy, double vz, this->vx = vx; this->vy = vy; this->vz = vz; - this->speed = sqrt(pow(vx, 2.0f) + pow(vy, 2.0f) + pow(vz, 2.0f)); + this->speed = sqrt(pow(vx, 2.0) + pow(vy, 2.0) + pow(vz, 2.0)); } void HSIDisplay::setBodySetpointCoordinateXY(double x, double y) @@ -667,18 +673,18 @@ void HSIDisplay::drawWaypoints(QPainter& painter) if (uas) { const QVector& list = uas->getWaypointManager().getWaypointList(); -// for (int i = 0; i < list.size(); i++) -// { -// QPointF in(list.at(i)->getX(), list.at(i)->getY()); -// // Transform from world to body coordinates -// in = metricWorldToBody(in); -// // Scale from metric to screen reference coordinates -// QPointF p = metricBodyToRef(in); -// Waypoint2DIcon* wp = new Waypoint2DIcon(); -// wp->setLocalPosition(list.at(i)->getX(), list.at(i)->getY()); -// wp->setPos(0, 0); -// scene()->addItem(wp); -// } + // for (int i = 0; i < list.size(); i++) + // { + // QPointF in(list.at(i)->getX(), list.at(i)->getY()); + // // Transform from world to body coordinates + // in = metricWorldToBody(in); + // // Scale from metric to screen reference coordinates + // QPointF p = metricBodyToRef(in); + // Waypoint2DIcon* wp = new Waypoint2DIcon(); + // wp->setLocalPosition(list.at(i)->getX(), list.at(i)->getY()); + // wp->setPos(0, 0); + // scene()->addItem(wp); + // } QColor color; painter.setBrush(Qt::NoBrush); @@ -925,6 +931,26 @@ void HSIDisplay::wheelEvent(QWheelEvent* event) emit metricWidthChanged(metricWidth); } +void HSIDisplay::showEvent(QShowEvent* event) +{ + // React only to internal (pre-display) + // events + Q_UNUSED(event) + { + refreshTimer->start(updateInterval); + } +} + +void HSIDisplay::hideEvent(QHideEvent* event) +{ + // React only to internal (post-display) + // events + Q_UNUSED(event) + { + refreshTimer->stop(); + } +} + void HSIDisplay::updateJoystick(double roll, double pitch, double yaw, double thrust, int xHat, int yHat) { Q_UNUSED(roll); diff --git a/src/ui/HSIDisplay.h b/src/ui/HSIDisplay.h index 2fb873866c9218c7177306c833edbdeca6562882..c70598e41daccd19dfc9f2142ff2afb3179ae76f 100644 --- a/src/ui/HSIDisplay.h +++ b/src/ui/HSIDisplay.h @@ -111,6 +111,8 @@ protected slots: protected: + void showEvent(QShowEvent* event); + void hideEvent(QHideEvent* event); /** @brief Get color from GPS signal-to-noise colormap */ static QColor getColorForSNR(float snr); /** @brief Metric world coordinates to metric body coordinates */ diff --git a/src/ui/HUD.cc b/src/ui/HUD.cc index 2267a3f5148fcf015c2f0f494208efa62277c6a7..ad090a1c7530b1b00d950f7a524657ea40ac9a2a 100644 --- a/src/ui/HUD.cc +++ b/src/ui/HUD.cc @@ -29,13 +29,19 @@ This file is part of the QGROUNDCONTROL project * */ +#include + #include #include +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif #include #include "UASManager.h" #include "HUD.h" #include "MG.h" +#include "QGC.h" // Fix for some platforms, e.g. windows #ifndef GL_MULTISAMPLE @@ -126,7 +132,7 @@ HUD::HUD(int width, int height, QWidget* parent) glImage = QGLWidget::convertToGLFormat(fill); // Refresh timer - refreshTimer->setInterval(50); // 20 Hz + refreshTimer->setInterval(updateInterval); //connect(refreshTimer, SIGNAL(timeout()), this, SLOT(update())); connect(refreshTimer, SIGNAL(timeout()), this, SLOT(paintHUD())); @@ -147,8 +153,16 @@ HUD::HUD(int width, int height, QWidget* parent) if(!QFile::exists(fontFileName)) qDebug() << "ERROR! font file: " << fontFileName << " DOES NOT EXIST!"; fontDatabase.addApplicationFont(fontFileName); - font = fontDatabase.font(fontFamilyName, "Roman", (int)(10*scalingFactor*1.2f+0.5f)); - if (font.family() != fontFamilyName) qDebug() << "ERROR! Font not loaded: " << fontFamilyName; + font = fontDatabase.font(fontFamilyName, "Roman", qMax(5,(int)(10.0f*scalingFactor*1.2f+0.5f))); + QFont* fontPtr = &font; + if (!fontPtr) + { + qDebug() << "ERROR! FONT NOT LOADED!"; + } + else + { + if (font.family() != fontFamilyName) qDebug() << "ERROR! WRONG FONT LOADED: " << fontFamilyName; + } // Connect with UAS UASManager* manager = UASManager::instance(); @@ -162,14 +176,24 @@ HUD::~HUD() } -void HUD::start() +void HUD::showEvent(QShowEvent* event) { - refreshTimer->start(); + // React only to internal (pre-display) + // events + Q_UNUSED(event) + { + refreshTimer->start(updateInterval); + } } -void HUD::stop() +void HUD::hideEvent(QHideEvent* event) { - refreshTimer->stop(); + // React only to internal (pre-display) + // events + Q_UNUSED(event) + { + refreshTimer->stop(); + } } void HUD::updateValue(UASInterface* uas, QString name, double value, quint64 msec) @@ -537,9 +561,13 @@ void HUD::paintEvent(QPaintEvent *event) void HUD::paintHUD() { -// static quint64 interval = 0; -// qDebug() << "INTERVAL:" << MG::TIME::getGroundTimeNow() - interval << __FILE__ << __LINE__; -// interval = MG::TIME::getGroundTimeNow(); + // static quint64 interval = 0; + // qDebug() << "INTERVAL:" << MG::TIME::getGroundTimeNow() - interval << __FILE__ << __LINE__; + // interval = MG::TIME::getGroundTimeNow(); + +#if (QGC_EVENTLOOP_DEBUG) + qDebug() << "EVENTLOOP:" << __FILE__ << __LINE__; +#endif // Read out most important values to limit hash table lookups static float roll = 0.0f; diff --git a/src/ui/HUD.h b/src/ui/HUD.h index 9255ac788e720d6e99e7dc92306f6267cd43ce03..f5f4695f28b490316526bef6aa5b90e56a186277 100644 --- a/src/ui/HUD.h +++ b/src/ui/HUD.h @@ -60,11 +60,6 @@ public slots: void initializeGL(); //void paintGL(); - /** @brief Start updating the view at 30Hz */ - void start(); - /** @brief Stop updating the view */ - void stop(); - /** @brief Set the currently monitored UAS */ void setActiveUAS(UASInterface* uas); @@ -123,6 +118,12 @@ protected: float refLineWidthToPen(float line); /** @brief Rotate a polygon around a point clockwise */ void rotatePolygonClockWiseRad(QPolygonF& p, float angle, QPointF origin); + /** @brief Start updating widget */ + void showEvent(QShowEvent* event); + /** @brief Stop updating widget */ + void hideEvent(QHideEvent* event); + + static const int updateInterval = 50; QImage* image; ///< Double buffer image QImage glImage; ///< The background / camera image diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index bf01124b9984179fccf0052448b26017430e09b0..336842ff4a23c135342fe6a1138a9b167a03ac31 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -1,24 +1,4 @@ -/*===================================================================== - -QGroundControl Open Source Ground Control Station - -(c) 2009, 2010 QGROUNDCONTROL PROJECT - -This file is part of the QGROUNDCONTROL project - - QGROUNDCONTROL is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - QGROUNDCONTROL is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with QGROUNDCONTROL. If not, see . - +/*=================================================================== ======================================================================*/ /** @@ -36,6 +16,7 @@ This file is part of the QGROUNDCONTROL project #include #include "MG.h" +#include "QGC.h" #include "MAVLinkSimulationLink.h" #include "SerialLink.h" #include "UDPLink.h" @@ -45,7 +26,11 @@ This file is part of the QGROUNDCONTROL project #include "MainWindow.h" #include "JoystickWidget.h" #include "GAudioOutput.h" -#include "QMap3DWidget.h" +#include "QGCToolWidget.h" + +#ifdef QGC_OSG_ENABLED +#include "Q3DWidgetFactory.h" +#endif // FIXME Move #include "PxQuadMAV.h" @@ -54,6 +39,20 @@ This file is part of the QGROUNDCONTROL project #include "LogCompressor.h" +MainWindow* MainWindow::instance() +{ + static MainWindow* _instance = 0; + if(_instance == 0) + { + _instance = new MainWindow(); + + /* Set the application as parent to ensure that this object + * will be destroyed when the main application exits */ + //_instance->setParent(qApp); + } + return _instance; +} + /** * Create new mainwindow. The constructor instantiates all parts of the user * interface. It does NOT show the mainwindow. To display it, call the show() @@ -61,26 +60,44 @@ This file is part of the QGROUNDCONTROL project * * @see QMainWindow::show() **/ -MainWindow::MainWindow(QWidget *parent) : +MainWindow::MainWindow(QWidget *parent): QMainWindow(parent), + toolsMenuActions(), + currentView(VIEW_OPERATOR), + aboutToCloseFlag(false), settings() { - this->hide(); - this->setVisible(false); + // Get current settings + settings.sync(); + + // Check if the settings exist, instantiate defaults if necessary + QString centralKey = buildMenuKey(SUB_SECTION_CHECKED, CENTRAL_MAP, currentView); + if (!settings.contains(centralKey)) + { + settings.setValue(centralKey,true); + } + + QString listKey = buildMenuKey(SUB_SECTION_CHECKED, MENU_UAS_LIST, currentView); + if (!settings.contains(listKey)) + { + settings.setValue(listKey, true); + } + + settings.sync(); // Setup user interface ui.setupUi(this); - buildWidgets(); + buildCommonWidgets(); - connectWidgets(); + connectCommonWidgets(); - arrangeCenterStack(); + arrangeCommonCenterStack(); configureWindowName(); // Add status bar - setStatusBar(createStatusBar()); + //setStatusBar(createStatusBar()); // Set the application style (not the same as a style sheet) // Set the style to Plastique @@ -89,15 +106,40 @@ MainWindow::MainWindow(QWidget *parent) : // Set style sheet as last step reloadStylesheet(); - // Create actions - connectActions(); + connectCommonActions(); + // Add option for custom widgets + connect(ui.actionNewCustomWidget, SIGNAL(triggered()), this, SLOT(createCustomWidget())); + // Allow to mute audio + ui.actionMuteAudioOutput->setChecked(GAudioOutput::instance()->isMuted()); + connect(ui.actionMuteAudioOutput, SIGNAL(triggered(bool)), GAudioOutput::instance(), SLOT(mute(bool))); + + // Set dock options + setDockOptions(AnimatedDocks | AllowTabbedDocks | AllowNestedDocks); - // Load widgets and show application windowa - loadWidgets(); + // Load mavlink view as default widget set + //loadMAVLinkView(); + + if (settings.contains("geometry")) + { + // Restore the window geometry + restoreGeometry(settings.value("geometry").toByteArray()); + } + else + { + // Adjust the size + adjustSize(); + } + + // Populate link menu + QList links = LinkManager::instance()->getLinks(); + foreach(LinkInterface* link, links) + { + this->addLink(link); + } - // Adjust the size - adjustSize(); + // Enable and update view + presentView(); } MainWindow::~MainWindow() @@ -106,288 +148,809 @@ MainWindow::~MainWindow() statusBar = NULL; } +void MainWindow::buildCommonWidgets() +{ + //TODO: move protocol outside UI + mavlink = new MAVLinkProtocol(); + + // Dock widgets + if (!controlDockWidget) + { + controlDockWidget = new QDockWidget(tr("Control"), this); + controlDockWidget->setWidget( new UASControlWidget(this) ); + addToToolsMenu (controlDockWidget, tr("Control"), SLOT(showToolWidget()), MENU_UAS_CONTROL, Qt::LeftDockWidgetArea); + } + + if (!listDockWidget) + { + listDockWidget = new QDockWidget(tr("Unmanned Systems"), this); + listDockWidget->setWidget( new UASListWidget(this) ); + addToToolsMenu (listDockWidget, tr("Unmanned Systems"), SLOT(showToolWidget()), MENU_UAS_LIST, Qt::RightDockWidgetArea); + } + + if (!waypointsDockWidget) + { + waypointsDockWidget = new QDockWidget(tr("Waypoint List"), this); + waypointsDockWidget->setWidget( new WaypointList(this, NULL) ); + addToToolsMenu (waypointsDockWidget, tr("Waypoints List"), SLOT(showToolWidget()), MENU_WAYPOINTS, Qt::BottomDockWidgetArea); + } + + if (!infoDockWidget) + { + infoDockWidget = new QDockWidget(tr("Status Details"), this); + infoDockWidget->setWidget( new UASInfoWidget(this) ); + addToToolsMenu (infoDockWidget, tr("Status Details"), SLOT(showToolWidget()), MENU_STATUS, Qt::RightDockWidgetArea); + } + + if (!debugConsoleDockWidget) + { + debugConsoleDockWidget = new QDockWidget(tr("Communication Console"), this); + debugConsoleDockWidget->setWidget( new DebugConsole(this) ); + addToToolsMenu (debugConsoleDockWidget, tr("Communication Console"), SLOT(showToolWidget()), MENU_DEBUG_CONSOLE, Qt::BottomDockWidgetArea); + } + + // Center widgets + if (!mapWidget) + { + mapWidget = new MapWidget(this); + addToCentralWidgetsMenu (mapWidget, "Maps", SLOT(showCentralWidget()),CENTRAL_MAP); + } + + if (!protocolWidget) + { + protocolWidget = new XMLCommProtocolWidget(this); + addToCentralWidgetsMenu (protocolWidget, "Mavlink Generator", SLOT(showCentralWidget()),CENTRAL_PROTOCOL); + } +} -void MainWindow::buildWidgets() +void MainWindow::buildPxWidgets() { //FIXME: memory of acceptList will never be freed again QStringList* acceptList = new QStringList(); - acceptList->append("roll IMU"); - acceptList->append("pitch IMU"); - acceptList->append("yaw IMU"); - acceptList->append("rollspeed IMU"); - acceptList->append("pitchspeed IMU"); - acceptList->append("yawspeed IMU"); + acceptList->append("-180,roll (deg),+180"); + acceptList->append("-180,pitch (deg),+180"); + acceptList->append("-180,yaw (deg),+180"); + + acceptList->append("-500,roll V (deg/s),+500"); + acceptList->append("-500,pitch V (deg/s),+500"); + acceptList->append("-500,yaw V (deg/s),+500"); //FIXME: memory of acceptList2 will never be freed again QStringList* acceptList2 = new QStringList(); - acceptList2->append("Battery"); - acceptList2->append("Pressure"); + acceptList2->append("0,Abs pressure,65500"); + acceptList2->append("-2000,Accel. X, 2000"); + acceptList2->append("-2000,Accel. Y, 2000"); - //TODO: move protocol outside UI - mavlink = new MAVLinkProtocol(); + if (!linechartWidget) + { + // Center widgets + linechartWidget = new Linecharts(this); + addToCentralWidgetsMenu(linechartWidget, "Line Plots", SLOT(showCentralWidget()), CENTRAL_LINECHART); + } - // Center widgets - linechartWidget = new Linecharts(this); - hudWidget = new HUD(640, 480, this); - mapWidget = new MapWidget(this); - protocolWidget = new XMLCommProtocolWidget(this); - dataplotWidget = new QGCDataPlot2D(this); - map3DWidget = new QMap3DWidget(this); - // Dock widgets - controlDockWidget = new QDockWidget(tr("Control"), this); - controlDockWidget->setWidget( new UASControlWidget(this) ); + if (!hudWidget) + { + hudWidget = new HUD(320, 240, this); + addToCentralWidgetsMenu(hudWidget, "HUD", SLOT(showCentralWidget()), CENTRAL_HUD); + } + + if (!dataplotWidget) + { + dataplotWidget = new QGCDataPlot2D(this); + addToCentralWidgetsMenu(dataplotWidget, "Data Plots", SLOT(showCentralWidget()), CENTRAL_DATA_PLOT); + } - listDockWidget = new QDockWidget(tr("Unmanned Systems"), this); - listDockWidget->setWidget( new UASListWidget(this) ); +#ifdef QGC_OSG_ENABLED + if (!_3DWidget) + { + _3DWidget = Q3DWidgetFactory::get("PIXHAWK"); + addToCentralWidgetsMenu(_3DWidget, "Local 3D", SLOT(showCentralWidget()), CENTRAL_3D_LOCAL); + } +#endif + +#ifdef QGC_OSGEARTH_ENABLED + if (!_3DMapWidget) + { + _3DMapWidget = Q3DWidgetFactory::get("MAP3D"); + addToCentralWidgetsMenu(_3DMapWidget, "OSG Earth 3D", SLOT(showCentralWidget()), CENTRAL_OSGEARTH); + } +#endif - waypointsDockWidget = new QDockWidget(tr("Waypoint List"), this); - waypointsDockWidget->setWidget( new WaypointList(this, NULL) ); +#if (defined _MSC_VER) | (defined Q_OS_MAC) + if (!gEarthWidget) + { + gEarthWidget = new QGCGoogleEarthView(this); + addToCentralWidgetsMenu(gEarthWidget, "Google Earth", SLOT(showCentralWidget()), CENTRAL_GOOGLE_EARTH); + } - infoDockWidget = new QDockWidget(tr("Status Details"), this); - infoDockWidget->setWidget( new UASInfoWidget(this) ); +#endif - detectionDockWidget = new QDockWidget(tr("Object Recognition"), this); - detectionDockWidget->setWidget( new ObjectDetectionView("images/patterns", this) ); + // Dock widgets - debugConsoleDockWidget = new QDockWidget(tr("Communication Console"), this); - debugConsoleDockWidget->setWidget( new DebugConsole(this) ); + if (!detectionDockWidget) + { + detectionDockWidget = new QDockWidget(tr("Object Recognition"), this); + detectionDockWidget->setWidget( new ObjectDetectionView("images/patterns", this) ); + addToToolsMenu (detectionDockWidget, tr("Object Recognition"), SLOT(showToolWidget()), MENU_DETECTION, Qt::RightDockWidgetArea); + } - parametersDockWidget = new QDockWidget(tr("Onboard Parameters"), this); - parametersDockWidget->setWidget( new ParameterInterface(this) ); + if (!parametersDockWidget) + { + parametersDockWidget = new QDockWidget(tr("Onboard Parameters"), this); + parametersDockWidget->setWidget( new ParameterInterface(this) ); + addToToolsMenu (parametersDockWidget, tr("Onboard Parameters"), SLOT(showToolWidget()), MENU_PARAMETERS, Qt::RightDockWidgetArea); + } - watchdogControlDockWidget = new QDockWidget(tr("Process Control"), this); - watchdogControlDockWidget->setWidget( new WatchdogControl(this) ); + if (!watchdogControlDockWidget) + { + watchdogControlDockWidget = new QDockWidget(tr("Process Control"), this); + watchdogControlDockWidget->setWidget( new WatchdogControl(this) ); + addToToolsMenu (watchdogControlDockWidget, tr("Process Control"), SLOT(showToolWidget()), MENU_WATCHDOG, Qt::BottomDockWidgetArea); + } - hsiDockWidget = new QDockWidget(tr("Horizontal Situation Indicator"), this); - hsiDockWidget->setWidget( new HSIDisplay(this) ); + if (!hsiDockWidget) + { + hsiDockWidget = new QDockWidget(tr("Horizontal Situation Indicator"), this); + hsiDockWidget->setWidget( new HSIDisplay(this) ); + addToToolsMenu (hsiDockWidget, tr("HSI"), SLOT(showToolWidget()), MENU_HSI, Qt::BottomDockWidgetArea); + } - headDown1DockWidget = new QDockWidget(tr("Primary Flight Display"), this); - headDown1DockWidget->setWidget( new HDDisplay(acceptList, this) ); + if (!headDown1DockWidget) + { + headDown1DockWidget = new QDockWidget(tr("Flight Display"), this); + headDown1DockWidget->setWidget( new HDDisplay(acceptList, "Flight Display", this) ); + addToToolsMenu (headDown1DockWidget, tr("Flight Display"), SLOT(showToolWidget()), MENU_HDD_1, Qt::RightDockWidgetArea); + } - headDown2DockWidget = new QDockWidget(tr("Payload Status"), this); - headDown2DockWidget->setWidget( new HDDisplay(acceptList2, this) ); + if (!headDown2DockWidget) + { + headDown2DockWidget = new QDockWidget(tr("Payload Status"), this); + headDown2DockWidget->setWidget( new HDDisplay(acceptList2, "Payload Status", this) ); + addToToolsMenu (headDown2DockWidget, tr("Payload Status"), SLOT(showToolWidget()), MENU_HDD_2, Qt::RightDockWidgetArea); + } - rcViewDockWidget = new QDockWidget(tr("Radio Control"), this); - rcViewDockWidget->setWidget( new QGCRemoteControlView(this) ); + if (!rcViewDockWidget) + { + rcViewDockWidget = new QDockWidget(tr("Radio Control"), this); + rcViewDockWidget->setWidget( new QGCRemoteControlView(this) ); + addToToolsMenu (rcViewDockWidget, tr("Radio Control"), SLOT(showToolWidget()), MENU_RC_VIEW, Qt::BottomDockWidgetArea); + } - headUpDockWidget = new QDockWidget(tr("Control Indicator"), this); - headUpDockWidget->setWidget( new HUD(320, 240, this)); + if (!headUpDockWidget) + { + headUpDockWidget = new QDockWidget(tr("HUD"), this); + headUpDockWidget->setWidget( new HUD(320, 240, this)); + addToToolsMenu (headUpDockWidget, tr("Control Indicator"), SLOT(showToolWidget()), MENU_HUD, Qt::LeftDockWidgetArea); + } // Dialogue widgets //FIXME: free memory in destructor - joystick = new JoystickInput(); + if (!joystick) + { + joystick = new JoystickInput(); + } } -/** - * Connect all signals and slots of the main window widgets - */ -void MainWindow::connectWidgets() +void MainWindow::buildSlugsWidgets() { - if (linechartWidget) + if (!linechartWidget) { - connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), - linechartWidget, SLOT(addSystem(UASInterface*))); - connect(UASManager::instance(), SIGNAL(activeUASSet(int)), - linechartWidget, SLOT(selectSystem(int))); - connect(linechartWidget, SIGNAL(logfileWritten(QString)), - this, SLOT(loadDataView(QString))); + // Center widgets + linechartWidget = new Linecharts(this); } - if (infoDockWidget && infoDockWidget->widget()) + + if (!headUpDockWidget) { - connect(mavlink, SIGNAL(receiveLossChanged(int, float)), - infoDockWidget->widget(), SLOT(updateSendLoss(int, float))); + // Dock widgets + headUpDockWidget = new QDockWidget(tr("Control Indicator"), this); + headUpDockWidget->setWidget( new HUD(320, 240, this)); + addToToolsMenu (headUpDockWidget, tr("HUD"), SLOT(showToolWidget()), MENU_HUD, Qt::LeftDockWidgetArea); } - if (mapWidget && waypointsDockWidget->widget()) + + if (!rcViewDockWidget) { - // clear path create on the map - connect(waypointsDockWidget->widget(), SIGNAL(clearPathclicked()), mapWidget, SLOT(clearPath())); - // add Waypoint widget in the WaypointList widget when mouse clicked - connect(mapWidget, SIGNAL(captureMapCoordinateClick(QPointF)), waypointsDockWidget->widget(), SLOT(addWaypointMouse(QPointF))); - // it notifies that a waypoint global goes to do create - connect(mapWidget, SIGNAL(createGlobalWP(bool, QPointF)), waypointsDockWidget->widget(), SLOT(setIsWPGlobal(bool, QPointF))); - connect(mapWidget, SIGNAL(sendGeometryEndDrag(QPointF,int)), waypointsDockWidget->widget(), SLOT(waypointGlobalChanged(QPointF,int)) ); + rcViewDockWidget = new QDockWidget(tr("Radio Control"), this); + rcViewDockWidget->setWidget( new QGCRemoteControlView(this) ); + addToToolsMenu (rcViewDockWidget, tr("Radio Control"), SLOT(showToolWidget()), MENU_RC_VIEW, Qt::BottomDockWidgetArea); + } - // it notifies that a waypoint global goes to do create and a map graphic too - connect(waypointsDockWidget->widget(), SIGNAL(createWaypointAtMap(QPointF)), mapWidget, SLOT(createWaypointGraphAtMap(QPointF))); - // it notifies that a waypoint global change it´s position by spinBox on Widget WaypointView - connect(waypointsDockWidget->widget(), SIGNAL(changePositionWPGlobalBySpinBox(int,float,float)), mapWidget, SLOT(changeGlobalWaypointPositionBySpinBox(int,float,float))); + if (!slugsDataWidget) + { + // Dialog widgets + slugsDataWidget = new QDockWidget(tr("Slugs Data"), this); + slugsDataWidget->setWidget( new SlugsDataSensorView(this)); + addToToolsMenu (slugsDataWidget, tr("Telemetry Data"), SLOT(showToolWidget()), MENU_SLUGS_DATA, Qt::RightDockWidgetArea); } -} -void MainWindow::arrangeCenterStack() -{ + if (!slugsPIDControlWidget) + { + slugsPIDControlWidget = new QDockWidget(tr("Slugs PID Control"), this); + slugsPIDControlWidget->setWidget(new SlugsPIDControl(this)); + addToToolsMenu (slugsPIDControlWidget, tr("PID Configuration"), SLOT(showToolWidget()), MENU_SLUGS_PID, Qt::LeftDockWidgetArea); + } - QStackedWidget *centerStack = new QStackedWidget(this); - if (!centerStack) return; - if (linechartWidget) centerStack->addWidget(linechartWidget); - if (protocolWidget) centerStack->addWidget(protocolWidget); - if (mapWidget) centerStack->addWidget(mapWidget); - if (map3DWidget) centerStack->addWidget(map3DWidget); - if (hudWidget) centerStack->addWidget(hudWidget); - if (dataplotWidget) centerStack->addWidget(dataplotWidget); + if (!slugsHilSimWidget) + { + slugsHilSimWidget = new QDockWidget(tr("Slugs Hil Sim"), this); + slugsHilSimWidget->setWidget( new SlugsHilSim(this)); + addToToolsMenu (slugsHilSimWidget, tr("HIL Sim Configuration"), SLOT(showToolWidget()), MENU_SLUGS_HIL, Qt::LeftDockWidgetArea); + } - setCentralWidget(centerStack); + if (!slugsCamControlWidget) + { + slugsCamControlWidget = new QDockWidget(tr("Slugs Video Camera Control"), this); + slugsCamControlWidget->setWidget(new SlugsVideoCamControl(this)); + addToToolsMenu (slugsCamControlWidget, tr("Camera Control"), SLOT(showToolWidget()), MENU_SLUGS_CAMERA, Qt::BottomDockWidgetArea); + } } -void MainWindow::configureWindowName() + +void MainWindow::addToCentralWidgetsMenu ( QWidget* widget, + const QString title, + const char * slotName, + TOOLS_WIDGET_NAMES centralWidget) { - QList hostAddresses = QNetworkInterface::allAddresses(); - QString windowname = qApp->applicationName() + " " + qApp->applicationVersion(); - bool prevAddr = false; + QAction* tempAction; - windowname.append(" (" + QHostInfo::localHostName() + ": "); - for (int i = 0; i < hostAddresses.size(); i++) + // Add the separator that will separate tools from central Widgets + if (!toolsMenuActions[CENTRAL_SEPARATOR]) { - // Exclude loopback IPv4 and all IPv6 addresses - if (hostAddresses.at(i) != QHostAddress("127.0.0.1") && !hostAddresses.at(i).toString().contains(":")) - { - if(prevAddr) windowname.append("/"); - windowname.append(hostAddresses.at(i).toString()); - prevAddr = true; - } + tempAction = ui.menuTools->addSeparator(); + toolsMenuActions[CENTRAL_SEPARATOR] = tempAction; + tempAction->setData(CENTRAL_SEPARATOR); } - windowname.append(")"); + tempAction = ui.menuTools->addAction(title); - setWindowTitle(windowname); + tempAction->setCheckable(true); + tempAction->setData(centralWidget); -#ifndef Q_WS_MAC - //qApp->setWindowIcon(QIcon(":/core/images/qtcreator_logo_128.png")); -#endif -} + // populate the Hashes + toolsMenuActions[centralWidget] = tempAction; + dockWidgets[centralWidget] = widget; -QStatusBar* MainWindow::createStatusBar() -{ - QStatusBar* bar = new QStatusBar(); - /* Add status fields and messages */ - /* Enable resize grip in the bottom right corner */ - bar->setSizeGripEnabled(true); - return bar; -} + QString chKey = buildMenuKey(SUB_SECTION_CHECKED, centralWidget, currentView); -void MainWindow::startVideoCapture() -{ - QString format = "bmp"; - QString initialPath = QDir::currentPath() + tr("/untitled.") + format; + if (!settings.contains(chKey)) + { + settings.setValue(chKey,false); + tempAction->setChecked(false); + } + else + { + tempAction->setChecked(settings.value(chKey).toBool()); + } - QString screenFileName = QFileDialog::getSaveFileName(this, tr("Save As"), - initialPath, - tr("%1 Files (*.%2);;All Files (*)") - .arg(format.toUpper()) - .arg(format)); - delete videoTimer; - videoTimer = new QTimer(this); - //videoTimer->setInterval(40); - //connect(videoTimer, SIGNAL(timeout()), this, SLOT(saveScreen())); - //videoTimer->stop(); + // connect the action + connect(tempAction,SIGNAL(triggered()),this, slotName); } -void MainWindow::stopVideoCapture() -{ - videoTimer->stop(); - - // TODO Convert raw images to PNG -} -void MainWindow::saveScreen() +void MainWindow::showCentralWidget() { - QPixmap window = QPixmap::grabWindow(this->winId()); - QString format = "bmp"; + QAction* senderAction = qobject_cast(sender()); + int tool = senderAction->data().toInt(); + QString chKey; - if (!screenFileName.isEmpty()) + // check the current action + + if (senderAction && dockWidgets[tool]) { - window.save(screenFileName, format.toAscii()); + + // uncheck all central widget actions + QHashIterator i(toolsMenuActions); + while (i.hasNext()) { + i.next(); + qDebug() << "shCW" << i.key() << "read"; + if (i.value() && i.value()->data().toInt() > 255){ + i.value()->setChecked(false); + + // update the settings + chKey = buildMenuKey (SUB_SECTION_CHECKED,static_cast(i.value()->data().toInt()), currentView); + settings.setValue(chKey,false); + } + } + + // check the current action + qDebug() << senderAction->text(); + senderAction->setChecked(true); + + // update the central widget + centerStack->setCurrentWidget(dockWidgets[tool]); + + // store the selected central widget + chKey = buildMenuKey (SUB_SECTION_CHECKED,static_cast(tool), currentView); + settings.setValue(chKey,true); + settings.sync(); + + presentView(); } } /** - * Reload the style sheet from disk. The function tries to load "qgroundcontrol.css" from the application - * directory (which by default does not exist). If it fails, it will load the bundled default CSS - * from memory. - * To customize the application, just create a qgroundcontrol.css file in the application directory + * Adds a widget to the tools menu and sets it visible if it was + * enabled last time. */ -void MainWindow::reloadStylesheet() +void MainWindow::addToToolsMenu ( QWidget* widget, + const QString title, + const char * slotName, + TOOLS_WIDGET_NAMES tool, + Qt::DockWidgetArea location) { - // Load style sheet - QFile* styleSheet = new QFile(QCoreApplication::applicationDirPath() + "/qgroundcontrol.css"); - if (!styleSheet->exists()) - { - styleSheet = new QFile(":/images/style-mission.css"); - } - if (styleSheet->open(QIODevice::ReadOnly | QIODevice::Text)) + QAction* tempAction; + QString posKey, chKey; + + + if (toolsMenuActions[CENTRAL_SEPARATOR]) { - QString style = QString(styleSheet->readAll()); - style.replace("ICONDIR", QCoreApplication::applicationDirPath()+ "/images/"); - qApp->setStyleSheet(style); + tempAction = new QAction(title, this); + ui.menuTools->insertAction(toolsMenuActions[CENTRAL_SEPARATOR], + tempAction); } else { - qDebug() << "Style not set:" << styleSheet->fileName() << "opened: " << styleSheet->isOpen(); + tempAction = ui.menuTools->addAction(title); } - delete styleSheet; -} -void MainWindow::showStatusMessage(const QString& status, int timeout) -{ - statusBar->showMessage(status, timeout); -} + tempAction->setCheckable(true); + tempAction->setData(tool); -void MainWindow::showStatusMessage(const QString& status) -{ - statusBar->showMessage(status, 5); -} + // populate the Hashes + toolsMenuActions[tool] = tempAction; + dockWidgets[tool] = widget; + qDebug() << widget; -/** -* @brief Create all actions associated to the main window -* -**/ -void MainWindow::connectActions() -{ - // Connect actions from ui - connect(ui.actionAdd_Link, SIGNAL(triggered()), this, SLOT(addLink())); + posKey = buildMenuKey (SUB_SECTION_LOCATION,tool, currentView); - // Connect internal actions - connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), this, SLOT(UASCreated(UASInterface*))); + if (!settings.contains(posKey)) + { + settings.setValue(posKey,location); + dockWidgetLocations[tool] = location; + } + else + { + dockWidgetLocations[tool] = static_cast (settings.value(posKey, Qt::RightDockWidgetArea).toInt()); + } - // Connect user interface controls - connect(ui.actionLiftoff, SIGNAL(triggered()), UASManager::instance(), SLOT(launchActiveUAS())); - connect(ui.actionLand, SIGNAL(triggered()), UASManager::instance(), SLOT(returnActiveUAS())); - connect(ui.actionEmergency_Land, SIGNAL(triggered()), UASManager::instance(), SLOT(stopActiveUAS())); - connect(ui.actionEmergency_Kill, SIGNAL(triggered()), UASManager::instance(), SLOT(killActiveUAS())); + chKey = buildMenuKey(SUB_SECTION_CHECKED,tool, currentView); - connect(ui.actionConfiguration, SIGNAL(triggered()), UASManager::instance(), SLOT(configureActiveUAS())); + if (!settings.contains(chKey)) + { + settings.setValue(chKey,false); + tempAction->setChecked(false); + widget->setVisible(false); + } + else + { + tempAction->setChecked(settings.value(chKey).toBool()); + widget->setVisible(settings.value(chKey, false).toBool()); + } - // User interface actions - connect(ui.actionPilotView, SIGNAL(triggered()), this, SLOT(loadPilotView())); - connect(ui.actionEngineerView, SIGNAL(triggered()), this, SLOT(loadEngineerView())); - connect(ui.actionOperatorView, SIGNAL(triggered()), this, SLOT(loadOperatorView())); - connect(ui.action3DView, SIGNAL(triggered()), this, SLOT(load3DView())); - connect(ui.actionShow_full_view, SIGNAL(triggered()), this, SLOT(loadAllView())); - connect(ui.actionShow_MAVLink_view, SIGNAL(triggered()), this, SLOT(loadMAVLinkView())); - connect(ui.actionShow_data_analysis_view, SIGNAL(triggered()), this, SLOT(loadDataView())); - connect(ui.actionStyleConfig, SIGNAL(triggered()), this, SLOT(reloadStylesheet())); - connect(ui.actionGlobalOperatorView, SIGNAL(triggered()), this, SLOT(loadGlobalOperatorView())); - connect(ui.actionOnline_documentation, SIGNAL(triggered()), this, SLOT(showHelp())); - connect(ui.actionCredits_Developers, SIGNAL(triggered()), this, SLOT(showCredits())); - connect(ui.actionProject_Roadmap, SIGNAL(triggered()), this, SLOT(showRoadMap())); + // connect the action + connect(tempAction,SIGNAL(triggered()),this, slotName); - // Joystick configuration - connect(ui.actionJoystickSettings, SIGNAL(triggered()), this, SLOT(configure())); + connect(qobject_cast (dockWidgets[tool]), + SIGNAL(visibilityChanged(bool)), this, SLOT(updateVisibilitySettings(bool))); + connect(qobject_cast (dockWidgets[tool]), + SIGNAL(dockLocationChanged(Qt::DockWidgetArea)), this, SLOT(updateLocationSettings(Qt::DockWidgetArea))); } -void MainWindow::showHelp() +void MainWindow::showToolWidget() { - if(!QDesktopServices::openUrl(QUrl("http://qgroundcontrol.org/user_guide"))) + QAction* temp = qobject_cast(sender()); + int tool = temp->data().toInt(); + + + if (temp && dockWidgets[tool]) { - QMessageBox msgBox; - msgBox.setIcon(QMessageBox::Critical); - msgBox.setText("Could not open help in browser"); - msgBox.setInformativeText("To get to the online help, please open http://qgroundcontrol.org/user_guide in a browser."); + if (temp->isChecked()) + { + addDockWidget(dockWidgetLocations[tool], qobject_cast (dockWidgets[tool])); + qobject_cast(dockWidgets[tool])->show(); + } + else + { + removeDockWidget(qobject_cast(dockWidgets[tool])); + } + QString chKey = buildMenuKey (SUB_SECTION_CHECKED,static_cast(tool), currentView); + settings.setValue(chKey,temp->isChecked()); + settings.sync(); + } +} + + +void MainWindow::showTheWidget (TOOLS_WIDGET_NAMES widget, VIEW_SECTIONS view) +{ + bool tempVisible; + Qt::DockWidgetArea tempLocation; + QDockWidget* tempWidget = static_cast (dockWidgets[widget]); + + tempVisible = settings.value(buildMenuKey (SUB_SECTION_CHECKED,widget,view), false).toBool(); + + // Some widgets are per default visible. Overwrite the settings value if not present. + if (widget == MainWindow::MENU_UAS_LIST) + { + if (!settings.contains(buildMenuKey (SUB_SECTION_CHECKED,widget,view))) + { + tempVisible = true; + } + } + + if (tempWidget) + { + toolsMenuActions[widget]->setChecked(tempVisible); + } + + + //qDebug() << buildMenuKey (SUB_SECTION_CHECKED,widget,view) << tempVisible; + + tempLocation = static_cast (settings.value(buildMenuKey (SUB_SECTION_LOCATION,widget, view), QVariant(Qt::RightDockWidgetArea)).toInt()); + + // if (widget == MainWindow::MENU_UAS_LIST) + // { + // if (!settings.contains(buildMenuKey (SUB_SECTION_LOCATION,widget, view))) + // { + // tempLocation = Qt::RightDockWidgetArea; + // } + // } + + if ((tempWidget != NULL) && tempVisible) + { + addDockWidget(tempLocation, tempWidget); + tempWidget->show(); + } + +} + +QString MainWindow::buildMenuKey(SETTINGS_SECTIONS section, TOOLS_WIDGET_NAMES tool, VIEW_SECTIONS view) +{ + // Key is built as follows: autopilot_type/section_menu/view/tool/section + int apType; + + apType = (UASManager::instance() && UASManager::instance()->silentGetActiveUAS())? + UASManager::instance()->getActiveUAS()->getAutopilotType(): + -1; + + return (QString::number(apType) + "/" + + QString::number(SECTION_MENU) + "/" + + QString::number(view) + "/" + + QString::number(tool) + "/" + + QString::number(section) + "/" ); +} + +void MainWindow::closeEvent(QCloseEvent *event) +{ + settings.setValue("geometry", saveGeometry()); + //settings.setValue("windowState", saveState()); + aboutToCloseFlag = true; + settings.setValue("VIEW_ON_APPLICATION_CLOSE", currentView); + settings.sync(); + QMainWindow::closeEvent(event); +} + +/** + * Stores the visibility setting of each widget. This method + * will only change the settings if the application is not + * about to close. + */ +void MainWindow::updateVisibilitySettings (bool vis) +{ + if (!aboutToCloseFlag) + { + + QDockWidget* temp = qobject_cast(sender()); + + if (temp) + { + QHashIterator i(dockWidgets); + while (i.hasNext()) + { + i.next(); + if ((static_cast (dockWidgets[i.key()])) == temp) + { + QString chKey = buildMenuKey (SUB_SECTION_CHECKED,static_cast(i.key()), currentView); + settings.setValue(chKey,vis); + settings.sync(); + toolsMenuActions[i.key()]->setChecked(vis); + break; + } + } + } + } +} + +void MainWindow::updateLocationSettings (Qt::DockWidgetArea location) +{ + QDockWidget* temp = qobject_cast(sender()); + + QHashIterator i(dockWidgets); + while (i.hasNext()) + { + i.next(); + if ((static_cast (dockWidgets[i.key()])) == temp) + { + QString posKey = buildMenuKey (SUB_SECTION_LOCATION,static_cast(i.key()), currentView); + settings.setValue(posKey,location); + break; + } + } +} + +/** + * Connect the signals and slots of the common window widgets + */ +void MainWindow::connectCommonWidgets() +{ + if (infoDockWidget && infoDockWidget->widget()) + { + connect(mavlink, SIGNAL(receiveLossChanged(int, float)), + infoDockWidget->widget(), SLOT(updateSendLoss(int, float))); + } + + if (mapWidget && waypointsDockWidget->widget()) + { + // clear path create on the map + connect(waypointsDockWidget->widget(), SIGNAL(clearPathclicked()), mapWidget, SLOT(clearPath())); + // add Waypoint widget in the WaypointList widget when mouse clicked + connect(mapWidget, SIGNAL(captureMapCoordinateClick(QPointF)), waypointsDockWidget->widget(), SLOT(addWaypointMouse(QPointF))); + + // it notifies that a waypoint global goes to do create and a map graphic too + connect(waypointsDockWidget->widget(), SIGNAL(createWaypointAtMap(QPointF)), mapWidget, SLOT(createWaypointGraphAtMap(QPointF))); + } +} + +void MainWindow::createCustomWidget() +{ + qDebug() << "ADDING CUSTOM WIDGET"; + QGCToolWidget* tool = new QGCToolWidget(this); + QDockWidget* dock = new QDockWidget("Unnamed Tool", this); + dock->setWidget(tool); + this->addDockWidget(Qt::LeftDockWidgetArea, dock); + dock->setVisible(true); +} + +void MainWindow::connectPxWidgets() +{ + // No special connections necessary at this point +} + +void MainWindow::connectSlugsWidgets() +{ + if (slugsHilSimWidget && slugsHilSimWidget->widget()){ + connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), + slugsHilSimWidget->widget(), SLOT(activeUasSet(UASInterface*))); + } + + if (slugsDataWidget && slugsDataWidget->widget()){ + connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), + slugsDataWidget->widget(), SLOT(setActiveUAS(UASInterface*))); + } + + +} + +void MainWindow::arrangeCommonCenterStack() +{ + centerStack = new QStackedWidget(this); + + if (!centerStack) return; + + if (mapWidget && (centerStack->indexOf(mapWidget) == -1)) centerStack->addWidget(mapWidget); + if (protocolWidget && (centerStack->indexOf(protocolWidget) == -1)) centerStack->addWidget(protocolWidget); + + setCentralWidget(centerStack); +} + +void MainWindow::arrangePxCenterStack() +{ + + if (!centerStack) { + qDebug() << "Center Stack not Created!"; + return; + } + + + if (linechartWidget && (centerStack->indexOf(linechartWidget) == -1)) centerStack->addWidget(linechartWidget); + +#ifdef QGC_OSG_ENABLED + if (_3DWidget && (centerStack->indexOf(_3DWidget) == -1)) centerStack->addWidget(_3DWidget); +#endif +#ifdef QGC_OSGEARTH_ENABLED + if (_3DMapWidget && (centerStack->indexOf(_3DMapWidget) == -1)) centerStack->addWidget(_3DMapWidget); +#endif +#if (defined _MSC_VER) | (defined Q_OS_MAC) + if (gEarthWidget && (centerStack->indexOf(gEarthWidget) == -1)) centerStack->addWidget(gEarthWidget); +#endif + if (hudWidget && (centerStack->indexOf(hudWidget) == -1)) centerStack->addWidget(hudWidget); + if (dataplotWidget && (centerStack->indexOf(dataplotWidget) == -1)) centerStack->addWidget(dataplotWidget); +} + +void MainWindow::arrangeSlugsCenterStack() +{ + + if (!centerStack) { + qDebug() << "Center Stack not Created!"; + return; + } + + if (linechartWidget && (centerStack->indexOf(linechartWidget) == -1)) centerStack->addWidget(linechartWidget); + if (hudWidget && (centerStack->indexOf(hudWidget) == -1)) centerStack->addWidget(hudWidget); + +} + +void MainWindow::configureWindowName() +{ + QList hostAddresses = QNetworkInterface::allAddresses(); + QString windowname = qApp->applicationName() + " " + qApp->applicationVersion(); + bool prevAddr = false; + + windowname.append(" (" + QHostInfo::localHostName() + ": "); + + for (int i = 0; i < hostAddresses.size(); i++) + { + // Exclude loopback IPv4 and all IPv6 addresses + if (hostAddresses.at(i) != QHostAddress("127.0.0.1") && !hostAddresses.at(i).toString().contains(":")) + { + if(prevAddr) windowname.append("/"); + windowname.append(hostAddresses.at(i).toString()); + prevAddr = true; + } + } + + windowname.append(")"); + + setWindowTitle(windowname); + +#ifndef Q_WS_MAC + //qApp->setWindowIcon(QIcon(":/core/images/qtcreator_logo_128.png")); +#endif +} + +QStatusBar* MainWindow::createStatusBar() +{ + QStatusBar* bar = new QStatusBar(); + /* Add status fields and messages */ + /* Enable resize grip in the bottom right corner */ + bar->setSizeGripEnabled(true); + return bar; +} + +void MainWindow::startVideoCapture() +{ + QString format = "bmp"; + QString initialPath = QDir::currentPath() + tr("/untitled.") + format; + + QString screenFileName = QFileDialog::getSaveFileName(this, tr("Save As"), + initialPath, + tr("%1 Files (*.%2);;All Files (*)") + .arg(format.toUpper()) + .arg(format)); + delete videoTimer; + videoTimer = new QTimer(this); + //videoTimer->setInterval(40); + //connect(videoTimer, SIGNAL(timeout()), this, SLOT(saveScreen())); + //videoTimer->stop(); +} + +void MainWindow::stopVideoCapture() +{ + videoTimer->stop(); + + // TODO Convert raw images to PNG +} + +void MainWindow::saveScreen() +{ + QPixmap window = QPixmap::grabWindow(this->winId()); + QString format = "bmp"; + + if (!screenFileName.isEmpty()) + { + window.save(screenFileName, format.toAscii()); + } +} + +/** + * Reload the style sheet from disk. The function tries to load "qgroundcontrol.css" from the application + * directory (which by default does not exist). If it fails, it will load the bundled default CSS + * from memory. + * To customize the application, just create a qgroundcontrol.css file in the application directory + */ +void MainWindow::reloadStylesheet() +{ + // Load style sheet + QFile* styleSheet = new QFile(QCoreApplication::applicationDirPath() + "/qgroundcontrol.css"); + if (!styleSheet->exists()) + { + styleSheet = new QFile(":/images/style-mission.css"); + } + if (styleSheet->open(QIODevice::ReadOnly | QIODevice::Text)) + { + QString style = QString(styleSheet->readAll()); + style.replace("ICONDIR", QCoreApplication::applicationDirPath()+ "/images/"); + qApp->setStyleSheet(style); + } + else + { + qDebug() << "Style not set:" << styleSheet->fileName() << "opened: " << styleSheet->isOpen(); + } + delete styleSheet; +} + +void MainWindow::showStatusMessage(const QString& status, int timeout) +{ + Q_UNUSED(status); + Q_UNUSED(timeout); + //statusBar->showMessage(status, timeout); +} + +void MainWindow::showStatusMessage(const QString& status) +{ + Q_UNUSED(status); + //statusBar->showMessage(status, 5); +} + +/** +* @brief Create all actions associated to the main window +* +**/ +void MainWindow::connectCommonActions() +{ + // Connect actions from ui + connect(ui.actionAdd_Link, SIGNAL(triggered()), this, SLOT(addLink())); + + // Connect internal actions + connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), this, SLOT(UASCreated(UASInterface*))); + + // Unmanned System controls + connect(ui.actionLiftoff, SIGNAL(triggered()), UASManager::instance(), SLOT(launchActiveUAS())); + connect(ui.actionLand, SIGNAL(triggered()), UASManager::instance(), SLOT(returnActiveUAS())); + connect(ui.actionEmergency_Land, SIGNAL(triggered()), UASManager::instance(), SLOT(stopActiveUAS())); + connect(ui.actionEmergency_Kill, SIGNAL(triggered()), UASManager::instance(), SLOT(killActiveUAS())); + + connect(ui.actionConfiguration, SIGNAL(triggered()), UASManager::instance(), SLOT(configureActiveUAS())); + + // Views actions + connect(ui.actionPilotsView, SIGNAL(triggered()), this, SLOT(loadPilotView())); + connect(ui.actionEngineersView, SIGNAL(triggered()), this, SLOT(loadEngineerView())); + connect(ui.actionOperatorsView, SIGNAL(triggered()), this, SLOT(loadOperatorView())); + + connect(ui.actionMavlinkView, SIGNAL(triggered()), this, SLOT(loadMAVLinkView())); + connect(ui.actionReloadStyle, SIGNAL(triggered()), this, SLOT(reloadStylesheet())); + + // Help Actions + connect(ui.actionOnline_documentation, SIGNAL(triggered()), this, SLOT(showHelp())); + connect(ui.actionDeveloper_Credits, SIGNAL(triggered()), this, SLOT(showCredits())); + connect(ui.actionProject_Roadmap, SIGNAL(triggered()), this, SLOT(showRoadMap())); +} + +void MainWindow::connectPxActions() +{ + ui.actionJoystickSettings->setVisible(true); + + // Joystick configuration + connect(ui.actionJoystickSettings, SIGNAL(triggered()), this, SLOT(configure())); + +} + +void MainWindow::connectSlugsActions() +{ + +} + +void MainWindow::showHelp() +{ + if(!QDesktopServices::openUrl(QUrl("http://qgroundcontrol.org/user_guide"))) + { + QMessageBox msgBox; + msgBox.setIcon(QMessageBox::Critical); + msgBox.setText("Could not open help in browser"); + msgBox.setInformativeText("To get to the online help, please open http://qgroundcontrol.org/user_guide in a browser."); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setDefaultButton(QMessageBox::Ok); msgBox.exec(); @@ -439,8 +1002,6 @@ void MainWindow::addLink() ui.menuNetwork->addAction(commWidget->getAction()); commWidget->show(); - - // TODO Implement the link removal! } void MainWindow::addLink(LinkInterface *link) @@ -531,652 +1092,371 @@ void MainWindow::UASCreated(UASInterface* uas) // TODO Stylesheet reloading should in theory not be necessary reloadStylesheet(); - // Check which type this UAS is of - PxQuadMAV* mav = dynamic_cast(uas); - if (mav) loadPixhawkView(); - SlugsMAV* mav2 = dynamic_cast(uas); - if (mav2) loadSlugsView(); - - } -} - -/** - * Clears the current view completely - */ -void MainWindow::clearView() -{ - // Halt HUD - if (hudWidget) hudWidget->stop(); - // Disable linechart - if (linechartWidget) linechartWidget->setActive(false); - // Halt HDDs - if (headDown1DockWidget) - { - HDDisplay* hddWidget = dynamic_cast( headDown1DockWidget->widget() ); - if (hddWidget) hddWidget->stop(); - } - if (headDown2DockWidget) - { - HDDisplay* hddWidget = dynamic_cast( headDown2DockWidget->widget() ); - if (hddWidget) hddWidget->stop(); - } - // Halt HSI - if (hsiDockWidget) - { - HSIDisplay* hsi = dynamic_cast( hsiDockWidget->widget() ); - if (hsi) hsi->stop(); - } - - // Remove all dock widgets from main window - QObjectList childList( this->children() ); - - QObjectList::iterator i; - QDockWidget* dockWidget; - for (i = childList.begin(); i != childList.end(); ++i) - { - dockWidget = dynamic_cast(*i); - if (dockWidget) - { - // Remove dock widget from main window - this->removeDockWidget(dockWidget); - // Deletion of dockWidget would also delete all child - // widgets of dockWidget - // Is there a way to unset a widget from QDockWidget? - } - } -} - -void MainWindow::loadSlugsView() -{ - clearView(); - // Engineer view, used in EMAV2009 - - // LINE CHART - if (linechartWidget) - { - QStackedWidget *centerStack = dynamic_cast(centralWidget()); - if (centerStack) - { - linechartWidget->setActive(true); - centerStack->setCurrentWidget(linechartWidget); - } - } - - // UAS CONTROL - if (controlDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, controlDockWidget); - controlDockWidget->show(); - } - - // UAS LIST - if (listDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, listDockWidget); - listDockWidget->show(); - } - - // UAS STATUS - if (infoDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, infoDockWidget); - infoDockWidget->show(); - } - - // HORIZONTAL SITUATION INDICATOR - if (hsiDockWidget) - { - HSIDisplay* hsi = dynamic_cast( hsiDockWidget->widget() ); - if (hsi) + switch (uas->getAutopilotType()) { - hsi->start(); - addDockWidget(Qt::LeftDockWidgetArea, hsiDockWidget); - hsiDockWidget->show(); - } - } - - // WAYPOINT LIST - if (waypointsDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, waypointsDockWidget); - waypointsDockWidget->show(); - } - - // DEBUG CONSOLE - if (debugConsoleDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, debugConsoleDockWidget); - debugConsoleDockWidget->show(); - } - - // ONBOARD PARAMETERS - if (parametersDockWidget) - { - addDockWidget(Qt::RightDockWidgetArea, parametersDockWidget); - parametersDockWidget->show(); - } - - this->show(); -} - -void MainWindow::loadPixhawkView() -{ - clearView(); - // Engineer view, used in EMAV2009 - - // 3D map - if (map3DWidget) - { - QStackedWidget *centerStack = dynamic_cast(centralWidget()); - if (centerStack) - { - //map3DWidget->setActive(true); - centerStack->setCurrentWidget(map3DWidget); - } - } - - // UAS CONTROL - if (controlDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, controlDockWidget); - controlDockWidget->show(); - } + case (MAV_AUTOPILOT_SLUGS): + { + // Build Slugs Widgets + buildSlugsWidgets(); + + // Connect Slugs Widgets + connectSlugsWidgets(); + + // Arrange Slugs Centerstack + arrangeSlugsCenterStack(); + + // Connect Slugs Actions + connectSlugsActions(); + + // FIXME: This type checking might be redundant + // if (slugsDataWidget) { + // SlugsDataSensorView* dataWidget = dynamic_cast(slugsDataWidget->widget()); + // if (dataWidget) { + // SlugsMAV* mav2 = dynamic_cast(uas); + // if (mav2) { + (dynamic_cast(slugsDataWidget->widget()))->addUAS(uas); + // //loadSlugsView(); + // loadGlobalOperatorView(); + // } + // } + // } + } + break; + default: + case (MAV_AUTOPILOT_GENERIC): + case (MAV_AUTOPILOT_ARDUPILOTMEGA): + case (MAV_AUTOPILOT_PIXHAWK): + { + // Build Pixhawk Widgets + buildPxWidgets(); - // HORIZONTAL SITUATION INDICATOR - if (hsiDockWidget) - { - HSIDisplay* hsi = dynamic_cast( hsiDockWidget->widget() ); - if (hsi) - { - hsi->start(); - addDockWidget(Qt::LeftDockWidgetArea, hsiDockWidget); - hsiDockWidget->show(); - } - } + // Connect Pixhawk Widgets + connectPxWidgets(); - // UAS LIST - if (listDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, listDockWidget); - listDockWidget->show(); - } + // Arrange Pixhawk Centerstack + arrangePxCenterStack(); - // UAS STATUS - if (infoDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, infoDockWidget); - infoDockWidget->show(); - } + // Connect Pixhawk Actions + connectPxActions(); - // WAYPOINT LIST - if (waypointsDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, waypointsDockWidget); - waypointsDockWidget->show(); - } + } + break; - // DEBUG CONSOLE - if (debugConsoleDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, debugConsoleDockWidget); - debugConsoleDockWidget->show(); - } + } - // ONBOARD PARAMETERS - if (parametersDockWidget) - { - addDockWidget(Qt::RightDockWidgetArea, parametersDockWidget); - parametersDockWidget->show(); - } + // Change the view only if this is the first UAS - this->show(); -} + // If this is the first connected UAS, it is both created as well as + // the currently active UAS + if (UASManager::instance()->getActiveUAS() == uas) + { + qDebug() << "UPDATING THE VIEW SINCE THIS IS THE FIRST CONNECTED SYSTEM"; -void MainWindow::loadDataView() -{ - clearView(); + // Load last view if setting is present + if (settings.contains("VIEW_ON_APPLICATION_CLOSE")) + { + int view = settings.value("VIEW_ON_APPLICATION_CLOSE").toInt(); + currentView = (VIEW_SECTIONS) view; + presentView(); + } + else + { + loadEngineerView(); + } + } - // DATAPLOT - if (dataplotWidget) - { - QStackedWidget *centerStack = dynamic_cast(centralWidget()); - if (centerStack) - centerStack->setCurrentWidget(dataplotWidget); } } -void MainWindow::loadDataView(QString fileName) +/** + * Clears the current view completely + */ +void MainWindow::clearView() { - clearView(); + // Remove all dock widgets from main window + QObjectList childList( this->children() ); - // DATAPLOT - if (dataplotWidget) + QObjectList::iterator i; + QDockWidget* dockWidget; + for (i = childList.begin(); i != childList.end(); ++i) { - QStackedWidget *centerStack = dynamic_cast(centralWidget()); - if (centerStack) + dockWidget = dynamic_cast(*i); + if (dockWidget) { - centerStack->setCurrentWidget(dataplotWidget); - dataplotWidget->loadFile(fileName); + // Remove dock widget from main window + //this->removeDockWidget(dockWidget); + dockWidget->setVisible(false); + // Deletion of dockWidget would also delete all child + // widgets of dockWidget + // Is there a way to unset a widget from QDockWidget? } } } -void MainWindow::loadPilotView() +void MainWindow::loadEngineerView() { clearView(); - // HEAD UP DISPLAY - if (hudWidget) - { - QStackedWidget *centerStack = dynamic_cast(centralWidget()); - if (centerStack) - { - centerStack->setCurrentWidget(hudWidget); - hudWidget->start(); - } - } - - //connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), pfd, SLOT(setActiveUAS(UASInterface*))); - if (headDown1DockWidget) - { - HDDisplay *hdd = dynamic_cast(headDown1DockWidget->widget()); - if (hdd) - { - addDockWidget(Qt::RightDockWidgetArea, headDown1DockWidget); - headDown1DockWidget->show(); - hdd->start(); - } - - } - if (headDown2DockWidget) - { - HDDisplay *hdd = dynamic_cast(headDown2DockWidget->widget()); - if (hdd) - { - addDockWidget(Qt::RightDockWidgetArea, headDown2DockWidget); - headDown2DockWidget->show(); - hdd->start(); - } - } + currentView = VIEW_ENGINEER; - this->show(); + presentView(); } void MainWindow::loadOperatorView() { clearView(); - // MAP - if (mapWidget) - { - QStackedWidget *centerStack = dynamic_cast(centralWidget()); - if (centerStack) - { - centerStack->setCurrentWidget(mapWidget); - } - } - - // UAS CONTROL - if (controlDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, controlDockWidget); - controlDockWidget->show(); - } + currentView = VIEW_OPERATOR; - // UAS LIST - if (listDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, listDockWidget); - listDockWidget->show(); - } + presentView(); +} - // UAS STATUS - if (infoDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, infoDockWidget); - infoDockWidget->show(); - } +void MainWindow::loadPilotView() +{ + clearView(); - // WAYPOINT LIST - if (waypointsDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, waypointsDockWidget); - waypointsDockWidget->show(); - } + currentView = VIEW_PILOT; - // HORIZONTAL SITUATION INDICATOR - if (hsiDockWidget) - { - HSIDisplay* hsi = dynamic_cast( hsiDockWidget->widget() ); - if (hsi) - { - addDockWidget(Qt::BottomDockWidgetArea, hsiDockWidget); - hsiDockWidget->show(); - hsi->start(); - } - } + presentView(); +} - // OBJECT DETECTION - if (detectionDockWidget) - { - addDockWidget(Qt::RightDockWidgetArea, detectionDockWidget); - detectionDockWidget->show(); - } +void MainWindow::loadMAVLinkView() +{ + clearView(); - // PROCESS CONTROL - if (watchdogControlDockWidget) - { - addDockWidget(Qt::RightDockWidgetArea, watchdogControlDockWidget); - watchdogControlDockWidget->show(); - } + currentView = VIEW_MAVLINK; - this->show(); + presentView(); } -void MainWindow::loadGlobalOperatorView() +void MainWindow::presentView() { - clearView(); + qDebug() << "LC"; + showTheCentralWidget(CENTRAL_LINECHART, currentView); // MAP - if (mapWidget) - { - QStackedWidget *centerStack = dynamic_cast(centralWidget()); - if (centerStack) - { - centerStack->setCurrentWidget(mapWidget); - } - } - - // UAS CONTROL - if (controlDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, controlDockWidget); - controlDockWidget->show(); - } + qDebug() << "MAP"; + showTheCentralWidget(CENTRAL_MAP, currentView); - // UAS LIST - if (listDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, listDockWidget); - listDockWidget->show(); - } + // PROTOCOL + qDebug() << "CP"; + showTheCentralWidget(CENTRAL_PROTOCOL, currentView); - // UAS STATUS - if (infoDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, infoDockWidget); - infoDockWidget->show(); - } + // HEAD UP DISPLAY + showTheCentralWidget(CENTRAL_HUD, currentView); - // WAYPOINT LIST - if (waypointsDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, waypointsDockWidget); - waypointsDockWidget->show(); - } + // GOOGLE EARTH + showTheCentralWidget(CENTRAL_GOOGLE_EARTH, currentView); -// // HORIZONTAL SITUATION INDICATOR -// if (hsiDockWidget) -// { -// HSIDisplay* hsi = dynamic_cast( hsiDockWidget->widget() ); -// if (hsi) -// { -// addDockWidget(Qt::BottomDockWidgetArea, hsiDockWidget); -// hsiDockWidget->show(); -// hsi->start(); -// } -// } + // LOCAL 3D VIEW + showTheCentralWidget(CENTRAL_3D_LOCAL, currentView); - // PROCESS CONTROL - if (watchdogControlDockWidget) - { - addDockWidget(Qt::RightDockWidgetArea, watchdogControlDockWidget); - watchdogControlDockWidget->show(); - } + // GLOBAL 3D VIEW + showTheCentralWidget(CENTRAL_3D_MAP, currentView); - // HEAD UP DISPLAY - if (headUpDockWidget) - { - addDockWidget(Qt::RightDockWidgetArea, headUpDockWidget); - // FIXME Replace with default ->show() call - HUD* hud = dynamic_cast(headUpDockWidget->widget()); - if (hud) - { - headUpDockWidget->show(); - hud->start(); - } - } -} + // Show docked widgets based on current view and autopilot type -void MainWindow::load3DView() -{ - clearView(); + // UAS CONTROL + showTheWidget(MENU_UAS_CONTROL, currentView); - // 3D map - if (map3DWidget) - { - QStackedWidget *centerStack = dynamic_cast(centralWidget()); - if (centerStack) - { - //map3DWidget->setActive(true); - centerStack->setCurrentWidget(map3DWidget); - } - } + // UAS LIST + showTheWidget(MENU_UAS_LIST, currentView); - // UAS CONTROL - if (controlDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, controlDockWidget); - controlDockWidget->show(); - } + // WAYPOINT LIST + showTheWidget(MENU_WAYPOINTS, currentView); - // UAS LIST - if (listDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, listDockWidget); - listDockWidget->show(); - } + // UAS STATUS + showTheWidget(MENU_STATUS, currentView); - // WAYPOINT LIST - if (waypointsDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, waypointsDockWidget); - waypointsDockWidget->show(); - } + // DETECTION + showTheWidget(MENU_DETECTION, currentView); - // HORIZONTAL SITUATION INDICATOR - if (hsiDockWidget) - { - HSIDisplay* hsi = dynamic_cast( hsiDockWidget->widget() ); - if (hsi) - { - hsi->start(); - addDockWidget(Qt::LeftDockWidgetArea, hsiDockWidget); - hsiDockWidget->show(); - } - } + // DEBUG CONSOLE + showTheWidget(MENU_DEBUG_CONSOLE, currentView); - this->show(); - } + // ONBOARD PARAMETERS + showTheWidget(MENU_PARAMETERS, currentView); -void MainWindow::loadEngineerView() -{ - clearView(); - // Engineer view, used in EMAV2009 + // WATCHDOG + showTheWidget(MENU_WATCHDOG, currentView); - // LINE CHART - if (linechartWidget) + // HUD + showTheWidget(MENU_HUD, currentView); + if (headUpDockWidget) { - QStackedWidget *centerStack = dynamic_cast(centralWidget()); - if (centerStack) - { - linechartWidget->setActive(true); - centerStack->setCurrentWidget(linechartWidget); + HUD* tmpHud = dynamic_cast( headUpDockWidget->widget() ); + if (tmpHud){ + if (settings.value(buildMenuKey (SUB_SECTION_CHECKED,MENU_HUD,currentView)).toBool()){ + addDockWidget(static_cast (settings.value(buildMenuKey (SUB_SECTION_LOCATION,MENU_HUD, currentView)).toInt()), + hsiDockWidget); + headUpDockWidget->show(); + } else { + headUpDockWidget->hide(); + } } } - // UAS CONTROL - if (controlDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, controlDockWidget); - controlDockWidget->show(); - } - // UAS LIST - if (listDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, listDockWidget); - listDockWidget->show(); - } + // RC View + showTheWidget(MENU_RC_VIEW, currentView); - // UAS STATUS - if (infoDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, infoDockWidget); - infoDockWidget->show(); - } + // SLUGS DATA + showTheWidget(MENU_SLUGS_DATA, currentView); - // WAYPOINT LIST - if (waypointsDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, waypointsDockWidget); - waypointsDockWidget->show(); - } + // SLUGS PID + showTheWidget(MENU_SLUGS_PID, currentView); - // DEBUG CONSOLE - if (debugConsoleDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, debugConsoleDockWidget); - debugConsoleDockWidget->show(); - } + // SLUGS HIL + showTheWidget(MENU_SLUGS_HIL, currentView); - // ONBOARD PARAMETERS - if (parametersDockWidget) + // SLUGS CAMERA + showTheWidget(MENU_SLUGS_CAMERA, currentView); + + // HORIZONTAL SITUATION INDICATOR + showTheWidget(MENU_HSI, currentView); + // if (hsiDockWidget) + // { + // HSIDisplay* hsi = dynamic_cast( hsiDockWidget->widget() ); + // if (hsi){ + // if (settings.value(buildMenuKey (SUB_SECTION_CHECKED,MENU_HSI,currentView)).toBool()){ + // addDockWidget(static_cast (settings.value(buildMenuKey (SUB_SECTION_LOCATION,MENU_HSI, currentView)).toInt()), + // hsiDockWidget); + // } + // } + // } + + // HEAD DOWN 1 + showTheWidget(MENU_HDD_1, currentView); + // if (headDown1DockWidget) + // { + // HDDisplay *hdd = dynamic_cast(headDown1DockWidget->widget()); + // if (hdd) { + // if (settings.value(buildMenuKey (SUB_SECTION_CHECKED,MENU_HDD_1,currentView)).toBool()) { + // addDockWidget(static_cast (settings.value(buildMenuKey (SUB_SECTION_LOCATION,MENU_HDD_1, currentView)).toInt()), + // headDown1DockWidget); + // headDown1DockWidget->show(); + // hdd->start(); + // } else { + // headDown1DockWidget->hide();; + // hdd->stop(); + // } + // } + // } + + // HEAD DOWN 2 + showTheWidget(MENU_HDD_2, currentView); + // if (headDown2DockWidget) + // { + // HDDisplay *hdd = dynamic_cast(headDown2DockWidget->widget()); + // if (hdd){ + // if (settings.value(buildMenuKey (SUB_SECTION_CHECKED,MENU_HDD_2,currentView)).toBool()){ + // addDockWidget(static_cast (settings.value(buildMenuKey (SUB_SECTION_LOCATION,MENU_HDD_2, currentView)).toInt()), + // headDown2DockWidget); + // headDown2DockWidget->show(); + // hdd->start(); + // } else { + // headDown2DockWidget->hide(); + // hdd->stop(); + // } + // } + // } + + this->show(); + +} + +void MainWindow::showTheCentralWidget (TOOLS_WIDGET_NAMES centralWidget, VIEW_SECTIONS view) +{ + bool tempVisible; + QWidget* tempWidget = dockWidgets[centralWidget]; + + tempVisible = settings.value(buildMenuKey (SUB_SECTION_CHECKED,centralWidget,view)).toBool(); + qDebug() << buildMenuKey (SUB_SECTION_CHECKED,centralWidget,view) << tempVisible; + if (toolsMenuActions[centralWidget]) { - addDockWidget(Qt::RightDockWidgetArea, parametersDockWidget); - parametersDockWidget->show(); + toolsMenuActions[centralWidget]->setChecked(tempVisible); } - // RADIO CONTROL VIEW - if (rcViewDockWidget) + if (centerStack && tempWidget && tempVisible) { - addDockWidget(Qt::BottomDockWidgetArea, rcViewDockWidget); - rcViewDockWidget->show(); + centerStack->setCurrentWidget(tempWidget); } - - this->show(); } -void MainWindow::loadMAVLinkView() +void MainWindow::loadWidgets() { - clearView(); + loadOperatorView(); + //loadMAVLinkView(); + //loadPilotView(); +} - if (protocolWidget) +void MainWindow::loadDataView(QString fileName) +{ + // DATAPLOT + if (dataplotWidget) { QStackedWidget *centerStack = dynamic_cast(centralWidget()); if (centerStack) { - centerStack->setCurrentWidget(protocolWidget); + centerStack->setCurrentWidget(dataplotWidget); + dataplotWidget->loadFile(fileName); } } - - this->show(); } -void MainWindow::loadAllView() +void MainWindow::load3DMapView() { +#ifdef QGC_OSGEARTH_ENABLED clearView(); - if (headDown1DockWidget) - { - HDDisplay *hdd = dynamic_cast(headDown1DockWidget->widget()); - if (hdd) - { - addDockWidget(Qt::RightDockWidgetArea, headDown1DockWidget); - headDown1DockWidget->show(); - hdd->start(); - } - - } - if (headDown2DockWidget) + // 3D map + if (_3DMapWidget) { - HDDisplay *hdd = dynamic_cast(headDown2DockWidget->widget()); - if (hdd) + QStackedWidget *centerStack = dynamic_cast(centralWidget()); + if (centerStack) { - addDockWidget(Qt::RightDockWidgetArea, headDown2DockWidget); - headDown2DockWidget->show(); - hdd->start(); + //map3DWidget->setActive(true); + centerStack->setCurrentWidget(_3DMapWidget); } } +#endif +} - // UAS CONTROL - if (controlDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, controlDockWidget); - controlDockWidget->show(); - } - - // UAS LIST - if (listDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, listDockWidget); - listDockWidget->show(); - } - - // UAS STATUS - if (infoDockWidget) - { - addDockWidget(Qt::LeftDockWidgetArea, infoDockWidget); - infoDockWidget->show(); - } +void MainWindow::loadGoogleEarthView() +{ +#if (defined _MSC_VER) | (defined Q_OS_MAC) + clearView(); - // WAYPOINT LIST - if (waypointsDockWidget) + // 3D map + if (gEarthWidget) { - addDockWidget(Qt::BottomDockWidgetArea, waypointsDockWidget); - waypointsDockWidget->show(); + QStackedWidget *centerStack = dynamic_cast(centralWidget()); + if (centerStack) + { + centerStack->setCurrentWidget(gEarthWidget); + } } +#endif - // DEBUG CONSOLE - if (debugConsoleDockWidget) - { - addDockWidget(Qt::BottomDockWidgetArea, debugConsoleDockWidget); - debugConsoleDockWidget->show(); - } +} - // OBJECT DETECTION - if (detectionDockWidget) - { - addDockWidget(Qt::RightDockWidgetArea, detectionDockWidget); - detectionDockWidget->show(); - } +void MainWindow::load3DView() +{ +#ifdef QGC_OSG_ENABLED + clearView(); - // LINE CHART - if (linechartWidget) + // 3D map + if (_3DWidget) { QStackedWidget *centerStack = dynamic_cast(centralWidget()); if (centerStack) { - linechartWidget->setActive(true); - centerStack->setCurrentWidget(linechartWidget); + //map3DWidget->setActive(true); + centerStack->setCurrentWidget(_3DWidget); } } - - // ONBOARD PARAMETERS - if (parametersDockWidget) - { - addDockWidget(Qt::RightDockWidgetArea, parametersDockWidget); - parametersDockWidget->show(); - } - - this->show(); +#endif } -void MainWindow::loadWidgets() -{ - //loadOperatorView(); - loadEngineerView(); - //loadPilotView(); -} diff --git a/src/ui/MainWindow.h b/src/ui/MainWindow.h index 1ad588cd9e4e04d341c57aef1e13c5dc283c061a..4e4302e753f86cc9001ff274f51c026a49317a05 100644 --- a/src/ui/MainWindow.h +++ b/src/ui/MainWindow.h @@ -63,10 +63,19 @@ This file is part of the QGROUNDCONTROL project #include "HSIDisplay.h" #include "QGCDataPlot2D.h" #include "QGCRemoteControlView.h" -#include "QMap3DWidget.h" - +#if (defined Q_OS_MAC) | (defined _MSC_VER) +#include "QGCGoogleEarthView.h" +#endif +//#include "QMap3DWidget.h" +#include "SlugsDataSensorView.h" #include "LogCompressor.h" +#include "SlugsPIDControl.h" + +#include "SlugsHilSim.h" + +#include "SlugsVideoCamControl.h" + /** * @brief Main Application Window @@ -76,10 +85,13 @@ class MainWindow : public QMainWindow { Q_OBJECT public: - MainWindow(QWidget *parent = 0); + static MainWindow* instance(); ~MainWindow(); public slots: +// /** @brief Store the mainwindow settings */ +// void storeSettings(); + /** * @brief Shows a status message on the bottom status bar * @@ -112,18 +124,8 @@ public slots: void loadEngineerView(); /** @brief Load view for operator */ void loadOperatorView(); - /** @brief Load 3D view */ - void load3DView(); - /** @brief Load view with all widgets */ - void loadAllView(); /** @brief Load MAVLink XML generator view */ void loadMAVLinkView(); - /** @brief Load data view, allowing to plot flight data */ - void loadDataView(); - /** @brief Load data view, allowing to plot flight data */ - void loadDataView(QString fileName); - /** @brief Load view for global operator, allowing to flight on earth */ - void loadGlobalOperatorView(); /** @brief Show the online help for users */ void showHelp(); @@ -132,21 +134,202 @@ public slots: /** @brief Show the project roadmap */ void showRoadMap(); - // Fixme find a nicer solution that scales to more AP types - void loadSlugsView(); - void loadPixhawkView(); + /** @brief Shows the widgets based on configuration and current view and autopilot */ + void presentView(); /** @brief Reload the CSS style sheet */ void reloadStylesheet(); + + /** @brief Add a custom tool widget */ + void createCustomWidget(); + + void closeEvent(QCloseEvent* event); + + /* + ========================================================== + Potentially Deprecated + ========================================================== + */ + + void loadWidgets(); + + /** @brief Load data view, allowing to plot flight data */ + void loadDataView(QString fileName); + + /** @brief Load 3D map view */ + void load3DMapView(); + + /** @brief Load 3D Google Earth view */ + void loadGoogleEarthView(); + + /** @brief Load 3D view */ + void load3DView(); + + /** + * @brief Shows a Docked Widget based on the action sender + * + * This slot is written to be used in conjunction with the addToToolsMenu function + * It shows the QDockedWidget based on the action sender + * + */ + void showToolWidget(); + + /** + * @brief Shows a Widget from the center stack based on the action sender + * + * This slot is written to be used in conjunction with the addToCentralWidgetsMenu function + * It shows the Widget based on the action sender + * + */ + void showCentralWidget(); + + /** @brief Updates a QDockWidget's checked status based on its visibility */ + void updateVisibilitySettings (bool vis); + + /** @brief Updates a QDockWidget's location */ + void updateLocationSettings (Qt::DockWidgetArea location); + protected: + + MainWindow(QWidget *parent = 0); + + // These defines are used to save the settings when selecting with + // which widgets populate the views + // FIXME: DO NOT PUT CUSTOM VALUES IN THIS ENUM since it is iterated over + // this will be fixed in a future release. + typedef enum _TOOLS_WIDGET_NAMES { + MENU_UAS_CONTROL, + MENU_UAS_INFO, + MENU_CAMERA, + MENU_UAS_LIST, + MENU_WAYPOINTS, + MENU_STATUS, + MENU_DETECTION, + MENU_DEBUG_CONSOLE, + MENU_PARAMETERS, + MENU_HDD_1, + MENU_HDD_2, + MENU_WATCHDOG, + MENU_HUD, + MENU_HSI, + MENU_RC_VIEW, + MENU_SLUGS_DATA, + MENU_SLUGS_PID, + MENU_SLUGS_HIL, + MENU_SLUGS_CAMERA, + CENTRAL_SEPARATOR= 255, // do not change + CENTRAL_LINECHART, + CENTRAL_PROTOCOL, + CENTRAL_MAP, + CENTRAL_3D_LOCAL, + CENTRAL_3D_MAP, + CENTRAL_OSGEARTH, + CENTRAL_GOOGLE_EARTH, + CENTRAL_HUD, + CENTRAL_DATA_PLOT, + + }TOOLS_WIDGET_NAMES; + + typedef enum _SETTINGS_SECTIONS + { + SECTION_MENU, + SUB_SECTION_CHECKED, + SUB_SECTION_LOCATION, + } SETTINGS_SECTIONS; + + typedef enum _VIEW_SECTIONS + { + VIEW_ENGINEER, + VIEW_OPERATOR, + VIEW_PILOT, + VIEW_MAVLINK, + } VIEW_SECTIONS; + + + QHash toolsMenuActions; // Holds ptr to the Menu Actions + QHash dockWidgets; // Holds ptr to the Actual Dock widget + QHash dockWidgetLocations; // Holds the location + + /** + * @brief Adds an already instantiated QDockedWidget to the Tools Menu + * + * This function does all the hosekeeping to have a QDockedWidget added to the + * tools menu and connects the QMenuAction to a slot that shows the widget and + * checks/unchecks the tools menu item + * + * @param widget The QDockedWidget being added + * @param title The entry that will appear in the Menu and in the QDockedWidget title bar + * @param slotName The slot to which the triggered() signal of the menu action will be connected. + * @param tool The ENUM defined in MainWindow.h that is associated to the widget + * @param location The default location for the QDockedWidget in case there is no previous key in the settings + */ + void addToToolsMenu (QWidget* widget, const QString title, const char * slotName, TOOLS_WIDGET_NAMES tool, Qt::DockWidgetArea location=Qt::RightDockWidgetArea); + + /** + * @brief Determines if a QDockWidget needs to be show and if so, shows it + * + * Based on the the autopilot and the current view it queries the settings and shows the + * widget if necessary + * + * @param widget The QDockWidget requested to be shown + * @param view The view for which the QDockWidget is requested + */ + void showTheWidget (TOOLS_WIDGET_NAMES widget, VIEW_SECTIONS view = VIEW_MAVLINK); + + /** + * @brief Adds an already instantiated QWidget to the center stack + * + * This function does all the hosekeeping to have a QWidget added to the tools menu + * tools menu and connects the QMenuAction to a slot that shows the widget and + * checks/unchecks the tools menu item. This is used for all the central widgets (those in + * the center stack. + * + * @param widget The QWidget being added + * @param title The entry that will appear in the Menu + * @param slotName The slot to which the triggered() signal of the menu action will be connected. + * @param centralWidget The ENUM defined in MainWindow.h that is associated to the widget + */ + void addToCentralWidgetsMenu ( QWidget* widget, const QString title,const char * slotName, TOOLS_WIDGET_NAMES centralWidget); + + /** + * @brief Determines if a QWidget needs to be show and if so, shows it + * + * Based on the the autopilot and the current view it queries the settings and shows the + * widget if necessary + * + * @param centralWidget The QWidget requested to be shown + * @param view The view for which the QWidget is requested + */ + void showTheCentralWidget (TOOLS_WIDGET_NAMES centralWidget, VIEW_SECTIONS view); + + + /** @brief Keeps track of the current view */ + VIEW_SECTIONS currentView; + bool aboutToCloseFlag; + QStatusBar* statusBar; QStatusBar* createStatusBar(); - void loadWidgets(); - void connectActions(); + + void clearView(); - void buildWidgets(); - void connectWidgets(); - void arrangeCenterStack(); + + void buildCommonWidgets(); + void buildPxWidgets(); + void buildSlugsWidgets(); + + void connectCommonWidgets(); + void connectPxWidgets(); + void connectSlugsWidgets(); + + void arrangeCommonCenterStack(); + void arrangePxCenterStack(); + void arrangeSlugsCenterStack(); + + void connectCommonActions(); + void connectPxActions(); + void connectSlugsActions(); + + void configureWindowName(); // TODO Should be moved elsewhere, as the protocol does not belong to the UI @@ -157,13 +340,25 @@ protected: LinkInterface* udpLink; QSettings settings; + QStackedWidget *centerStack; + // Center widgets QPointer linechartWidget; + QPointer hudWidget; + QPointer mapWidget; QPointer protocolWidget; QPointer dataplotWidget; - QPointer map3DWidget; + #ifdef QGC_OSG_ENABLED + QPointer _3DWidget; + #endif + #ifdef QGC_OSGEARTH_ENABLED + QPointer _3DMapWidget; + #endif +#if (defined _MSC_VER) || (defined Q_OS_MAC) + QPointer gEarthWidget; +#endif // Dock widgets QPointer controlDockWidget; QPointer infoDockWidget; @@ -176,9 +371,17 @@ protected: QPointer headDown1DockWidget; QPointer headDown2DockWidget; QPointer watchdogControlDockWidget; + QPointer headUpDockWidget; + QPointer hsiDockWidget; QPointer rcViewDockWidget; + QPointer hudDockWidget; + QPointer slugsDataWidget; + QPointer slugsPIDControlWidget; + QPointer slugsHilSimWidget; + QPointer slugsCamControlWidget; + // Popup widgets JoystickWidget* joystickWidget; @@ -194,6 +397,7 @@ protected: QAction* killUASAct; QAction* simulateUASAct; + LogCompressor* comp; QString screenFileName; QTimer* videoTimer; @@ -201,6 +405,8 @@ protected: private: Ui::MainWindow ui; + QString buildMenuKey (SETTINGS_SECTIONS section , TOOLS_WIDGET_NAMES tool, VIEW_SECTIONS view); + }; #endif /* _MAINWINDOW_H_ */ diff --git a/src/ui/MainWindow.ui b/src/ui/MainWindow.ui index 75f7eb0f5d4abfce2028d75589330abbed565b2e..5eafe8d01109c4f0a2f2689fdebb5fb18296f657 100644 --- a/src/ui/MainWindow.ui +++ b/src/ui/MainWindow.ui @@ -38,22 +38,39 @@ 0 0 1000 - 25 + 22 File - + + + + + + Network + + + + + + + Select System + + Unmanned System + + false + @@ -61,56 +78,38 @@ - - - Network - - - - - + - Window + Tools - - - - - - - - - - Help - - - + + + - + - Select System + Perspectives + + + + + + - + + - - - TopToolBarArea - - - false - - @@ -215,6 +214,9 @@ Joystick settings + + true + @@ -234,7 +236,7 @@ :/images/categories/preferences-system.svg:/images/categories/preferences-system.svg - Show 3D view + Show 3D Local View Show 3D view @@ -315,7 +317,139 @@ :/images/categories/applications-internet.svg:/images/categories/applications-internet.svg - Show Global operator view + Show 2D Map View + + + + + + :/images/categories/applications-internet.svg:/images/categories/applications-internet.svg + + + Show 3D Global View + + + + + + :/images/mapproviders/googleearth.svg:/images/mapproviders/googleearth.svg + + + Google Earth View + + + + + + :/images/contrib/slugs.png:/images/contrib/slugs.png + + + Show Slugs View + + + + + + :/images/devices/input-gaming.svg:/images/devices/input-gaming.svg + + + Joystick Settings + + + false + + + + + + :/images/apps/utilities-system-monitor.svg:/images/apps/utilities-system-monitor.svg + + + Online Documentation + + + + + + :/images/status/software-update-available.svg:/images/status/software-update-available.svg + + + Project Roadmap + + + + + + :/images/categories/preferences-system.svg:/images/categories/preferences-system.svg + + + Developer Credits + + + + + + :/images/status/weather-overcast.svg:/images/status/weather-overcast.svg + + + Operator + + + + + + :/images/apps/utilities-system-monitor.svg:/images/apps/utilities-system-monitor.svg + + + Engineer + + + + + + :/images/devices/network-wired.svg:/images/devices/network-wired.svg + + + Mavlink + + + + + + :/images/categories/applications-internet.svg:/images/categories/applications-internet.svg + + + Reload Style + + + + + + :/images/status/network-wireless-encrypted.svg:/images/status/network-wireless-encrypted.svg + + + Pilot + + + + + New Custom Widget + + + + + true + + + + :/images/status/audio-volume-high.svg + :/images/status/audio-volume-muted.svg + :/images/status/audio-volume-muted.svg + :/images/status/audio-volume-high.svg + :/images/status/audio-volume-muted.svg:/images/status/audio-volume-high.svg + + + Mute Audio Output diff --git a/src/ui/MapWidget.cc b/src/ui/MapWidget.cc index f866f7fc7fdcb9c3cf6421cb613bc052652acc54..385f66f9f8d5b0cf9eb4ef4960c48d38e68bc53c 100644 --- a/src/ui/MapWidget.cc +++ b/src/ui/MapWidget.cc @@ -1,24 +1,4 @@ -/*===================================================================== - -QGroundControl Open Source Ground Control Station - -(c) 2009, 2010 QGROUNDCONTROL PROJECT - -This file is part of the QGROUNDCONTROL project - - QGROUNDCONTROL is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - QGROUNDCONTROL is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with QGROUNDCONTROL. If not, see . - +/*================================================================== ======================================================================*/ /** @@ -32,6 +12,7 @@ This file is part of the QGROUNDCONTROL project #include #include +#include #include "MapWidget.h" #include "ui_MapWidget.h" @@ -42,6 +23,7 @@ This file is part of the QGROUNDCONTROL project #include "MG.h" + MapWidget::MapWidget(QWidget *parent) : QWidget(parent), zoomLevel(0), @@ -84,18 +66,20 @@ MapWidget::MapWidget(QWidget *parent) : geomLayer = new qmapcontrol::GeometryLayer("Waypoints", mapadapter); mc->addLayer(geomLayer); -// -// Layer* gsatLayer = new Layer("Google Satellite", gsat, Layer::MapLayer); -// mc->addLayer(gsatLayer); + + + // + // Layer* gsatLayer = new Layer("Google Satellite", gsat, Layer::MapLayer); + // mc->addLayer(gsatLayer); // SET INITIAL POSITION AND ZOOM // Set default zoom level mc->setZoom(16); // Zurich, ETH - //mc->setView(QPointF(8.548056,47.376389)); + mc->setView(QPointF(8.548056,47.376389)); - // Veracruz Mexico, ETH - mc->setView(QPointF(-96.105208,19.138955)); + // Veracruz Mexico + //mc->setView(QPointF(-96.105208,19.138955)); // Add controls to select map provider ///////////////////////////////////////////////// @@ -115,24 +99,24 @@ MapWidget::MapWidget(QWidget *parent) : this, SLOT(mapproviderSelected(QAction*))); // Overlay seems currently broken -// yahooActionOverlay = new QAction(tr("Yahoo: street overlay"), this); -// yahooActionOverlay->setCheckable(true); -// yahooActionOverlay->setChecked(overlay->isVisible()); -// connect(yahooActionOverlay, SIGNAL(toggled(bool)), -// overlay, SLOT(setVisible(bool))); - -// mapproviderGroup->addAction(googleSatAction); -// mapproviderGroup->addAction(osmAction); -// mapproviderGroup->addAction(yahooActionOverlay); -// mapproviderGroup->addAction(googleActionMap); -// mapproviderGroup->addAction(yahooActionMap); -// mapproviderGroup->addAction(yahooActionSatellite); + // yahooActionOverlay = new QAction(tr("Yahoo: street overlay"), this); + // yahooActionOverlay->setCheckable(true); + // yahooActionOverlay->setChecked(overlay->isVisible()); + // connect(yahooActionOverlay, SIGNAL(toggled(bool)), + // overlay, SLOT(setVisible(bool))); + + // mapproviderGroup->addAction(googleSatAction); + // mapproviderGroup->addAction(osmAction); + // mapproviderGroup->addAction(yahooActionOverlay); + // mapproviderGroup->addAction(googleActionMap); + // mapproviderGroup->addAction(yahooActionMap); + // mapproviderGroup->addAction(yahooActionSatellite); // Create map provider selection menu mapMenu = new QMenu(this); mapMenu->addActions(mapproviderGroup->actions()); mapMenu->addSeparator(); -// mapMenu->addAction(yahooActionOverlay); + // mapMenu->addAction(yahooActionOverlay); mapButton = new QPushButton(this); mapButton->setText("Map Source"); @@ -191,8 +175,16 @@ MapWidget::MapWidget(QWidget *parent) : connect(zoomout, SIGNAL(clicked(bool)), mc, SLOT(zoomOut())); + QList systems = UASManager::instance()->getUASList(); + foreach(UASInterface* system, systems) + { + addUAS(system); + } + connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), this, SLOT(addUAS(UASInterface*))); + + activeUASSet(UASManager::instance()->getActiveUAS()); connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(activeUASSet(UASInterface*))); connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)), @@ -218,7 +210,16 @@ MapWidget::MapWidget(QWidget *parent) : path = new qmapcontrol::LineString (wps, "UAV Path", pointPen); mc->layer("Waypoints")->addGeometry(path); - this->setVisible(false); + //Camera Control + // CAMERA INDICATOR LAYER + // create a layer with the mapadapter and type GeometryLayer (for camera indicator) + camLayer = new qmapcontrol::GeometryLayer("Camera", mapadapter); + mc->addLayer(camLayer); + + //camLine = new qmapcontrol::LineString(camPoints,"Camera Eje", camBorderPen); + + drawCamBorder = false; + radioCamera = 10; } @@ -237,9 +238,9 @@ void MapWidget::mapproviderSelected(QAction* action) mc->updateRequestNew(); mc->setZoom(zoom); -// yahooActionOverlay->setEnabled(false); + // yahooActionOverlay->setEnabled(false); overlay->setVisible(false); -// yahooActionOverlay->setChecked(false); + // yahooActionOverlay->setChecked(false); } else if (action == yahooActionMap) @@ -253,9 +254,9 @@ void MapWidget::mapproviderSelected(QAction* action) mc->updateRequestNew(); mc->setZoom(zoom); -// yahooActionOverlay->setEnabled(false); + // yahooActionOverlay->setEnabled(false); overlay->setVisible(false); -// yahooActionOverlay->setChecked(false); + // yahooActionOverlay->setChecked(false); } else if (action == yahooActionSatellite) { @@ -268,7 +269,7 @@ void MapWidget::mapproviderSelected(QAction* action) mc->updateRequestNew(); mc->setZoom(zoom); -// yahooActionOverlay->setEnabled(true); + // yahooActionOverlay->setEnabled(true); } else if (action == googleActionMap) { @@ -280,9 +281,9 @@ void MapWidget::mapproviderSelected(QAction* action) mc->updateRequestNew(); mc->setZoom(zoom); -// yahooActionOverlay->setEnabled(false); + // yahooActionOverlay->setEnabled(false); overlay->setVisible(false); -// yahooActionOverlay->setChecked(false); + // yahooActionOverlay->setChecked(false); } else if (action == googleSatAction) { @@ -294,9 +295,9 @@ void MapWidget::mapproviderSelected(QAction* action) mc->updateRequestNew(); mc->setZoom(zoom); -// yahooActionOverlay->setEnabled(false); + // yahooActionOverlay->setEnabled(false); overlay->setVisible(false); -// yahooActionOverlay->setChecked(false); + // yahooActionOverlay->setChecked(false); } else { @@ -307,7 +308,7 @@ void MapWidget::mapproviderSelected(QAction* action) void MapWidget::createPathButtonClicked(bool checked) { - Q_UNUSED(checked); + Q_UNUSED(checked); @@ -321,13 +322,13 @@ void MapWidget::createPathButtonClicked(bool checked) // emit signal start to create a Waypoint global emit createGlobalWP(true, mc->currentCoordinate()); -// // Clear the previous WP track -// // TODO: Move this to an actual clear track button and add a warning dialog -// mc->layer("Waypoints")->clearGeometries(); -// wps.clear(); -// path->setPoints(wps); -// mc->layer("Waypoints")->addGeometry(path); -// wpIndex.clear(); + // // Clear the previous WP track + // // TODO: Move this to an actual clear track button and add a warning dialog + // mc->layer("Waypoints")->clearGeometries(); + // wps.clear(); + // path->setPoints(wps); + // mc->layer("Waypoints")->addGeometry(path); + // wpIndex.clear(); } else { @@ -340,118 +341,158 @@ void MapWidget::createPathButtonClicked(bool checked) } +/** + * Captures a click on the map and if in create WP path mode, it adds the WP on MouseButtonRelease + * + * @param event The mouse event + * @param coordinate The coordinate in which it occured the mouse event + * @note This slot is connected to the mouseEventCoordinate of the QMapControl object + */ void MapWidget::captureMapClick(const QMouseEvent* event, const QPointF coordinate) { - if (QEvent::MouseButtonRelease == event->type() && createPath->isChecked()) + qDebug() << mc->mouseMode(); + + if (QEvent::MouseButtonRelease == event->type() && createPath->isChecked()) { - // Create waypoint name - QString str; + // Create waypoint name + QString str; - str = QString("%1").arg(path->numberOfPoints()); + str = QString("%1").arg(path->numberOfPoints()); - // create the WP and set everything in the LineString to display the path - Waypoint2DIcon* tempCirclePoint; + // create the WP and set everything in the LineString to display the path + Waypoint2DIcon* tempCirclePoint; - if (mav) - { - tempCirclePoint = new Waypoint2DIcon(coordinate.x(), coordinate.y(), 20, str, qmapcontrol::Point::Middle, new QPen(mav->getColor())); - } - else - { - tempCirclePoint = new Waypoint2DIcon(coordinate.x(), coordinate.y(), 20, str, qmapcontrol::Point::Middle); - } - mc->layer("Waypoints")->addGeometry(tempCirclePoint); + if (mav) + { + tempCirclePoint = new Waypoint2DIcon(coordinate.x(), coordinate.y(), 20, str, qmapcontrol::Point::Middle, new QPen(mav->getColor())); + } + else + { + tempCirclePoint = new Waypoint2DIcon(coordinate.x(), coordinate.y(), 20, str, qmapcontrol::Point::Middle); + } + mc->layer("Waypoints")->addGeometry(tempCirclePoint); - qmapcontrol::Point* tempPoint = new qmapcontrol::Point(coordinate.x(), coordinate.y(),str); - wps.append(tempPoint); - path->addPoint(tempPoint); + qmapcontrol::Point* tempPoint = new qmapcontrol::Point(coordinate.x(), coordinate.y(),str); + wps.append(tempPoint); + path->addPoint(tempPoint); - wpIndex.insert(str,tempPoint); + wpIndex.insert(str,tempPoint); - // Refresh the screen - mc->updateRequestNew(); + // Refresh the screen + mc->updateRequestNew(); - // emit signal mouse was clicked - emit captureMapCoordinateClick(coordinate); + // emit signal mouse was clicked + emit captureMapCoordinateClick(coordinate); - } + } } void MapWidget::createWaypointGraphAtMap(const QPointF coordinate) { - // Create waypoint name - QString str; + if (!wpExists(coordinate)){ + // Create waypoint name + QString str; - str = QString("%1").arg(path->numberOfPoints()); - // create the WP and set everything in the LineString to display the path - CirclePoint* tempCirclePoint = new CirclePoint(coordinate.x(), coordinate.y(), 10, str); - mc->layer("Waypoints")->addGeometry(tempCirclePoint); + str = QString("%1").arg(path->numberOfPoints()); - Point* tempPoint = new Point(coordinate.x(), coordinate.y(),str); - wps.append(tempPoint); - path->addPoint(tempPoint); + // create the WP and set everything in the LineString to display the path + //CirclePoint* tempCirclePoint = new CirclePoint(coordinate.x(), coordinate.y(), 10, str); + Waypoint2DIcon* tempCirclePoint; - wpIndex.insert(str,tempPoint); + if (mav) + { + tempCirclePoint = new Waypoint2DIcon(coordinate.x(), coordinate.y(), 20, str, qmapcontrol::Point::Middle, new QPen(mav->getColor())); + } + else + { + tempCirclePoint = new Waypoint2DIcon(coordinate.x(), coordinate.y(), 20, str, qmapcontrol::Point::Middle); + } - // Refresh the screen - mc->updateRequestNew(); -//// // emit signal mouse was clicked -// emit captureMapCoordinateClick(coordinate); + mc->layer("Waypoints")->addGeometry(tempCirclePoint); + + Point* tempPoint = new Point(coordinate.x(), coordinate.y(),str); + wps.append(tempPoint); + path->addPoint(tempPoint); + + wpIndex.insert(str,tempPoint); + qDebug()<<"Funcion createWaypointGraphAtMap WP= "< x= "<latitude()<<" y= "<longitude(); + + // Refresh the screen + mc->updateRequestNew(); + } + + //// // emit signal mouse was clicked + // emit captureMapCoordinateClick(coordinate); } +int MapWidget::wpExists(const QPointF coordinate){ + for (int i = 0; i < wps.size(); i++){ + if (wps.at(i)->latitude() == coordinate.y() && + wps.at(i)->longitude()== coordinate.x()){ + return 1; + } + } + return 0; +} + + void MapWidget::captureGeometryClick(Geometry* geom, QPoint point) { - Q_UNUSED(geom); - Q_UNUSED(point); + Q_UNUSED(geom); + Q_UNUSED(point); - mc->setMouseMode(qmapcontrol::MapControl::None); + mc->setMouseMode(qmapcontrol::MapControl::None); } void MapWidget::captureGeometryDrag(Geometry* geom, QPointF coordinate) { - Q_UNUSED(coordinate); - waypointIsDrag = true; - // Refresh the screen - mc->updateRequestNew(); + waypointIsDrag = true; + + // Refresh the screen + mc->updateRequestNew(); - int temp = 0; - qmapcontrol::Point* point2Find; - point2Find = wpIndex[geom->name()]; + int temp = 0; + qmapcontrol::Point* point2Find; + point2Find = wpIndex[geom->name()]; - if (point2Find) - { - point2Find->setCoordinate(coordinate); + if (point2Find) + { + point2Find->setCoordinate(coordinate); - point2Find = dynamic_cast (geom); - if (point2Find) - { - point2Find->setCoordinate(coordinate); + point2Find = dynamic_cast (geom); + if (point2Find) + { + point2Find->setCoordinate(coordinate); - // qDebug() << geom->name(); - temp = geom->get_myIndex(); - //qDebug() << temp; - emit sendGeometryEndDrag(coordinate,temp); - } - } + // qDebug() << geom->name(); + temp = geom->get_myIndex(); + //qDebug() << temp; + emit sendGeometryEndDrag(coordinate,temp); + } + } } void MapWidget::captureGeometryEndDrag(Geometry* geom, QPointF coordinate) { - waypointIsDrag = false; + Q_UNUSED(geom); + Q_UNUSED(coordinate); + // TODO: Investigate why when creating the waypoint path this slot is being called - mc->setMouseMode(qmapcontrol::MapControl::Panning); + // Only change the mouse mode back to panning when not creating a WP path + if (!createPath->isChecked()) + { + waypointIsDrag = false; + mc->setMouseMode(qmapcontrol::MapControl::Panning); + } -// qDebug() << geom->name(); -// qDebug() << geom->GeometryType; -// qDebug() << point; } MapWidget::~MapWidget() @@ -464,6 +505,10 @@ MapWidget::~MapWidget() */ void MapWidget::addUAS(UASInterface* uas) { + if(mav != NULL) + { + disconnect(uas, SIGNAL(globalPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateGlobalPosition(UASInterface*,double,double,double,quint64))); + } connect(uas, SIGNAL(globalPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateGlobalPosition(UASInterface*,double,double,double,quint64))); } @@ -507,6 +552,7 @@ void MapWidget::updateGlobalPosition(UASInterface* uas, double lat, double lon, // Icon QPen* pointpen = new QPen(uasColor); + qDebug() << uas->getUASName(); MAV2DIcon* p = new MAV2DIcon(lat, lon, 20, uas->getUASName(), qmapcontrol::Point::Middle, pointpen); uasIcons.insert(uas->getUASID(), p); geomLayer->addGeometry(p); @@ -515,7 +561,7 @@ void MapWidget::updateGlobalPosition(UASInterface* uas, double lat, double lon, // A QPen also can use transparency QList points; - points.append(new qmapcontrol::Point(lat, lon, QString("lat: %1 lon: %2").arg(lat, lon))); + points.append(new qmapcontrol::Point(lat, lon, "")); QPen* linepen = new QPen(uasColor.darker()); linepen->setWidth(2); // Add the Points and the QPen to a LineString @@ -534,24 +580,15 @@ void MapWidget::updateGlobalPosition(UASInterface* uas, double lat, double lon, p->setYaw(uas->getYaw()); } // Extend trail - uasTrails.value(uas->getUASID())->addPoint(new qmapcontrol::Point(lat, lon, QString("lat: %1 lon: %2").arg(lat, lon))); + uasTrails.value(uas->getUASID())->addPoint(new qmapcontrol::Point(lat, lon, "")); } - // points.append(new CirclePoint(8.275145, 50.016992, 15, "Wiesbaden-Mainz-Kastel, Johannes-Goßner-Straße", Point::Middle, pointpen)); - // points.append(new CirclePoint(8.270476, 50.021426, 15, "Wiesbaden-Mainz-Kastel, Ruthof", Point::Middle, pointpen)); - // // "Blind" Points - // points.append(new Point(8.266445, 50.025913, "Wiesbaden-Mainz-Kastel, Mudra Kaserne")); - // points.append(new Point(8.260378, 50.030345, "Wiesbaden-Mainz-Amoneburg, Dyckerhoffstraße")); // Connect click events of the layer to this object // connect(osmLayer, SIGNAL(geometryClicked(Geometry*, QPoint)), // this, SLOT(geometryClicked(Geometry*, QPoint))); // Sets the view to the interesting area - //QList view; - //view.append(QPointF(8.24764, 50.0319)); - //view.append(QPointF(8.28412, 49.9998)); - // mc->setView(view); updatePosition(0, lat, lon); } } @@ -563,7 +600,7 @@ void MapWidget::updatePosition(float time, double lat, double lon) { Q_UNUSED(time); //gpsposition->setText(QString::number(time) + " / " + QString::number(lat) + " / " + QString::number(lon)); - if (followgps->isChecked()) + if (followgps->isChecked() && isVisible()) { mc->setView(QPointF(lat, lon)); } @@ -580,6 +617,10 @@ void MapWidget::wheelEvent(QWheelEvent *event) // Detail zoom level is the number of steps zoomed in further // after the bounding has taken effect detailZoom = qAbs(qMin(0, mc->currentZoom()-newZoom)); + + // visual field of camera + updateCameraPosition(20*newZoom,0,"no"); + } void MapWidget::keyPressEvent(QKeyEvent *event) @@ -614,6 +655,16 @@ void MapWidget::resizeEvent(QResizeEvent* event ) mc->resize(this->size()); } +void MapWidget::showEvent(QShowEvent* event) +{ + Q_UNUSED(event); +} + +void MapWidget::hideEvent(QHideEvent* event) +{ + Q_UNUSED(event); +} + void MapWidget::changeEvent(QEvent *e) { @@ -664,8 +715,74 @@ void MapWidget::changeGlobalWaypointPositionBySpinBox(int index, float lat, floa // Refresh the screen mc->updateRequestNew(); - } + } + + +} + +void MapWidget::updateCameraPosition(double radio, double bearing, QString dir) +{ + // FIXME Mariano + //camPoints.clear(); + QPointF currentPos = mc->currentCoordinate(); + // QPointF actualPos = getPointxBearing_Range(currentPos.y(),currentPos.x(),bearing,distance); + + // qmapcontrol::Point* tempPoint1 = new qmapcontrol::Point(currentPos.x(), currentPos.y(),"inicial",qmapcontrol::Point::Middle); + // qmapcontrol::Point* tempPoint2 = new qmapcontrol::Point(actualPos.x(), actualPos.y(),"final",qmapcontrol::Point::Middle); + + // camPoints.append(tempPoint1); + // camPoints.append(tempPoint2); + + // camLine->setPoints(camPoints); + + QPen* camBorderPen = new QPen(QColor(255,0,0)); + camBorderPen->setWidth(2); + + //radio = mc->currentZoom() + + if(drawCamBorder) + { + //clear camera borders + mc->layer("Camera")->clearGeometries(); + + //create a camera borders + qmapcontrol::CirclePoint* camBorder = new qmapcontrol::CirclePoint(currentPos.x(), currentPos.y(), radio, "camBorder", qmapcontrol::Point::Middle, camBorderPen); + + //camBorder->setCoordinate(currentPos); + + mc->layer("Camera")->addGeometry(camBorder); + // mc->layer("Camera")->addGeometry(camLine); + mc->updateRequestNew(); + + } + else + { + //clear camera borders + mc->layer("Camera")->clearGeometries(); + mc->updateRequestNew(); + + } + + +} + +void MapWidget::drawBorderCamAtMap(bool status) +{ + drawCamBorder = status; + updateCameraPosition(20,0,"no"); + +} + +QPointF MapWidget::getPointxBearing_Range(double lat1, double lon1, double bearing, double distance) +{ + QPointF temp; + + double rad = M_PI/180; + bearing = bearing*rad; + temp.setX((lon1 + ((distance/60) * (sin(bearing))))); + temp.setY((lat1 + ((distance/60) * (cos(bearing))))); + return temp; } diff --git a/src/ui/MapWidget.h b/src/ui/MapWidget.h index 450ed255f1d7a0ad141d736254845d17447f81a2..f3dde1ed462fce1e1a592d0b43ac034ac089967a 100644 --- a/src/ui/MapWidget.h +++ b/src/ui/MapWidget.h @@ -37,6 +37,11 @@ This file is part of the QGROUNDCONTROL project #include #include "qmapcontrol.h" #include "UASInterface.h" +#include "QPointF" + +#include + + class QMenu; @@ -63,16 +68,23 @@ public slots: void activeUASSet(UASInterface* uas); void updateGlobalPosition(UASInterface* uas, double lat, double lon, double alt, quint64 usec); void updatePosition(float time, double lat, double lon); + void updateCameraPosition(double distance, double bearing, QString dir); + QPointF getPointxBearing_Range(double lat1, double lon1, double bearing, double distance); //ROCA void clearPath(); void changeGlobalWaypointPositionBySpinBox(int index, float lat, float lon); + void drawBorderCamAtMap(bool status); protected: void changeEvent(QEvent* e); void wheelEvent(QWheelEvent *event); void keyPressEvent(QKeyEvent *event); void resizeEvent(QResizeEvent* event); + /** @brief Start widget updating */ + void showEvent(QShowEvent* event); + /** @brief Stop widget updating */ + void hideEvent(QHideEvent* event); QAction* osmAction; QAction* yahooActionMap; @@ -93,6 +105,10 @@ protected: qmapcontrol::Layer* l; ///< Current map layer (background) qmapcontrol::Layer* overlay; ///< Street overlay (foreground) qmapcontrol::GeometryLayer* geomLayer; ///< Layer for waypoints + + //only for experiment + qmapcontrol::GeometryLayer* camLayer; ///< Layer for camera indicator + int zoomLevel; int detailZoom; ///< Steps zoomed in further than qMapControl allows static const int scrollStep = 40; ///< Scroll n pixels per keypress @@ -107,13 +123,15 @@ protected: protected slots: void captureMapClick (const QMouseEvent* event, const QPointF coordinate); - void createWaypointGraphAtMap (const QPointF coordinate); - void createPathButtonClicked(bool checked); void captureGeometryClick(Geometry*, QPoint); - void mapproviderSelected(QAction* action); void captureGeometryDrag(Geometry* geom, QPointF coordinate); void captureGeometryEndDrag(Geometry* geom, QPointF coordinate); + void createPathButtonClicked(bool checked); + + void createWaypointGraphAtMap (const QPointF coordinate); + void mapproviderSelected(QAction* action); + @@ -130,7 +148,16 @@ private: QHash wpIndex; qmapcontrol::LineString* path; QPen* pointPen; + int wpExists(const QPointF coordinate); bool waypointIsDrag; + + + qmapcontrol::LineString* camLine; + QList camPoints; + QPointF lastCamBorderPos; + bool drawCamBorder; + int radioCamera; + }; #endif // MAPWIDGET_H diff --git a/src/ui/ObjectDetectionView.cc b/src/ui/ObjectDetectionView.cc index 03d8c007e8a2f6db0c168721ffb3f2d9a0fccd3b..b070795f01ab598471a564030fab3807e60848ea 100644 --- a/src/ui/ObjectDetectionView.cc +++ b/src/ui/ObjectDetectionView.cc @@ -40,8 +40,6 @@ This file is part of the PIXHAWK project #include #include -#include "MG.h" - ObjectDetectionView::ObjectDetectionView(QString folder, QWidget *parent) : QWidget(parent), patternList(), @@ -79,12 +77,15 @@ void ObjectDetectionView::changeEvent(QEvent *e) void ObjectDetectionView::setUAS(UASInterface* uas) { - //if (this->uas == NULL && uas != NULL) - //{ + if (this->uas != NULL) + { + disconnect(this->uas, SIGNAL(patternDetected(int, QString, float, bool)), this, SLOT(newPattern(int, QString, float, bool))); + disconnect(this->uas, SIGNAL(letterDetected(int, QString, float, bool)), this, SLOT(newLetter(int, QString, float, bool))); + } + this->uas = uas; connect(uas, SIGNAL(patternDetected(int, QString, float, bool)), this, SLOT(newPattern(int, QString, float, bool))); connect(uas, SIGNAL(letterDetected(int, QString, float, bool)), this, SLOT(newLetter(int, QString, float, bool))); - //} } void ObjectDetectionView::newPattern(int uasId, QString patternPath, float confidence, bool detected) @@ -117,7 +118,7 @@ void ObjectDetectionView::newPattern(int uasId, QString patternPath, float confi m_ui->listWidget->addItem(pattern.name + separator + "(" + QString::number(pattern.count) + ")" + separator + QString::number(pattern.confidence)); // load image - QString filePath = MG::DIR::getSupportFilesDirectory() + "/" + patternFolder + "/" + patternPath.split("/", QString::SkipEmptyParts).last(); + QString filePath = patternFolder + "/" + patternPath.split("/", QString::SkipEmptyParts).last(); QPixmap image = QPixmap(filePath); if (image.width() > image.height()) image = image.scaledToWidth(m_ui->imageLabel->width()); diff --git a/src/ui/ParameterInterface.cc b/src/ui/ParameterInterface.cc index f44e08389301787445e07e46c16ab4da9a2b8d34..d6a3a59aae206baa6f968cf0ec0641b2e79462f3 100644 --- a/src/ui/ParameterInterface.cc +++ b/src/ui/ParameterInterface.cc @@ -51,6 +51,15 @@ ParameterInterface::ParameterInterface(QWidget *parent) : // Setup UI connections connect(m_ui->vehicleComboBox, SIGNAL(activated(int)), this, SLOT(selectUAS(int))); + // Get current MAV list + QList systems = UASManager::instance()->getUASList(); + + // Add each of them + foreach (UASInterface* sys, systems) + { + addUAS(sys); + } + // Setup MAV connections connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), this, SLOT(addUAS(UASInterface*))); this->setVisible(false); diff --git a/src/ui/ParameterInterface.ui b/src/ui/ParameterInterface.ui index daaa2e6bc84ce879756c1fe64b89ca2e1d1ca818..9faf772ee492c5fb7b9688a2a4e7fb215fe81a15 100644 --- a/src/ui/ParameterInterface.ui +++ b/src/ui/ParameterInterface.ui @@ -6,8 +6,8 @@ 0 0 - 350 - 545 + 335 + 300 diff --git a/src/ui/QGCDataPlot2D.cc b/src/ui/QGCDataPlot2D.cc index afaf40dae0f1dd67b489f584861e5bfb0775116c..6f71b0ba4bffcef163e9765ea4584919162f5386 100644 --- a/src/ui/QGCDataPlot2D.cc +++ b/src/ui/QGCDataPlot2D.cc @@ -126,6 +126,13 @@ void QGCDataPlot2D::savePlot() fileName = QFileDialog::getSaveFileName( this, "Export File Name", QDesktopServices::storageLocation(QDesktopServices::DesktopLocation), "PDF Documents (*.pdf);;SVG Images (*.svg)"); + + if (!fileName.contains(".")) + { + // .csv is default extension + fileName.append(".pdf"); + } + while(!(fileName.endsWith(".svg") || fileName.endsWith(".pdf"))) { QMessageBox msgBox; @@ -262,7 +269,7 @@ void QGCDataPlot2D::selectFile() // Let user select the log file name //QDate date(QDate::currentDate()); // QString("./pixhawk-log-" + date.toString("yyyy-MM-dd") + "-" + QString::number(logindex) + ".log") - fileName = QFileDialog::getOpenFileName(this, tr("Specify log file name"), tr("."), tr("Logfile (*.txt)")); + fileName = QFileDialog::getOpenFileName(this, tr("Specify log file name"), QString(), "Logfile (*.csv *.txt *.log)"); // Store reference to file QFileInfo fileInfo(fileName); diff --git a/src/ui/QGCMainWindowAPConfigurator.cc b/src/ui/QGCMainWindowAPConfigurator.cc new file mode 100644 index 0000000000000000000000000000000000000000..69da8c599ed6460879cd74c5d5f53df28802a93b --- /dev/null +++ b/src/ui/QGCMainWindowAPConfigurator.cc @@ -0,0 +1,6 @@ +#include "QGCMainWindowAPConfigurator.h" + +QGCMainWindowAPConfigurator::QGCMainWindowAPConfigurator(QObject *parent) : + QObject(parent) +{ +} diff --git a/src/ui/QGCMainWindowAPConfigurator.h b/src/ui/QGCMainWindowAPConfigurator.h new file mode 100644 index 0000000000000000000000000000000000000000..f4806f8202c7dee906868232fd013f3cf5980d78 --- /dev/null +++ b/src/ui/QGCMainWindowAPConfigurator.h @@ -0,0 +1,18 @@ +#ifndef QGCMAINWINDOWAPCONFIGURATOR_H +#define QGCMAINWINDOWAPCONFIGURATOR_H + +#include + +class QGCMainWindowAPConfigurator : public QObject +{ + Q_OBJECT +public: + explicit QGCMainWindowAPConfigurator(QObject *parent = 0); + +signals: + +public slots: + +}; + +#endif // QGCMAINWINDOWAPCONFIGURATOR_H diff --git a/src/ui/QGCParamWidget.cc b/src/ui/QGCParamWidget.cc index ef4ad51cf4dbb1d4b464d9d7dd2882ab7098cc63..7fef09c2b92995fc31440a23bfcccb920769cbfe 100644 --- a/src/ui/QGCParamWidget.cc +++ b/src/ui/QGCParamWidget.cc @@ -62,26 +62,38 @@ QGCParamWidget::QGCParamWidget(UASInterface* uas, QWidget *parent) : horizontalLayout->addWidget(tree, 0, 0, 1, 3); QPushButton* refreshButton = new QPushButton(tr("Refresh")); + refreshButton->setToolTip(tr("Load parameters currently in non-permanent memory of aircraft.")); + refreshButton->setWhatsThis(tr("Load parameters currently in non-permanent memory of aircraft.")); connect(refreshButton, SIGNAL(clicked()), this, SLOT(requestParameterList())); horizontalLayout->addWidget(refreshButton, 1, 0); QPushButton* setButton = new QPushButton(tr("Transmit")); + setButton->setToolTip(tr("Set current parameters in non-permanent onboard memory")); + setButton->setWhatsThis(tr("Set current parameters in non-permanent onboard memory")); connect(setButton, SIGNAL(clicked()), this, SLOT(setParameters())); horizontalLayout->addWidget(setButton, 1, 1); QPushButton* writeButton = new QPushButton(tr("Write (ROM)")); + writeButton->setToolTip(tr("Copy current parameters in non-permanent memory of the aircraft to permanent memory. Transmit your parameters first to write these.")); + writeButton->setWhatsThis(tr("Copy current parameters in non-permanent memory of the aircraft to permanent memory. Transmit your parameters first to write these.")); connect(writeButton, SIGNAL(clicked()), this, SLOT(writeParameters())); horizontalLayout->addWidget(writeButton, 1, 2); QPushButton* readButton = new QPushButton(tr("Read (ROM)")); + readButton->setToolTip(tr("Copy parameters from permanent memory to non-permanent current memory of aircraft. DOES NOT update the parameters in this view, click refresh after copying them to get them.")); + readButton->setWhatsThis(tr("Copy parameters from permanent memory to non-permanent current memory of aircraft. DOES NOT update the parameters in this view, click refresh after copying them to get them.")); connect(readButton, SIGNAL(clicked()), this, SLOT(readParameters())); horizontalLayout->addWidget(readButton, 2, 2); QPushButton* loadFileButton = new QPushButton(tr("Load File")); + loadFileButton->setToolTip(tr("Load parameters from a file on this computer in the view. To write them to the aircraft, use transmit after loading them.")); + loadFileButton->setWhatsThis(tr("Load parameters from a file on this computer in the view. To write them to the aircraft, use transmit after loading them.")); connect(loadFileButton, SIGNAL(clicked()), this, SLOT(loadParameters())); horizontalLayout->addWidget(loadFileButton, 2, 0); QPushButton* saveFileButton = new QPushButton(tr("Save File")); + saveFileButton->setToolTip(tr("Save parameters in this view to a file on this computer.")); + saveFileButton->setWhatsThis(tr("Save parameters in this view to a file on this computer.")); connect(saveFileButton, SIGNAL(clicked()), this, SLOT(saveParameters())); horizontalLayout->addWidget(saveFileButton, 2, 1); diff --git a/src/ui/QGCRemoteControlView.cc b/src/ui/QGCRemoteControlView.cc index d0c574609e567ad8e5c382057f385be9139c048e..106992fae340b5cffc88be2a5e0e5e75830b90d1 100644 --- a/src/ui/QGCRemoteControlView.cc +++ b/src/ui/QGCRemoteControlView.cc @@ -96,10 +96,11 @@ void QGCRemoteControlView::setUASId(int id) if (uas) { // The UAS exists, disconnect any existing connections - disconnect(uas, SIGNAL(remoteControlChannelChanged(int,float,float)), this, SLOT(setChannel(int,float,float))); - disconnect(uas, SIGNAL(remoteControlRSSIChanged(float)), this, SLOT(setRemoteRSSI(float))); - disconnect(uas, SIGNAL(radioCalibrationReceived(const QPointer)), calibrationWindow, SLOT(receive(const QPointer&))); - disconnect(uas, SIGNAL(remoteControlChannelChanged(int,float,float)), calibrationWindow, SLOT(setChannel(int,float,float))); + disconnect(uas, SIGNAL(remoteControlChannelRawChanged(int,float,float)), this, SLOT(setChannel(int,float,float))); + disconnect(uas, SIGNAL(remoteControlRSSIRawChanged(float)), this, SLOT(setRemoteRSSI(float))); + disconnect(uas, SIGNAL(radioCalibrationRawReceived(const QPointer)), calibrationWindow, SLOT(receive(const QPointer&))); + disconnect(uas, SIGNAL(remoteControlChannelRawChanged(int,float)), calibrationWindow, SLOT(setChannelRaw(int,float))); + disconnect(uas, SIGNAL(remoteControlChannelScaledChanged(int,float,float)), calibrationWindow, SLOT(setChannelScaled(int,float))); } } @@ -111,25 +112,49 @@ void QGCRemoteControlView::setUASId(int id) nameLabel->setText(QString("RC Input of %1").arg(newUAS->getUASName())); calibrationWindow->setUASId(id); connect(newUAS, SIGNAL(radioCalibrationReceived(const QPointer&)), calibrationWindow, SLOT(receive(const QPointer&))); - connect(newUAS, SIGNAL(remoteControlChannelChanged(int,float,float)), this, SLOT(setChannel(int,float,float))); - connect(newUAS, SIGNAL(remoteControlChannelChanged(int,float,float)), calibrationWindow, SLOT(setChannel(int,float,float))); connect(newUAS, SIGNAL(remoteControlRSSIChanged(float)), this, SLOT(setRemoteRSSI(float))); + + connect(newUAS, SIGNAL(remoteControlChannelRawChanged(int,float)), this, SLOT(setChannelRaw(int,float))); +// connect(newUAS, SIGNAL(remoteControlChannelRawChanged(int,float)), calibrationWindow, SLOT(setChannelRaw(int,float))); + + connect(newUAS, SIGNAL(remoteControlChannelScaledChanged(int,float)), this, SLOT(setChannelScaled(int,float))); +// connect(newUAS, SIGNAL(remoteControlChannelScaledChanged(int,float)), calibrationWindow, SLOT(setChannelScaled(int,float))); } } -void QGCRemoteControlView::setChannel(int channelId, float raw, float normalized) +void QGCRemoteControlView::setChannelRaw(int channelId, float raw) { + if (this->raw.size() <= channelId) { // This is a new channel, append it this->raw.append(raw); + this->normalized.append(0); + appendChannelWidget(channelId); + } + else + { + // This is an existing channel, aupdate it + this->raw[channelId] = raw; + } + updated = true; + + // FIXME Will be timer based in the future + redraw(); +} + +void QGCRemoteControlView::setChannelScaled(int channelId, float normalized) +{ + if (this->raw.size() <= channelId) // using raw vector as size indicator + { + // This is a new channel, append it this->normalized.append(normalized); + this->raw.append(0); appendChannelWidget(channelId); } else { // This is an existing channel, update it - this->raw[channelId] = raw; this->normalized[channelId] = normalized; } updated = true; @@ -156,8 +181,9 @@ void QGCRemoteControlView::appendChannelWidget(int channelId) layout->addWidget(raw); // Append progress bar QProgressBar* normalized = new QProgressBar(this); - normalized->setMinimum(0); + normalized->setMinimum(-100); normalized->setMaximum(100); + normalized->setFormat("%v%"); progressBars.append(normalized); layout->addWidget(normalized); channelLayout->addLayout(layout); @@ -184,12 +210,15 @@ void QGCRemoteControlView::redraw() void QGCRemoteControlView::changeEvent(QEvent *e) { - QWidget::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - //ui->retranslateUi(this); - break; - default: - break; - } + Q_UNUSED(e); + // FIXME If the lines below are commented in + // runtime errors can occur on x64 systems. +// QWidget::changeEvent(e); +// switch (e->type()) { +// case QEvent::LanguageChange: +// //ui->retranslateUi(this); +// break; +// default: +// break; +// } } diff --git a/src/ui/QGCRemoteControlView.h b/src/ui/QGCRemoteControlView.h index c4044cdfd1b48257b2a2f16025ebb32f62ed44ef..0027748385a54fc91729f9e5db7cf0ddc0b57df9 100644 --- a/src/ui/QGCRemoteControlView.h +++ b/src/ui/QGCRemoteControlView.h @@ -52,7 +52,8 @@ public: public slots: void setUASId(int id); - void setChannel(int channelId, float raw, float normalized); + void setChannelRaw(int channelId, float raw); + void setChannelScaled(int channelId, float normalized); void setRemoteRSSI(float rssiNormalized); void redraw(); diff --git a/src/ui/QGCRemoteControlView.ui b/src/ui/QGCRemoteControlView.ui index 94076ebb494368943a40cd57dff6f2550892c826..fc7177c64bcde199580a657f7cfaaf00553bf356 100644 --- a/src/ui/QGCRemoteControlView.ui +++ b/src/ui/QGCRemoteControlView.ui @@ -165,8 +165,20 @@ 16 + + -100 + - 24 + 0 + + + true + + + false + + + %v% @@ -178,8 +190,14 @@ 16 + + -100 + - 24 + 0 + + + %v% @@ -191,8 +209,14 @@ 16 + + -100 + - 24 + 0 + + + %v% @@ -204,8 +228,14 @@ 16 + + -100 + - 24 + 0 + + + %v% @@ -217,8 +247,14 @@ 16 + + -100 + - 24 + 0 + + + %v% @@ -230,8 +266,14 @@ 16 + + -100 + - 24 + 0 + + + %v% @@ -243,8 +285,14 @@ 16 + + -100 + - 24 + 0 + + + %v% @@ -256,8 +304,14 @@ 16 + + -100 + - 24 + 0 + + + %v% diff --git a/src/ui/QGCSensorSettingsWidget.cc b/src/ui/QGCSensorSettingsWidget.cc index 756dc3d8beb7e7ae681b4bbc82905e3f18757be4..68b55acfc8158bb292ee8905e6d76af9b2557d6e 100644 --- a/src/ui/QGCSensorSettingsWidget.cc +++ b/src/ui/QGCSensorSettingsWidget.cc @@ -37,15 +37,15 @@ QGCSensorSettingsWidget::QGCSensorSettingsWidget(UASInterface* uas, QWidget *par ui(new Ui::QGCSensorSettingsWidget) { ui->setupUi(this); - - connect(ui->sendRawCheckBox, SIGNAL(toggled(bool)), mav, SLOT(enableRawSensorDataTransmission(bool))); - connect(ui->sendControllerCheckBox, SIGNAL(toggled(bool)), mav, SLOT(enableRawControllerDataTransmission(bool))); - connect(ui->sendExtendedCheckBox, SIGNAL(toggled(bool)), mav, SLOT(enableExtendedSystemStatusTransmission(bool))); - connect(ui->sendRCCheckBox, SIGNAL(toggled(bool)), mav, SLOT(enableRCChannelDataTransmission(bool))); - connect(ui->sendPositionCheckBox, SIGNAL(toggled(bool)), mav, SLOT(enablePositionTransmission(bool))); - connect(ui->sendExtra1CheckBox, SIGNAL(toggled(bool)), mav, SLOT(enableExtra1Transmission(bool))); - connect(ui->sendExtra2CheckBox, SIGNAL(toggled(bool)), mav, SLOT(enableExtra2Transmission(bool))); - connect(ui->sendExtra3CheckBox, SIGNAL(toggled(bool)), mav, SLOT(enableExtra3Transmission(bool))); + // XXX: This might be a bad idea sending a message every time the value changes + connect(ui->spinBox_rawSensor, SIGNAL(valueChanged(int)), mav, SLOT(enableRawSensorDataTransmission(int))); + connect(ui->spinBox_controller, SIGNAL(valueChanged(int)), mav, SLOT(enableRawControllerDataTransmission(int))); + connect(ui->spinBox_extended, SIGNAL(valueChanged(int)), mav, SLOT(enableExtendedSystemStatusTransmission(int))); + connect(ui->spinBox_rc, SIGNAL(valueChanged(int)), mav, SLOT(enableRCChannelDataTransmission(int))); + connect(ui->spinBox_position, SIGNAL(valueChanged(int)), mav, SLOT(enablePositionTransmission(int))); + connect(ui->spinBox_extra1, SIGNAL(valueChanged(int)), mav, SLOT(enableExtra1Transmission(int))); + connect(ui->spinBox_extra2, SIGNAL(valueChanged(int)), mav, SLOT(enableExtra2Transmission(int))); + connect(ui->spinBox_extra3, SIGNAL(valueChanged(int)), mav, SLOT(enableExtra3Transmission(int))); // Calibration connect(ui->rcCalButton, SIGNAL(clicked()), mav, SLOT(startRadioControlCalibration())); diff --git a/src/ui/QGCSensorSettingsWidget.ui b/src/ui/QGCSensorSettingsWidget.ui index 40be710d9afa9c9472a8f347ce6507a3e4c87f8f..b475dda88eedcfac776546fa9dd3b44ff4ef65cd 100644 --- a/src/ui/QGCSensorSettingsWidget.ui +++ b/src/ui/QGCSensorSettingsWidget.ui @@ -6,7 +6,7 @@ 0 0 - 319 + 237 221 @@ -22,7 +22,7 @@ Calibration Wizards - + 6 @@ -44,28 +44,28 @@ - RC Calibration + RC Cal. - Mag. Calibration + Mag. Cal. - Gyro Calibration + Gyro Cal. - Pressure Calibration + Pressure Cal. @@ -75,7 +75,7 @@ - Activate Extended Output + Data Stream Rates (Hz) @@ -97,58 +97,114 @@ 2 - - - RAW Sensor Data + + + 10000 - + - RC Values + Raw Sensor + + + + + + + 10000 - - - Position setpoint + + + 10000 - - - Raw Controller + + + 10000 - + - Send Extra1 + Extended - - + + - Attitude + Position - - + + - Send Extra2 + Controller - - + + + + 10000 + + + + + + + 10000 + + + + + + + 10000 + + + + + + + 10000 + + + + + + + RC Values + + + + + + + Extra 1 + + + + + + + Extra 2 + + + + + - Send Extra3 + Extra 3 diff --git a/src/ui/QGCWebView.cc b/src/ui/QGCWebView.cc new file mode 100644 index 0000000000000000000000000000000000000000..7de964b90022f7e51bd191e1ec2b0d72dfa035f6 --- /dev/null +++ b/src/ui/QGCWebView.cc @@ -0,0 +1,28 @@ +#include "QGCWebView.h" +#include "ui_QGCWebView.h" + +QGCWebView::QGCWebView(QWidget *parent) : + QWidget(parent), + ui(new Ui::QGCWebView) +{ + ui->setupUi(this); + ui->webView->settings()->setAttribute(QWebSettings::PluginsEnabled, true); + ui->webView->load(QUrl("http://qgroundcontrol.org")); +} + +QGCWebView::~QGCWebView() +{ + delete ui; +} + +void QGCWebView::changeEvent(QEvent *e) +{ + QWidget::changeEvent(e); + switch (e->type()) { + case QEvent::LanguageChange: + ui->retranslateUi(this); + break; + default: + break; + } +} diff --git a/src/ui/QGCWebView.h b/src/ui/QGCWebView.h new file mode 100644 index 0000000000000000000000000000000000000000..9c85ff08f16f5325b242738db4bc78e6e3f1af97 --- /dev/null +++ b/src/ui/QGCWebView.h @@ -0,0 +1,25 @@ +#ifndef QGCWEBVIEW_H +#define QGCWEBVIEW_H + +#include + +namespace Ui { + class QGCWebView; +} + +class QGCWebView : public QWidget +{ + Q_OBJECT + +public: + explicit QGCWebView(QWidget *parent = 0); + ~QGCWebView(); + +protected: + void changeEvent(QEvent *e); + +private: + Ui::QGCWebView *ui; +}; + +#endif // QGCWEBVIEW_H diff --git a/src/ui/QGCWebView.ui b/src/ui/QGCWebView.ui new file mode 100644 index 0000000000000000000000000000000000000000..d7f8a87a33dcb1767e00004ff8790d2f6e8f49f6 --- /dev/null +++ b/src/ui/QGCWebView.ui @@ -0,0 +1,37 @@ + + + QGCWebView + + + + 0 + 0 + 400 + 300 + + + + Form + + + + + + + about:blank + + + + + + + + + QWebView + QWidget +
QtWebKit/QWebView
+
+
+ + +
diff --git a/src/ui/QMap3D.ui b/src/ui/QMap3D.ui new file mode 100644 index 0000000000000000000000000000000000000000..ea573001e8a5e3dd4317ed945fa868e109228bd2 --- /dev/null +++ b/src/ui/QMap3D.ui @@ -0,0 +1,45 @@ + + + QMap3D + + + + 0 + 0 + 548 + 211 + + + + Form + + + + + + Map + + + + + + + + + + Vehicle + + + + + + + + ViewerQOSG + QGraphicsView +
QOSGWidget.h
+
+
+ + +
diff --git a/src/ui/RadioCalibration/AirfoilServoCalibrator.cc b/src/ui/RadioCalibration/AirfoilServoCalibrator.cc index 87e9616f578e9f61c9ac028c8aa3b97b683034e7..8361adc700a872a0b516a1f2212740cd8fcf42f9 100644 --- a/src/ui/RadioCalibration/AirfoilServoCalibrator.cc +++ b/src/ui/RadioCalibration/AirfoilServoCalibrator.cc @@ -10,7 +10,7 @@ AirfoilServoCalibrator::AirfoilServoCalibrator(AirfoilType type, QWidget *parent /* Add title */ QHBoxLayout *titleLayout = new QHBoxLayout(); - QLabel *title; + QLabel* title; if (type == AILERON) { title = new QLabel(tr("Aileron")); @@ -23,6 +23,10 @@ AirfoilServoCalibrator::AirfoilServoCalibrator(AirfoilType type, QWidget *parent { title = new QLabel(tr("Rudder")); } + else + { + title = new QLabel(tr("Unknown")); + } titleLayout->addWidget(title); grid->addLayout(titleLayout, 0, 0, 1, 3, Qt::AlignHCenter); diff --git a/src/ui/RadioCalibration/RadioCalibrationData.cc b/src/ui/RadioCalibration/RadioCalibrationData.cc index 4d4822ea2dc77b065927eb16c3ab1b8b5dfdb872..aba6ff1a3286d1812ad79fb4b3ad3b728539528b 100644 --- a/src/ui/RadioCalibration/RadioCalibrationData.cc +++ b/src/ui/RadioCalibration/RadioCalibrationData.cc @@ -55,6 +55,9 @@ const QVector& RadioCalibrationData::operator ()(int i) const return (*data)[i]; } + // FIXME Bryan + // FIXME James + // This is not good. If it is ever used after being returned it will cause a crash // return QVector(); } diff --git a/src/ui/RadioCalibration/RadioCalibrationWindow.cc b/src/ui/RadioCalibration/RadioCalibrationWindow.cc index e6c483dccca4c2e45907f0c9bced233367bbb69c..4f3c7cf76eafe63b84484a74b418f86354cff264 100644 --- a/src/ui/RadioCalibration/RadioCalibrationWindow.cc +++ b/src/ui/RadioCalibration/RadioCalibrationWindow.cc @@ -52,6 +52,69 @@ RadioCalibrationWindow::RadioCalibrationWindow(QWidget *parent) : setUASId(0); } +void RadioCalibrationWindow::setChannelRaw(int ch, float raw) +{ + /** this expects a particular channel to function mapping + \todo allow run-time channel mapping + */ + switch (ch) + { + case 0: + aileron->channelChanged(raw); + break; + case 1: + elevator->channelChanged(raw); + break; + case 2: + throttle->channelChanged(raw); + break; + case 3: + rudder->channelChanged(raw); + break; + case 4: + gyro->channelChanged(raw); + break; + case 5: + pitch->channelChanged(raw); + break; + + + } +} + +void RadioCalibrationWindow::setChannelScaled(int ch, float normalized) +{ + // FIXME James + // FIXME Bryan + +// /** this expects a particular channel to function mapping +// \todo allow run-time channel mapping +// */ +// switch (ch) +// { +// case 0: +// aileron->channelChanged(raw); +// break; +// case 1: +// elevator->channelChanged(raw); +// break; +// case 2: +// throttle->channelChanged(raw); +// break; +// case 3: +// rudder->channelChanged(raw); +// break; +// case 4: +// gyro->channelChanged(raw); +// break; +// case 5: +// pitch->channelChanged(raw); +// break; + + +// } +} + void RadioCalibrationWindow::setChannel(int ch, float raw, float normalized) { /** this expects a particular channel to function mapping @@ -265,7 +328,7 @@ void RadioCalibrationWindow::parseSetpoint(const QDomElement &setpoint, const QP void RadioCalibrationWindow::send() { qDebug() << __FILE__ << __LINE__ << "uasId = " << uasId; -#ifdef MAVLINK_ENABLED_UALBERTA +#ifdef MAVLINK_ENABLED_UALBERTA_MESSAGES UAS *uas = dynamic_cast(UASManager::instance()->getUASForId(uasId)); if (uas) { diff --git a/src/ui/RadioCalibration/RadioCalibrationWindow.h b/src/ui/RadioCalibration/RadioCalibrationWindow.h index 1ec038c754c062314ec22d29baf0fd228cab6df4..3a3f55310632d49c71a7b1b9b883390a74a1e109 100644 --- a/src/ui/RadioCalibration/RadioCalibrationWindow.h +++ b/src/ui/RadioCalibration/RadioCalibrationWindow.h @@ -67,6 +67,8 @@ public: public slots: void setChannel(int ch, float raw, float normalized); + void setChannelRaw(int ch, float raw); + void setChannelScaled(int ch, float normalized); void loadFile(); void saveFile(); void send(); diff --git a/src/ui/SerialConfigurationWindow.cc b/src/ui/SerialConfigurationWindow.cc index 5542bc93bd382ec0971c464a00c644c7e3303c9b..11bd3dd915c661b4d4b2095f1eda438290193ace 100644 --- a/src/ui/SerialConfigurationWindow.cc +++ b/src/ui/SerialConfigurationWindow.cc @@ -33,6 +33,7 @@ This file is part of the QGROUNDCONTROL project #include #include #include +#include #include #ifdef _WIN32 #include @@ -233,6 +234,7 @@ userConfigured(false) if(serialLink != 0) { + serialLink->loadSettings(); this->link = serialLink; // Setup the user interface according to link type @@ -509,12 +511,3 @@ void SerialConfigurationWindow::setLinkName(QString name) setWindowTitle(tr("Configuration of ") + link->getName()); } -void SerialConfigurationWindow::remove() -{ - link->disconnect(); - //delete link; - //delete action; - this->window()->close(); - qDebug() << "TODO: Link cannot be deleted: SerialConfigurationWindow::remove() NOT IMPLEMENTED!"; -} - diff --git a/src/ui/SerialConfigurationWindow.h b/src/ui/SerialConfigurationWindow.h index d71fb95e2aa5f415f1033c93cab511fa66e07805..69b020182a8fd20df7108d74731c27327b69ba04 100644 --- a/src/ui/SerialConfigurationWindow.h +++ b/src/ui/SerialConfigurationWindow.h @@ -60,19 +60,11 @@ public slots: void setParityEven(); void setPortName(QString port); void setLinkName(QString name); - /** - * @brief Remove this link - * - * Disconnects the associated link, removes it from all menus and closes the window. - */ - void remove(); void setupPortList(); -protected slots: +protected: void showEvent(QShowEvent* event); void hideEvent(QHideEvent* event); - -protected: bool userConfigured; ///< Switch to detect if current values are user-selected and shouldn't be overriden private: diff --git a/src/ui/SerialSettings.ui b/src/ui/SerialSettings.ui index 402d649c549beb840dd5ac436cc528c6da7dad66..b116400b26115baed98620bef520ee674324b5ce 100644 --- a/src/ui/SerialSettings.ui +++ b/src/ui/SerialSettings.ui @@ -159,11 +159,26 @@ 128000
+ + + 230400 + + 256000 + + + 460800 + + + + + 921600 + +
diff --git a/src/ui/SlugsDataSensorView.cc b/src/ui/SlugsDataSensorView.cc new file mode 100644 index 0000000000000000000000000000000000000000..c8a12cd56a61860670c546e09003cc47e434be98 --- /dev/null +++ b/src/ui/SlugsDataSensorView.cc @@ -0,0 +1,328 @@ +#include "SlugsDataSensorView.h" +#include "ui_SlugsDataSensorView.h" + +#include +#include "SlugsMAV.h" + +#include + +SlugsDataSensorView::SlugsDataSensorView(QWidget *parent) : + QWidget(parent), + ui(new Ui::SlugsDataSensorView) +{ + ui->setupUi(this); + + activeUAS = NULL; + + this->setVisible(false); + + + + +} + +SlugsDataSensorView::~SlugsDataSensorView() +{ + delete ui; +} + +void SlugsDataSensorView::addUAS(UASInterface* uas) +{ + SlugsMAV* slugsMav = dynamic_cast(uas); + + if (slugsMav != NULL) { + + connect(slugsMav, SIGNAL(slugsRawImu(int, const mavlink_raw_imu_t&)), this, SLOT(slugRawDataChanged(int, const mavlink_raw_imu_t&))); + + #ifdef MAVLINK_ENABLED_SLUGS + + //connect standar messages + connect(slugsMav, SIGNAL(localPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugLocalPositionChanged(UASInterface*,double,double,double,quint64))); + connect(slugsMav, SIGNAL(speedChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugSpeedLocalPositionChanged(UASInterface*,double,double,double,quint64))); + connect(slugsMav, SIGNAL(attitudeChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugAttitudeChanged(UASInterface*,double,double,double,quint64))); + connect(slugsMav, SIGNAL(globalPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugsGlobalPositionChanged(UASInterface*,double,double,double,quint64))); + connect(slugsMav,SIGNAL(slugsGPSCogSog(int,double,double)),this,SLOT(slugsGPSCogSog(int,double,double))); + + + + + //connect slugs especial messages + connect(slugsMav, SIGNAL(slugsSensorBias(int,const mavlink_sensor_bias_t&)), this, SLOT(slugsSensorBiasChanged(int,const mavlink_sensor_bias_t&))); + connect(slugsMav, SIGNAL(slugsDiagnostic(int,const mavlink_diagnostic_t&)), this, SLOT(slugsDiagnosticMessageChanged(int,const mavlink_diagnostic_t&))); + connect(slugsMav, SIGNAL(slugsCPULoad(int,const mavlink_cpu_load_t&)), this, SLOT(slugsCpuLoadChanged(int,const mavlink_cpu_load_t&))); + connect(slugsMav, SIGNAL(slugsNavegation(int,const mavlink_slugs_navigation_t&)),this,SLOT(slugsNavegationChanged(int,const mavlink_slugs_navigation_t&))); + connect(slugsMav, SIGNAL(slugsDataLog(int,const mavlink_data_log_t&)), this, SLOT(slugsDataLogChanged(int,const mavlink_data_log_t&))); + connect(slugsMav, SIGNAL(slugsPWM(int,const mavlink_pwm_commands_t&)),this,SLOT(slugsPWMChanged(int,const mavlink_pwm_commands_t&))); + connect(slugsMav, SIGNAL(slugsFilteredData(int,const mavlink_filtered_data_t&)),this,SLOT(slugsFilteredDataChanged(int,const mavlink_filtered_data_t&))); + connect(slugsMav, SIGNAL(slugsGPSDateTime(int,const mavlink_gps_date_time_t&)),this,SLOT(slugsGPSDateTimeChanged(int,const mavlink_gps_date_time_t&))); + connect(slugsMav,SIGNAL(slugsAirData(int, const mavlink_air_data_t&)),this,SLOT(slugsAirDataChanged(int, const mavlink_air_data_t&))); + + + #endif // MAVLINK_ENABLED_SLUGS + // Set this UAS as active if it is the first one + if(activeUAS == 0) { + activeUAS = uas; + } + + } +} + +void SlugsDataSensorView::slugRawDataChanged(int uasId, const mavlink_raw_imu_t &rawData){ + Q_UNUSED(uasId); + + ui->m_Axr->setText(QString::number(rawData.xacc)); + ui->m_Ayr->setText(QString::number(rawData.yacc)); + ui->m_Azr->setText(QString::number(rawData.zacc)); + + ui->m_Mxr->setText(QString::number(rawData.xmag)); + ui->m_Myr->setText(QString::number(rawData.ymag)); + ui->m_Mzr->setText(QString::number(rawData.zmag)); + + ui->m_Gxr->setText(QString::number(rawData.xgyro)); + ui->m_Gyr->setText(QString::number(rawData.ygyro)); + ui->m_Gzr->setText(QString::number(rawData.zgyro)); + +} + +void SlugsDataSensorView::setActiveUAS(UASInterface* uas){ + activeUAS = uas; +} + +#ifdef MAVLINK_ENABLED_SLUGS + +void SlugsDataSensorView::slugsGlobalPositionChanged(UASInterface *uas, + double lat, + double lon, + double alt, + quint64 time) { + Q_UNUSED(uas); + Q_UNUSED(time); + + + + ui->m_GpsLatitude->setText(QString::number(lat)); + ui->m_GpsLongitude->setText(QString::number(lon)); + ui->m_GpsHeight->setText(QString::number(alt)); + + qDebug()<<"GPS Position = "<ed_x->setPlainText(QString::number(x)); + ui->ed_y->setPlainText(QString::number(y)); + ui->ed_z->setPlainText(QString::number(z)); + + //qDebug()<<"Local Position = "<ed_vx->setPlainText(QString::number(vx)); + ui->ed_vy->setPlainText(QString::number(vy)); + ui->ed_vz->setPlainText(QString::number(vz)); + + //qDebug()<<"Speed Local Position = "<m_Roll->setPlainText(QString::number(slugroll)); + ui->m_Pitch->setPlainText(QString::number(slugpitch)); + ui->m_Yaw->setPlainText(QString::number(slugyaw)); + + qDebug()<<"Attitude change = "<m_AxBiases->setText(QString::number(sensorBias.axBias)); + ui->m_AyBiases->setText(QString::number(sensorBias.ayBias)); + ui->m_AzBiases->setText(QString::number(sensorBias.azBias)); + ui->m_GxBiases->setText(QString::number(sensorBias.gxBias)); + ui->m_GyBiases->setText(QString::number(sensorBias.gyBias)); + ui->m_GzBiases->setText(QString::number(sensorBias.gzBias)); + +} + + +void SlugsDataSensorView::slugsDiagnosticMessageChanged(int systemId, + const mavlink_diagnostic_t& diagnostic){ + Q_UNUSED(systemId); + + ui->m_Fl1->setText(QString::number(diagnostic.diagFl1)); + ui->m_Fl2->setText(QString::number(diagnostic.diagFl2)); + ui->m_Fl3->setText(QString::number(diagnostic.diagFl2)); + + ui->m_Sh1->setText(QString::number(diagnostic.diagSh1)); + ui->m_Sh2->setText(QString::number(diagnostic.diagSh2)); + ui->m_Sh3->setText(QString::number(diagnostic.diagSh3)); +} + + +void SlugsDataSensorView::slugsCpuLoadChanged(int systemId, + const mavlink_cpu_load_t& cpuLoad){ + Q_UNUSED(systemId); + ui->ed_sens->setText(QString::number(cpuLoad.sensLoad)); + ui->ed_control->setText(QString::number(cpuLoad.ctrlLoad)); + ui->ed_batvolt->setText(QString::number(cpuLoad.batVolt)); +} + +void SlugsDataSensorView::slugsNavegationChanged(int systemId, + const mavlink_slugs_navigation_t& slugsNavigation){ + Q_UNUSED(systemId); + ui->m_Um->setText(QString::number(slugsNavigation.u_m)); + ui->m_PhiC->setText(QString::number(slugsNavigation.phi_c)); + ui->m_PitchC->setText(QString::number(slugsNavigation.theta_c)); + ui->m_PsidC->setText(QString::number(slugsNavigation.psiDot_c)); + ui->m_AyBody->setText(QString::number(slugsNavigation.ay_body)); + ui->m_TotRun->setText(QString::number(slugsNavigation.totalDist)); + ui->m_DistToGo->setText(QString::number(slugsNavigation.dist2Go)); + ui->m_FromWP->setText(QString::number(slugsNavigation.fromWP)); + ui->m_ToWP->setText(QString::number(slugsNavigation.toWP)); +} + + + +void SlugsDataSensorView::slugsDataLogChanged(int systemId, + const mavlink_data_log_t& dataLog){ + Q_UNUSED(systemId); + ui->m_logFl1->setText(QString::number(dataLog.fl_1)); + ui->m_logFl2->setText(QString::number(dataLog.fl_2)); + ui->m_logFl3->setText(QString::number(dataLog.fl_3)); + ui->m_logFl4->setText(QString::number(dataLog.fl_4)); + ui->m_logFl5->setText(QString::number(dataLog.fl_5)); + ui->m_logFl6->setText(QString::number(dataLog.fl_6)); +} + +void SlugsDataSensorView::slugsPWMChanged(int systemId, + const mavlink_pwm_commands_t& pwmCommands){ + Q_UNUSED(systemId); + ui->m_pwmThro->setText(QString::number(pwmCommands.dt_c)); + ui->m_pwmAile->setText(QString::number(pwmCommands.dla_c)); + ui->m_pwmElev->setText(QString::number(pwmCommands.dle_c)); + ui->m_pwmRudd->setText(QString::number(pwmCommands.dr_c)); + + ui->m_pwmThroTrim->setText(QString::number(pwmCommands.dre_c)); + ui->m_pwmAileTrim->setText(QString::number(pwmCommands.dlf_c)); + ui->m_pwmElevTrim->setText(QString::number(pwmCommands.drf_c)); + ui->m_pwmRuddTrim->setText(QString::number(pwmCommands.aux1)); + +} + +void SlugsDataSensorView::slugsFilteredDataChanged(int systemId, + const mavlink_filtered_data_t& filteredData){ + Q_UNUSED(systemId); + ui->m_Axf->setText(QString::number(filteredData.aX)); + ui->m_Ayf->setText(QString::number(filteredData.aY)); + ui->m_Azf->setText(QString::number(filteredData.aZ)); + ui->m_Gxf->setText(QString::number(filteredData.gX)); + ui->m_Gyf->setText(QString::number(filteredData.gY)); + ui->m_Gzf->setText(QString::number(filteredData.gZ)); + ui->m_Mxf->setText(QString::number(filteredData.mX)); + ui->m_Myf->setText(QString::number(filteredData.mY)); + ui->m_Mzf->setText(QString::number(filteredData.mZ)); +} + +void SlugsDataSensorView::slugsGPSDateTimeChanged(int systemId, + const mavlink_gps_date_time_t& gpsDateTime){ + Q_UNUSED(systemId); + + QString month, day; + + month = QString::number(gpsDateTime.month); + day = QString::number(gpsDateTime.day); + + if(gpsDateTime.month < 10) month = "0" + QString::number(gpsDateTime.month); + if(gpsDateTime.day < 10) day = "0" + QString::number(gpsDateTime.day); + + + ui->m_GpsDate->setText(day + "/" + + month + "/" + + QString::number(gpsDateTime.year)); + + QString hour, min, sec; + + hour = QString::number(gpsDateTime.hour); + min = QString::number(gpsDateTime.min); + sec = QString::number(gpsDateTime.sec); + + if(gpsDateTime.hour < 10) hour = "0" + QString::number(gpsDateTime.hour); + if(gpsDateTime.min < 10) min = "0" + QString::number(gpsDateTime.min); + if(gpsDateTime.sec < 10) sec = "0" + QString::number(gpsDateTime.sec); + + ui->m_GpsTime->setText(hour + ":" + + min + ":" + + sec); + + ui->m_GpsSat->setText(QString::number(gpsDateTime.visSat)); + + +} + +/** + * @brief Updates the air data widget - 171 +*/ +void SlugsDataSensorView::slugsAirDataChanged(int systemId, const mavlink_air_data_t &airData) +{ + Q_UNUSED(systemId); + ui->ed_dynamic->setText(QString::number(airData.dynamicPressure)); + ui->ed_static->setText(QString::number(airData.staticPressure)); + ui->ed_temp->setText(QString::number(airData.temperature)); + +// qDebug()<<"Air Data = "<m_GpsCog->setText(QString::number(cog)); + ui->m_GpsSog->setText(QString::number(sog)); + +} + + + + + + +#endif // MAVLINK_ENABLED_SLUGS diff --git a/src/ui/SlugsDataSensorView.h b/src/ui/SlugsDataSensorView.h new file mode 100644 index 0000000000000000000000000000000000000000..b1adcca6a18b4dd6519858f9e82d0343185946a5 --- /dev/null +++ b/src/ui/SlugsDataSensorView.h @@ -0,0 +1,209 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Grpahical presentation of SLUGS generated data + * + * @author Juan F. Robles + * + */ + +#ifndef SLUGSDATASENSORVIEW_H +#define SLUGSDATASENSORVIEW_H + +#include + +#include "UASInterface.h" +#include "SlugsMAV.h" +#include "mavlink.h" + + +namespace Ui { + class SlugsDataSensorView; +} + +class SlugsDataSensorView : public QWidget +{ + Q_OBJECT + +public: + explicit SlugsDataSensorView(QWidget *parent = 0); + ~SlugsDataSensorView(); + +public slots: + /** + * @brief Adds the UAS for data display + * + * Adds the UAS and makes all the correct connections for data display on the Widgets. If + * there is no current UAS active, it sets it as active. + + * @param uas The UAS being added + */ + void addUAS(UASInterface* uas); + + /** + * @brief Sets the UAS as active + * + * @param uas The UAS being set as active + */ + void setActiveUAS(UASInterface* uas); + + + /** + * @brief Updates the Raw Data widget + */ + void slugRawDataChanged (int uasId, const mavlink_raw_imu_t& rawData); + +#ifdef MAVLINK_ENABLED_SLUGS + /** + * @brief Adds the UAS for data display + * + * Adds the UAS and makes all the correct connections for data display on the Widgets + */ + void slugLocalPositionChanged(UASInterface* uas, + double x, + double y, + double z, + quint64 time); + /** + * @brief Adds the UAS for data display + * + * Adds the UAS and makes all the correct connections for data display on the Widgets + */ + void slugSpeedLocalPositionChanged(UASInterface* uas, + double vx, + double vy, + double vz, + quint64 time); + /** + * @brief Adds the UAS for data display + * + * Adds the UAS and makes all the correct connections for data display on the Widgets + */ + void slugAttitudeChanged(UASInterface* uas, + double slugroll, + double slugpitch, + double slugyaw, + quint64 time); + + /** + * @brief Adds the UAS for data display + * + * Adds the UAS and makes all the correct connections for data display on the Widgets + */ + void slugsGlobalPositionChanged(UASInterface* uas, + double lat, + double lon, + double alt, + quint64 time); + + /** + * @brief set COG and SOG values + * + * COG and SOG GPS display on the Widgets + */ + void slugsGPSCogSog(int systemId, + double cog, + double sog); + + + + /** + * @brief Updates the CPU load widget - 170 + */ + void slugsCpuLoadChanged(int systemId, + const mavlink_cpu_load_t& cpuLoad); + + /** + * @brief Updates the air data widget - 171 + */ + void slugsAirDataChanged(int systemId, + const mavlink_air_data_t& airData); + + /** + * @brief Updates the sensor bias widget - 172 + */ + void slugsSensorBiasChanged(int systemId, + const mavlink_sensor_bias_t& sensorBias); + + /** + * @brief Updates the diagnostic widget - 173 + */ + void slugsDiagnosticMessageChanged(int systemId, + const mavlink_diagnostic_t& diagnostic); + + + /** + * @brief Updates the Navigation widget - 176 + */ + void slugsNavegationChanged(int systemId, + const mavlink_slugs_navigation_t& slugsNavigation); + + /** + * @brief Updates the Data Log widget - 177 + */ + void slugsDataLogChanged(int systemId, + const mavlink_data_log_t& dataLog); + + /** + * @brief Updates the PWM Commands widget - 175 + */ + void slugsPWMChanged(int systemId, + const mavlink_pwm_commands_t& pwmCommands); + + /** + * @brief Updates the filtered sensor measurements widget - 178 + */ + void slugsFilteredDataChanged(int systemId, + const mavlink_filtered_data_t& filteredData); + + + /** + * @brief Updates the gps Date Time widget - 179 + */ + void slugsGPSDateTimeChanged(int systemId, + const mavlink_gps_date_time_t& gpsDateTime); + + + + + + +#endif // MAVLINK_ENABLED_SLUGS + +protected: + UASInterface* activeUAS; + +private: + Ui::SlugsDataSensorView *ui; + + + + + + + +}; + +#endif // SLUGSDATASENSORVIEW_H diff --git a/src/ui/SlugsDataSensorView.ui b/src/ui/SlugsDataSensorView.ui new file mode 100644 index 0000000000000000000000000000000000000000..5474afb0abff4307da40cddbe7905e408ca65eb2 --- /dev/null +++ b/src/ui/SlugsDataSensorView.ui @@ -0,0 +1,4492 @@ + + + SlugsDataSensorView + + + + 0 + 0 + 399 + 604 + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 399 + 604 + + + + Form + + + + + + 1 + + + + Tab 1 + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Position + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + QFrame::NoFrame + + + X + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Y + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + QFrame::NoFrame + + + Z + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Vx + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Vy + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Vz + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Attitude + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Roll + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Pitch + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Yaw + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Navigation + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + U_m + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + From WP + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Pitch C + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + To WP + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Psi_d C + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + Qt::Vertical + + + + 20 + 5 + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Phi C + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Tot Run + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Ay body + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Dist to G + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + + + + + 10 + 75 + true + + + + Diagnostic Messages + + + + + + + + + 10 + 75 + true + + + + Fl1 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + 10 + 75 + true + + + + Sh1 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + 10 + 75 + true + + + + Fl2 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + 10 + 75 + true + + + + Sh2 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + 10 + 75 + true + + + + Fl3 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + 10 + 75 + true + + + + Sh3 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + + + + + + 10 + 75 + true + + + + Log Messages + + + + + + + + + 10 + 75 + true + + + + Fl1 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + 10 + 75 + true + + + + Fl4 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + 10 + 75 + true + + + + Fl2 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + 10 + 75 + true + + + + Fl5 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + 10 + 75 + true + + + + Fl3 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + 10 + 75 + true + + + + Fl6 + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + + + + + + + + + + + Tab 2 + + + + + + + + GPS Data + + + + + + + + + + + 10 + 75 + true + + + + Date + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + + + + + + 10 + 75 + true + + + + Time + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + + + + + + 10 + 75 + true + + + + # Sats + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + + + + + + 10 + 75 + true + + + + COG + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + + + + + + 10 + 75 + true + + + + SOG + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + + + + + + + + + + 10 + 75 + true + + + + Latitude + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + + + + + + 10 + 75 + true + + + + Longitude + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + + + + + + 10 + 75 + true + + + + Height + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + + + 311 + 111 + + + + + 311 + 111 + + + + Sensor Biases + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Axb + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Gxb + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Ayb + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Gyb + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Azb + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Gzb + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + + + + + 311 + 171 + + + + + 311 + 171 + + + + PWM Commands + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Thro + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Thro Trim + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Aile + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Aile Trim + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Elev + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Elev Trim + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Rudd + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Rudd Trim + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + 60 + 18 + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + 60 + 18 + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + 60 + 18 + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + 60 + 18 + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + 60 + 18 + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + 60 + 18 + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + 60 + 18 + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + + + + + + + + Tab 3 + + + + + + + + + 0 + 0 + + + + + 132123 + 123123 + + + + CPU Load + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Sensor + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Control + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Batt Volt + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + + + + + 0 + 0 + + + + + 132123 + 123123 + + + + Air Data + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Dynamic + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Static + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Temperature + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + + + + + + + 311 + 213 + + + + + 371 + 213 + + + + Filtered Data + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Ax + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Ay + + + + + + + + 0 + 0 + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Az + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Gx + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Gy + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Gz + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Mx + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + My + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Mz + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + 311 + 213 + + + + + 361 + 213 + + + + Raw Data + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Ax + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Ay + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Az + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Gx + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Gy + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Gz + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Mx + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + My + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 10 + 75 + true + + + + Mz + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + 10 + + + + QFrame::WinPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + true + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + + + + + diff --git a/src/ui/SlugsHilSim.cc b/src/ui/SlugsHilSim.cc new file mode 100644 index 0000000000000000000000000000000000000000..a5c584f7c85689c1b8ba114de62316ed12ee4107 --- /dev/null +++ b/src/ui/SlugsHilSim.cc @@ -0,0 +1,212 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Configuration Window for Slugs' HIL Simulator + * @author Mariano Lizarraga + */ + + +#include "SlugsHilSim.h" +#include "ui_SlugsHilSim.h" +#include "LinkManager.h" + +SlugsHilSim::SlugsHilSim(QWidget *parent) : + QWidget(parent), + ui(new Ui::SlugsHilSim) +{ + ui->setupUi(this); + + rxSocket = new QUdpSocket(this); + txSocket = new QUdpSocket(this); + + hilLink = NULL; + + connect(LinkManager::instance(), SIGNAL(newLink(LinkInterface*)), this, SLOT(addToCombo(LinkInterface*))); + connect(ui->cb_mavlinkLinks, SIGNAL(currentIndexChanged(int)), this, SLOT(linkSelected(int))); + connect(ui->bt_startHil, SIGNAL(clicked()), this, SLOT(putInHilMode())); + connect(rxSocket, SIGNAL(readyRead()), this, SLOT(readDatagram())); + + linksAvailable.clear(); +} + +SlugsHilSim::~SlugsHilSim() +{ + rxSocket->disconnectFromHost(); + delete ui; +} + +void SlugsHilSim::addToCombo(LinkInterface* theLink){ + + ui->cb_mavlinkLinks->addItem(theLink->getName()); + linksAvailable.insert(ui->cb_mavlinkLinks->count(),theLink); + + if (hilLink == NULL){ + hilLink = theLink; + } + +} + +void SlugsHilSim::putInHilMode(void){ + + bool sw_enableControls = !(ui->bt_startHil->isChecked()); + QString buttonCaption= ui->bt_startHil->isChecked()? "Stop Slugs HIL Mode": "Set Slugs in HIL Mode"; + + if (ui->bt_startHil->isChecked()){ + QMessageBox msgBox; + msgBox.setIcon(QMessageBox::Critical); + msgBox.setText("You are about to put SLUGS in HIL Mode."); + msgBox.setInformativeText("It will stop reading the actual sensor readings. Do you wish to continue?"); + msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); + msgBox.setDefaultButton(QMessageBox::No); + + if(msgBox.exec() == QMessageBox::Yes) { + rxSocket->disconnectFromHost(); + rxSocket->bind(QHostAddress::Any, ui->ed_rxPort->text().toInt()); + //txSocket->bind(QHostAddress::Broadcast, ui->ed_txPort->text().toInt()); + + ui->ed_ipAdress->setEnabled(sw_enableControls); + ui->ed_rxPort->setEnabled(sw_enableControls); + ui->ed_txPort->setEnabled(sw_enableControls); + ui->cb_mavlinkLinks->setEnabled(sw_enableControls); + + ui->bt_startHil->setText(buttonCaption); + + } else { + ui->bt_startHil->setChecked(false); + } + } else { + ui->ed_ipAdress->setEnabled(sw_enableControls); + ui->ed_rxPort->setEnabled(sw_enableControls); + ui->ed_txPort->setEnabled(sw_enableControls); + ui->cb_mavlinkLinks->setEnabled(sw_enableControls); + + ui->bt_startHil->setText(buttonCaption); + + rxSocket->disconnectFromHost(); + } +} + +void SlugsHilSim::readDatagram(void){ + static int count = 0; + while (rxSocket->hasPendingDatagrams()) { + QByteArray datagram; + datagram.resize(rxSocket->pendingDatagramSize()); + QHostAddress sender; + quint16 senderPort; + + rxSocket->readDatagram(datagram.data(), datagram.size(), + &sender, &senderPort); + + if (datagram.size() == 113) { + processHilDatagram(&datagram); + } + + ui->ed_count->setText(QString::number(count++)); + } +} + + +void SlugsHilSim::activeUasSet(UASInterface* uas){ + + if (uas != NULL) { + activeUas = static_cast (uas); + } +} + + +void SlugsHilSim::processHilDatagram(const QByteArray* datagram) +{ + #ifdef MAVLINK_ENABLED_SLUGS + unsigned char i = 0; + + mavlink_message_t msg; + + // GPS + mavlink_gps_raw_t tmpGpsRaw; + + mavlink_gps_date_time_t tmpGpsTime; + + tmpGpsTime.year = datagram->at(i++); + tmpGpsTime.month = datagram->at(i++); + tmpGpsTime.day = datagram->at(i++); + tmpGpsTime.hour = datagram->at(i++); + tmpGpsTime.min = datagram->at(i++); + tmpGpsTime.sec = datagram->at(i++); + + tmpGpsRaw.lat = getFloatFromDatagram(datagram, &i); + tmpGpsRaw.lon = getFloatFromDatagram(datagram, &i); + tmpGpsRaw.alt = getFloatFromDatagram(datagram, &i); + + tmpGpsRaw.hdg = getUint16FromDatagram(datagram, &i); + tmpGpsRaw.v = getUint16FromDatagram(datagram, &i); + tmpGpsRaw.eph = getUint16FromDatagram(datagram, &i); + + tmpGpsRaw.fix_type = datagram->at(i++); + tmpGpsTime.visSat = datagram->at(i++); + + mavlink_msg_gps_date_time_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &tmpGpsTime); + activeUas->sendMessage(hilLink, msg); + + memset(&msg, 0, sizeof(mavlink_message_t)); + + mavlink_msg_gps_raw_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &tmpGpsRaw); + activeUas->sendMessage(hilLink,msg); + + // TODO: this is legacy of old HIL datagram. Need to remove from Simulink model + i++; + + ui->ed_1->setText(QString::number(tmpGpsRaw.hdg)); + ui->ed_2->setText(QString::number(tmpGpsRaw.v)); + ui->ed_3->setText(QString::number(tmpGpsRaw.eph)); +#else + Q_UNUSED(datagram); +#endif +} + +float SlugsHilSim::getFloatFromDatagram (const QByteArray* datagram, unsigned char * i){ + tFloatToChar tmpF2C; + + tmpF2C.chData[0] = datagram->at((*i)++); + tmpF2C.chData[1] = datagram->at((*i)++); + tmpF2C.chData[2] = datagram->at((*i)++); + tmpF2C.chData[3] = datagram->at((*i)++); + + return tmpF2C.flData; +} + +uint16_t SlugsHilSim::getUint16FromDatagram (const QByteArray* datagram, unsigned char * i){ + tUint16ToChar tmpU2C; + + tmpU2C.chData[0] = datagram->at((*i)++); + tmpU2C.chData[1] = datagram->at((*i)++); + + return tmpU2C.uiData; + +} + +void SlugsHilSim::linkSelected(int cbIndex){ + //hilLink = linksAvailable + // FIXME Mariano +} diff --git a/src/ui/SlugsHilSim.h b/src/ui/SlugsHilSim.h new file mode 100644 index 0000000000000000000000000000000000000000..dc0d8d1d7a90909656c29145de053c7231470cb3 --- /dev/null +++ b/src/ui/SlugsHilSim.h @@ -0,0 +1,132 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Definition of the configuration Window for Slugs' HIL Simulator + * @author Mariano Lizarraga + */ + +#ifndef SLUGSHILSIM_H +#define SLUGSHILSIM_H + +#include +#include +#include +#include + +#include "LinkInterface.h" +#include "UAS.h" +#include + + +namespace Ui { + class SlugsHilSim; +} + +class SlugsHilSim : public QWidget +{ + Q_OBJECT + +public: + explicit SlugsHilSim(QWidget *parent = 0); + ~SlugsHilSim(); + +protected: + LinkInterface* hilLink; + QHostAddress* simulinkIp; + QUdpSocket* txSocket; + QUdpSocket* rxSocket; + UAS* activeUas; + +public slots: + + /** + * @brief Adds a link to the combo box listing so the user can select a link + * + * Populates the Combo box that allows the user to select the link with which Slugs will + * receive the simulated sensor data from Simulink + * + * @param theLink the link that is being added to the combo box + */ + void addToCombo(LinkInterface* theLink); + + /** + * @brief Puts Slugs in HIL Mode + * + * Sends the required messages through the main communication link to set Slugs in HIL Mode + * + */ + void putInHilMode(void); + + /** + * @brief Receives a datagram from Simulink containing the sensor data. + * + * Receives a datagram from Simulink containing the simulated sensor data. This data is then + * forwarded to Slugs to use as input to the attitude estimation and navigation algorithms. + * + */ + void readDatagram(void); + + /** + * @brief Called when the a new UAS is set to active. + * + * Called when the a new UAS is set to active. + * + * @param uas The new active UAS + */ + void activeUasSet(UASInterface* uas); + + /** + * @brief Called when the Link combobox selects a new link. + * + * @param uas The new index of the selected link + */ + void linkSelected (int cbIndex); + +public slots: + + + +private: + + typedef union _tFloatToChar { + unsigned char chData[4]; + float flData; + } tFloatToChar; + + typedef union _tUint16ToChar { + unsigned char chData[2]; + uint16_t uiData; + } tUint16ToChar; + + Ui::SlugsHilSim *ui; + QHash linksAvailable; + + void processHilDatagram (const QByteArray* datagram); + float getFloatFromDatagram (const QByteArray* datagram, unsigned char * i); + uint16_t getUint16FromDatagram (const QByteArray* datagram, unsigned char * i); + +}; + +#endif // SLUGSHILSIM_H diff --git a/src/ui/SlugsHilSim.ui b/src/ui/SlugsHilSim.ui new file mode 100644 index 0000000000000000000000000000000000000000..6ed975ca47e28fd913cb87f1326346dac1ba5d51 --- /dev/null +++ b/src/ui/SlugsHilSim.ui @@ -0,0 +1,356 @@ + + + SlugsHilSim + + + + 0 + 0 + 325 + 278 + + + + + 320 + 252 + + + + + 450 + 278 + + + + + 10 + + + + Form + + + + + + + + + + + 10 + 75 + true + + + + Qt::LeftToRight + + + IP Address + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + 0 + 0 + + + + Qt::Horizontal + + + + + + + + 10 + 75 + true + + + + Qt::LeftToRight + + + Receive Port + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + 10 + 75 + true + + + + Qt::LeftToRight + + + Send Port + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 10 + 75 + true + + + + Qt::RightToLeft + + + Slugs HIL Link + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 171 + 26 + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Set Slugs in HIL Mode + + + true + + + + + + + + + + + + 10 + 75 + true + + + + Qt::LeftToRight + + + Count + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + true + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + true + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + true + + + + + + + + 60 + 18 + + + + + 80 + 18 + + + + true + + + + + + + + + + diff --git a/src/ui/SlugsPIDControl.cpp b/src/ui/SlugsPIDControl.cpp new file mode 100644 index 0000000000000000000000000000000000000000..d9abe37f37838c034f42a48a5e5e0610f1cf5e31 --- /dev/null +++ b/src/ui/SlugsPIDControl.cpp @@ -0,0 +1,735 @@ +#include "SlugsPIDControl.h" +#include "ui_SlugsPIDControl.h" + + +#include +#include +#include +#include +#include +#include "LinkManager.h" + +SlugsPIDControl::SlugsPIDControl(QWidget *parent) : + QWidget(parent), + ui(new Ui::SlugsPIDControl) +{ + ui->setupUi(this); + + connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(activeUasSet(UASInterface*))); + + activeUAS = NULL; + + setRedColorStyle(); + setGreenColorStyle(); + + refreshTimerGet = new QTimer(this); + refreshTimerGet->setInterval(100); // 20 Hz + connect(refreshTimerGet, SIGNAL(timeout()), this, SLOT(slugsGetGeneral())); + + + refreshTimerSet = new QTimer(this); + refreshTimerSet->setInterval(100); // 20 Hz + connect(refreshTimerSet, SIGNAL(timeout()), this, SLOT(slugsSetGeneral())); + + + counterRefreshGet = 1; + counterRefreshSet = 1; + +} + +/** + * @brief Called when the a new UAS is set to active. + * + * Called when the a new UAS is set to active. + * + * @param uas The new active UAS + */ +void SlugsPIDControl::activeUasSet(UASInterface* uas) +{ + #ifdef MAVLINK_ENABLED_SLUGS + SlugsMAV* slugsMav = dynamic_cast(uas); + + if (slugsMav != NULL) + { + connect(slugsMav,SIGNAL(slugsActionAck(int,const mavlink_action_ack_t&)),this,SLOT(recibeMensaje(int,mavlink_action_ack_t))); + connect(slugsMav,SIGNAL(slugsPidValues(int,mavlink_pid_t)),this, SLOT(receivePidValues(int,mavlink_pid_t)) ); + + connect(ui->setGeneral_pushButton,SIGNAL(clicked()),this,SLOT(slugsTimerStartSet())); + connect(ui->getGeneral_pushButton,SIGNAL(clicked()),this,SLOT(slugsTimerStartGet())); + } + +#endif // MAVLINK_ENABLED_SLUG + // Set this UAS as active if it is the first one + if(activeUAS == 0) + { + activeUAS = uas; + systemId = activeUAS->getUASID(); + connect_editLinesPDIvalues(); + + //qDebug()<<"------------------->Active UAS ID: "<getUASID(); + } + +} + +/** + * @brief Connect Edition Lines for PID Values + * + * @param + */ +void SlugsPIDControl::connect_editLinesPDIvalues() +{ + if(activeUAS) + { + connect_set_pushButtons(); + connect_get_pushButtons(); + connect_AirSpeed_LineEdit(); + connect_PitchFollowei_LineEdit(); + connect_RollControl_LineEdit(); + connect_HeigthError_LineEdit(); + connect_YawDamper_LineEdit(); + connect_Pitch2dT_LineEdit(); + } +} + +SlugsPIDControl::~SlugsPIDControl() +{ + delete ui; +} + +/** + *@brief Set the background color RED style for the GroupBox PID when change lineEdit information + * + */ +void SlugsPIDControl::setRedColorStyle() +{ + // GroupBox Color + QColor groupColor = QColor(231,72,28); + + QString borderColor = "#FA4A4F"; + + groupColor = groupColor.darker(475); + + + REDcolorStyle = REDcolorStyle.sprintf("QGroupBox {background-color: #%02X%02X%02X; border: 5px solid %s; }", + groupColor.red(), groupColor.green(), groupColor.blue(), borderColor.toStdString().c_str()); + +} + +/** + *@brief Set the background color GREEN style for the GroupBox PID when change lineEdit information + * + */ +void SlugsPIDControl::setGreenColorStyle() +{ + // create Green color style + QColor groupColor = QColor(30,124,16); + QString borderColor = "#24AC23"; + + groupColor = groupColor.darker(475); + + + GREENcolorStyle = GREENcolorStyle.sprintf("QGroupBox {background-color: #%02X%02X%02X; border: 5px solid %s; }", + groupColor.red(), groupColor.green(), groupColor.blue(), borderColor.toStdString().c_str()); + +} + +/** + *@brief Connection Signal and Slot of the set buttons on the widget + */ +void SlugsPIDControl::connect_set_pushButtons() +{ + //ToDo connect buttons set and get. Before create the slots + connect(ui->dT_PID_set_pushButton, SIGNAL(clicked()),this,SLOT(changeColor_GREEN_AirSpeed_groupBox())); + connect(ui->dE_PID_set_pushButton,SIGNAL(clicked()),this,SLOT(changeColor_GREEN_PitchFollowei_groupBox())); + connect(ui->dA_PID_set_pushButton,SIGNAL(clicked()),this,SLOT(changeColor_GREEN_RollControl_groupBox())); + connect(ui->HELPComm_PDI_set_pushButton,SIGNAL(clicked()),this,SLOT(changeColor_GREEN_HeigthError_groupBox())); + connect(ui->dR_PDI_set_pushButton,SIGNAL(clicked()),this,SLOT(changeColor_GREEN_YawDamper_groupBox())); + connect(ui->Pitch2dT_PDI_set_pushButton,SIGNAL(clicked()),this,SLOT(changeColor_GREEN_Pitch2dT_groupBox())); + + +} + +/** + *@brief Connection Signal and Slot of the set buttons on the widget + */ +void SlugsPIDControl::connect_get_pushButtons() +{ + connect(ui->dT_PID_get_pushButton, SIGNAL(clicked()),this,SLOT(get_AirSpeed_PID())); + connect(ui->dE_PID_get_pushButton,SIGNAL(clicked()),this,SLOT(get_PitchFollowei_PID())); + connect(ui->dR_PDI_get_pushButton,SIGNAL(clicked()),this,SLOT(get_YawDamper_PID())); + connect(ui->dA_PID_get_pushButton,SIGNAL(clicked()),this,SLOT(get_RollControl_PID())); + connect(ui->Pitch2dT_PDI_get_pushButton,SIGNAL(clicked()),this,SLOT(get_Pitch2dT_PID())); + connect(ui->HELPComm_PDI_get_pushButton,SIGNAL(clicked()),this,SLOT(get_HeigthError_PID())); + +} + +// Functions for Air Speed GroupBox +void SlugsPIDControl::connect_AirSpeed_LineEdit() +{ + connect(ui->dT_P_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_AirSpeed_groupBox(QString))); + connect(ui->dT_I_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_AirSpeed_groupBox(QString))); + connect(ui->dT_D_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_AirSpeed_groupBox(QString))); +} + +void SlugsPIDControl::changeColor_RED_AirSpeed_groupBox(QString text) +{ + Q_UNUSED(text); + ui->AirSpeedHold_groupBox->setStyleSheet(REDcolorStyle); + +} + +void SlugsPIDControl::changeColor_GREEN_AirSpeed_groupBox() +{ + + SlugsMAV* slugsMav = dynamic_cast(activeUAS); + + if (slugsMav != NULL) + { + + //create the packet +#ifdef MAVLINK_ENABLED_SLUGS + pidMessage.target = activeUAS->getUASID(); + pidMessage.idx = 0; + pidMessage.pVal = ui->dT_P_set->text().toFloat(); + pidMessage.iVal = ui->dT_I_set->text().toFloat(); + pidMessage.dVal = ui->dT_D_set->text().toFloat(); + + mavlink_message_t msg; + + mavlink_msg_pid_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &pidMessage); + slugsMav->sendMessage(msg); +#endif + + ui->AirSpeedHold_groupBox->setStyleSheet(GREENcolorStyle); + } +} + +void SlugsPIDControl::get_AirSpeed_PID() +{ + qDebug() << "\nSend Message = Air Speed "; + sendMessagePIDStatus(0); + +} + + + +// Functions for PitchFollowei GroupBox +void SlugsPIDControl::connect_PitchFollowei_LineEdit() +{ + connect(ui->dE_P_set, SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_PitchFollowei_groupBox(QString))); + connect(ui->dE_I_set, SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_PitchFollowei_groupBox(QString))); + connect(ui->dE_D_set, SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_PitchFollowei_groupBox(QString))); +} + +void SlugsPIDControl::changeColor_RED_PitchFollowei_groupBox(QString text) +{ + Q_UNUSED(text); + ui->PitchFlowei_groupBox->setStyleSheet(REDcolorStyle); + +} + +void SlugsPIDControl::changeColor_GREEN_PitchFollowei_groupBox() +{ + SlugsMAV* slugsMav = dynamic_cast(activeUAS); + + if (slugsMav != NULL) + { + #ifdef MAVLINK_ENABLED_SLUGS + //create the packet + pidMessage.target = activeUAS->getUASID(); + pidMessage.idx = 2; + pidMessage.pVal = ui->dE_P_set->text().toFloat(); + pidMessage.iVal = ui->dE_I_set->text().toFloat(); + pidMessage.dVal = ui->dE_D_set->text().toFloat(); + + mavlink_message_t msg; + + mavlink_msg_pid_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &pidMessage); + slugsMav->sendMessage(msg); +#endif + + ui->PitchFlowei_groupBox->setStyleSheet(GREENcolorStyle); + } +} + +void SlugsPIDControl::get_PitchFollowei_PID() +{ + qDebug() << "\nSend Message = Pitch Followei "; + sendMessagePIDStatus(2); + +} + + +// Functions for Roll Control GroupBox +/** + * @brief Change color style to red when PID values of Roll Control are edited + * + * + * @param + */ +void SlugsPIDControl::changeColor_RED_RollControl_groupBox(QString text) +{ + Q_UNUSED(text); + ui->RollControl_groupBox->setStyleSheet(REDcolorStyle); +} + +/** + * @brief Change color style to green when PID values of Roll Control are send to UAS + * + * @param + */ +void SlugsPIDControl::changeColor_GREEN_RollControl_groupBox() +{ + SlugsMAV* slugsMav = dynamic_cast(activeUAS); + + if (slugsMav != NULL) + { + #ifdef MAVLINK_ENABLED_SLUGS + //create the packet + pidMessage.target = activeUAS->getUASID(); + pidMessage.idx = 4; + pidMessage.pVal = ui->dA_P_set->text().toFloat(); + pidMessage.iVal = ui->dA_I_set->text().toFloat(); + pidMessage.dVal = ui->dA_D_set->text().toFloat(); + + mavlink_message_t msg; + + mavlink_msg_pid_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &pidMessage); + slugsMav->sendMessage(msg); +#endif + + ui->RollControl_groupBox->setStyleSheet(GREENcolorStyle); + } +} + +/** + * @brief Connects the SIGNALS from the editline to SLOT RollControl_groupBox + * + * @param + */ +void SlugsPIDControl::connect_RollControl_LineEdit() +{ + connect(ui->dA_P_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_RollControl_groupBox(QString))); + connect(ui->dA_I_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_RollControl_groupBox(QString))); + connect(ui->dA_D_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_RollControl_groupBox(QString))); +} + +void SlugsPIDControl::get_RollControl_PID() +{ + qDebug() << "\nSend Message = Roll Control "; + sendMessagePIDStatus(4); +} + + + +// Functions for Heigth Error GroupBox +/** + * @brief Change color style to red when PID values of Heigth Error are edited + * + * + * @param + */ +void SlugsPIDControl::changeColor_RED_HeigthError_groupBox(QString text) +{ + Q_UNUSED(text); + ui->HeightErrorLoPitch_groupBox->setStyleSheet(REDcolorStyle); +} + +/** + * @brief Change color style to green when PID values of Heigth Error are send to UAS + * + * @param + */ +void SlugsPIDControl::changeColor_GREEN_HeigthError_groupBox() +{ + SlugsMAV* slugsMav = dynamic_cast(activeUAS); + + if (slugsMav != NULL) + { + #ifdef MAVLINK_ENABLED_SLUGS + //create the packet + pidMessage.target = activeUAS->getUASID(); + pidMessage.idx = 1; + pidMessage.pVal = ui->HELPComm_P_set->text().toFloat(); + pidMessage.iVal = ui->HELPComm_I_set->text().toFloat(); + pidMessage.dVal = ui->HELPComm_FF_set->text().toFloat(); + + mavlink_message_t msg; + + mavlink_msg_pid_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &pidMessage); + slugsMav->sendMessage(msg); +#endif + + ui->HeightErrorLoPitch_groupBox->setStyleSheet(GREENcolorStyle); + } +} + +/** + * @brief Connects the SIGNALS from the editline to SLOT HeigthError_groupBox + * + * @param + */ +void SlugsPIDControl::connect_HeigthError_LineEdit() +{ + connect(ui->HELPComm_P_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_HeigthError_groupBox(QString))); + connect(ui->HELPComm_I_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_HeigthError_groupBox(QString))); + connect(ui->HELPComm_FF_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_HeigthError_groupBox(QString))); +} + +void SlugsPIDControl::get_HeigthError_PID() +{ + qDebug() << "\nSend Message = Heigth Error "; + sendMessagePIDStatus(1); +} + + +// Functions for Yaw Damper GroupBox +/** + * @brief Change color style to red when PID values of Yaw Damper are edited + * + * + * @param + */ +void SlugsPIDControl::changeColor_RED_YawDamper_groupBox(QString text) +{ + Q_UNUSED(text); + ui->YawDamper_groupBox->setStyleSheet(REDcolorStyle); +} + +/** + * @brief Change color style to green when PID values of Yaw Damper are send to UAS + * + * @param + */ +void SlugsPIDControl::changeColor_GREEN_YawDamper_groupBox() +{ + SlugsMAV* slugsMav = dynamic_cast(activeUAS); + + if (slugsMav != NULL) + { + #ifdef MAVLINK_ENABLED_SLUGS + //create the packet + pidMessage.target = activeUAS->getUASID(); + pidMessage.idx = 3; + pidMessage.pVal = ui->dR_P_set->text().toFloat(); + pidMessage.iVal = ui->dR_I_set->text().toFloat(); + pidMessage.dVal = ui->dR_D_set->text().toFloat(); + + mavlink_message_t msg; + + mavlink_msg_pid_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &pidMessage); + slugsMav->sendMessage(msg); +#endif + + ui->YawDamper_groupBox->setStyleSheet(GREENcolorStyle); + } +} + +/** + * @brief Connects the SIGNALS from the editline to SLOT YawDamper_groupBox + * + * @param + */ +void SlugsPIDControl::connect_YawDamper_LineEdit() +{ + connect(ui->dR_P_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_YawDamper_groupBox(QString))); + connect(ui->dR_I_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_YawDamper_groupBox(QString))); + connect(ui->dR_D_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_YawDamper_groupBox(QString))); + + +} + +void SlugsPIDControl::get_YawDamper_PID() +{ + qDebug() << "\nSend Message = Yaw Damper "; + sendMessagePIDStatus(3); +} + + +// Functions for Pitch to dT GroupBox +/** + * @brief Change color style to red when PID values of Pitch to dT are edited + * + * + * @param + */ +void SlugsPIDControl::changeColor_RED_Pitch2dT_groupBox(QString text) +{ + Q_UNUSED(text); + ui->Pitch2dTFFterm_groupBox->setStyleSheet(REDcolorStyle); +} + +/** + * @brief Change color style to green when PID values of Pitch to dT are send to UAS + * + * @param + */ +void SlugsPIDControl::changeColor_GREEN_Pitch2dT_groupBox() +{ + SlugsMAV* slugsMav = dynamic_cast(activeUAS); + + if (slugsMav != NULL) + { +#ifdef MAVLINK_ENABLED_SLUGS + //create the packet + pidMessage.target = activeUAS->getUASID(); + pidMessage.idx = 8; + pidMessage.pVal = ui->P2dT_FF_set->text().toFloat(); + pidMessage.iVal = 0;//ui->dR_I_set->text().toFloat(); + pidMessage.dVal = 0;//ui->dR_D_set->text().toFloat(); + + mavlink_message_t msg; + + mavlink_msg_pid_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &pidMessage); + slugsMav->sendMessage(msg); +#endif + ui->Pitch2dTFFterm_groupBox->setStyleSheet(GREENcolorStyle); + } +} + +/** + * @brief Connects the SIGNALS from the editline to SLOT Pitch2dT_groupBox + * + * @param + */ +void SlugsPIDControl::connect_Pitch2dT_LineEdit() +{ + connect(ui->P2dT_FF_set,SIGNAL(textChanged(QString)),this,SLOT(changeColor_RED_Pitch2dT_groupBox(QString))); +} + +void SlugsPIDControl::get_Pitch2dT_PID() +{ + qDebug() << "\nSend Message = Pitch to dT "; + sendMessagePIDStatus(8); +} + +#ifdef MAVLINK_ENABLED_SLUGS + +void SlugsPIDControl::recibeMensaje(int systemId, const mavlink_action_ack_t& action) +{ + ui->recepcion_label->setText(QString::number(action.action) + ":" + QString::number(action.result)); +} + +void SlugsPIDControl::receivePidValues(int systemId, const mavlink_pid_t &pidValues) +{ + Q_UNUSED(systemId); + + qDebug() << "\nACTUALIZANDO GUI = " << pidValues.idx; + switch(pidValues.idx) + { + case 0: + ui->dT_P_get->setText(QString::number(pidValues.pVal)); + ui->dT_I_get->setText(QString::number(pidValues.iVal)); + ui->dT_D_get->setText(QString::number(pidValues.dVal)); + break; + case 1: + ui->HELPComm_P_get->setText(QString::number(pidValues.pVal)); + ui->HELPComm_I_get->setText(QString::number(pidValues.iVal)); + ui->HELPComm_FF_get->setText(QString::number(pidValues.dVal)); + break; + case 2: + ui->dE_P_get->setText(QString::number(pidValues.pVal)); + ui->dE_I_get->setText(QString::number(pidValues.iVal)); + ui->dE_D_get->setText(QString::number(pidValues.dVal)); + break; + case 3: + ui->dR_P_get->setText(QString::number(pidValues.pVal)); + ui->dR_I_get->setText(QString::number(pidValues.iVal)); + ui->dR_D_get->setText(QString::number(pidValues.dVal)); + break; + case 4: + ui->dA_P_get->setText(QString::number(pidValues.pVal)); + ui->dA_I_get->setText(QString::number(pidValues.iVal)); + ui->dA_D_get->setText(QString::number(pidValues.dVal)); + break; + case 8: + ui->P2dT_FF_get->setText(QString::number(pidValues.pVal)); + + break; + + default: + qDebug() << "\nSLUGS RECEIVED AND SHOW PID type ID = " << pidValues.idx; + break; + + } +} +#endif // MAVLINK_ENABLED_SLUG + + +void SlugsPIDControl::sendMessagePIDStatus(int PIDtype) +{ +#ifdef MAVLINK_ENABLED_SLUGS + //ToDo remplace actionId values + + + SlugsMAV* slugsMav = dynamic_cast(activeUAS); + + if (slugsMav != NULL) + { + mavlink_message_t msg; + qDebug() << "\n Send Message SLUGS PID with loop index = " << PIDtype; + + switch(PIDtype) + { + case 0: //Air Speed PID values Request + actionSlugs.target = activeUAS->getUASID(); + actionSlugs.actionId = 9; + actionSlugs.actionVal = 0; + + + + mavlink_msg_slugs_action_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &actionSlugs); + slugsMav->sendMessage(msg); + break; + + case 1: //Heigth Error lo Pitch Comm PID values request + actionSlugs.target = activeUAS->getUASID(); + actionSlugs.actionId = 9; + actionSlugs.actionVal = 1; + + + mavlink_msg_slugs_action_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &actionSlugs); + slugsMav->sendMessage(msg); + break; + + case 2://Pitch Followei PID values Request + actionSlugs.target = activeUAS->getUASID(); + actionSlugs.actionId = 9; + actionSlugs.actionVal = 2; + + + mavlink_msg_slugs_action_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &actionSlugs); + slugsMav->sendMessage(msg); + break; + + case 3:// Yaw Damper PID values request + actionSlugs.target = activeUAS->getUASID(); + actionSlugs.actionId = 9; + actionSlugs.actionVal = 3; + + + mavlink_msg_slugs_action_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &actionSlugs); + slugsMav->sendMessage(msg); + break; + + case 4: // Roll Control PID values request + actionSlugs.target = activeUAS->getUASID(); + actionSlugs.actionId = 9; + actionSlugs.actionVal = 4; + + + mavlink_msg_slugs_action_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &actionSlugs); + slugsMav->sendMessage(msg); + break; + + case 8: // Pitch to dT FF term + actionSlugs.target = activeUAS->getUASID(); + actionSlugs.actionId = 9; + actionSlugs.actionVal = 8; + + + mavlink_msg_slugs_action_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &actionSlugs); + slugsMav->sendMessage(msg); + break; + + + default: + qDebug() << "\nSLUGS RECEIVED PID type ID = " << PIDtype; + break; + + + } + } +#else + Q_UNUSED(PIDtype); + #endif // MAVLINK_ENABLED_SLUG +} + +void SlugsPIDControl::slugsGetGeneral() +{ + valuesMutex.lock(); + switch(counterRefreshGet) + { + case 1: + ui->dT_PID_get_pushButton->click(); + break; + case 2: + ui->HELPComm_PDI_get_pushButton->click(); + break; + case 3: + ui->dE_PID_get_pushButton->click(); + break; + case 4: + ui->dR_PDI_get_pushButton->click(); + break; + case 5: + ui->dA_PID_get_pushButton->click(); + break; + case 6: + ui->Pitch2dT_PDI_get_pushButton->click(); + break; + default: + refreshTimerGet->stop(); + break; + + + } + + counterRefreshGet++; + valuesMutex.unlock(); + +} + +void SlugsPIDControl::slugsSetGeneral() +{ + valuesMutex.lock(); + switch(counterRefreshSet) + { + case 1: + ui->dT_PID_set_pushButton->click(); + break; + case 2: + ui->HELPComm_PDI_set_pushButton->click(); + break; + case 3: + ui->dE_PID_set_pushButton->click(); + break; + case 4: + ui->dR_PDI_set_pushButton->click(); + break; + case 5: + ui->dA_PID_set_pushButton->click(); + break; + case 6: + ui->Pitch2dT_PDI_set_pushButton->click(); + break; + default: + refreshTimerSet->stop(); + break; + + } + + counterRefreshSet++; + valuesMutex.unlock(); +} + + +void SlugsPIDControl::slugsTimerStartSet() +{ + counterRefreshSet = 1; + refreshTimerSet->start(); + +} + +void SlugsPIDControl::slugsTimerStartGet() +{ + counterRefreshGet = 1; + refreshTimerGet->start(); + +} +void SlugsPIDControl::slugsTimerStop() +{ +// refreshTimerGet->stop(); +// counterRefresh = 1; + +} diff --git a/src/ui/SlugsPIDControl.h b/src/ui/SlugsPIDControl.h new file mode 100644 index 0000000000000000000000000000000000000000..3ced5eab8bf61088c67850341eefc7ce402081c0 --- /dev/null +++ b/src/ui/SlugsPIDControl.h @@ -0,0 +1,292 @@ +#ifndef SLUGSPIDCONTROL_H +#define SLUGSPIDCONTROL_H + +#include +#include +#include "UASInterface.h" +#include "QGCMAVLink.h" +#include "SlugsMAV.h" +#include "mavlink.h" +#include +#include + +namespace Ui { + class SlugsPIDControl; +} + +class SlugsPIDControl : public QWidget +{ + Q_OBJECT + +public: + explicit SlugsPIDControl(QWidget *parent = 0); + ~SlugsPIDControl(); + +public slots: + + /** + * @brief Called when the a new UAS is set to active. + * + * Called when the a new UAS is set to active. + * + * @param uas The new active UAS + */ + void activeUasSet(UASInterface* uas); + + /** + */ + void setRedColorStyle(); + /** + * @brief Set color StyleSheet GREEN + * + * @param + */ + void setGreenColorStyle(); + + /** + * @brief Connect Set pushButtons to change the color GroupBox + * + * @param + */ + void connect_set_pushButtons(); + + /** + * @brief Connect Set pushButtons to change the color GroupBox + * + * @param + */ + void connect_get_pushButtons(); + + /** + * @brief Connect Edition Lines for PID Values + * + * @param + */ + void connect_editLinesPDIvalues(); + + /** + * @brief send a PDI request message to UAS + * + * @param + */ + void sendMessagePIDStatus(int PIDtype); + +// Fuctions for Air Speed GroupBox + /** + * @brief Change color style to red when PID values of Air Speed are edited + * + * + * @param + */ + void changeColor_RED_AirSpeed_groupBox(QString text); + /** + * @brief Change color style to green when PID values of Air Speed are send to UAS + * + * @param + */ + void changeColor_GREEN_AirSpeed_groupBox(); + /** + * @brief Connects the SIGNALS from the editline to SLOT changeColor_RED_AirSpeed_groupBox() + * + * @param + */ + void connect_AirSpeed_LineEdit(); + /** + * @brief get message PID Air Speed(loop index = 0) from UAS + * + * @param + */ + void get_AirSpeed_PID(); + + +// Functions for Pitch Followei GroupBox + /** + * @brief Change color style to red when PID values of Pitch Followei are edited + * + * + * @param + */ + void changeColor_RED_PitchFollowei_groupBox(QString text); + /** + * @brief Change color style to green when PID values of Pitch Followei are send to UAS + * + * @param + */ + void changeColor_GREEN_PitchFollowei_groupBox(); + /** + * @brief Connects the SIGNALS from the editline to SLOT PitchFlowei_groupBox + * + * @param + */ + void connect_PitchFollowei_LineEdit(); + /** + * @brief get message PID Pitch Followei(loop index = 2) from UAS + * + * @param + */ + void get_PitchFollowei_PID(); + + + // Functions for Roll Control GroupBox + /** + * @brief Change color style to red when PID values of Roll Control are edited + * + * + * @param + */ + void changeColor_RED_RollControl_groupBox(QString text); + /** + * @brief Change color style to green when PID values of Roll Control are send to UAS + * + * @param + */ + void changeColor_GREEN_RollControl_groupBox(); + /** + * @brief Connects the SIGNALS from the editline to SLOT RollControl_groupBox + * + * @param + */ + void connect_RollControl_LineEdit(); + /** + * @brief get message PID Roll Control(loop index = 4) from UAS + * + * @param + */ + void get_RollControl_PID(); + + + // Functions for Heigth Error GroupBox + /** + * @brief Change color style to red when PID values of Heigth Error are edited + * + * + * @param + */ + void changeColor_RED_HeigthError_groupBox(QString text); + /** + * @brief Change color style to green when PID values of Heigth Error are send to UAS + * + * @param + */ + void changeColor_GREEN_HeigthError_groupBox(); + /** + * @brief Connects the SIGNALS from the editline to SLOT HeigthError_groupBox + * + * @param + */ + void connect_HeigthError_LineEdit(); + /** + * @brief get message PID Heigth Error(loop index = 1) from UAS + * + * @param + */ + void get_HeigthError_PID(); + + // Functions for Yaw Damper GroupBox + /** + * @brief Change color style to red when PID values of Yaw Damper are edited + * + * + * @param + */ + void changeColor_RED_YawDamper_groupBox(QString text); + /** + * @brief Change color style to green when PID values of Yaw Damper are send to UAS + * + * @param + */ + void changeColor_GREEN_YawDamper_groupBox(); + /** + * @brief Connects the SIGNALS from the editline to SLOT YawDamper_groupBox + * + * @param + */ + void connect_YawDamper_LineEdit(); + /** + * @brief get message PID Yaw Damper(loop index = 3) from UAS + * + * @param + */ + void get_YawDamper_PID(); + + + + // Functions for Pitch to dT GroupBox + /** + * @brief Change color style to red when PID values of Pitch to dT are edited + * + * + * @param + */ + void changeColor_RED_Pitch2dT_groupBox(QString text); + /** + * @brief Change color style to green when PID values of Pitch to dT are send to UAS + * + * @param + */ + void changeColor_GREEN_Pitch2dT_groupBox(); + /** + * @brief Connects the SIGNALS from the editline to SLOT Pitch2dT_groupBox + * + * @param + */ + void connect_Pitch2dT_LineEdit(); + /** + * @brief get message PID Pitch2dT(loop index = 8) from UAS + * + * @param + */ + void get_Pitch2dT_PID(); + + /** + * @brief get and updates the values on widget + */ + void slugsGetGeneral(); + /** + * @brief Sent all values to UAS + */ + void slugsSetGeneral(); + + void slugsTimerStartSet(); + void slugsTimerStartGet(); + void slugsTimerStop(); + + + + //Create, send and get Messages PID + // void createMessagePID(); +#ifdef MAVLINK_ENABLED_SLUGS + + void recibeMensaje(int systemId, const mavlink_action_ack_t& action); + void receivePidValues(int systemId, const mavlink_pid_t& pidValues); + +#endif // MAVLINK_ENABLED_SLUG + +private: + Ui::SlugsPIDControl *ui; + + UASInterface* activeUAS; + int systemId; + + bool change_dT; + + + //Color Styles + QString REDcolorStyle; + QString GREENcolorStyle; + QString ORIGINcolorStyle; + + //SlugsMav Message + #ifdef MAVLINK_ENABLED_SLUGS + mavlink_pid_t pidMessage; + mavlink_slugs_action_t actionSlugs; +#endif + + QTimer* refreshTimerSet; ///< The main timer, controls the update view + QTimer* refreshTimerGet; ///< The main timer, controls the update view + int counterRefreshSet; + int counterRefreshGet; + QMutex valuesMutex; +}; + +#endif // SLUGSPIDCONTROL_H diff --git a/src/ui/SlugsPIDControl.ui b/src/ui/SlugsPIDControl.ui new file mode 100644 index 0000000000000000000000000000000000000000..6de57a0178d35a4d94f14b72a70e166ae82714cf --- /dev/null +++ b/src/ui/SlugsPIDControl.ui @@ -0,0 +1,1061 @@ + + + SlugsPIDControl + + + + 0 + 0 + 429 + 579 + + + + Form + + + + + + + + + + Air Speed Hold (dT) + + + + + + + + + 10 + 75 + true + + + + P + + + + + + + + 10 + 75 + true + + + + I + + + + + + + + 10 + 75 + true + + + + D + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + + + Qt::Vertical + + + + 20 + 10 + + + + + + + + + + SET + + + + + + + GET + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Pitch Followei (dE) + + + + + + + + + 10 + 75 + true + + + + P + + + + + + + + 10 + 75 + true + + + + I + + + + + + + + 10 + 75 + true + + + + D + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + + + Qt::Vertical + + + + 20 + 10 + + + + + + + + + + SET + + + + + + + GET + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Roll Control (dA) + + + + + + + + + 10 + 75 + true + + + + P + + + + + + + + 10 + 75 + true + + + + I + + + + + + + + 10 + 75 + true + + + + D + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + + + Qt::Vertical + + + + 20 + 10 + + + + + + + + + + SET + + + + + + + GET + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + + Heigth Error lo Pitch Comm + + + + + + + + + 10 + 75 + true + + + + P + + + + + + + + 10 + 75 + true + + + + I + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + + + Qt::Vertical + + + + 20 + 10 + + + + + + + + + 10 + 75 + true + + + + QFrame::Sunken + + + 5 + + + 1 + + + Qt::Horizontal + + + + + + + Qt::Vertical + + + + 20 + 10 + + + + + + + + + + + 10 + 75 + true + + + + FF + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + + + Qt::Vertical + + + + 20 + 10 + + + + + + + + + + SET + + + + + + + GET + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Yaw Damper (dR) + + + + + + + + + 10 + 75 + true + + + + P + + + + + + + + 10 + 75 + true + + + + I + + + + + + + + 10 + 75 + true + + + + D + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + + + Qt::Vertical + + + + 20 + 10 + + + + + + + + + + SET + + + + + + + GET + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Pitch to dT FF term + + + + + + + + + 10 + 75 + true + + + + FF + + + + + + + 0.0 + + + + + + + 0.0 + + + true + + + + + + + + + + + SET + + + + + + + GET + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Recepcion + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + Set General + + + + + + + Get General + + + + + + + verticalSpacer_13 + + + dT_P_set + dT_I_set + dT_D_set + dT_PID_set_pushButton + dT_PID_get_pushButton + HELPComm_P_set + HELPComm_I_set + HELPComm_FF_set + HELPComm_PDI_set_pushButton + HELPComm_PDI_get_pushButton + dE_P_set + dE_I_set + dE_D_set + dE_PID_set_pushButton + dE_PID_get_pushButton + dR_P_set + dR_I_set + dR_D_set + dR_PDI_set_pushButton + dR_PDI_get_pushButton + dA_P_set + dA_I_set + dA_D_set + dA_PID_set_pushButton + dA_PID_get_pushButton + P2dT_FF_set + Pitch2dT_PDI_set_pushButton + Pitch2dT_PDI_get_pushButton + dT_P_get + dT_I_get + dT_D_get + HELPComm_P_get + HELPComm_I_get + HELPComm_FF_get + dE_P_get + dE_I_get + dE_D_get + dR_P_get + dR_I_get + dR_D_get + dA_P_get + dA_I_get + dA_D_get + P2dT_FF_get + + + + diff --git a/src/ui/SlugsPadCameraControl.cpp b/src/ui/SlugsPadCameraControl.cpp new file mode 100644 index 0000000000000000000000000000000000000000..fdbad00146e75f9d1f76b97662392f12c2fb782c --- /dev/null +++ b/src/ui/SlugsPadCameraControl.cpp @@ -0,0 +1,282 @@ +#include "SlugsPadCameraControl.h" +#include "ui_SlugsPadCameraControl.h" +#include +#include +#include +#include + +SlugsPadCameraControl::SlugsPadCameraControl(QWidget *parent) : + QWidget(parent), //QGraphicsView(parent), + ui(new Ui::SlugsPadCameraControl), + dragging(0) +{ + ui->setupUi(this); + x1= 0; + y1 = 0; + bearingPad = 0; + distancePad = 0; + directionPad = "no"; + +} + +SlugsPadCameraControl::~SlugsPadCameraControl() +{ + delete ui; +} + +void SlugsPadCameraControl::mouseMoveEvent(QMouseEvent *event) +{ + //emit mouseMoveCoord(event->x(),event->y()); + if(dragging) + { + if(abs(x1-event->x())>20 || abs(y1-event->y())>20) + { + + getDeltaPositionPad(event->x(), event->y()); + x1 = event->x(); + y1 = event->y(); + } + } + + +} + +void SlugsPadCameraControl::mousePressEvent(QMouseEvent *event) +{ + //emit mousePressCoord(event->x(),event->y()); + dragging = true; + x1 = event->x(); + y1 = event->y(); + +} + +void SlugsPadCameraControl::mouseReleaseEvent(QMouseEvent *event) +{ + dragging = false; + //emit mouseReleaseCoord(event->x(),event->y()); + //getDeltaPositionPad(event->x(), event->y()); + + xFin = event->x(); + yFin = event->y(); + + +} + +void SlugsPadCameraControl::paintEvent(QPaintEvent *pe) +{ + Q_UNUSED(pe); + QPainter painter(this); + painter.setPen(Qt::blue); + painter.setFont(QFont("Arial", 30)); + +// QRectF rectangle(tL.x(), tL.y(), ui->padCamContro_frame->width(), ui->padCamContro_frame->height()); +// int startAngle = 30 * 16; +// int spanAngle = 120 * 16; + + painter.drawLine(QPoint(ui->frame->width()/2,ui->frame->geometry().topLeft().y()), + QPoint(ui->frame->width()/2,ui->frame->geometry().bottomRight().y())); + + painter.drawLine(QPoint(ui->frame->geometry().topLeft().x(),ui->frame->height()/2), + QPoint(ui->frame->geometry().bottomRight().x(),ui->frame->height()/2)); + + painter.setPen(Qt::white); + + //QPointF coordTemp = getPointBy_BearingDistance(ui->frame->width()/2,ui->frame->height()/2,bearingPad,distancePad); + + painter.drawLine(QPoint(ui->frame->width()/2,ui->frame->height()/2), + QPoint(xFin,yFin)); + + + // painter.drawLine(QPoint()); + //painter.drawLines(padLines); + + + // painter.drawPie(rectangle, startAngle, spanAngle); + + //painter.drawText(rect(), Qt::AlignCenter, "Qt"); +} + +void SlugsPadCameraControl::getDeltaPositionPad(int x2, int y2) +{ + + QString dir = "nd"; + QPointF localMeasures = ObtenerMarcacionDistanciaPixel(y1,x1,y2,x2); + + double bearing = localMeasures.x(); + double dist = getDistPixel(y1,x1,y2,x2); + + + + if(((bearing > 330)&&(bearing < 360)) || ((bearing >= 0)&&(bearing <= 30))) + { + emit dirCursorText("up"); + //bearing = 315; + dir = "up"; + } + else + { + if((bearing > 30)&&(bearing <= 60) ) + { + emit dirCursorText("right up"); + //bearing = 315; + dir = "right up"; + } + else + { + if((bearing > 60)&&(bearing <= 105) ) + { + emit dirCursorText("right"); + //bearing = 315; + dir = "right"; + } + else + { + if((bearing > 105)&&(bearing <= 150) ) + { + emit dirCursorText("right down"); + //bearing = 315; + dir = "right down"; + } + else + { + if((bearing > 150)&&(bearing <= 195) ) + { + emit dirCursorText("down"); + //bearing = 315; + dir = "down"; + } + else + { + if((bearing > 195)&&(bearing <= 240) ) + { + emit dirCursorText("left down"); + //bearing = 315; + dir = "left down"; + } + else + { + if((bearing > 240)&&(bearing <= 300) ) + { + emit dirCursorText("left"); + //bearing = 315; + dir = "left"; + } + else + { + if((bearing > 300)&&(bearing <= 330) ) + { + emit dirCursorText("left up"); + //bearing = 315; + dir = "left up"; + } + + } + + } + + } + + } + + } + + } + + } + + + bearingPad = bearing; + distancePad = dist; + directionPad = dir; + emit changeCursorPosition(bearing, dist, dir); + + update(); + + + +} + +double SlugsPadCameraControl::getDistPixel(int x1, int y1, int x2, int y2) +{ + double cateto_opuesto,cateto_adyacente; + //latitud y longitud del primer punto + + + cateto_opuesto = abs((x1-x2)); //diferencia de latitudes entre PCR1 y PCR2 + cateto_adyacente = abs((y1-y2));//diferencia de longitudes entre PCR1 y PCR2 + + return sqrt(pow(cateto_opuesto,2) + pow(cateto_adyacente,2)); + + // distancia = (float) hipotenusa; +} + +/** + * Esta función xxxxxxxxx + * @param double lat1 --> + * @param double lon1 --> + * @param double lat2 --> + * @param double lon2 --> + * @param ref double rumbo --> + * @param ref double distancia --> + */ +QPointF SlugsPadCameraControl::ObtenerMarcacionDistanciaPixel(double lon1, double lat1, double lon2, double lat2) +{ + double cateto_opuesto,cateto_adyacente, hipotenusa, distancia; + double marcacion = 0.0; + + //latitude and longitude first point + + if(lat1<0) lat1= lat1*(-1); + if(lat2<0) lat2= lat2*(-1); + if(lon1<0) lon1= lon1*(-1); + if(lon2<0) lon1= lon1*(-1); + + cateto_opuesto = abs((lat1-lat2)); + cateto_adyacente = abs((lon1-lon2)); + + hipotenusa = sqrt(pow(cateto_opuesto,2) + pow(cateto_adyacente,2)); + distancia = hipotenusa*60.0; + + + if ((lat1 < lat2) && (lon1 > lon2)) //primer cuadrante + marcacion = 360 -((asin(cateto_adyacente/hipotenusa))/ 0.017453292); + else if ((lat1 < lat2) && (lon1 < lon2)) //segundo cuadrante + marcacion = (asin(cateto_adyacente/hipotenusa))/ 0.017453292; + else if((lat1 > lat2) && (lon1 < lon2)) //tercer cuadrante + marcacion = 180 -((asin(cateto_adyacente/hipotenusa))/ 0.017453292); + else if((lat1 > lat2) && (lon1 > lon2)) //cuarto cuadrante + marcacion = 180 +((asin(cateto_adyacente/hipotenusa))/ 0.017453292); + else if((lat1 < lat2) && (lon1 == lon2)) //360 + marcacion = 360; + else if((lat1 == lat2) && (lon1 > lon2)) //270 + marcacion = 270; + else if((lat1 > lat2) && (lon1 == lon2)) //180 + marcacion = 180; + else if((lat1 == lat2) && (lon1 < lon2)) //90 + marcacion =90; + else if((lat1 == lat2) && (lon1 == lon2)) //0 + marcacion = 0.0; + + // this only convert real bearing to frame widget bearing + marcacion = marcacion +90; + if(marcacion>= 360) marcacion = marcacion - 360; + + return QPointF(marcacion,distancia); + +} + + + +QPointF SlugsPadCameraControl::getPointBy_BearingDistance(double lat1, double lon1, double rumbo, double distancia) +{ + double lon2 = 0; + double lat2 = 0; + double rad= M_PI/180; + + rumbo = rumbo*rad; + lon2=(lon1 + ((distancia/60) * (sin(rumbo)))); + lat2=(lat1 + ((distancia/60) * (cos(rumbo)))); + + return QPointF(lon2,lat2); +} + diff --git a/src/ui/SlugsPadCameraControl.h b/src/ui/SlugsPadCameraControl.h new file mode 100644 index 0000000000000000000000000000000000000000..bb35976cf2952d27c775f7ba1e6b7174e1f83495 --- /dev/null +++ b/src/ui/SlugsPadCameraControl.h @@ -0,0 +1,56 @@ +#ifndef SLUGSPADCAMERACONTROL_H +#define SLUGSPADCAMERACONTROL_H + +#include +#include + +namespace Ui { + class SlugsPadCameraControl; +} + +class SlugsPadCameraControl : public QWidget //QGraphicsView// +{ + Q_OBJECT + +public: + explicit SlugsPadCameraControl(QWidget *parent = 0); + + ~SlugsPadCameraControl(); + +public slots: + void getDeltaPositionPad(int x, int y); + double getDistPixel(int x1, int y1, int x2, int y2); + QPointF ObtenerMarcacionDistanciaPixel(double lon1, double lat1, double lon2, double lat2); + QPointF getPointBy_BearingDistance(double lat1, double lon1, double rumbo, double distancia); + + + +signals: + void mouseMoveCoord(int x, int y); + void mousePressCoord(int x, int y); + void mouseReleaseCoord(int x, int y); + void dirCursorText(QString dir); + void distance_Bearing(double dist, double bearing); + void changeCursorPosition(double bearing, double distance, QString textDir); + +protected: + void mousePressEvent(QMouseEvent* event); + void mouseReleaseEvent(QMouseEvent* event); + void mouseMoveEvent(QMouseEvent* event); + void paintEvent(QPaintEvent *pe); + + +private: + Ui::SlugsPadCameraControl *ui; + bool dragging; + int x1; + int y1; + int xFin; + int yFin; + double bearingPad; + double distancePad; + QString directionPad; + +}; + +#endif // SLUGSPADCAMERACONTROL_H diff --git a/src/ui/SlugsPadCameraControl.ui b/src/ui/SlugsPadCameraControl.ui new file mode 100644 index 0000000000000000000000000000000000000000..f96e02a006d094f0e8a0fcab16ebfe8506c07bb8 --- /dev/null +++ b/src/ui/SlugsPadCameraControl.ui @@ -0,0 +1,52 @@ + + + SlugsPadCameraControl + + + + 0 + 0 + 183 + 127 + + + + Form + + + background-color: rgb(255, 170, 0); + + + + 1 + + + 1 + + + + + + 181 + 125 + + + + true + + + background-color: rgba(255, 0, 0,50%); + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + + + diff --git a/src/ui/SlugsVideoCamControl.cpp b/src/ui/SlugsVideoCamControl.cpp new file mode 100644 index 0000000000000000000000000000000000000000..a7c9c67624e450342302e0b047f1a69aa5ebb210 --- /dev/null +++ b/src/ui/SlugsVideoCamControl.cpp @@ -0,0 +1,95 @@ +#include "SlugsVideoCamControl.h" +#include "ui_SlugsVideoCamControl.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SlugsPadCameraControl.h" + + +SlugsVideoCamControl::SlugsVideoCamControl(QWidget *parent) : + QWidget(parent), + ui(new Ui::SlugsVideoCamControl) +{ + ui->setupUi(this); +// x1= 0; +// y1 = 0; + + connect(ui->viewCamBordeatMap_checkBox,SIGNAL(clicked(bool)),this,SLOT(changeViewCamBorderAtMapStatus(bool))); + padCamera = new SlugsPadCameraControl(this); + + ui->gridLayout->addWidget(padCamera); + + connect(padCamera,SIGNAL(mouseMoveCoord(int,int)),this,SLOT(mousePadMoveEvent(int,int))); + connect(padCamera,SIGNAL(mousePressCoord(int,int)),this,SLOT(mousePadPressEvent(int,int))); + connect(padCamera,SIGNAL(mouseReleaseCoord(int,int)),this,SLOT(mousePadReleaseEvent(int,int))); + connect(padCamera,SIGNAL(changeCursorPosition(double,double,QString)),this,SLOT(getDeltaPositionPad(double,double,QString))); + + +} + +SlugsVideoCamControl::~SlugsVideoCamControl() +{ + delete ui; +} + +//void SlugsVideoCamControl::mouseMoveEvent(QMouseEvent *event) +//{ +// Q_UNUSED(event); + +//} + + +//void SlugsVideoCamControl::mousePressEvent(QMouseEvent *evnt) +//{ +// Q_UNUSED(evnt); + +//} + +//void SlugsVideoCamControl::mouseReleaseEvent(QMouseEvent *evnt) +//{ +// Q_UNUSED(evnt); + +//} + + +//void SlugsVideoCamControl::mousePadMoveEvent(int x, int y) +//{ + +//} + +//void SlugsVideoCamControl::mousePadPressEvent(int x, int y) +//{ + +//} + +//void SlugsVideoCamControl::mousePadReleaseEvent(int x, int y) +//{ + + +//} + +void SlugsVideoCamControl::changeViewCamBorderAtMapStatus(bool status) +{ + emit viewCamBorderAtMap(status); +} + +void SlugsVideoCamControl::getDeltaPositionPad(double bearing, double distance, QString dirText) +{ + ui->label_dir->setText(dirText); + ui->label_x->setText("Distancia= " + QString::number(distance)); + ui->label_y->setText("Bearing= " + QString::number(bearing)); + + emit changeCamPosition(20, bearing, dirText); +} + diff --git a/src/ui/SlugsVideoCamControl.h b/src/ui/SlugsVideoCamControl.h new file mode 100644 index 0000000000000000000000000000000000000000..0180fd52a5c8737d73a1104113548c62715e30ea --- /dev/null +++ b/src/ui/SlugsVideoCamControl.h @@ -0,0 +1,78 @@ +#ifndef SLUGSVIDEOCAMCONTROL_H +#define SLUGSVIDEOCAMCONTROL_H + +#include +#include +#include +#include +#include +#include "SlugsPadCameraControl.h" +#include + + + +#define DELTA 1000 + +namespace Ui { + class SlugsVideoCamControl; +} + +class SlugsVideoCamControl : public QWidget + +{ + Q_OBJECT + +public: + explicit SlugsVideoCamControl(QWidget *parent = 0); + ~SlugsVideoCamControl(); + +public slots: + /** + * @brief status = true: emit signal to draw a border cam over the map + */ + void changeViewCamBorderAtMapStatus(bool status); + /** + * @brief show the values of mousepad on ui (labels) and emit a changeCamPosition(signal) + * with values: + * bearing and distance from mouse over the pad + * dirText: direction of mouse movement in text format (up, right,right up,right down, + * left, left up, left down, down) + */ + void getDeltaPositionPad(double bearing, double distance, QString dirText); + +// /** +// * @brief +// */ +// void mousePadPressEvent(int x, int y); +// void mousePadReleaseEvent(int x, int y); +// void mousePadMoveEvent(int x, int y); + +signals: + /** + * @brief emit values from mousepad: + * bearing and distance from mouse over the pad + * dirText: direction of mouse movement in text format (up, right,right up,right down, + * left, left up, left down, down) + */ + void changeCamPosition(double distance, double bearing, QString textDir); + /** + * @brief emit signal to draw a border cam over the map if status is true + */ + void viewCamBorderAtMap(bool status); + +protected: +// void mousePressEvent(QMouseEvent* event); +// void mouseReleaseEvent(QMouseEvent* event); +// void mouseMoveEvent(QMouseEvent* event); + + + + +private: + Ui::SlugsVideoCamControl *ui; + + SlugsPadCameraControl* padCamera; + +}; + +#endif // SLUGSVIDEOCAMCONTROL_H diff --git a/src/ui/SlugsVideoCamControl.ui b/src/ui/SlugsVideoCamControl.ui new file mode 100644 index 0000000000000000000000000000000000000000..c89c2e7ef26e6c05ecb9e103c616c02506d1934b --- /dev/null +++ b/src/ui/SlugsVideoCamControl.ui @@ -0,0 +1,72 @@ + + + SlugsVideoCamControl + + + + 0 + 0 + 165 + 191 + + + + + 0 + 0 + + + + true + + + Form + + + + + + + + true + + + Coord_X + + + + + + + true + + + Coord_Y + + + + + + + Camera Pos + + + + + + + + + + + Camera at Map + + + + + + + + + + diff --git a/src/ui/UASControl.ui b/src/ui/UASControl.ui index 458df4cbfc07fc17826a11a4eb4849cd32c7e6ec..99f720ddc20625f1c3bedfe7a32d6ae1146232e8 100644 --- a/src/ui/UASControl.ui +++ b/src/ui/UASControl.ui @@ -6,44 +6,53 @@ 0 0 - 287 - 354 + 328 + 357 - 280 - 170 + 210 + 130 Form - - - 6 - - - 12 - - - 6 + + + 0 - + 6 + + + 50 + 20 + + UNCONNECTED Qt::AlignCenter + + 0 + + + + 0 + 12 + + Activate Engine @@ -65,7 +74,7 @@ - + Qt::Horizontal @@ -80,6 +89,12 @@ + + + 60 + 12 + + Liftoff @@ -91,6 +106,12 @@ + + + 60 + 12 + + Land @@ -102,6 +123,12 @@ + + + 60 + 12 + + Halt @@ -111,7 +138,7 @@ - + Qt::Horizontal @@ -125,10 +152,23 @@ - + + + + 0 + 12 + + + + + + 40 + 12 + + Set Mode @@ -138,8 +178,14 @@ - + + + + 0 + 12 + + No actions executed so far @@ -148,7 +194,7 @@ - + Qt::Vertical @@ -164,6 +210,23 @@ + + + + + 60 + 16 + + + + Set Origin + + + + :/images/actions/go-home.svg:/images/actions/go-home.svg + + +
diff --git a/src/ui/UASInfo.ui b/src/ui/UASInfo.ui index a86c9a2623c27ad2c2a54915c61e67acdba7933f..79c468415217217845239ad31a8e88f7e059d688 100644 --- a/src/ui/UASInfo.ui +++ b/src/ui/UASInfo.ui @@ -6,8 +6,8 @@ 0 0 - 455 - 220 + 223 + 138 @@ -16,9 +16,12 @@ - + - 6 + 3 + + + 5 diff --git a/src/ui/UASView.ui b/src/ui/UASView.ui index 203c312927fca72e2856253b9d0750b0a12bb232..ceadfa1b901bd2e244fdaa86e2f9f12a42da4dde 100644 --- a/src/ui/UASView.ui +++ b/src/ui/UASView.ui @@ -6,8 +6,8 @@ 0 0 - 370 - 120 + 335 + 121 @@ -18,7 +18,7 @@ - 370 + 335 0 diff --git a/src/ui/WaypointGlobalView.cc b/src/ui/WaypointGlobalView.cc index 44a9202f0d5a45a0537ae22ff7e0d3790cf4d519..e5e468ff30d82fa87d60bbf526165a964cb11da3 100644 --- a/src/ui/WaypointGlobalView.cc +++ b/src/ui/WaypointGlobalView.cc @@ -12,6 +12,9 @@ WaypointGlobalView::WaypointGlobalView(Waypoint* wp,QWidget *parent) : ui->m_orbitalSpinBox->hide(); + // set type + wp->setType(Waypoint::GLOBAL); + // Read values and set user interface updateValues(); @@ -197,11 +200,13 @@ void WaypointGlobalView::changeOrbitalState(int state) { ui->m_orbitalSpinBox->setEnabled(true); ui->m_orbitalSpinBox->show(); + wp->setType(Waypoint::GLOBAL_ORBIT); } else { ui->m_orbitalSpinBox->setEnabled(false); ui->m_orbitalSpinBox->hide(); + wp->setType(Waypoint::GLOBAL); } } diff --git a/src/ui/WaypointList.cc b/src/ui/WaypointList.cc index 1f7f1332338fc7a834f93607dc78a43eebf55d4a..2632a1b71014df9bd73c1a202f6fb54217882356 100644 --- a/src/ui/WaypointList.cc +++ b/src/ui/WaypointList.cc @@ -37,7 +37,6 @@ This file is part of the PIXHAWK project #include #include #include -#include "WaypointGlobalView.h" #include #include @@ -89,8 +88,8 @@ WaypointList::WaypointList(QWidget *parent, UASInterface* uas) : updateStatusLabel(""); this->setVisible(false); - isGlobalWP = false; - isLocalWP = false; + loadFileGlobalWP = false; + readGlobalWP = false; centerMapCoordinate.setX(0.0); centerMapCoordinate.setY(0.0); @@ -101,7 +100,7 @@ WaypointList::~WaypointList() delete m_ui; } -void WaypointList::updateLocalPosition(UASInterface* uas, double x, double y, double z, quint64 usec) +void WaypointList::updatePosition(UASInterface* uas, double x, double y, double z, quint64 usec) { Q_UNUSED(uas); Q_UNUSED(usec); @@ -125,12 +124,15 @@ void WaypointList::setUAS(UASInterface* uas) { this->uas = uas; - connect(uas, SIGNAL(localPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateLocalPosition(UASInterface*,double,double,double,quint64))); + connect(uas, SIGNAL(localPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updatePosition(UASInterface*,double,double,double,quint64))); connect(uas, SIGNAL(attitudeChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateAttitude(UASInterface*,double,double,double,quint64))); connect(&uas->getWaypointManager(), SIGNAL(updateStatusString(const QString &)), this, SLOT(updateStatusLabel(const QString &))); connect(&uas->getWaypointManager(), SIGNAL(waypointListChanged(void)), this, SLOT(waypointListChanged(void))); connect(&uas->getWaypointManager(), SIGNAL(currentWaypointChanged(quint16)), this, SLOT(currentWaypointChanged(quint16))); + connect(&uas->getWaypointManager(),SIGNAL(loadWPFile()),this,SLOT(setIsLoadFileWP())); + connect(&uas->getWaypointManager(),SIGNAL(readGlobalWPFromUAS(bool)),this,SLOT(setIsReadGlobalWP(bool))); + } } @@ -139,7 +141,7 @@ void WaypointList::saveWaypoints() if (uas) { QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"), "./waypoints.txt", tr("Waypoint File (*.txt)")); - uas->getWaypointManager().localSaveWaypoints(fileName); + uas->getWaypointManager().saveWaypoints(fileName); } } @@ -147,9 +149,11 @@ void WaypointList::loadWaypoints() { if (uas) { + + QString fileName = QFileDialog::getOpenFileName(this, tr("Load File"), ".", tr("Waypoint File (*.txt)")); - uas->getWaypointManager().localLoadWaypoints(fileName); - } + uas->getWaypointManager().loadWaypoints(fileName); + } } void WaypointList::transmit() @@ -172,42 +176,40 @@ void WaypointList::add() { if (uas) { - if(isGlobalWP) - { - const QVector &waypoints = uas->getWaypointManager().getWaypointList(); - if (waypoints.size() > 0) - { - Waypoint *last = waypoints.at(waypoints.size()-1); - Waypoint *wp = new Waypoint(0, centerMapCoordinate.x(), centerMapCoordinate.y(), last->getZ(), last->getYaw(), last->getAutoContinue(), false, last->getOrbit(), last->getHoldTime()); - uas->getWaypointManager().localAddWaypoint(wp); - } - else - { - Waypoint *wp = new Waypoint(0, centerMapCoordinate.x(), centerMapCoordinate.y(), -0.8, 0.0, true, true, 0.15, 2000); - uas->getWaypointManager().localAddWaypoint(wp); - } - - emit createWaypointAtMap(centerMapCoordinate); - } - else +// if(isGlobalWP) +// { +// const QVector &waypoints = uas->getWaypointManager().getWaypointList(); +// if (waypoints.size() > 0) +// { +// Waypoint *last = waypoints.at(waypoints.size()-1); +// Waypoint *wp = new Waypoint(0, centerMapCoordinate.x(), centerMapCoordinate.y(), last->getZ(), last->getYaw(), last->getAutoContinue(), false, last->getOrbit(), last->getHoldTime()); +// uas->getWaypointManager().addWaypoint(wp); +// } +// else +// { +// Waypoint *wp = new Waypoint(0, centerMapCoordinate.x(), centerMapCoordinate.y(), -0.8, 0.0, true, true, 0.15, 2000); +// uas->getWaypointManager().addWaypoint(wp); +// } +// +// emit createWaypointAtMap(centerMapCoordinate); +// } +// else { const QVector &waypoints = uas->getWaypointManager().getWaypointList(); if (waypoints.size() > 0) { Waypoint *last = waypoints.at(waypoints.size()-1); - Waypoint *wp = new Waypoint(0, last->getX(), last->getY(), last->getZ(), last->getYaw(), last->getAutoContinue(), false, last->getOrbit(), last->getHoldTime()); - uas->getWaypointManager().localAddWaypoint(wp); + Waypoint *wp = new Waypoint(0, last->getX(), last->getY(), last->getZ(), last->getYaw(), last->getAutoContinue(), false, last->getOrbit(), + last->getHoldTime(), last->getFrame(), last->getAction()); + uas->getWaypointManager().addWaypoint(wp); } else { - - - isLocalWP = true; - Waypoint *wp = new Waypoint(0, 1.1, 1.1, -0.8, 0.0, true, true, 0.15, 2000); - uas->getWaypointManager().localAddWaypoint(wp); - - + //isLocalWP = true; + Waypoint *wp = new Waypoint(0, uas->getLongitude(), uas->getLatitude(), uas->getAltitude(), + 0.0, true, true, 0.15, 2000); + uas->getWaypointManager().addWaypoint(wp); } } } @@ -215,36 +217,40 @@ void WaypointList::add() void WaypointList::addCurrentPositonWaypoint() { + /* TODO: implement with new waypoint structure if (uas) { // For Global Waypoints - if(isGlobalWP) - { - isLocalWP = false; - } - else + //if(isGlobalWP) + //{ + //isLocalWP = false; + //} + //else { const QVector &waypoints = uas->getWaypointManager().getWaypointList(); if (waypoints.size() > 0) { Waypoint *last = waypoints.at(waypoints.size()-1); Waypoint *wp = new Waypoint(0, (qRound(mavX*100))/100., (qRound(mavY*100))/100., (qRound(mavZ*100))/100., (qRound(mavYaw*100))/100., last->getAutoContinue(), false, last->getOrbit(), last->getHoldTime()); - uas->getWaypointManager().localAddWaypoint(wp); + uas->getWaypointManager().addWaypoint(wp); } else { Waypoint *wp = new Waypoint(0, (qRound(mavX*100))/100., (qRound(mavY*100))/100., (qRound(mavZ*100))/100., (qRound(mavYaw*100))/100., true, true, 0.15, 2000); - uas->getWaypointManager().localAddWaypoint(wp); + uas->getWaypointManager().addWaypoint(wp); } - isLocalWP = true; + //isLocalWP = true; } } + */ } void WaypointList::updateStatusLabel(const QString &string) { m_ui->statusLabel->setText(string); + + } void WaypointList::changeCurrentWaypoint(quint16 seq) @@ -287,59 +293,59 @@ void WaypointList::waypointListChanged() const QVector &waypoints = uas->getWaypointManager().getWaypointList(); // For Global Waypoints - if(isGlobalWP) - { - isLocalWP = false; - // first remove all views of non existing waypoints - if (!wpGlobalViews.empty()) - { - QMapIterator viewIt(wpGlobalViews); - viewIt.toFront(); - while(viewIt.hasNext()) - { - viewIt.next(); - Waypoint *cur = viewIt.key(); - int i; - for (i = 0; i < waypoints.size(); i++) - { - if (waypoints[i] == cur) - { - break; - } - } - if (i == waypoints.size()) - { - WaypointGlobalView* widget = wpGlobalViews.find(cur).value(); - widget->hide(); - listLayout->removeWidget(widget); - wpGlobalViews.remove(cur); - } - } - } - - // then add/update the views for each waypoint in the list - for(int i = 0; i < waypoints.size(); i++) - { - Waypoint *wp = waypoints[i]; - if (!wpGlobalViews.contains(wp)) - { - WaypointGlobalView* wpview = new WaypointGlobalView(wp, this); - wpGlobalViews.insert(wp, wpview); - connect(wpview, SIGNAL(removeWaypoint(Waypoint*)), this, SLOT(removeWaypoint(Waypoint*))); - connect(wpview, SIGNAL(changePositionWP(Waypoint*)), this, SLOT(changeWPPositionBySpinBox(Waypoint*))); -// connect(wpview, SIGNAL(moveDownWaypoint(Waypoint*)), this, SLOT(moveDown(Waypoint*))); -// connect(wpview, SIGNAL(moveUpWaypoint(Waypoint*)), this, SLOT(moveUp(Waypoint*))); - // connect(wpview, SIGNAL(changePositionWP(Waypoint*)), this, SLOT(waypointGlobalPositionChanged(Waypoint*))); -// connect(wpview, SIGNAL(currentWaypointChanged(quint16)), this, SLOT(currentWaypointChanged(quint16))); -// connect(wpview, SIGNAL(changeCurrentWaypoint(quint16)), this, SLOT(changeCurrentWaypoint(quint16))); - } - WaypointGlobalView *wpgv = wpGlobalViews.value(wp); - wpgv->updateValues(); - listLayout->addWidget(wpgv); - } - - } - else + //if(isGlobalWP) + //{ + //isLocalWP = false; + //// first remove all views of non existing waypoints + //if (!wpGlobalViews.empty()) + //{ + //QMapIterator viewIt(wpGlobalViews); + //viewIt.toFront(); + //while(viewIt.hasNext()) + //{ + //viewIt.next(); + //Waypoint *cur = viewIt.key(); + //int i; + //for (i = 0; i < waypoints.size(); i++) + //{ + //if (waypoints[i] == cur) + //{ + //break; + //} + //} + //if (i == waypoints.size()) + //{ + //WaypointGlobalView* widget = wpGlobalViews.find(cur).value(); + //widget->hide(); + //listLayout->removeWidget(widget); + //wpGlobalViews.remove(cur); + //} + //} + //} + + //// then add/update the views for each waypoint in the list + //for(int i = 0; i < waypoints.size(); i++) + //{ + //Waypoint *wp = waypoints[i]; + //if (!wpGlobalViews.contains(wp)) + //{ + //WaypointGlobalView* wpview = new WaypointGlobalView(wp, this); + //wpGlobalViews.insert(wp, wpview); + //connect(wpview, SIGNAL(removeWaypoint(Waypoint*)), this, SLOT(removeWaypoint(Waypoint*))); + //connect(wpview, SIGNAL(changePositionWP(Waypoint*)), this, SLOT(changeWPPositionBySpinBox(Waypoint*))); +//// connect(wpview, SIGNAL(moveDownWaypoint(Waypoint*)), this, SLOT(moveDown(Waypoint*))); +//// connect(wpview, SIGNAL(moveUpWaypoint(Waypoint*)), this, SLOT(moveUp(Waypoint*))); + //// connect(wpview, SIGNAL(changePositionWP(Waypoint*)), this, SLOT(waypointGlobalPositionChanged(Waypoint*))); +//// connect(wpview, SIGNAL(currentWaypointChanged(quint16)), this, SLOT(currentWaypointChanged(quint16))); +//// connect(wpview, SIGNAL(changeCurrentWaypoint(quint16)), this, SLOT(changeCurrentWaypoint(quint16))); + //} + //WaypointGlobalView *wpgv = wpGlobalViews.value(wp); + //wpgv->updateValues(); + //listLayout->addWidget(wpgv); + //} + + //} + //else { // for local Waypoints // first remove all views of non existing waypoints @@ -391,7 +397,7 @@ void WaypointList::waypointListChanged() } - + loadFileGlobalWP = false; } @@ -414,7 +420,7 @@ void WaypointList::moveUp(Waypoint* wp) // if wp was found and its not the first entry, move it if (i < waypoints.size() && i > 0) { - uas->getWaypointManager().localMoveWaypoint(i, i-1); + uas->getWaypointManager().moveWaypoint(i, i-1); } } } @@ -436,7 +442,7 @@ void WaypointList::moveDown(Waypoint* wp) // if wp was found and its not the last entry, move it if (i < waypoints.size()-1) { - uas->getWaypointManager().localMoveWaypoint(i, i+1); + uas->getWaypointManager().moveWaypoint(i, i+1); } } } @@ -445,7 +451,7 @@ void WaypointList::removeWaypoint(Waypoint* wp) { if (uas) { - uas->getWaypointManager().localRemoveWaypoint(wp->getId()); + uas->getWaypointManager().removeWaypoint(wp->getId()); } } @@ -465,45 +471,23 @@ void WaypointList::changeEvent(QEvent *e) void WaypointList::on_clearWPListButton_clicked() { + if (uas) { - if(isGlobalWP) - { - emit clearPathclicked(); - - const QVector &waypoints = uas->getWaypointManager().getWaypointList(); - while(!waypoints.isEmpty())//for(int i = 0; i <= waypoints.size(); i++) - { - - WaypointGlobalView* widget = wpGlobalViews.find(waypoints[0]).value(); - - widget->remove(); - } - - - - isGlobalWP = false; - - - - } - else - { - - + emit clearPathclicked(); const QVector &waypoints = uas->getWaypointManager().getWaypointList(); while(!waypoints.isEmpty())//for(int i = 0; i <= waypoints.size(); i++) { - WaypointView* widget = wpViews.find(waypoints[0]).value(); - widget->remove(); - - - } - } - + } + else + { +// if(isGlobalWP) +// { +// emit clearPathclicked(); +// } } } @@ -517,52 +501,16 @@ void WaypointList::addWaypointMouse(QPointF coordinate) { Waypoint *last = waypoints.at(waypoints.size()-1); Waypoint *wp = new Waypoint(0, coordinate.x(), coordinate.y(), last->getZ(), last->getYaw(), last->getAutoContinue(), false, last->getOrbit(), last->getHoldTime()); - uas->getWaypointManager().localAddWaypoint(wp); + uas->getWaypointManager().addWaypoint(wp); } else { Waypoint *wp = new Waypoint(0, coordinate.x(), coordinate.y(), -0.8, 0.0, true, true, 0.15, 2000); - uas->getWaypointManager().localAddWaypoint(wp); - } - - - } - -} - - /** @brief Notifies the user that a global waypoint will be created */ -void WaypointList::setIsWPGlobal(bool value, QPointF centerCoordinate) -{ - centerMapCoordinate = centerCoordinate; - - - if(isLocalWP) - { - if(wpViews.size()!= 0) - { - - int ret = QMessageBox::warning(this, tr("QGroundControl"), - tr("There are Local Waypoints created.\n" - "Do you want to clear them?"), - QMessageBox::Ok | QMessageBox::Cancel); - - if(ret) - { - clearLocalWPWidget(); - - - } - + uas->getWaypointManager().addWaypoint(wp); } - isLocalWP = !value; - isGlobalWP = value; } - else - { - isGlobalWP = value; - } } @@ -580,8 +528,8 @@ void WaypointList::waypointGlobalChanged(QPointF coordinate, int indexWP) temp->setX(coordinate.x()); temp->setY(coordinate.y()); - WaypointGlobalView* widget = wpGlobalViews.find(waypoints[indexWP]).value(); - widget->updateValues(); + //WaypointGlobalView* widget = wpGlobalViews.find(waypoints[indexWP]).value(); + //widget->updateValues(); } } @@ -601,24 +549,28 @@ void WaypointList::waypointGlobalChanged(QPointF coordinate, int indexWP) //} -void WaypointList::clearLocalWPWidget() +void WaypointList::clearWPWidget() { if (uas) { const QVector &waypoints = uas->getWaypointManager().getWaypointList(); while(!waypoints.isEmpty())//for(int i = 0; i <= waypoints.size(); i++) { - WaypointView* widget = wpViews.find(waypoints[0]).value(); - widget->remove(); - } } + //emit changePositionWPBySpinBox(wp->getId(), wp->getY(), wp->getX()); } -void WaypointList::changeWPPositionBySpinBox(Waypoint *wp) +void WaypointList::setIsLoadFileWP() { + loadFileGlobalWP = true; +} - emit changePositionWPGlobalBySpinBox(wp->getId(), wp->getY(), wp->getX()); +void WaypointList::setIsReadGlobalWP(bool value) +{ + // FIXME James Check this + Q_UNUSED(value); + // readGlobalWP = value; } diff --git a/src/ui/WaypointList.h b/src/ui/WaypointList.h index 24325046f241622707310c749abdc34d2f58153c..cb42b70db39eb79ff40c32d2edcd666153f8bf28 100644 --- a/src/ui/WaypointList.h +++ b/src/ui/WaypointList.h @@ -56,7 +56,7 @@ class WaypointList : public QWidget { virtual ~WaypointList(); public slots: - void updateLocalPosition(UASInterface*, double x, double y, double z, quint64 usec); + void updatePosition(UASInterface*, double x, double y, double z, quint64 usec); void updateAttitude(UASInterface*, double roll, double pitch, double yaw, quint64 usec); void setUAS(UASInterface* uas); @@ -65,7 +65,7 @@ public slots: /** @brief Save the local waypoint list to a file */ void saveWaypoints(); /** @brief Load a waypoint list from a file */ - void loadWaypoints(); + void loadWaypoints(); /** @brief Transmit the local waypoint list to the UAS */ void transmit(); /** @brief Read the remote waypoint list */ @@ -77,7 +77,7 @@ public slots: /** @brief Add a waypoint by mouse click over the map */ void addWaypointMouse(QPointF coordinate); /** @brief it notifies that a global waypoint goes to do created */ - void setIsWPGlobal(bool value, QPointF centerCoordinate); + //void setIsWPGlobal(bool value, QPointF centerCoordinate); //Update events @@ -93,15 +93,18 @@ public slots: /** @brief The MapWidget informs that a waypoint global was changed on the map */ void waypointGlobalChanged(const QPointF coordinate, const int indexWP); - void clearLocalWPWidget(); + void clearWPWidget(); - void changeWPPositionBySpinBox(Waypoint* wp); + //void changeWPPositionBySpinBox(Waypoint* wp); // Waypoint operations void moveUp(Waypoint* wp); void moveDown(Waypoint* wp); void removeWaypoint(Waypoint* wp); + void setIsLoadFileWP(); + void setIsReadGlobalWP(bool value); + @@ -109,7 +112,7 @@ signals: void clearPathclicked(); void createWaypointAtMap(const QPointF coordinate); // void ChangeWaypointGlobalPosition(int index, QPointF coord); - void changePositionWPGlobalBySpinBox(int indexWP, float lat, float lon); + void changePositionWPBySpinBox(int indexWP, float lat, float lon); @@ -118,16 +121,16 @@ protected: protected: QMap wpViews; - QMap wpGlobalViews; + //QMap wpGlobalViews; QVBoxLayout* listLayout; UASInterface* uas; double mavX; double mavY; double mavZ; double mavYaw; - bool isGlobalWP; - bool isLocalWP; QPointF centerMapCoordinate; + bool loadFileGlobalWP; + bool readGlobalWP; private: Ui::WaypointList *m_ui; diff --git a/src/ui/WaypointView.cc b/src/ui/WaypointView.cc index 13c772e2336a79c1a4fe8423da38b2ebba5d3072..ca7f981a067b8a8ba2bd41551adce7edc30df990 100644 --- a/src/ui/WaypointView.cc +++ b/src/ui/WaypointView.cc @@ -35,6 +35,9 @@ This file is part of the PIXHAWK project #include #include //M_PI +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif #include "WaypointView.h" #include "ui_WaypointView.h" @@ -47,12 +50,30 @@ WaypointView::WaypointView(Waypoint* wp, QWidget* parent) : this->wp = wp; + // add actions + m_ui->comboBox_action->addItem("Navigate",MAV_ACTION_NAVIGATE); + m_ui->comboBox_action->addItem("TakeOff",MAV_ACTION_TAKEOFF); + m_ui->comboBox_action->addItem("Land",MAV_ACTION_LAND); + m_ui->comboBox_action->addItem("Loiter",MAV_ACTION_LOITER); + + // add frames + m_ui->comboBox_frame->addItem("Global",MAV_FRAME_GLOBAL); + m_ui->comboBox_frame->addItem("Local",MAV_FRAME_LOCAL); + // Read values and set user interface updateValues(); - connect(m_ui->xSpinBox, SIGNAL(valueChanged(double)), wp, SLOT(setX(double))); - connect(m_ui->ySpinBox, SIGNAL(valueChanged(double)), wp, SLOT(setY(double))); - connect(m_ui->zSpinBox, SIGNAL(valueChanged(double)), wp, SLOT(setZ(double))); + // defaults + //changedAction(wp->getAction()); + //changedFrame(wp->getFrame()); + + connect(m_ui->posNSpinBox, SIGNAL(valueChanged(double)), wp, SLOT(setX(double))); + connect(m_ui->posESpinBox, SIGNAL(valueChanged(double)), wp, SLOT(setY(double))); + connect(m_ui->posDSpinBox, SIGNAL(valueChanged(double)), wp, SLOT(setZ(double))); + + connect(m_ui->lonSpinBox, SIGNAL(valueChanged(double)), wp, SLOT(setX(double))); + connect(m_ui->latSpinBox, SIGNAL(valueChanged(double)), wp, SLOT(setY(double))); + connect(m_ui->altSpinBox, SIGNAL(valueChanged(double)), wp, SLOT(setZ(double))); //hidden degree to radian conversion of the yaw angle connect(m_ui->yawSpinBox, SIGNAL(valueChanged(int)), this, SLOT(setYaw(int))); @@ -64,6 +85,8 @@ WaypointView::WaypointView(Waypoint* wp, QWidget* parent) : connect(m_ui->autoContinue, SIGNAL(stateChanged(int)), this, SLOT(changedAutoContinue(int))); connect(m_ui->selectedBox, SIGNAL(stateChanged(int)), this, SLOT(changedCurrent(int))); + connect(m_ui->comboBox_action, SIGNAL(activated(int)), this, SLOT(changedAction(int))); + connect(m_ui->comboBox_frame, SIGNAL(activated(int)), this, SLOT(changedFrame(int))); connect(m_ui->orbitSpinBox, SIGNAL(valueChanged(double)), wp, SLOT(setOrbit(double))); connect(m_ui->holdTimeSpinBox, SIGNAL(valueChanged(int)), wp, SLOT(setHoldTime(int))); @@ -98,6 +121,73 @@ void WaypointView::changedAutoContinue(int state) wp->setAutocontinue(true); } +void WaypointView::changedAction(int index) +{ + // set action for waypoint + + + // hide everything to start + m_ui->orbitSpinBox->hide(); + m_ui->takeOffAngleSpinBox->hide(); + m_ui->autoContinue->hide(); + m_ui->holdTimeSpinBox->hide(); + + // set waypoint action + MAV_ACTION action = (MAV_ACTION) m_ui->comboBox_action->itemData(index).toUInt(); + wp->setAction(action); + + // expose ui based on action + switch(action) + { + case MAV_ACTION_TAKEOFF: + m_ui->takeOffAngleSpinBox->show(); + break; + case MAV_ACTION_LAND: + break; + case MAV_ACTION_NAVIGATE: + m_ui->autoContinue->show(); + m_ui->orbitSpinBox->show(); + break; + case MAV_ACTION_LOITER: + m_ui->orbitSpinBox->show(); + m_ui->holdTimeSpinBox->show(); + break; + default: + std::cerr << "unknown action" << std::endl; + } +} + +void WaypointView::changedFrame(int index) +{ + // hide everything to start + m_ui->lonSpinBox->hide(); + m_ui->latSpinBox->hide(); + m_ui->altSpinBox->hide(); + m_ui->posNSpinBox->hide(); + m_ui->posESpinBox->hide(); + m_ui->posDSpinBox->hide(); + + // set waypoint action + MAV_FRAME frame = (MAV_FRAME)m_ui->comboBox_frame->itemData(index).toUInt(); + wp->setFrame(frame); + + switch(frame) + { + case MAV_FRAME_GLOBAL: + m_ui->lonSpinBox->show(); + m_ui->latSpinBox->show(); + m_ui->altSpinBox->show(); + break; + case MAV_FRAME_LOCAL: + m_ui->posNSpinBox->show(); + m_ui->posESpinBox->show(); + m_ui->posDSpinBox->show(); + break; + default: + std::cerr << "unknown frame" << std::endl; + } +} + void WaypointView::changedCurrent(int state) { if (state == 0) @@ -115,9 +205,44 @@ void WaypointView::changedCurrent(int state) void WaypointView::updateValues() { - m_ui->xSpinBox->setValue(wp->getX()); - m_ui->ySpinBox->setValue(wp->getY()); - m_ui->zSpinBox->setValue(wp->getZ()); + // update frame + MAV_FRAME frame = wp->getFrame(); + int frame_index = m_ui->comboBox_frame->findData(frame); + m_ui->comboBox_frame->setCurrentIndex(frame_index); + switch(frame) + { + case(MAV_FRAME_LOCAL): + m_ui->posNSpinBox->setValue(wp->getX()); + m_ui->posESpinBox->setValue(wp->getY()); + m_ui->posDSpinBox->setValue(wp->getZ()); + break; + case(MAV_FRAME_GLOBAL): + m_ui->lonSpinBox->setValue(wp->getX()); + m_ui->latSpinBox->setValue(wp->getY()); + m_ui->altSpinBox->setValue(wp->getZ()); + break; + } + changedFrame(frame_index); + + // update action + MAV_ACTION action = wp->getAction(); + int action_index = m_ui->comboBox_action->findData(action); + m_ui->comboBox_action->setCurrentIndex(action_index); + switch(action) + { + case MAV_ACTION_TAKEOFF: + break; + case MAV_ACTION_LAND: + break; + case MAV_ACTION_NAVIGATE: + break; + case MAV_ACTION_LOITER: + break; + default: + std::cerr << "unknown action" << std::endl; + } + changedAction(action_index); + m_ui->yawSpinBox->setValue(wp->getYaw()/M_PI*180.); m_ui->selectedBox->setChecked(wp->getCurrent()); m_ui->autoContinue->setChecked(wp->getAutoContinue()); diff --git a/src/ui/WaypointView.h b/src/ui/WaypointView.h index e293064d2c8270e3a4b90bdbeb206ec963cc766e..8a1058bde33105b5ba2d31c027bd3a3a849386cc 100644 --- a/src/ui/WaypointView.h +++ b/src/ui/WaypointView.h @@ -36,6 +36,7 @@ This file is part of the QGROUNDCONTROL project #include #include "Waypoint.h" +#include namespace Ui { class WaypointView; @@ -56,6 +57,8 @@ public slots: void moveDown(); void remove(); void changedAutoContinue(int); + void changedFrame(int state); + void changedAction(int state); void changedCurrent(int); void updateValues(void); diff --git a/src/ui/WaypointView.ui b/src/ui/WaypointView.ui index ad3680fc77b5b74217f4be87610319893c11e467..6918d631120a982e2c4dca01ec4b8f369ab2ba59 100644 --- a/src/ui/WaypointView.ui +++ b/src/ui/WaypointView.ui @@ -6,12 +6,12 @@ 0 0 - 763 - 40 + 1389 + 33 - + 0 0 @@ -152,10 +152,16 @@ QProgressBar::chunk#thrustBar { + + + 0 + 0 + + - + 2 @@ -198,31 +204,47 @@ QProgressBar::chunk#thrustBar { - - - Qt::Horizontal + + + + 0 + 0 + - - - 25 - 0 - + + + + + + + 0 + 0 + - + - + + + + 0 + 0 + + Position X coordinate + + N + m - -1000.000000000000000 + -10000.000000000000000 - 1000.000000000000000 + 10000.000000000000000 0.050000000000000 @@ -230,18 +252,27 @@ QProgressBar::chunk#thrustBar { - + + + + 0 + 0 + + Position Y coordinate + + E + m - -1000.000000000000000 + -10000.000000000000000 - 1000.000000000000000 + 10000.000000000000000 0.050000000000000 @@ -252,26 +283,116 @@ QProgressBar::chunk#thrustBar { - + + + + 0 + 0 + + Position Z coordinate (negative) + + D + m - -1000.000000000000000 + -10000.000000000000000 - 0.000000000000000 + 10000.000000000000000 0.050000000000000 + + + + + 0 + 0 + + + + lat + + + ° + + + 7 + + + -90.000000000000000 + + + 90.000000000000000 + + + + + + + + 0 + 0 + + + + lon + + + ° + + + 7 + + + -180.000000000000000 + + + 180.000000000000000 + + + + + + + + 0 + 0 + + + + alt + + + m + + + 7 + + + -100000.000000000000000 + + + 100000.000000000000000 + + + + + + 0 + 0 + + Yaw angle @@ -294,6 +415,12 @@ QProgressBar::chunk#thrustBar { + + + 0 + 0 + + Orbit radius @@ -304,15 +431,24 @@ QProgressBar::chunk#thrustBar { 0.050000000000000 - 1.000000000000000 + 100.000000000000000 0.050000000000000 + + 20.000000000000000 + + + + 0 + 0 + + Time in milliseconds that the MAV has to stay inside the orbit before advancing @@ -333,6 +469,25 @@ QProgressBar::chunk#thrustBar { + + + + + 0 + 0 + + + + Take off angle + + + + + + ° + + + diff --git a/src/ui/XMLCommProtocolWidget.cc b/src/ui/XMLCommProtocolWidget.cc index 582c74ac639480592dfbd36dca607fb5db4c7b7c..c2ea91ea47901f644dedbb4b0cad98b76160ff8f 100644 --- a/src/ui/XMLCommProtocolWidget.cc +++ b/src/ui/XMLCommProtocolWidget.cc @@ -7,6 +7,7 @@ #include "ui_XMLCommProtocolWidget.h" #include "MAVLinkXMLParser.h" #include "MAVLinkSyntaxHighlighter.h" +#include "QGC.h" #include #include @@ -31,7 +32,7 @@ XMLCommProtocolWidget::XMLCommProtocolWidget(QWidget *parent) : void XMLCommProtocolWidget::selectXMLFile() { //QString fileName = QFileDialog::getOpenFileName(this, tr("Load Protocol Definition File"), ".", "*.xml"); - QSettings settings; + QSettings settings(QGC::COMPANYNAME, QGC::APPNAME); const QString mavlinkXML = "MAVLINK_XML_FILE"; QString dirPath = settings.value(mavlinkXML, QCoreApplication::applicationDirPath() + "../").toString(); QFileDialog dialog; @@ -56,6 +57,7 @@ void XMLCommProtocolWidget::selectXMLFile() setXML(instanceText); // Store filename for next time settings.setValue(mavlinkXML, QFileInfo(file).absoluteFilePath()); + settings.sync(); } else { @@ -92,7 +94,7 @@ void XMLCommProtocolWidget::setXML(const QString& xml) void XMLCommProtocolWidget::selectOutputDirectory() { - QSettings settings; + QSettings settings(QGC::COMPANYNAME, QGC::APPNAME); const QString mavlinkOutputDir = "MAVLINK_OUTPUT_DIR"; QString dirPath = settings.value(mavlinkOutputDir, QCoreApplication::applicationDirPath() + "../").toString(); QFileDialog dialog; @@ -110,7 +112,8 @@ void XMLCommProtocolWidget::selectOutputDirectory() { m_ui->outputDirNameLabel->setText(fileNames.first()); // Store directory for next time - settings.setValue(mavlinkOutputDir, fileNames.first()); + settings.setValue(mavlinkOutputDir, QFileInfo(fileNames.first()).absoluteFilePath()); + settings.sync(); //QFile file(fileName); } } diff --git a/src/ui/designer/QGCActionButton.cc b/src/ui/designer/QGCActionButton.cc new file mode 100644 index 0000000000000000000000000000000000000000..84c5f2f85f6cd6acc97bba56e4d321713ffab005 --- /dev/null +++ b/src/ui/designer/QGCActionButton.cc @@ -0,0 +1,32 @@ +#include "QGCActionButton.h" +#include "ui_QGCActionButton.h" + +QGCActionButton::QGCActionButton(QWidget *parent) : + QGCToolWidgetItem(parent), + ui(new Ui::QGCActionButton) +{ + ui->setupUi(this); + connect(ui->editFinishButton, SIGNAL(clicked()), this, SLOT(endEditMode())); + endEditMode(); +} + +QGCActionButton::~QGCActionButton() +{ + delete ui; +} + +void QGCActionButton::startEditMode() +{ + ui->editActionComboBox->show(); + ui->editActionsRefreshButton->show(); + ui->editFinishButton->show(); + isInEditMode = true; +} + +void QGCActionButton::endEditMode() +{ + ui->editActionComboBox->hide(); + ui->editActionsRefreshButton->hide(); + ui->editFinishButton->hide(); + isInEditMode = false; +} diff --git a/src/ui/designer/QGCActionButton.h b/src/ui/designer/QGCActionButton.h new file mode 100644 index 0000000000000000000000000000000000000000..63556d6fef07c219543970c07dc1a82fbf1f4410 --- /dev/null +++ b/src/ui/designer/QGCActionButton.h @@ -0,0 +1,26 @@ +#ifndef QGCACTIONBUTTON_H +#define QGCACTIONBUTTON_H + +#include "QGCToolWidgetItem.h" + +namespace Ui { + class QGCActionButton; +} + +class QGCActionButton : public QGCToolWidgetItem +{ + Q_OBJECT + +public: + explicit QGCActionButton(QWidget *parent = 0); + ~QGCActionButton(); + +public slots: + void startEditMode(); + void endEditMode(); + +private: + Ui::QGCActionButton *ui; +}; + +#endif // QGCACTIONBUTTON_H diff --git a/src/ui/designer/QGCActionButton.ui b/src/ui/designer/QGCActionButton.ui new file mode 100644 index 0000000000000000000000000000000000000000..86224813375e7bbba19927aa7660a41f0389c2cf --- /dev/null +++ b/src/ui/designer/QGCActionButton.ui @@ -0,0 +1,99 @@ + + + QGCActionButton + + + + 0 + 0 + 400 + 111 + + + + Form + + + + + + Description + + + + + + + Button name + + + + + + + + + + Refresh Actions + + + + + + + Done + + + + + + + Button name + + + + + + + Description + + + + + + + + + editButtonName + textChanged(QString) + actionButton + setWindowTitle(QString) + + + 310 + 22 + + + 310 + 55 + + + + + editNameLabel + textChanged(QString) + nameLabel + setText(QString) + + + 116 + 22 + + + 116 + 55 + + + + + diff --git a/src/ui/designer/QGCParamSlider.cc b/src/ui/designer/QGCParamSlider.cc new file mode 100644 index 0000000000000000000000000000000000000000..3b8435e8dcb397f97ffcd9ce4aba21a76a0b80df --- /dev/null +++ b/src/ui/designer/QGCParamSlider.cc @@ -0,0 +1,61 @@ +#include +#include + +#include "QGCParamSlider.h" +#include "ui_QGCParamSlider.h" + +QGCParamSlider::QGCParamSlider(QWidget *parent) : + QGCToolWidgetItem(parent), + ui(new Ui::QGCParamSlider) +{ + ui->setupUi(this); + endEditMode(); + connect(ui->doneButton, SIGNAL(clicked()), this, SLOT(endEditMode())); +} + +QGCParamSlider::~QGCParamSlider() +{ + delete ui; +} + +void QGCParamSlider::startEditMode() +{ + ui->doneButton->show(); + ui->maxLabel->show(); + ui->minLabel->show(); + ui->nameLineEdit->show(); + ui->instructionsLabel->show(); + ui->refreshParamsButton->show(); + ui->selectParamComboBox->show(); + ui->minSpinBox->show(); + ui->maxSpinBox->show(); + ui->typeComboBox->show(); + isInEditMode = true; +} + +void QGCParamSlider::endEditMode() +{ + ui->doneButton->hide(); + ui->maxLabel->hide(); + ui->minLabel->hide(); + ui->nameLineEdit->hide(); + ui->instructionsLabel->hide(); + ui->refreshParamsButton->hide(); + ui->selectParamComboBox->hide(); + ui->minSpinBox->hide(); + ui->maxSpinBox->hide(); + ui->typeComboBox->hide(); + isInEditMode = false; +} + +void QGCParamSlider::changeEvent(QEvent *e) +{ + QWidget::changeEvent(e); + switch (e->type()) { + case QEvent::LanguageChange: + ui->retranslateUi(this); + break; + default: + break; + } +} diff --git a/src/ui/designer/QGCParamSlider.h b/src/ui/designer/QGCParamSlider.h new file mode 100644 index 0000000000000000000000000000000000000000..dadc288d09387e884bf2a629483813d5efcb60a2 --- /dev/null +++ b/src/ui/designer/QGCParamSlider.h @@ -0,0 +1,33 @@ +#ifndef QGCPARAMSLIDER_H +#define QGCPARAMSLIDER_H + +#include +#include +#include + +#include "QGCToolWidgetItem.h" + +namespace Ui { + class QGCParamSlider; +} + +class QGCParamSlider : public QGCToolWidgetItem +{ + Q_OBJECT + +public: + explicit QGCParamSlider(QWidget *parent = 0); + ~QGCParamSlider(); + +public slots: + void startEditMode(); + void endEditMode(); + +protected: + void changeEvent(QEvent *e); + +private: + Ui::QGCParamSlider *ui; +}; + +#endif // QGCPARAMSLIDER_H diff --git a/src/ui/designer/QGCParamSlider.ui b/src/ui/designer/QGCParamSlider.ui new file mode 100644 index 0000000000000000000000000000000000000000..c7022526a3727edbd9717f22775090df76833dff --- /dev/null +++ b/src/ui/designer/QGCParamSlider.ui @@ -0,0 +1,131 @@ + + + QGCParamSlider + + + + 0 + 0 + 436 + 136 + + + + Form + + + + + + Informal Name.. + + + + + + + + Float + + + + + Integer + + + + + Double + + + + + Short + + + + + Byte/Char + + + + + + + + Min + + + + + + + Max + + + + + + + Name + + + + + + + 0.00 + + + + + + + + + + Qt::Horizontal + + + + + + + + + + Done + + + + + + + + Select Parameter.. + + + + + + + + true + + + Refresh + + + + + + + Please configure the parameter slider now: + + + + + + + + diff --git a/src/ui/designer/QGCParamSliderPlugin.cc b/src/ui/designer/QGCParamSliderPlugin.cc new file mode 100644 index 0000000000000000000000000000000000000000..daa7646883da1df1b9d5636a17450ab9b451f05d --- /dev/null +++ b/src/ui/designer/QGCParamSliderPlugin.cc @@ -0,0 +1,81 @@ +#include "QGCParamSliderPlugin.h" +#include "QGCParamSlider.h" + +#include + +QGCParamSliderPlugin::QGCParamSliderPlugin(QObject *parent) : + QObject(parent) +{ + initialized = false; +} + +void QGCParamSliderPlugin::initialize(QDesignerFormEditorInterface * /* core */) +{ + if (initialized) + return; + + initialized = true; +} + +bool QGCParamSliderPlugin::isInitialized() const +{ + return initialized; +} + +QWidget *QGCParamSliderPlugin::createWidget(QWidget *parent) +{ + return new QGCParamSlider(parent); +} + +QString QGCParamSliderPlugin::name() const +{ + return "QGCParamSlider"; +} + +QString QGCParamSliderPlugin::group() const +{ + return "QGroundControl"; +} + +QIcon QGCParamSliderPlugin::icon() const +{ + return QIcon(); +} + +QString QGCParamSliderPlugin::toolTip() const +{ + return ""; +} + +QString QGCParamSliderPlugin::whatsThis() const +{ + return ""; +} + +bool QGCParamSliderPlugin::isContainer() const +{ + return false; +} + +QString QGCParamSliderPlugin::domXml() const +{ + return "\n" + " \n" + " \n" + " \n" + " 0\n" + " 0\n" + " 150\n" + " 16\n" + " \n" + " \n" + " \n" + ""; +} + +QString QGCParamSliderPlugin::includeFile() const +{ + return "QGCParamSlider.h"; +} + +Q_EXPORT_PLUGIN2(qgcparamsliderplugin, QGCParamSliderPlugin) diff --git a/src/ui/designer/QGCParamSliderPlugin.h b/src/ui/designer/QGCParamSliderPlugin.h new file mode 100644 index 0000000000000000000000000000000000000000..3b0a316f9e9029db39a18a51bb91e937f026151a --- /dev/null +++ b/src/ui/designer/QGCParamSliderPlugin.h @@ -0,0 +1,31 @@ +#ifndef QGCPARAMSLIDERPLUGIN_H +#define QGCPARAMSLIDERPLUGIN_H + +#include + +class QGCParamSliderPlugin : public QObject, + public QDesignerCustomWidgetInterface +{ + Q_OBJECT + Q_INTERFACES(QDesignerCustomWidgetInterface) + +public: + explicit QGCParamSliderPlugin(QObject *parent = 0); + + bool isContainer() const; + bool isInitialized() const; + QIcon icon() const; + QString domXml() const; + QString group() const; + QString includeFile() const; + QString name() const; + QString toolTip() const; + QString whatsThis() const; + QWidget *createWidget(QWidget *parent); + void initialize(QDesignerFormEditorInterface *core); + +private: + bool initialized; +}; + +#endif // QGCPARAMSLIDERPLUGIN_H diff --git a/src/ui/designer/QGCToolWidget.cc b/src/ui/designer/QGCToolWidget.cc new file mode 100644 index 0000000000000000000000000000000000000000..ff52d6af2693204565e04bf39f0bcd67009d6e4f --- /dev/null +++ b/src/ui/designer/QGCToolWidget.cc @@ -0,0 +1,100 @@ +#include "QGCToolWidget.h" +#include "ui_QGCToolWidget.h" + +#include +#include +#include +#include +#include +#include "QGCParamSlider.h" +#include "QGCActionButton.h" +#include "UASManager.h" + +QGCToolWidget::QGCToolWidget(QWidget *parent) : + QWidget(parent), + toolLayout(new QVBoxLayout(this)), + mav(NULL), + ui(new Ui::QGCToolWidget) +{ + ui->setupUi(this); + createActions(); + toolLayout->setAlignment(Qt::AlignTop); + + QList systems = UASManager::instance()->getUASList(); + foreach (UASInterface* uas, systems) + { + UAS* newMav = dynamic_cast(uas); + if (newMav) + { + addUAS(uas); + } + } + connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), this, SLOT(addUAS(UASInterface*))); +} + +QGCToolWidget::~QGCToolWidget() +{ + delete ui; +} + +void QGCToolWidget::addUAS(UASInterface* uas) +{ + UAS* newMav = dynamic_cast(uas); + if (newMav) + { + // FIXME Convert to list + if (mav == NULL) mav = newMav; + } +} + +void QGCToolWidget::contextMenuEvent (QContextMenuEvent* event) +{ + QMenu menu(this); + menu.addAction(addParamAction); + menu.addAction(addButtonAction); + menu.addAction(setTitleAction); + menu.exec(event->globalPos()); +} + +void QGCToolWidget::createActions() +{ + addParamAction = new QAction(tr("New &Parameter Slider"), this); + addParamAction->setStatusTip(tr("Add a parameter setting slider widget to the tool")); + connect(addParamAction, SIGNAL(triggered()), this, SLOT(addParam())); + + addButtonAction = new QAction(tr("New MAV &Action Button"), this); + addButtonAction->setStatusTip(tr("Add a new action button to the tool")); + connect(addButtonAction, SIGNAL(triggered()), this, SLOT(addAction())); + + setTitleAction = new QAction(tr("Set Widget Title"), this); + setTitleAction->setStatusTip(tr("Set the title caption of this tool widget")); + connect(setTitleAction, SIGNAL(triggered()), this, SLOT(setTitle())); +} + +void QGCToolWidget::addParam() +{ + QGCParamSlider* slider = new QGCParamSlider(this); + toolLayout->addWidget(slider); + slider->startEditMode(); +} + +void QGCToolWidget::addAction() +{ + QGCActionButton* button = new QGCActionButton(this); + toolLayout->addWidget(button); + button->startEditMode(); +} + +void QGCToolWidget::setTitle() +{ + QDockWidget* parent = dynamic_cast(this->parentWidget()); + if (parent) + { + bool ok; + QString text = QInputDialog::getText(this, tr("QInputDialog::getText()"), + tr("Widget title:"), QLineEdit::Normal, + parent->windowTitle(), &ok); + if (ok && !text.isEmpty()) + parent->setWindowTitle(text); + } +} diff --git a/src/ui/designer/QGCToolWidget.h b/src/ui/designer/QGCToolWidget.h new file mode 100644 index 0000000000000000000000000000000000000000..90d90eac8be3400581da89d2d225aa746aa36146 --- /dev/null +++ b/src/ui/designer/QGCToolWidget.h @@ -0,0 +1,45 @@ +#ifndef QGCTOOLWIDGET_H +#define QGCTOOLWIDGET_H + +#include +#include +#include + +#include "UAS.h" + +namespace Ui { + class QGCToolWidget; +} + +class QGCToolWidget : public QWidget +{ + Q_OBJECT + +public: + explicit QGCToolWidget(QWidget *parent = 0); + ~QGCToolWidget(); + +public slots: + void addUAS(UASInterface* uas); + +protected: + QAction* addParamAction; + QAction* addButtonAction; + QAction* setTitleAction; + QVBoxLayout* toolLayout; + UAS* mav; + + void contextMenuEvent(QContextMenuEvent* event); + void createActions(); + +protected slots: + void addParam(); + void addAction(); + void setTitle(); + + +private: + Ui::QGCToolWidget *ui; +}; + +#endif // QGCTOOLWIDGET_H diff --git a/src/ui/designer/QGCToolWidget.ui b/src/ui/designer/QGCToolWidget.ui new file mode 100644 index 0000000000000000000000000000000000000000..212fe670abd8315a7e7aa3d11751dce7fd591717 --- /dev/null +++ b/src/ui/designer/QGCToolWidget.ui @@ -0,0 +1,21 @@ + + + + + QGCToolWidget + + + + 0 + 0 + 400 + 300 + + + + Form + + + + + diff --git a/src/ui/designer/QGCToolWidgetItem.cc b/src/ui/designer/QGCToolWidgetItem.cc new file mode 100644 index 0000000000000000000000000000000000000000..b1f9559899f43e68aac8471c63ee563a70845811 --- /dev/null +++ b/src/ui/designer/QGCToolWidgetItem.cc @@ -0,0 +1,37 @@ +#include "QGCToolWidgetItem.h" + +#include +#include + +QGCToolWidgetItem::QGCToolWidgetItem(QWidget *parent) : + QWidget(parent), + isInEditMode(false), + _component(-1) +{ + startEditAction = new QAction("Edit Slider", this); + connect(startEditAction, SIGNAL(triggered()), this, SLOT(startEditMode())); + stopEditAction = new QAction("Finish Editing Slider", this); + connect(stopEditAction, SIGNAL(triggered()), this, SLOT(endEditMode())); + + endEditMode(); +} + +QGCToolWidgetItem::~QGCToolWidgetItem() +{ + delete startEditAction; + delete stopEditAction; +} + +void QGCToolWidgetItem::contextMenuEvent (QContextMenuEvent* event) +{ + QMenu menu(this); + if (!isInEditMode) + { + menu.addAction(startEditAction); + } + else + { + menu.addAction(stopEditAction); + } + menu.exec(event->globalPos()); +} diff --git a/src/ui/designer/QGCToolWidgetItem.h b/src/ui/designer/QGCToolWidgetItem.h new file mode 100644 index 0000000000000000000000000000000000000000..2577f438e2e69daa790ce742304bbb7a21874e67 --- /dev/null +++ b/src/ui/designer/QGCToolWidgetItem.h @@ -0,0 +1,32 @@ +#ifndef QGCTOOLWIDGETITEM_H +#define QGCTOOLWIDGETITEM_H + +#include +#include + +class QGCToolWidgetItem : public QWidget +{ + Q_OBJECT +public: + explicit QGCToolWidgetItem(QWidget *parent = 0); + ~QGCToolWidgetItem(); + + int component() {return _component;} + +public slots: + virtual void startEditMode() {} + virtual void endEditMode() {} + virtual void setComponent(int comp) {_component = comp;} + +protected: + QAction* startEditAction; + QAction* stopEditAction; + + bool isInEditMode; + int _component; ///< The MAV component (the process or device ID) + + void contextMenuEvent (QContextMenuEvent* event); + +}; + +#endif // QGCTOOLWIDGETITEM_H diff --git a/src/ui/linechart/LinechartPlot.cc b/src/ui/linechart/LinechartPlot.cc index 7d1613845034a908f3978e9db2db6af1a78cd213..9532b1ce970f1dd06f00fb034207bdb26ea2d7e0 100644 --- a/src/ui/linechart/LinechartPlot.cc +++ b/src/ui/linechart/LinechartPlot.cc @@ -43,6 +43,8 @@ This file is part of the PIXHAWK project #include #include +#include "QGC.h" + /** * @brief The default constructor * @@ -55,8 +57,8 @@ maxTime(QUINT64_MIN), maxInterval(MAX_STORAGE_INTERVAL), timeScaleStep(DEFAULT_SCALE_INTERVAL), // 10 seconds automaticScrollActive(false), -m_active(true), -m_groundTime(false), +m_active(false), +m_groundTime(true), d_data(NULL), d_curve(NULL) { @@ -142,7 +144,7 @@ d_curve(NULL) // Start QTimer for plot update updateTimer = new QTimer(this); connect(updateTimer, SIGNAL(timeout()), this, SLOT(paintRealtime())); - updateTimer->start(DEFAULT_REFRESH_RATE); + //updateTimer->start(DEFAULT_REFRESH_RATE); // QwtPlot::setAutoReplot(); @@ -155,6 +157,18 @@ LinechartPlot::~LinechartPlot() removeAllData(); } +void LinechartPlot::showEvent(QShowEvent* event) +{ + Q_UNUSED(event); + updateTimer->start(DEFAULT_REFRESH_RATE); +} + +void LinechartPlot::hideEvent(QHideEvent* event) +{ + Q_UNUSED(event); + updateTimer->stop(); +} + int LinechartPlot::getPlotId() { return this->plotid; @@ -184,6 +198,14 @@ double LinechartPlot::getMedian(QString id) return data.value(id)->getMedian(); } +/** + * @param id curve identifier + */ +double LinechartPlot::getVariance(QString id) +{ + return data.value(id)->getVariance(); +} + int LinechartPlot::getAverageWindow() { return averageWindowSize; @@ -272,6 +294,14 @@ void LinechartPlot::enforceGroundTime(bool enforce) m_groundTime = enforce; } +/** + * @return True if the data points are stamped with the packet receive time + */ +bool LinechartPlot::groundTime() +{ + return m_groundTime; +} + void LinechartPlot::addCurve(QString id) { QColor currentColor = getNextColor(); @@ -454,6 +484,23 @@ bool LinechartPlot::isVisible(QString id) return curves.value(id)->isVisible(); } +/** + * @return The visibility, true if it is visible, false otherwise + **/ +bool LinechartPlot::anyCurveVisible() +{ + bool visible = false; + foreach (QString key, curves.keys()) + { + if (curves.value(key)->isVisible()) + { + visible = true; + } + } + + return visible; +} + /** * @brief Allows to block interference of the automatic scrolling with user interaction * When the plot is updated very fast (at 1 ms for example) with new data, it might @@ -580,6 +627,9 @@ void LinechartPlot::paintRealtime() { if (m_active) { +#if (QGC_EVENTLOOP_DEBUG) + qDebug() << "EVENTLOOP:" << __FILE__ << __LINE__; +#endif // Update plot window value to new max time if the last time was also the max time windowLock.lock(); if (automaticScrollActive) @@ -701,8 +751,9 @@ TimeSeriesData::TimeSeriesData(QwtPlot* plot, QString friendlyName, quint64 plot maxValue(DBL_MIN), zeroValue(0), count(0), - mean(0.00), - median(0.00), + mean(0.0), + median(0.0), + variance(0.0), averageWindow(50) { this->plot = plot; @@ -760,6 +811,14 @@ void TimeSeriesData::append(quint64 ms, double value) medianList.append(this->value[count-i]); } mean = mean / static_cast(qMin(averageWindow,static_cast(count))); + + this->variance = 0; + for (unsigned int i = 0; (i < averageWindow) && (((int)count - (int)i) >= 0); ++i) + { + this->variance += (this->value[count-i] - mean) * (this->value[count-i] - mean); + } + this->variance = this->variance / static_cast(qMin(averageWindow,static_cast(count))); + qSort(medianList); if (medianList.count() > 2) @@ -859,6 +918,14 @@ double TimeSeriesData::getMedian() return median; } +/** + * @return the variance + */ +double TimeSeriesData::getVariance() +{ + return variance; +} + double TimeSeriesData::getCurrentValue() { return lastValue; diff --git a/src/ui/linechart/LinechartPlot.h b/src/ui/linechart/LinechartPlot.h index 138df19195ddcf693e6cf351b4a10a8a45f59264..a180135219ec40c4dc732889340b74cad98089bc 100644 --- a/src/ui/linechart/LinechartPlot.h +++ b/src/ui/linechart/LinechartPlot.h @@ -132,6 +132,8 @@ public: double getMean(); /** @brief Get the short-term median */ double getMedian(); + /** @brief Get the short-term variance */ + double getVariance(); /** @brief Get the current value */ double getCurrentValue(); void setZeroValue(double zeroValue); @@ -166,6 +168,7 @@ private: QwtArray value; double mean; double median; + double variance; unsigned int averageWindow; QwtArray outputMs; QwtArray outputValue; @@ -190,6 +193,8 @@ public: QList getCurves(); bool isVisible(QString id); + /** @brief Check if any curve is visible */ + bool anyCurveVisible(); int getPlotId(); /** @brief Get the number of values to average over */ @@ -206,6 +211,8 @@ public: double getMean(QString id); /** @brief Get the short-term median of a curve */ double getMedian(QString id); + /** @brief Get the short-term variance of a curve */ + double getVariance(QString id); /** @brief Get the last inserted value */ double getCurrentValue(QString id); @@ -214,8 +221,8 @@ public: static const int SCALE_LOGARITHMIC = 2; static const int DEFAULT_REFRESH_RATE = 50; ///< The default refresh rate is 25 Hz / every 100 ms - static const int DEFAULT_PLOT_INTERVAL = 1000 * 12; ///< The default plot interval is 15 seconds - static const int DEFAULT_SCALE_INTERVAL = 1000 * 5; + static const int DEFAULT_PLOT_INTERVAL = 1000 * 8; ///< The default plot interval is 15 seconds + static const int DEFAULT_SCALE_INTERVAL = 1000 * 8; public slots: void setRefreshRate(int ms); @@ -243,6 +250,8 @@ public slots: /** @brief Enforce the use of the receive timestamp */ void enforceGroundTime(bool enforce); + /** @brief Check if the receive timestamp is enforced */ + bool groundTime(); // General interaction void setWindowPosition(quint64 end); @@ -301,6 +310,8 @@ protected: // Methods void addCurve(QString id); QColor getNextColor(); + void showEvent(QShowEvent* event); + void hideEvent(QHideEvent* event); private: TimeSeriesData* d_data; diff --git a/src/ui/linechart/LinechartWidget.cc b/src/ui/linechart/LinechartWidget.cc index b7615b78f4c9f06662dd7cb6fd4a149dc2c0432a..d1703573e3fc178fa9c7db3b8276e4281aeb21e6 100644 --- a/src/ui/linechart/LinechartWidget.cc +++ b/src/ui/linechart/LinechartWidget.cc @@ -48,6 +48,7 @@ This file is part of the PIXHAWK project #include "LinechartWidget.h" #include "LinechartPlot.h" #include "LogCompressor.h" +#include "QGC.h" #include "MG.h" @@ -62,6 +63,7 @@ listedCurves(new QList()), curveLabels(new QMap()), curveMeans(new QMap()), curveMedians(new QMap()), +curveVariances(new QMap()), curveMenu(new QMenu(this)), logFile(new QFile()), logindex(1), @@ -70,7 +72,7 @@ updateTimer(new QTimer()) { // Add elements defined in Qt Designer ui.setupUi(this); - this->setMinimumSize(600, 300); + this->setMinimumSize(400, 250); // Add and customize curve list elements (left side) curvesWidget = new QWidget(ui.curveListWidget); @@ -79,16 +81,52 @@ updateTimer(new QTimer()) curvesWidgetLayout->setMargin(2); curvesWidgetLayout->setSpacing(4); curvesWidgetLayout->setSizeConstraint(QLayout::SetMinimumSize); + curvesWidgetLayout->setAlignment(Qt::AlignTop); curvesWidget->setLayout(curvesWidgetLayout); + // Create curve list headings + QWidget* form = new QWidget(this); + QHBoxLayout *horizontalLayout; + QLabel* label; + QLabel* value; + QLabel* mean; + QLabel* variance; + form->setAutoFillBackground(false); + horizontalLayout = new QHBoxLayout(form); + horizontalLayout->setSpacing(5); + horizontalLayout->setMargin(0); + horizontalLayout->setSizeConstraint(QLayout::SetMinimumSize); + + //horizontalLayout->addWidget(checkBox); + + label = new QLabel(form); + label->setText("Name"); + horizontalLayout->addWidget(label); + + // Value + value = new QLabel(form); + value->setText("Val"); + horizontalLayout->addWidget(value); + + // Mean + mean = new QLabel(form); + mean->setText("Mean"); + horizontalLayout->addWidget(mean); + + // Variance + variance = new QLabel(form); + variance->setText("Variance"); + horizontalLayout->addWidget(variance); + curvesWidgetLayout->addWidget(form); + // Add and customize plot elements (right side) // Create the layout createLayout(); // Add the last actions - connect(this, SIGNAL(plotWindowPositionUpdated(int)), scrollbar, SLOT(setValue(int))); - connect(scrollbar, SIGNAL(sliderMoved(int)), this, SLOT(setPlotWindowPosition(int))); + //connect(this, SIGNAL(plotWindowPositionUpdated(int)), scrollbar, SLOT(setValue(int))); + //connect(scrollbar, SIGNAL(sliderMoved(int)), this, SLOT(setPlotWindowPosition(int))); updateTimer->setInterval(300); connect(updateTimer, SIGNAL(timeout()), this, SLOT(refresh())); @@ -129,6 +167,8 @@ void LinechartWidget::createLayout() scalingLinearButton = createButton(this); scalingLinearButton->setDefaultAction(setScalingLinear); scalingLinearButton->setCheckable(true); + scalingLinearButton->setToolTip(tr("Set linear scale for Y axis")); + scalingLinearButton->setWhatsThis(tr("Set linear scale for Y axis")); layout->addWidget(scalingLinearButton, 1, 0); layout->setColumnStretch(0, 0); @@ -136,13 +176,18 @@ void LinechartWidget::createLayout() scalingLogButton = createButton(this); scalingLogButton->setDefaultAction(setScalingLogarithmic); scalingLogButton->setCheckable(true); + scalingLogButton->setToolTip(tr("Set logarithmic scale for Y axis")); + scalingLogButton->setWhatsThis(tr("Set logarithmic scale for Y axis")); layout->addWidget(scalingLogButton, 1, 1); layout->setColumnStretch(1, 0); // Averaging spin box averageSpinBox = new QSpinBox(this); - averageSpinBox->setValue(200); + averageSpinBox->setToolTip(tr("Sliding window size to calculate mean and variance")); + averageSpinBox->setWhatsThis(tr("Sliding window size to calculate mean and variance")); averageSpinBox->setMinimum(2); + averageSpinBox->setValue(200); + setAverageWindow(200); averageSpinBox->setMaximum(9999); layout->addWidget(averageSpinBox, 1, 2); layout->setColumnStretch(2, 0); @@ -150,6 +195,8 @@ void LinechartWidget::createLayout() // Log Button logButton = new QToolButton(this); + logButton->setToolTip(tr("Start to log curve data into a CSV or TXT file")); + logButton->setWhatsThis(tr("Start to log curve data into a CSV or TXT file")); logButton->setText(tr("Start Logging")); layout->addWidget(logButton, 1, 3); layout->setColumnStretch(3, 0); @@ -159,24 +206,28 @@ void LinechartWidget::createLayout() QToolButton* timeButton = new QToolButton(this); timeButton->setText(tr("Ground Time")); timeButton->setCheckable(true); - timeButton->setChecked(false); + timeButton->setToolTip(tr("Overwrite timestamp of data from vehicle with ground receive time. Helps if the plots are not visible because of missing or invalid onboard time.")); + timeButton->setWhatsThis(tr("Overwrite timestamp of data from vehicle with ground receive time. Helps if the plots are not visible because of missing or invalid onboard time.")); + bool gTimeDefault = true; + if (activePlot) activePlot->enforceGroundTime(gTimeDefault); + timeButton->setChecked(gTimeDefault); layout->addWidget(timeButton, 1, 4); layout->setColumnStretch(4, 0); connect(timeButton, SIGNAL(clicked(bool)), activePlot, SLOT(enforceGroundTime(bool))); // Create the scroll bar - scrollbar = new QScrollBar(Qt::Horizontal, ui.diagramGroupBox); - scrollbar->setMinimum(MIN_TIME_SCROLLBAR_VALUE); - scrollbar->setMaximum(MAX_TIME_SCROLLBAR_VALUE); - scrollbar->setPageStep(PAGESTEP_TIME_SCROLLBAR_VALUE); + //scrollbar = new QScrollBar(Qt::Horizontal, ui.diagramGroupBox); + //scrollbar->setMinimum(MIN_TIME_SCROLLBAR_VALUE); + //scrollbar->setMaximum(MAX_TIME_SCROLLBAR_VALUE); + //scrollbar->setPageStep(PAGESTEP_TIME_SCROLLBAR_VALUE); // Set scrollbar to maximum and disable it - scrollbar->setValue(MIN_TIME_SCROLLBAR_VALUE); - scrollbar->setDisabled(true); + //scrollbar->setValue(MIN_TIME_SCROLLBAR_VALUE); + //scrollbar->setDisabled(true); // scrollbar->setFixedHeight(20); // Add scroll bar to layout and make sure it gets all available space - layout->addWidget(scrollbar, 1, 5); + //layout->addWidget(scrollbar, 1, 5); layout->setColumnStretch(5, 10); ui.diagramGroupBox->setLayout(layout); @@ -223,7 +274,18 @@ void LinechartWidget::appendData(int uasId, QString curve, double value, quint64 { if (activePlot->isVisible(curve)) { - logFile->write(QString(QString::number(usec) + "\t" + QString::number(uasId) + "\t" + curve + "\t" + QString::number(value) + "\n").toLatin1()); + quint64 time = 0; + // Adjust time + if (activePlot->groundTime()) + { + time = QGC::groundTimeUsecs() - logStartTime; + } + else + { + time = usec - logStartTime; + } + + logFile->write(QString(QString::number(time) + "\t" + QString::number(uasId) + "\t" + curve + "\t" + QString::number(value) + "\n").toLatin1()); logFile->flush(); } } @@ -254,19 +316,47 @@ void LinechartWidget::refresh() // str.sprintf("%+.2f", activePlot->getMedian(k.key())); // k.value()->setText(str); // } + QMap::iterator l; + for (l = curveVariances->begin(); l != curveVariances->end(); ++l) + { + // Variance + str.sprintf("%+.5f", activePlot->getVariance(l.key())); + l.value()->setText(str); + } } void LinechartWidget::startLogging() { - // Let user select the log file name - QDate date(QDate::currentDate()); - // QString("./pixhawk-log-" + date.toString("yyyy-MM-dd") + "-" + QString::number(logindex) + ".log") - QString fileName = QFileDialog::getSaveFileName(this, tr("Specify log file name"), QDesktopServices::storageLocation(QDesktopServices::DesktopLocation), tr("Logfile (*.txt, *.csv);;")); // Store reference to file // Append correct file ending if needed bool abort = false; - while (!(fileName.endsWith(".txt") || fileName.endsWith(".csv"))) + + // Check if any curve is enabled + if (!activePlot->anyCurveVisible()) + { + QMessageBox msgBox; + msgBox.setIcon(QMessageBox::Critical); + msgBox.setText("No curves selected for logging."); + msgBox.setInformativeText("Please check all curves you want to log. Currently no data would be logged, aborting the logging."); + msgBox.setStandardButtons(QMessageBox::Ok); + msgBox.setDefaultButton(QMessageBox::Ok); + msgBox.exec(); + return; + } + + // Let user select the log file name + QDate date(QDate::currentDate()); + // QString("./pixhawk-log-" + date.toString("yyyy-MM-dd") + "-" + QString::number(logindex) + ".log") + QString fileName = QFileDialog::getSaveFileName(this, tr("Specify log file name"), QDesktopServices::storageLocation(QDesktopServices::DesktopLocation), tr("Logfile (*.csv, *.txt);;")); + + if (!fileName.contains(".")) + { + // .csv is default extension + fileName.append(".csv"); + } + + while (!(fileName.endsWith(".txt") || fileName.endsWith(".csv")) && !abort) { QMessageBox msgBox; msgBox.setIcon(QMessageBox::Critical); @@ -290,6 +380,7 @@ void LinechartWidget::startLogging() if (logFile->open(QIODevice::WriteOnly | QIODevice::Text)) { logging = true; + logStartTime = QGC::groundTimeUsecs(); logindex++; logButton->setText(tr("Stop logging")); disconnect(logButton, SIGNAL(clicked()), this, SLOT(startLogging())); @@ -352,8 +443,7 @@ QWidget* LinechartWidget::createCurveItem(QString curve) QLabel* label; QLabel* value; QLabel* mean; - QLabel* median; - + QLabel* variance; form->setAutoFillBackground(false); horizontalLayout = new QHBoxLayout(form); horizontalLayout->setSpacing(5); @@ -363,6 +453,8 @@ QWidget* LinechartWidget::createCurveItem(QString curve) checkBox = new QCheckBox(form); checkBox->setCheckable(true); checkBox->setObjectName(curve); + checkBox->setToolTip(tr("Enable the curve in the graph window")); + checkBox->setWhatsThis(tr("Enable the curve in the graph window")); horizontalLayout->addWidget(checkBox); @@ -388,12 +480,16 @@ QWidget* LinechartWidget::createCurveItem(QString curve) // Value value = new QLabel(form); value->setNum(0.00); + value->setToolTip(tr("Current value of ") + curve); + value->setWhatsThis(tr("Current value of ") + curve); curveLabels->insert(curve, value); horizontalLayout->addWidget(value); // Mean mean = new QLabel(form); mean->setNum(0.00); + mean->setToolTip(tr("Arithmetic mean of ") + curve); + mean->setWhatsThis(tr("Arithmetic mean of ") + curve); curveMeans->insert(curve, mean); horizontalLayout->addWidget(mean); @@ -403,6 +499,14 @@ QWidget* LinechartWidget::createCurveItem(QString curve) // curveMedians->insert(curve, median); // horizontalLayout->addWidget(median); + // Variance + variance = new QLabel(form); + variance->setNum(0.00); + variance->setToolTip(tr("Variance of ") + curve); + variance->setWhatsThis(tr("Variance of ") + curve); + curveVariances->insert(curve, variance); + horizontalLayout->addWidget(variance); + /* Color picker QColor color = QColorDialog::getColor(Qt::green, this); if (color.isValid()) { @@ -419,6 +523,7 @@ QWidget* LinechartWidget::createCurveItem(QString curve) horizontalLayout->setStretchFactor(value, 50); horizontalLayout->setStretchFactor(mean, 50); // horizontalLayout->setStretchFactor(median, 50); + horizontalLayout->setStretchFactor(variance, 50); // Connect actions QObject::connect(checkBox, SIGNAL(clicked(bool)), this, SLOT(takeButtonClick(bool))); @@ -444,6 +549,18 @@ void LinechartWidget::removeCurve(QString curve) // Remove name } +void LinechartWidget::showEvent(QShowEvent* event) +{ + Q_UNUSED(event); + setActive(true); +} + +void LinechartWidget::hideEvent(QHideEvent* event) +{ + Q_UNUSED(event); + setActive(false); +} + void LinechartWidget::setActive(bool active) { if (activePlot) @@ -522,14 +639,14 @@ void LinechartWidget::setPlotWindowPosition(quint64 position) { // A relative position makes only sense if the plot is filled if(activePlot->getDataInterval() > activePlot->getPlotInterval()) { //TODO @todo Implement the scrollbar enabling in a more elegant way - scrollbar->setDisabled(false); + //scrollbar->setDisabled(false); quint64 scrollInterval = position - activePlot->getMinTime() - activePlot->getPlotInterval(); pos = (static_cast(scrollInterval) / (activePlot->getDataInterval() - activePlot->getPlotInterval())); } else { - scrollbar->setDisabled(true); + //scrollbar->setDisabled(true); pos = 1; } plotWindowLock.unlock(); @@ -545,7 +662,8 @@ void LinechartWidget::setPlotWindowPosition(quint64 position) { * * @param interval The time interval to plot **/ -void LinechartWidget::setPlotInterval(quint64 interval) { +void LinechartWidget::setPlotInterval(quint64 interval) +{ activePlot->setPlotInterval(interval); } @@ -556,7 +674,8 @@ void LinechartWidget::setPlotInterval(quint64 interval) { * * @param checked The visibility of the curve: true to display the curve, false otherwise **/ -void LinechartWidget::takeButtonClick(bool checked) { +void LinechartWidget::takeButtonClick(bool checked) +{ QCheckBox* button = qobject_cast(QObject::sender()); @@ -573,7 +692,8 @@ void LinechartWidget::takeButtonClick(bool checked) { * @param text The button text * @param parent The parent object (to ensure that the memory is freed after the deletion of the button) **/ -QToolButton* LinechartWidget::createButton(QWidget* parent) { +QToolButton* LinechartWidget::createButton(QWidget* parent) +{ QToolButton* button = new QToolButton(parent); button->setMinimumSize(QSize(20, 20)); button->setMaximumSize(60, 20); diff --git a/src/ui/linechart/LinechartWidget.h b/src/ui/linechart/LinechartWidget.h index 26644f755d2ae76e3e15f10e7cf6dd939ca9cb4a..dbffd698ffc4c460fb85464170d3a223e93a7519 100644 --- a/src/ui/linechart/LinechartWidget.h +++ b/src/ui/linechart/LinechartWidget.h @@ -72,11 +72,15 @@ public: public slots: void addCurve(QString curve); void removeCurve(QString curve); - void appendData(int sysId, QString curve, double data, quint64 usec); + void appendData(int uasId, QString curve, double data, quint64 usec); void takeButtonClick(bool checked); void setPlotWindowPosition(int scrollBarValue); void setPlotWindowPosition(quint64 position); void setPlotInterval(quint64 interval); + /** @brief Start automatic updates once visible */ + void showEvent(QShowEvent* event); + /** @brief Stop automatic updates once hidden */ + void hideEvent(QHideEvent* event); void setActive(bool active); /** @brief Set the number of values to average over */ void setAverageWindow(int windowSize); @@ -88,7 +92,6 @@ public slots: void refresh(); protected: - void addCurveToList(QString curve); void removeCurveFromList(QString curve); QToolButton* createButton(QWidget* parent); @@ -106,6 +109,7 @@ protected: QMap* curveLabels; ///< References to the curve labels QMap* curveMeans; ///< References to the curve means QMap* curveMedians; ///< References to the curve medians + QMap* curveVariances; ///< References to the curve variances QWidget* curvesWidget; ///< The QWidget containing the curve selection button QVBoxLayout* curvesWidgetLayout; ///< The layout for the curvesWidget QWidget @@ -128,6 +132,7 @@ protected: bool logging; QTimer* updateTimer; LogCompressor* compressor; + quint64 logStartTime; static const int MAX_CURVE_MENUITEM_NUMBER = 8; static const int PAGESTEP_TIME_SCROLLBAR_VALUE = (MAX_TIME_SCROLLBAR_VALUE - MIN_TIME_SCROLLBAR_VALUE) / 10; diff --git a/src/ui/linechart/Linecharts.cc b/src/ui/linechart/Linecharts.cc index 004242451f1d7bdaa369adcf1225b4967007e926..aba663f58159953e6962d899abe421c7defad9bc 100644 --- a/src/ui/linechart/Linecharts.cc +++ b/src/ui/linechart/Linecharts.cc @@ -1,28 +1,69 @@ +#include + #include "Linecharts.h" +#include "UASManager.h" + +#include "MainWindow.h" Linecharts::Linecharts(QWidget *parent) : QStackedWidget(parent), plots(), active(true) { - this->setVisible(false); -} + this->setVisible(false); + // Get current MAV list + QList systems = UASManager::instance()->getUASList(); + // Add each of them + foreach (UASInterface* sys, systems) + { + addSystem(sys); + } + connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), + this, SLOT(addSystem(UASInterface*))); + connect(UASManager::instance(), SIGNAL(activeUASSet(int)), + this, SLOT(selectSystem(int))); + connect(this, SIGNAL(logfileWritten(QString)), + MainWindow::instance(), SLOT(loadDataView(QString))); +} -void Linecharts::setActive(bool active) +void Linecharts::showEvent(QShowEvent* event) { - this->active = active; - QWidget* prevWidget = currentWidget(); - if (prevWidget) + // React only to internal (pre-display) + // events + Q_UNUSED(event) { - LinechartWidget* chart = dynamic_cast(prevWidget); - if (chart) + QWidget* prevWidget = currentWidget(); + if (prevWidget) { - chart->setActive(active); + LinechartWidget* chart = dynamic_cast(prevWidget); + if (chart) + { + this->active = true; + chart->setActive(true); + } } } } +void Linecharts::hideEvent(QHideEvent* event) +{ + // React only to internal (pre-display) + // events + Q_UNUSED(event) + { + QWidget* prevWidget = currentWidget(); + if (prevWidget) + { + LinechartWidget* chart = dynamic_cast(prevWidget); + if (chart) + { + this->active = false; + chart->setActive(false); + } + } + } +} void Linecharts::selectSystem(int systemid) { @@ -54,7 +95,9 @@ void Linecharts::addSystem(UASInterface* uas) LinechartWidget* widget = new LinechartWidget(uas->getUASID(), this); addWidget(widget); plots.insert(uas->getUASID(), widget); +#ifndef MAVLINK_ENABLED_SLUGS connect(uas, SIGNAL(valueChanged(int,QString,double,quint64)), widget, SLOT(appendData(int,QString,double,quint64))); +#endif connect(widget, SIGNAL(logfileWritten(QString)), this, SIGNAL(logfileWritten(QString))); // Set system active if this is the only system if (active) diff --git a/src/ui/linechart/Linecharts.h b/src/ui/linechart/Linecharts.h index 8bf9d602e8d705d9f03a3ddbd3460e935ee75489..99fb44e9f71630b398162fec025c872baf2e0da0 100644 --- a/src/ui/linechart/Linecharts.h +++ b/src/ui/linechart/Linecharts.h @@ -18,8 +18,6 @@ signals: void logfileWritten(QString fileName); public slots: - /** @brief Set all plots active/inactive */ - void setActive(bool active); /** @brief Select plot for one system */ void selectSystem(int systemid); /** @brief Add a new system to the list of plots */ @@ -28,6 +26,11 @@ public slots: protected: QMap plots; bool active; + /** @brief Start updating widget */ + void showEvent(QShowEvent* event); + /** @brief Stop updating widget */ + void hideEvent(QHideEvent* event); + }; #endif // LINECHARTS_H diff --git a/src/ui/map/MAV2DIcon.cc b/src/ui/map/MAV2DIcon.cc index 573149a853e851695af11d316bc059bd36f49ab8..e8d52e7758c222049e4a5beb18241e323ffe00b3 100644 --- a/src/ui/map/MAV2DIcon.cc +++ b/src/ui/map/MAV2DIcon.cc @@ -14,7 +14,10 @@ MAV2DIcon::MAV2DIcon(qreal x, qreal y, QString name, Alignment alignment, QPen* { int radius = 10; size = QSize(radius, radius); - drawIcon(pen); + if (pen) + { + drawIcon(pen); + } } MAV2DIcon::~MAV2DIcon() @@ -24,8 +27,11 @@ MAV2DIcon::~MAV2DIcon() void MAV2DIcon::setPen(QPen* pen) { - mypen = pen; - drawIcon(pen); + if (pen) + { + mypen = pen; + drawIcon(pen); + } } /** @@ -38,46 +44,49 @@ void MAV2DIcon::setYaw(float yaw) void MAV2DIcon::drawIcon(QPen* pen) { - mypixmap = new QPixmap(radius+1, radius+1); - mypixmap->fill(Qt::transparent); - QPainter painter(mypixmap); + if (pen) + { + mypixmap = new QPixmap(radius+1, radius+1); + //mypixmap->fill(Qt::transparent); + QPainter painter(mypixmap); - // DRAW MICRO AIR VEHICLE - QPointF p(radius/2, radius/2); + // DRAW MICRO AIR VEHICLE + QPointF p(radius/2, radius/2); - float waypointSize = radius; - QPolygonF poly(3); - // Top point - poly.replace(0, QPointF(p.x(), p.y()+waypointSize/2.0f)); - // Right point - poly.replace(1, QPointF(p.x()-waypointSize/2.0f, p.y()-waypointSize/2.0f)); - // Left point - poly.replace(2, QPointF(p.x()+waypointSize/2.0f, p.y() + waypointSize/2.0f)); + float waypointSize = radius; + QPolygonF poly(3); + // Top point + poly.replace(0, QPointF(p.x(), p.y()+waypointSize/2.0f)); + // Right point + poly.replace(1, QPointF(p.x()-waypointSize/2.0f, p.y()-waypointSize/2.0f)); + // Left point + poly.replace(2, QPointF(p.x()+waypointSize/2.0f, p.y() + waypointSize/2.0f)); -// // Select color based on if this is the current waypoint -// if (list.at(i)->getCurrent()) -// { -// color = QGC::colorCyan;//uas->getColor(); -// pen.setWidthF(refLineWidthToPen(0.8f)); -// } -// else -// { -// color = uas->getColor(); -// pen.setWidthF(refLineWidthToPen(0.4f)); -// } + // // Select color based on if this is the current waypoint + // if (list.at(i)->getCurrent()) + // { + // color = QGC::colorCyan;//uas->getColor(); + // pen.setWidthF(refLineWidthToPen(0.8f)); + // } + // else + // { + // color = uas->getColor(); + // pen.setWidthF(refLineWidthToPen(0.4f)); + // } - //pen.setColor(color); - if (pen) - { - pen->setWidthF(2); - painter.setPen(*pen); - } - else - { - QPen pen2(Qt::yellow); - pen2.setWidth(2); - painter.setPen(pen2); + //pen.setColor(color); + if (pen) + { + pen->setWidthF(2); + painter.setPen(*pen); + } + else + { + QPen pen2(Qt::yellow); + pen2.setWidth(2); + painter.setPen(pen2); + } + painter.setBrush(Qt::NoBrush); + painter.drawPolygon(poly); } - painter.setBrush(Qt::NoBrush); - painter.drawPolygon(poly); } diff --git a/src/ui/map3D/GCManipulator.cc b/src/ui/map3D/GCManipulator.cc new file mode 100644 index 0000000000000000000000000000000000000000..06a7527b4233a16cf945d7c95c173bf607adfd1b --- /dev/null +++ b/src/ui/map3D/GCManipulator.cc @@ -0,0 +1,312 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Definition of the class GCManipulator. + * + * @author Lionel Heng + * + */ + +#include "GCManipulator.h" +#include + +GCManipulator::GCManipulator() +{ + _moveSensitivity = 0.05; + _zoomSensitivity = 1.0; + _minZoomRange = 2.0; +} + +void +GCManipulator::setMinZoomRange(double minZoomRange) +{ + _minZoomRange = minZoomRange; +} + +void +GCManipulator::move(double dx, double dy, double dz) +{ + _center += osg::Vec3d(dx, dy, dz); +} + +bool +GCManipulator::handle(const osgGA::GUIEventAdapter& ea, + osgGA::GUIActionAdapter& us) +{ + using namespace osgGA; + + switch (ea.getEventType()) + { + case GUIEventAdapter::PUSH: + { + flushMouseEventStack(); + addMouseEvent(ea); + if (calcMovement()) + { + us.requestRedraw(); + } + us.requestContinuousUpdate(false); + _thrown = false; + return true; + } + + case GUIEventAdapter::RELEASE: + { + if (ea.getButtonMask() == 0) + { + if (isMouseMoving()) + { + if (calcMovement()) + { + us.requestRedraw(); + us.requestContinuousUpdate(true); + _thrown = true; + } + } + else + { + flushMouseEventStack(); + addMouseEvent(ea); + if (calcMovement()) + { + us.requestRedraw(); + } + us.requestContinuousUpdate(false); + _thrown = false; + } + + } + else + { + flushMouseEventStack(); + addMouseEvent(ea); + if (calcMovement()) + { + us.requestRedraw(); + } + us.requestContinuousUpdate(false); + _thrown = false; + } + return true; + } + + case GUIEventAdapter::DRAG: + { + addMouseEvent(ea); + if (calcMovement()) + { + us.requestRedraw(); + } + us.requestContinuousUpdate(false); + _thrown = false; + return true; + } + + case GUIEventAdapter::SCROLL: + { + // zoom model + double scale = 1.0; + + if (ea.getScrollingMotion() == GUIEventAdapter::SCROLL_UP) + { + scale -= _zoomSensitivity * 0.1; + } + else + { + scale += _zoomSensitivity * 0.1; + } + if (_distance * scale > _minZoomRange) + { + + _distance *= scale; + + } + + return true; + } + + case GUIEventAdapter::KEYDOWN: + // pan model + switch (ea.getKey()) + { + case GUIEventAdapter::KEY_Space: + { + flushMouseEventStack(); + _thrown = false; + home(ea,us); + us.requestRedraw(); + us.requestContinuousUpdate(false); + return true; + } + case GUIEventAdapter::KEY_Left: + { + double scale = -_moveSensitivity * _distance; + + osg::Matrix rotation_matrix; + rotation_matrix.makeRotate(_rotation); + + osg::Vec3d dv(scale, 0.0, 0.0); + + _center += dv * rotation_matrix; + + return true; + } + case GUIEventAdapter::KEY_Right: + { + double scale = _moveSensitivity * _distance; + + osg::Matrix rotation_matrix; + rotation_matrix.makeRotate(_rotation); + + osg::Vec3d dv(scale, 0.0, 0.0); + + _center += dv * rotation_matrix; + + return true; + } + case GUIEventAdapter::KEY_Up: + { + double scale = _moveSensitivity * _distance; + + osg::Matrix rotation_matrix; + rotation_matrix.makeRotate(_rotation); + + osg::Vec3d dv(0.0, scale, 0.0); + + _center += dv * rotation_matrix; + + return true; + } + case GUIEventAdapter::KEY_Down: + { + double scale = -_moveSensitivity * _distance; + + osg::Matrix rotation_matrix; + rotation_matrix.makeRotate(_rotation); + + osg::Vec3d dv(0.0, scale, 0.0); + + _center += dv * rotation_matrix; + + return true; + } + return false; + } + + case GUIEventAdapter::FRAME: + if (_thrown) + { + if (calcMovement()) + { + us.requestRedraw(); + } + } + return false; + + default: + return false; + } +} + + +bool +GCManipulator::calcMovement(void) +{ + using namespace osgGA; + + // return if less then two events have been added. + if (_ga_t0.get() == NULL || _ga_t1.get() == NULL) + { + return false; + } + + double dx = _ga_t0->getXnormalized() - _ga_t1->getXnormalized(); + double dy = _ga_t0->getYnormalized() - _ga_t1->getYnormalized(); + + // return if there is no movement. + if (dx == 0.0 && dy == 0.0) + { + return false; + } + + unsigned int buttonMask = _ga_t1->getButtonMask(); + if (buttonMask == GUIEventAdapter::LEFT_MOUSE_BUTTON) + { + // rotate camera +#if ((OPENSCENEGRAPH_MAJOR_VERSION == 2) & (OPENSCENEGRAPH_MINOR_VERSION > 8)) | (OPENSCENEGRAPH_MAJOR_VERSION > 2) + osg::Vec3d axis; +#else + osg::Vec3 axis; +#endif + float angle; + + float px0 = _ga_t0->getXnormalized(); + float py0 = _ga_t0->getYnormalized(); + + float px1 = _ga_t1->getXnormalized(); + float py1 = _ga_t1->getYnormalized(); + + trackball(axis, angle, px1, py1, px0, py0); + + osg::Quat new_rotate; + new_rotate.makeRotate(angle, axis); + + _rotation = _rotation * new_rotate; + + return true; + + } + else if (buttonMask == GUIEventAdapter::MIDDLE_MOUSE_BUTTON || + buttonMask == (GUIEventAdapter::LEFT_MOUSE_BUTTON | + GUIEventAdapter::RIGHT_MOUSE_BUTTON)) + { + // pan model + double scale = -_moveSensitivity * _distance; + + osg::Matrix rotation_matrix; + rotation_matrix.makeRotate(_rotation); + + osg::Vec3d dv(dx * scale, dy * scale, 0.0); + + _center += dv * rotation_matrix; + + return true; + + } + else if (buttonMask == GUIEventAdapter::RIGHT_MOUSE_BUTTON) + { + // zoom model + double scale = 1.0 + dy * _zoomSensitivity; + if (_distance * scale > _minZoomRange) + { + + _distance *= scale; + + } + return true; + } + + return false; +} diff --git a/src/ui/map3D/GCManipulator.h b/src/ui/map3D/GCManipulator.h new file mode 100644 index 0000000000000000000000000000000000000000..e8291abfd85cfdb34c647170cc3843d0876872f9 --- /dev/null +++ b/src/ui/map3D/GCManipulator.h @@ -0,0 +1,61 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Definition of the class GCManipulator. + * + * @author Lionel Heng + * + */ + +#ifndef GCMANIPULATOR_H +#define GCMANIPULATOR_H + +#include + +class GCManipulator : public osgGA::TrackballManipulator +{ +public: + GCManipulator(); + + void setMinZoomRange(double minZoomRange); + + virtual void move(double dx, double dy, double dz); + + /** + * @brief Handle events. + * @return True if event is handled; false otherwise. + */ + virtual bool handle(const osgGA::GUIEventAdapter& ea, + osgGA::GUIActionAdapter& us); + +protected: + bool calcMovement(void); + + double _moveSensitivity; + double _zoomSensitivity; + double _minZoomRange; +}; + +#endif // GCMANIPULATOR_H diff --git a/src/ui/map3D/HUDScaleGeode.cc b/src/ui/map3D/HUDScaleGeode.cc new file mode 100644 index 0000000000000000000000000000000000000000..bb113610d4971c1963d38d11ef38a8817759d08b --- /dev/null +++ b/src/ui/map3D/HUDScaleGeode.cc @@ -0,0 +1,125 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Definition of the class HUDScaleGeode. + * + * @author Lionel Heng + * + */ + +#include "HUDScaleGeode.h" + +#include +#include + +HUDScaleGeode::HUDScaleGeode() +{ + +} + +void +HUDScaleGeode::init(void) +{ + osg::ref_ptr outlineVertices(new osg::Vec2Array); + outlineVertices->push_back(osg::Vec2(20.0f, 50.0f)); + outlineVertices->push_back(osg::Vec2(20.0f, 70.0f)); + outlineVertices->push_back(osg::Vec2(20.0f, 60.0f)); + outlineVertices->push_back(osg::Vec2(100.0f, 60.0f)); + outlineVertices->push_back(osg::Vec2(100.0f, 50.0f)); + outlineVertices->push_back(osg::Vec2(100.0f, 70.0f)); + + osg::ref_ptr outlineGeometry(new osg::Geometry); + outlineGeometry->setVertexArray(outlineVertices); + + osg::ref_ptr outlineColor(new osg::Vec4Array); + outlineColor->push_back(osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); + outlineGeometry->setColorArray(outlineColor); + outlineGeometry->setColorBinding(osg::Geometry::BIND_OVERALL); + + outlineGeometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINES, + 0, 6)); + + osg::ref_ptr outlineWidth(new osg::LineWidth()); + outlineWidth->setWidth(4.0f); + outlineGeometry->getOrCreateStateSet()-> + setAttributeAndModes(outlineWidth, osg::StateAttribute::ON); + + addDrawable(outlineGeometry); + + osg::ref_ptr markerVertices(new osg::Vec2Array); + markerVertices->push_back(osg::Vec2(20.0f, 50.0f)); + markerVertices->push_back(osg::Vec2(20.0f, 70.0f)); + markerVertices->push_back(osg::Vec2(20.0f, 60.0f)); + markerVertices->push_back(osg::Vec2(100.0f, 60.0f)); + markerVertices->push_back(osg::Vec2(100.0f, 50.0f)); + markerVertices->push_back(osg::Vec2(100.0f, 70.0f)); + + osg::ref_ptr markerGeometry(new osg::Geometry); + markerGeometry->setVertexArray(markerVertices); + + osg::ref_ptr markerColor(new osg::Vec4Array); + markerColor->push_back(osg::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); + markerGeometry->setColorArray(markerColor); + markerGeometry->setColorBinding(osg::Geometry::BIND_OVERALL); + + markerGeometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINES, + 0, 6)); + + osg::ref_ptr markerWidth(new osg::LineWidth()); + markerWidth->setWidth(1.5f); + markerGeometry->getOrCreateStateSet()-> + setAttributeAndModes(markerWidth, osg::StateAttribute::ON); + + addDrawable(markerGeometry); + + text = new osgText::Text; + text->setCharacterSize(11); + text->setFont("images/Vera.ttf"); + text->setAxisAlignment(osgText::Text::SCREEN); + text->setColor(osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); + text->setPosition(osg::Vec3(40.0f, 45.0f, -1.5f)); + + addDrawable(text); +} + +void +HUDScaleGeode::update(int windowHeight, float cameraFov, float cameraDistance, + bool darkBackground) +{ + float f = static_cast(windowHeight) / 2.0f + / tanf(cameraFov / 180.0f * M_PI / 2.0f); + float dist = cameraDistance / f * 80.0f; + + if (darkBackground) + { + text->setColor(osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); + } + else + { + text->setColor(osg::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); + } + + text->setText(QString("%1 m").arg(dist, 0, 'f', 2).toStdString()); +} diff --git a/src/ui/map3D/HUDScaleGeode.h b/src/ui/map3D/HUDScaleGeode.h new file mode 100644 index 0000000000000000000000000000000000000000..7f2a370887fcc6ccffcfef97ab9c1caf1fc754b5 --- /dev/null +++ b/src/ui/map3D/HUDScaleGeode.h @@ -0,0 +1,52 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Definition of the class HUDScaleGeode. + * + * @author Lionel Heng + * + */ + +#ifndef HUDSCALEGEODE_H +#define HUDSCALEGEODE_H + +#include +#include +#include + +class HUDScaleGeode : public osg::Geode +{ +public: + HUDScaleGeode(); + + void init(void); + void update(int windowHeight, float cameraFov, float cameraDistance, + bool darkBackground); + +private: + osg::ref_ptr text; +}; + +#endif // HUDSCALEGEODE_H diff --git a/src/ui/map3D/ImageWindowGeode.cc b/src/ui/map3D/ImageWindowGeode.cc new file mode 100644 index 0000000000000000000000000000000000000000..83bdb77f463fa7d35f7ea056d628679080b49bc4 --- /dev/null +++ b/src/ui/map3D/ImageWindowGeode.cc @@ -0,0 +1,115 @@ +///*===================================================================== +// +//QGroundControl Open Source Ground Control Station +// +//(c) 2009, 2010 QGROUNDCONTROL PROJECT +// +//This file is part of the QGROUNDCONTROL project +// +// QGROUNDCONTROL is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// QGROUNDCONTROL is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with QGROUNDCONTROL. If not, see . +// +//======================================================================*/ + +/** + * @file + * @brief Definition of the class ImageWindowGeode. + * + * @author Lionel Heng + * + */ + +#include "ImageWindowGeode.h" + +ImageWindowGeode::ImageWindowGeode(const QString& caption, + const osg::Vec4& backgroundColor, + osg::ref_ptr& image) + : border(5) +{ + // image + osg::ref_ptr imageGeometry = new osg::Geometry; + imageVertices = new osg::Vec3Array(4); + + osg::ref_ptr textureCoords = new osg::Vec2Array; + textureCoords->push_back(osg::Vec2(0.0f, 1.0f)); + textureCoords->push_back(osg::Vec2(1.0f, 1.0f)); + textureCoords->push_back(osg::Vec2(1.0f, 0.0f)); + textureCoords->push_back(osg::Vec2(0.0f, 0.0f)); + + osg::ref_ptr imageColors(new osg::Vec4Array); + imageColors->push_back(osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); + imageGeometry->setColorArray(imageColors); + imageGeometry->setColorBinding(osg::Geometry::BIND_OVERALL); + + imageGeometry->setVertexArray(imageVertices); + imageGeometry->setTexCoordArray(0, textureCoords); + + imageGeometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::POLYGON, + 0, imageVertices->size())); + + osg::ref_ptr texture = new osg::Texture2D; + texture->setDataVariance(osg::Object::DYNAMIC); + texture->setImage(image); + texture->setResizeNonPowerOfTwoHint(false); + + imageGeometry->getOrCreateStateSet()-> + setTextureAttributeAndModes(0, texture, osg::StateAttribute::ON); + imageGeometry->setUseDisplayList(false); + + // background + osg::ref_ptr backgroundGeometry = new osg::Geometry; + backgroundVertices = new osg::Vec3Array(4); + backgroundGeometry->setVertexArray(backgroundVertices); + backgroundGeometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::POLYGON, + 0, backgroundVertices->size())); + osg::ref_ptr backgroundColors(new osg::Vec4Array); + backgroundColors->push_back(backgroundColor); + backgroundGeometry->setColorArray(backgroundColors); + backgroundGeometry->setColorBinding(osg::Geometry::BIND_OVERALL); + backgroundGeometry->setUseDisplayList(false); + + // caption + text = new osgText::Text; + text->setText(caption.toStdString().c_str()); + text->setCharacterSize(11); + text->setFont("images/Vera.ttf"); + text->setAxisAlignment(osgText::Text::SCREEN); + text->setColor(osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); + + addDrawable(imageGeometry); + addDrawable(backgroundGeometry); + addDrawable(text); + + setAttributes(0, 0, 0, 0); +} + +void +ImageWindowGeode::setAttributes(int x, int y, int width, int height) +{ + int imageWidth = width - border * 2; + int imageHeight = height - border * 2 - 15; + int imageXPosition = x + border; + int imageYPosition = y + border; + + imageVertices->at(0) = osg::Vec3(imageXPosition, imageYPosition, 0); + imageVertices->at(1) = osg::Vec3(imageXPosition + imageWidth, imageYPosition, 0); + imageVertices->at(2) = osg::Vec3(imageXPosition + imageWidth, imageYPosition + imageHeight, 0); + imageVertices->at(3) = osg::Vec3(imageXPosition, imageYPosition + imageHeight, 0); + + text->setPosition(osg::Vec3(imageXPosition, imageYPosition + imageHeight + 5, 0)); + + backgroundVertices->at(0) = osg::Vec3(x, y, -1); + backgroundVertices->at(1) = osg::Vec3(x + width, y, -1); + backgroundVertices->at(2) = osg::Vec3(x + width, y + height, -1); + backgroundVertices->at(3) = osg::Vec3(x, y + height, -1); +} diff --git a/src/ui/map3D/ImageWindowGeode.h b/src/ui/map3D/ImageWindowGeode.h new file mode 100644 index 0000000000000000000000000000000000000000..87281d860b68070391903269366c3a0487dce945 --- /dev/null +++ b/src/ui/map3D/ImageWindowGeode.h @@ -0,0 +1,56 @@ +///*===================================================================== +// +//QGroundControl Open Source Ground Control Station +// +//(c) 2009, 2010 QGROUNDCONTROL PROJECT +// +//This file is part of the QGROUNDCONTROL project +// +// QGROUNDCONTROL is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// QGROUNDCONTROL is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with QGROUNDCONTROL. If not, see . +// +//======================================================================*/ + +/** + * @file + * @brief Definition of the class ImageWindowGeode. + * + * @author Lionel Heng + * + */ + +#ifndef IMAGEWINDOWGEODE_H +#define IMAGEWINDOWGEODE_H + +#include +#include +#include +#include + +class ImageWindowGeode : public osg::Geode +{ +public: + ImageWindowGeode(const QString& caption, const osg::Vec4& backgroundColor, + osg::ref_ptr& image); + + void setAttributes(int x, int y, int width, int height); + +private: + int border; + + osg::ref_ptr imageVertices; + osg::ref_ptr backgroundVertices; + osg::ref_ptr text; +}; + +#endif // IMAGEWINDOWGEODE_H diff --git a/src/ui/map3D/Imagery.cc b/src/ui/map3D/Imagery.cc index 714fb65ea64f5c010e547d278967b2f3d227d763..de93ea78a5b72b678f3568e4356ce0f746e319e5 100644 --- a/src/ui/map3D/Imagery.cc +++ b/src/ui/map3D/Imagery.cc @@ -32,12 +32,13 @@ This file is part of the QGROUNDCONTROL project #include "Imagery.h" #include +#include #include const double WGS84_A = 6378137.0; const double WGS84_ECCSQ = 0.00669437999013; -const int32_t MAX_ZOOM_LEVEL = 20; +const int MAX_ZOOM_LEVEL = 20; Imagery::Imagery() : textureCache(new TextureCache(1000)) @@ -45,6 +46,12 @@ Imagery::Imagery() } +Imagery::ImageryType +Imagery::getImageryType(void) const +{ + return currentImageryType; +} + void Imagery::setImageryType(ImageryType type) { @@ -61,11 +68,16 @@ Imagery::setOffset(double xOffset, double yOffset) void Imagery::prefetch2D(double windowWidth, double windowHeight, double zoom, double xOrigin, double yOrigin, - double viewXOffset, double viewYOffset, const QString& utmZone) { - double tileResolution; - if (currentImageryType == SATELLITE) + if (currentImageryType == BLANK_MAP) + { + return; + } + + double tileResolution = 1.0; + if (currentImageryType == GOOGLE_SATELLITE || + currentImageryType == GOOGLE_MAP) { tileResolution = 1.0; while (tileResolution * 3.0 / 2.0 < 1.0 / zoom) @@ -77,22 +89,26 @@ Imagery::prefetch2D(double windowWidth, double windowHeight, tileResolution = 512.0; } } + else if (currentImageryType == SWISSTOPO_SATELLITE) + { + tileResolution = 0.25; + } - int32_t minTileX, minTileY, maxTileX, maxTileY; - int32_t zoomLevel; + int minTileX, minTileY, maxTileX, maxTileY; + int zoomLevel; tileBounds(tileResolution, - xOrigin + viewXOffset - windowWidth / 2.0 / zoom, - yOrigin + viewYOffset - windowHeight / 2.0 / zoom, - xOrigin + viewXOffset + windowWidth / 2.0 / zoom, - yOrigin + viewYOffset + windowHeight / 2.0 / zoom, utmZone, + xOrigin - windowWidth / 2.0 / zoom * 1.5, + yOrigin - windowHeight / 2.0 / zoom * 1.5, + xOrigin + windowWidth / 2.0 / zoom * 1.5, + yOrigin + windowHeight / 2.0 / zoom * 1.5, utmZone, minTileX, minTileY, maxTileX, maxTileY, zoomLevel); - for (int32_t r = minTileY; r <= maxTileY; ++r) + for (int r = minTileY; r <= maxTileY; ++r) { - for (int32_t c = minTileX; c <= maxTileX; ++c) + for (int c = minTileX; c <= maxTileX; ++c) { - QString url = getTileURL(c, r, zoomLevel); + QString url = getTileLocation(c, r, zoomLevel, tileResolution); TexturePtr t = textureCache->get(url); } @@ -102,11 +118,22 @@ Imagery::prefetch2D(double windowWidth, double windowHeight, void Imagery::draw2D(double windowWidth, double windowHeight, double zoom, double xOrigin, double yOrigin, - double viewXOffset, double viewYOffset, + double xOffset, double yOffset, double zOffset, const QString& utmZone) { - double tileResolution; - if (currentImageryType == SATELLITE) + if (getNumDrawables() > 0) + { + removeDrawables(0, getNumDrawables()); + } + + if (currentImageryType == BLANK_MAP) + { + return; + } + + double tileResolution = 1.0; + if (currentImageryType == GOOGLE_SATELLITE || + currentImageryType == GOOGLE_MAP) { tileResolution = 1.0; while (tileResolution * 3.0 / 2.0 < 1.0 / zoom) @@ -118,22 +145,26 @@ Imagery::draw2D(double windowWidth, double windowHeight, tileResolution = 512.0; } } + else if (currentImageryType == SWISSTOPO_SATELLITE) + { + tileResolution = 0.25; + } - int32_t minTileX, minTileY, maxTileX, maxTileY; - int32_t zoomLevel; + int minTileX, minTileY, maxTileX, maxTileY; + int zoomLevel; tileBounds(tileResolution, - xOrigin + viewXOffset - windowWidth / 2.0 / zoom * 1.5, - yOrigin + viewYOffset - windowHeight / 2.0 / zoom * 1.5, - xOrigin + viewXOffset + windowWidth / 2.0 / zoom * 1.5, - yOrigin + viewYOffset + windowHeight / 2.0 / zoom * 1.5, utmZone, + xOrigin - windowWidth / 2.0 / zoom * 1.5, + yOrigin - windowHeight / 2.0 / zoom * 1.5, + xOrigin + windowWidth / 2.0 / zoom * 1.5, + yOrigin + windowHeight / 2.0 / zoom * 1.5, utmZone, minTileX, minTileY, maxTileX, maxTileY, zoomLevel); - for (int32_t r = minTileY; r <= maxTileY; ++r) + for (int r = minTileY; r <= maxTileY; ++r) { - for (int32_t c = minTileX; c <= maxTileX; ++c) + for (int c = minTileX; c <= maxTileX; ++c) { - QString tileURL = getTileURL(c, r, zoomLevel); + QString tileURL = getTileLocation(c, r, zoomLevel, tileResolution); double x1, y1, x2, y2, x3, y3, x4, y4; imageBounds(c, r, tileResolution, x1, y1, x2, y2, x3, y3, x4, y4); @@ -141,10 +172,12 @@ Imagery::draw2D(double windowWidth, double windowHeight, TexturePtr t = textureCache->get(tileURL); if (!t.isNull()) { - t->draw(x1 - xOrigin, y1 - yOrigin, - x2 - xOrigin, y2 - yOrigin, - x3 - xOrigin, y3 - yOrigin, - x4 - xOrigin, y4 - yOrigin, true); + addDrawable(t->draw(y1 - yOffset, x1 - xOffset, + y2 - yOffset, x2 - xOffset, + y3 - yOffset, x3 - xOffset, + y4 - yOffset, x4 - xOffset, + zOffset, + true)); } } } @@ -153,24 +186,26 @@ Imagery::draw2D(double windowWidth, double windowHeight, void Imagery::prefetch3D(double radius, double tileResolution, double xOrigin, double yOrigin, - double viewXOffset, double viewYOffset, const QString& utmZone) { - int32_t minTileX, minTileY, maxTileX, maxTileY; - int32_t zoomLevel; + if (currentImageryType == BLANK_MAP) + { + return; + } + + int minTileX, minTileY, maxTileX, maxTileY; + int zoomLevel; tileBounds(tileResolution, - xOrigin + viewXOffset - radius, - yOrigin + viewYOffset - radius, - xOrigin + viewXOffset + radius, - yOrigin + viewYOffset + radius, utmZone, + xOrigin - radius, yOrigin - radius, + xOrigin + radius, yOrigin + radius, utmZone, minTileX, minTileY, maxTileX, maxTileY, zoomLevel); - for (int32_t r = minTileY; r <= maxTileY; ++r) + for (int r = minTileY; r <= maxTileY; ++r) { - for (int32_t c = minTileX; c <= maxTileX; ++c) + for (int c = minTileX; c <= maxTileX; ++c) { - QString url = getTileURL(c, r, zoomLevel); + QString url = getTileLocation(c, r, zoomLevel, tileResolution); TexturePtr t = textureCache->get(url); } @@ -180,24 +215,32 @@ Imagery::prefetch3D(double radius, double tileResolution, void Imagery::draw3D(double radius, double tileResolution, double xOrigin, double yOrigin, - double viewXOffset, double viewYOffset, + double xOffset, double yOffset, double zOffset, const QString& utmZone) { - int32_t minTileX, minTileY, maxTileX, maxTileY; - int32_t zoomLevel; + if (getNumDrawables() > 0) + { + removeDrawables(0, getNumDrawables()); + } + + if (currentImageryType == BLANK_MAP) + { + return; + } + + int minTileX, minTileY, maxTileX, maxTileY; + int zoomLevel; tileBounds(tileResolution, - xOrigin + viewXOffset - radius, - yOrigin + viewYOffset - radius, - xOrigin + viewXOffset + radius, - yOrigin + viewYOffset + radius, utmZone, + xOrigin - radius, yOrigin - radius, + xOrigin + radius, yOrigin + radius, utmZone, minTileX, minTileY, maxTileX, maxTileY, zoomLevel); - for (int32_t r = minTileY; r <= maxTileY; ++r) + for (int r = minTileY; r <= maxTileY; ++r) { - for (int32_t c = minTileX; c <= maxTileX; ++c) + for (int c = minTileX; c <= maxTileX; ++c) { - QString tileURL = getTileURL(c, r, zoomLevel); + QString tileURL = getTileLocation(c, r, zoomLevel, tileResolution); double x1, y1, x2, y2, x3, y3, x4, y4; imageBounds(c, r, tileResolution, x1, y1, x2, y2, x3, y3, x4, y4); @@ -206,10 +249,12 @@ Imagery::draw3D(double radius, double tileResolution, if (!t.isNull()) { - t->draw(x1 - xOrigin, y1 - yOrigin, - x2 - xOrigin, y2 - yOrigin, - x3 - xOrigin, y3 - yOrigin, - x4 - xOrigin, y4 - yOrigin, true); + addDrawable(t->draw(y1 - yOffset, x1 - xOffset, + y2 - yOffset, x2 - xOffset, + y3 - yOffset, x3 - xOffset, + y4 - yOffset, x4 - xOffset, + zOffset, + true)); } } } @@ -224,45 +269,76 @@ Imagery::update(void) } void -Imagery::imageBounds(int32_t tileX, int32_t tileY, double tileResolution, +Imagery::imageBounds(int tileX, int tileY, double tileResolution, double& x1, double& y1, double& x2, double& y2, double& x3, double& y3, double& x4, double& y4) const { - int32_t zoomLevel = MAX_ZOOM_LEVEL - static_cast(rint(log2(tileResolution))); - int32_t numTiles = static_cast(exp2(static_cast(zoomLevel))); + if (currentImageryType == GOOGLE_MAP || + currentImageryType == GOOGLE_SATELLITE) + { + int zoomLevel = MAX_ZOOM_LEVEL - static_cast(rint(log2(tileResolution))); + int numTiles = static_cast(exp2(static_cast(zoomLevel))); - double lon1 = tileXToLongitude(tileX, numTiles); - double lon2 = tileXToLongitude(tileX + 1, numTiles); + double lon1 = tileXToLongitude(tileX, numTiles); + double lon2 = tileXToLongitude(tileX + 1, numTiles); - double lat1 = tileYToLatitude(tileY, numTiles); - double lat2 = tileYToLatitude(tileY + 1, numTiles); + double lat1 = tileYToLatitude(tileY, numTiles); + double lat2 = tileYToLatitude(tileY + 1, numTiles); - QString utmZone; - LLtoUTM(lat1, lon1, x1, y1, utmZone); - LLtoUTM(lat1, lon2, x2, y2, utmZone); - LLtoUTM(lat2, lon2, x3, y3, utmZone); - LLtoUTM(lat2, lon1, x4, y4, utmZone); + QString utmZone; + LLtoUTM(lat1, lon1, x1, y1, utmZone); + LLtoUTM(lat1, lon2, x2, y2, utmZone); + LLtoUTM(lat2, lon2, x3, y3, utmZone); + LLtoUTM(lat2, lon1, x4, y4, utmZone); + } + else if (currentImageryType == SWISSTOPO_SATELLITE) + { + double utmMultiplier = tileResolution * 200.0; + double minX = tileX * utmMultiplier; + double maxX = minX + utmMultiplier; + double minY = tileY * utmMultiplier; + double maxY = minY + utmMultiplier; + + x1 = maxX; y1 = minY; + x2 = maxX; y2 = maxY; + x3 = minX; y3 = maxY; + x4 = minX; y4 = minY; + } } void Imagery::tileBounds(double tileResolution, double minUtmX, double minUtmY, double maxUtmX, double maxUtmY, const QString& utmZone, - int32_t& minTileX, int32_t& minTileY, - int32_t& maxTileX, int32_t& maxTileY, - int32_t& zoomLevel) const + int& minTileX, int& minTileY, + int& maxTileX, int& maxTileY, + int& zoomLevel) const { double centerUtmX = (maxUtmX - minUtmX) / 2.0 + minUtmX; double centerUtmY = (maxUtmY - minUtmY) / 2.0 + minUtmY; + int centerTileX, centerTileY; - int32_t centerTileX, centerTileY; - - UTMtoTile(minUtmX, minUtmY, utmZone, tileResolution, - minTileX, maxTileY, zoomLevel); - UTMtoTile(centerUtmX, centerUtmY, utmZone, tileResolution, - centerTileX, centerTileY, zoomLevel); - UTMtoTile(maxUtmX, maxUtmY, utmZone, tileResolution, - maxTileX, minTileY, zoomLevel); + if (currentImageryType == GOOGLE_MAP || + currentImageryType == GOOGLE_SATELLITE) + { + UTMtoTile(minUtmX, minUtmY, utmZone, tileResolution, + minTileX, maxTileY, zoomLevel); + UTMtoTile(centerUtmX, centerUtmY, utmZone, tileResolution, + centerTileX, centerTileY, zoomLevel); + UTMtoTile(maxUtmX, maxUtmY, utmZone, tileResolution, + maxTileX, minTileY, zoomLevel); + } + else if (currentImageryType == SWISSTOPO_SATELLITE) + { + double utmMultiplier = tileResolution * 200; + + minTileX = static_cast(rint(minUtmX / utmMultiplier)); + minTileY = static_cast(rint(minUtmY / utmMultiplier)); + centerTileX = static_cast(rint(centerUtmX / utmMultiplier)); + centerTileY = static_cast(rint(centerUtmY / utmMultiplier)); + maxTileX = static_cast(rint(maxUtmX / utmMultiplier)); + maxTileY = static_cast(rint(maxUtmY / utmMultiplier)); + } if (maxTileX - minTileX + 1 > 14) { @@ -277,14 +353,14 @@ Imagery::tileBounds(double tileResolution, } double -Imagery::tileXToLongitude(int32_t tileX, int32_t numTiles) const +Imagery::tileXToLongitude(int tileX, int numTiles) const { return 360.0 * (static_cast(tileX) / static_cast(numTiles)) - 180.0; } double -Imagery::tileYToLatitude(int32_t tileY, int32_t numTiles) const +Imagery::tileYToLatitude(int tileY, int numTiles) const { double unnormalizedRad = (static_cast(tileY) / static_cast(numTiles)) @@ -293,39 +369,39 @@ Imagery::tileYToLatitude(int32_t tileY, int32_t numTiles) const return -rad * 180.0 / M_PI; } -int32_t -Imagery::longitudeToTileX(double longitude, int32_t numTiles) const +int +Imagery::longitudeToTileX(double longitude, int numTiles) const { - return static_cast((longitude / 180.0 + 1.0) / 2.0 * numTiles); + return static_cast((longitude / 180.0 + 1.0) / 2.0 * numTiles); } -int32_t -Imagery::latitudeToTileY(double latitude, int32_t numTiles) const +int +Imagery::latitudeToTileY(double latitude, int numTiles) const { double rad = latitude * M_PI / 180.0; double normalizedRad = -log(tan(rad) + 1.0 / cos(rad)); - return static_cast((normalizedRad + M_PI) + return static_cast((normalizedRad + M_PI) / (2.0 * M_PI) * numTiles); } void Imagery::UTMtoTile(double northing, double easting, const QString& utmZone, - double tileResolution, int32_t& tileX, int32_t& tileY, - int32_t& zoomLevel) const + double tileResolution, int& tileX, int& tileY, + int& zoomLevel) const { double latitude, longitude; UTMtoLL(northing, easting, utmZone, latitude, longitude); - zoomLevel = MAX_ZOOM_LEVEL - static_cast(rint(log2(tileResolution))); - int32_t numTiles = static_cast(exp2(static_cast(zoomLevel))); + zoomLevel = MAX_ZOOM_LEVEL - static_cast(rint(log2(tileResolution))); + int numTiles = static_cast(exp2(static_cast(zoomLevel))); tileX = longitudeToTileX(longitude, numTiles); tileY = latitudeToTileY(latitude, numTiles); } QChar -Imagery::UTMLetterDesignator(double latitude) const +Imagery::UTMLetterDesignator(double latitude) { // This routine determines the correct UTM letter designator for the given latitude // returns 'Z' if latitude is outside the UTM limits of 84N to 80S @@ -360,7 +436,7 @@ Imagery::UTMLetterDesignator(double latitude) const void Imagery::LLtoUTM(double latitude, double longitude, double& utmNorthing, double& utmEasting, - QString& utmZone) const + QString& utmZone) { // converts lat/long to UTM coords. Equations from USGS Bulletin 1532 // East Longitudes are positive, West longitudes are negative. @@ -378,7 +454,7 @@ Imagery::LLtoUTM(double latitude, double longitude, double LongRad = longitude * M_PI / 180.0; double LongOriginRad; - int32_t ZoneNumber = static_cast((longitude + 180.0) / 6.0) + 1; + int ZoneNumber = static_cast((longitude + 180.0) / 6.0) + 1; if (latitude >= 56.0 && latitude < 64.0 && longitude >= 3.0 && longitude < 12.0) @@ -441,7 +517,7 @@ Imagery::LLtoUTM(double latitude, double longitude, void Imagery::UTMtoLL(double utmNorthing, double utmEasting, const QString& utmZone, - double& latitude, double& longitude) const + double& latitude, double& longitude) { // converts UTM coords to lat/long. Equations from USGS Bulletin 1532 // East Longitudes are positive, West longitudes are negative. @@ -456,7 +532,7 @@ Imagery::UTMtoLL(double utmNorthing, double utmEasting, const QString& utmZone, double LongOrigin; double mu, phi1, phi1Rad; double x, y; - int32_t ZoneNumber; + int ZoneNumber; char ZoneLetter; bool NorthernHemisphere; @@ -513,20 +589,33 @@ Imagery::UTMtoLL(double utmNorthing, double utmEasting, const QString& utmZone, } QString -Imagery::getTileURL(int32_t tileX, int32_t tileY, int32_t zoomLevel) const +Imagery::getTileLocation(int tileX, int tileY, int zoomLevel, + double tileResolution) const { std::ostringstream oss; switch (currentImageryType) { - case MAP: + case GOOGLE_MAP: oss << "http://mt0.google.com/vt/lyrs=m@120&x=" << tileX << "&y=" << tileY << "&z=" << zoomLevel; break; - case SATELLITE: + case GOOGLE_SATELLITE: oss << "http://khm.google.com/vt/lbw/lyrs=y&x=" << tileX << "&y=" << tileY << "&z=" << zoomLevel; break; + case SWISSTOPO_SATELLITE: + oss << "../map/eth_zurich_swissimage_025/200/color/" << tileY + << "/tile-"; + if (tileResolution < 1.0) + { + oss << std::fixed << std::setprecision(2) << tileResolution; + } + else + { + oss << static_cast(rint(tileResolution)); + } + oss << "-" << tileY << "-" << tileX << ".jpg"; default: {}; } diff --git a/src/ui/map3D/Imagery.h b/src/ui/map3D/Imagery.h index bcfe10b1673c616106caade94d6bb7809170a69b..381231235659179adaefe9a38b886ecd6ce5a723 100644 --- a/src/ui/map3D/Imagery.h +++ b/src/ui/map3D/Imagery.h @@ -32,81 +32,83 @@ This file is part of the QGROUNDCONTROL project #ifndef IMAGERY_H #define IMAGERY_H -#include +#include +#include +#include #include "TextureCache.h" -class Imagery +class Imagery : public osg::Geode { public: - Imagery(); - enum ImageryType { - MAP = 0, - SATELLITE = 1 + BLANK_MAP = 0, + GOOGLE_MAP = 1, + GOOGLE_SATELLITE = 2, + SWISSTOPO_SATELLITE = 3 }; + Imagery(); + + ImageryType getImageryType(void) const; void setImageryType(ImageryType type); void setOffset(double xOffset, double yOffset); void prefetch2D(double windowWidth, double windowHeight, double zoom, double xOrigin, double yOrigin, - double viewXOffset, double viewYOffset, const QString& utmZone); void draw2D(double windowWidth, double windowHeight, double zoom, double xOrigin, double yOrigin, - double viewXOffset, double viewYOffset, + double xOffset, double yOffset, double zOffset, const QString& utmZone); void prefetch3D(double radius, double tileResolution, double xOrigin, double yOrigin, - double viewXOffset, double viewYOffset, const QString& utmZone); void draw3D(double radius, double tileResolution, double xOrigin, double yOrigin, - double viewXOffset, double viewYOffset, + double xOffset, double yOffset, double zOffset, const QString& utmZone); bool update(void); + static void LLtoUTM(double latitude, double longitude, + double& utmNorthing, double& utmEasting, + QString& utmZone); + static void UTMtoLL(double utmNorthing, double utmEasting, const QString& utmZone, + double& latitude, double& longitude); + private: - void imageBounds(int32_t tileX, int32_t tileY, double tileResolution, + void imageBounds(int tileX, int tileY, double tileResolution, double& x1, double& y1, double& x2, double& y2, double& x3, double& y3, double& x4, double& y4) const; - void tileBounds(double tileResolution, double minUtmX, double minUtmY, double maxUtmX, double maxUtmY, const QString& utmZone, - int32_t& minTileX, int32_t& minTileY, - int32_t& maxTileX, int32_t& maxTileY, - int32_t& zoomLevel) const; + int& minTileX, int& minTileY, + int& maxTileX, int& maxTileY, + int& zoomLevel) const; - double tileXToLongitude(int32_t tileX, int32_t numTiles) const; - double tileYToLatitude(int32_t tileY, int32_t numTiles) const; - int32_t longitudeToTileX(double longitude, int32_t numTiles) const; - int32_t latitudeToTileY(double latitude, int32_t numTiles) const; + double tileXToLongitude(int tileX, int numTiles) const; + double tileYToLatitude(int tileY, int numTiles) const; + int longitudeToTileX(double longitude, int numTiles) const; + int latitudeToTileY(double latitude, int numTiles) const; void UTMtoTile(double northing, double easting, const QString& utmZone, - double tileResolution, int32_t& tileX, int32_t& tileY, - int32_t& zoomLevel) const; + double tileResolution, int& tileX, int& tileY, + int& zoomLevel) const; + static QChar UTMLetterDesignator(double latitude); - QChar UTMLetterDesignator(double latitude) const; + QString getTileLocation(int tileX, int tileY, int zoomLevel, + double tileResolution) const; - void LLtoUTM(double latitude, double longitude, - double& utmNorthing, double& utmEasting, - QString& utmZone) const; - - void UTMtoLL(double utmNorthing, double utmEasting, const QString& utmZone, - double& latitude, double& longitude) const; - - QString getTileURL(int32_t tileX, int32_t tileY, int32_t zoomLevel) const; + QScopedPointer textureCache; ImageryType currentImageryType; - QScopedPointer textureCache; - - double xOffset, yOffset; + double xOffset; + double yOffset; }; #endif // IMAGERY_H diff --git a/src/ui/map3D/Pixhawk3DWidget.cc b/src/ui/map3D/Pixhawk3DWidget.cc new file mode 100644 index 0000000000000000000000000000000000000000..da453ba92a40414e2563b4a7ff9dd26ed75fa405 --- /dev/null +++ b/src/ui/map3D/Pixhawk3DWidget.cc @@ -0,0 +1,1376 @@ +///*===================================================================== +// +//QGroundControl Open Source Ground Control Station +// +//(c) 2009, 2010 QGROUNDCONTROL PROJECT +// +//This file is part of the QGROUNDCONTROL project +// +// QGROUNDCONTROL is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// QGROUNDCONTROL is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with QGROUNDCONTROL. If not, see . +// +//======================================================================*/ + +/** + * @file + * @brief Definition of the class Pixhawk3DWidget. + * + * @author Lionel Heng + * + */ + +#include "Pixhawk3DWidget.h" + +#include + +#include +#include +#include +#include +#include + +#include "PixhawkCheetahGeode.h" +#include "UASManager.h" + +#include "QGC.h" + +Pixhawk3DWidget::Pixhawk3DWidget(QWidget* parent) + : Q3DWidget(parent) + , uas(NULL) + , mode(DEFAULT_MODE) + , selectedWpIndex(-1) + , displayGrid(true) + , displayTrail(false) + , displayImagery(true) + , displayWaypoints(true) + , displayRGBD2D(false) + , displayRGBD3D(false) + , enableRGBDColor(true) + , followCamera(true) + , enableFreenect(false) + , frame(MAV_FRAME_GLOBAL) + , lastRobotX(0.0f) + , lastRobotY(0.0f) + , lastRobotZ(0.0f) +{ + setCameraParams(2.0f, 30.0f, 0.01f, 10000.0f); + init(15.0f); + + // generate Pixhawk Cheetah model + vehicleModel = PixhawkCheetahGeode::instance(); + egocentricMap->addChild(vehicleModel); + + // generate grid model + gridNode = createGrid(); + rollingMap->addChild(gridNode); + + // generate empty trail model + trailNode = createTrail(); + rollingMap->addChild(trailNode); + + // generate map model + mapNode = createMap(); + rollingMap->addChild(mapNode); + + // generate waypoint model + waypointGroupNode = new WaypointGroupNode; + waypointGroupNode->init(); + rollingMap->addChild(waypointGroupNode); + +#ifdef QGC_LIBFREENECT_ENABLED + freenect.reset(new Freenect()); + enableFreenect = freenect->init(); +#endif + + // generate RGBD model + if (enableFreenect) + { + rgbd3DNode = createRGBD3D(); + egocentricMap->addChild(rgbd3DNode); + } + + setupHUD(); + + // find available vehicle models in models folder + vehicleModels = findVehicleModels(); + + buildLayout(); + + connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), + this, SLOT(setActiveUAS(UASInterface*))); +} + +Pixhawk3DWidget::~Pixhawk3DWidget() +{ + +} + +/** + * + * @param uas the UAS/MAV to monitor/display with the HUD + */ +void Pixhawk3DWidget::setActiveUAS(UASInterface* uas) +{ + if (this->uas != NULL && this->uas != uas) + { + // Disconnect any previously connected active MAV + //disconnect(uas, SIGNAL(valueChanged(UASInterface*,QString,double,quint64)), this, SLOT(updateValue(UASInterface*,QString,double,quint64))); + } + + this->uas = uas; +} + +void +Pixhawk3DWidget::selectFrame(QString text) +{ + if (text.compare("Global") == 0) + { + frame = MAV_FRAME_GLOBAL; + } + else if (text.compare("Local") == 0) + { + frame = MAV_FRAME_LOCAL; + } + + getPosition(lastRobotX, lastRobotY, lastRobotZ); + + recenter(); +} + +void +Pixhawk3DWidget::showGrid(int32_t state) +{ + if (state == Qt::Checked) + { + displayGrid = true; + } + else + { + displayGrid = false; + } +} + +void +Pixhawk3DWidget::showTrail(int32_t state) +{ + if (state == Qt::Checked) + { + if (!displayTrail) + { + trail.clear(); + } + + displayTrail = true; + } + else + { + displayTrail = false; + } +} + +void +Pixhawk3DWidget::showWaypoints(int state) +{ + if (state == Qt::Checked) + { + displayWaypoints = true; + } + else + { + displayWaypoints = false; + } +} + +void +Pixhawk3DWidget::selectMapSource(int index) +{ + mapNode->setImageryType(static_cast(index)); + + if (mapNode->getImageryType() == Imagery::BLANK_MAP) + { + displayImagery = false; + } + else + { + displayImagery = true; + } +} + +void +Pixhawk3DWidget::selectVehicleModel(int index) +{ + egocentricMap->removeChild(vehicleModel); + vehicleModel = vehicleModels.at(index); + egocentricMap->addChild(vehicleModel); +} + +void +Pixhawk3DWidget::recenter(void) +{ + double robotX = 0.0f, robotY = 0.0f, robotZ = 0.0f; + getPosition(robotX, robotY, robotZ); + + recenterCamera(robotY, robotX, -robotZ); +} + +void +Pixhawk3DWidget::toggleFollowCamera(int32_t state) +{ + if (state == Qt::Checked) + { + followCamera = true; + } + else + { + followCamera = false; + } +} + +void +Pixhawk3DWidget::insertWaypoint(void) +{ + if (uas) + { + Waypoint* wp = NULL; + if (frame == MAV_FRAME_GLOBAL) + { + double latitude = uas->getLatitude(); + double longitude = uas->getLongitude(); + double altitude = uas->getAltitude(); + double x, y; + QString utmZone; + Imagery::LLtoUTM(latitude, longitude, x, y, utmZone); + + std::pair cursorWorldCoords = + getGlobalCursorPosition(getMouseX(), getMouseY(), altitude); + + Imagery::UTMtoLL(cursorWorldCoords.first, cursorWorldCoords.second, utmZone, + latitude, longitude); + + wp = new Waypoint(0, longitude, latitude, altitude); + } + else if (frame == MAV_FRAME_LOCAL) + { + double z = uas->getLocalZ(); + + std::pair cursorWorldCoords = + getGlobalCursorPosition(getMouseX(), getMouseY(), -z); + + wp = new Waypoint(0, cursorWorldCoords.first, + cursorWorldCoords.second, z); + } + + if (wp) + { + wp->setFrame(frame); + uas->getWaypointManager().addWaypoint(wp); + } + } +} + +void +Pixhawk3DWidget::moveWaypoint(void) +{ + mode = MOVE_WAYPOINT_MODE; +} + +void +Pixhawk3DWidget::setWaypoint(void) +{ + if (uas) + { + const QVector waypoints = + uas->getWaypointManager().getWaypointList(); + Waypoint* waypoint = waypoints.at(selectedWpIndex); + + if (frame == MAV_FRAME_GLOBAL) + { + double latitude = uas->getLatitude(); + double longitude = uas->getLongitude(); + double altitude = uas->getAltitude(); + double x, y; + QString utmZone; + Imagery::LLtoUTM(latitude, longitude, x, y, utmZone); + + std::pair cursorWorldCoords = + getGlobalCursorPosition(getMouseX(), getMouseY(), altitude); + + Imagery::UTMtoLL(cursorWorldCoords.first, cursorWorldCoords.second, utmZone, + latitude, longitude); + + waypoint->setX(longitude); + waypoint->setY(latitude); + waypoint->setZ(altitude); + } + else if (frame == MAV_FRAME_LOCAL) + { + double z = uas->getLocalZ(); + + std::pair cursorWorldCoords = + getGlobalCursorPosition(getMouseX(), getMouseY(), -z); + + waypoint->setX(cursorWorldCoords.first); + waypoint->setY(cursorWorldCoords.second); + waypoint->setZ(z); + } + } +} + +void +Pixhawk3DWidget::deleteWaypoint(void) +{ + if (uas) + { + uas->getWaypointManager().removeWaypoint(selectedWpIndex); + } +} + +void +Pixhawk3DWidget::setWaypointAltitude(void) +{ + if (uas) + { + bool ok; + const QVector waypoints = + uas->getWaypointManager().getWaypointList(); + Waypoint* waypoint = waypoints.at(selectedWpIndex); + + double altitude = waypoint->getZ(); + if (frame == MAV_FRAME_LOCAL) + { + altitude = -altitude; + } + + double newAltitude = + QInputDialog::getDouble(this, tr("Set altitude of waypoint %1").arg(selectedWpIndex), + tr("Altitude (m):"), waypoint->getZ(), -1000.0, 1000.0, 1, &ok); + if (ok) + { + if (frame == MAV_FRAME_GLOBAL) + { + waypoint->setZ(newAltitude); + } + else if (frame == MAV_FRAME_LOCAL) + { + waypoint->setZ(-newAltitude); + } + } + } +} + +void +Pixhawk3DWidget::clearAllWaypoints(void) +{ + if (uas) + { + const QVector waypoints = + uas->getWaypointManager().getWaypointList(); + for (int i = waypoints.size() - 1; i >= 0; --i) + { + uas->getWaypointManager().removeWaypoint(i); + } + } +} + +QVector< osg::ref_ptr > +Pixhawk3DWidget::findVehicleModels(void) +{ + QDir directory("models"); + QStringList files = directory.entryList(QStringList("*.osg"), QDir::Files); + + QVector< osg::ref_ptr > nodes; + + // add Pixhawk Bravo model + nodes.push_back(PixhawkCheetahGeode::instance()); + + // add sphere of 0.05m radius + osg::ref_ptr sphere = new osg::Sphere(osg::Vec3f(0.0f, 0.0f, 0.0f), 0.05f); + osg::ref_ptr sphereDrawable = new osg::ShapeDrawable(sphere); + sphereDrawable->setColor(osg::Vec4f(0.5f, 0.0f, 0.5f, 1.0f)); + osg::ref_ptr sphereGeode = new osg::Geode; + sphereGeode->addDrawable(sphereDrawable); + sphereGeode->setName("Sphere (0.1m)"); + nodes.push_back(sphereGeode); + + // add all other models in folder + for (int i = 0; i < files.size(); ++i) + { + osg::ref_ptr node = + osgDB::readNodeFile(directory.absoluteFilePath(files[i]).toStdString().c_str()); + + if (node) + { + nodes.push_back(node); + } + else + { + printf("%s\n", QString("ERROR: Could not load file " + directory.absoluteFilePath(files[i]) + "\n").toStdString().c_str()); + } + } + +// QStringList dirs = directory.entryList(QDir::Dirs); +// // Add models in subfolders +// for (int i = 0; i < dirs.size(); ++i) +// { +// // Handling the current directory +// QStringList currFiles = QDir(dirs[i]).entryList(QStringList("*.ac"), QDir::Files); + +// // Load the file +// osg::ref_ptr node = +// osgDB::readNodeFile(directory.absoluteFilePath(currFiles.first()).toStdString().c_str()); + +// if (node) +// { + +// nodes.push_back(node); +// } +// else +// { +// printf(QString("ERROR: Could not load file " + directory.absoluteFilePath(files[i]) + "\n").toStdString().c_str()); +// } +// } + + return nodes; +} + +void +Pixhawk3DWidget::buildLayout(void) +{ + QComboBox* frameComboBox = new QComboBox(this); + frameComboBox->addItem("Global"); + frameComboBox->addItem("Local"); + frameComboBox->setFixedWidth(70); + + QCheckBox* gridCheckBox = new QCheckBox(this); + gridCheckBox->setText("Grid"); + gridCheckBox->setChecked(displayGrid); + + QCheckBox* trailCheckBox = new QCheckBox(this); + trailCheckBox->setText("Trail"); + trailCheckBox->setChecked(displayTrail); + + QCheckBox* waypointsCheckBox = new QCheckBox(this); + waypointsCheckBox->setText("Waypoints"); + waypointsCheckBox->setChecked(displayWaypoints); + + QLabel* mapLabel = new QLabel("Map", this); + QComboBox* mapComboBox = new QComboBox(this); + mapComboBox->addItem("None"); + mapComboBox->addItem("Map (Google)"); + mapComboBox->addItem("Satellite (Google)"); + + QLabel* modelLabel = new QLabel("Vehicle", this); + QComboBox* modelComboBox = new QComboBox(this); + for (int i = 0; i < vehicleModels.size(); ++i) + { + modelComboBox->addItem(vehicleModels[i]->getName().c_str()); + } + + QPushButton* recenterButton = new QPushButton(this); + recenterButton->setText("Recenter Camera"); + + QCheckBox* followCameraCheckBox = new QCheckBox(this); + followCameraCheckBox->setText("Follow Camera"); + followCameraCheckBox->setChecked(followCamera); + + QGridLayout* layout = new QGridLayout(this); + layout->setMargin(0); + layout->setSpacing(2); + layout->addWidget(frameComboBox, 0, 10); + layout->addWidget(gridCheckBox, 2, 0); + layout->addWidget(trailCheckBox, 2, 1); + layout->addWidget(waypointsCheckBox, 2, 2); + layout->addItem(new QSpacerItem(10, 0, QSizePolicy::Expanding, QSizePolicy::Expanding), 2, 3); + layout->addWidget(mapLabel, 2, 4); + layout->addWidget(mapComboBox, 2, 5); + layout->addWidget(modelLabel, 2, 6); + layout->addWidget(modelComboBox, 2, 7); + layout->addItem(new QSpacerItem(10, 0, QSizePolicy::Expanding, QSizePolicy::Expanding), 2, 8); + layout->addWidget(recenterButton, 2, 9); + layout->addWidget(followCameraCheckBox, 2, 10); + layout->setRowStretch(0, 1); + layout->setRowStretch(1, 100); + layout->setRowStretch(2, 1); + setLayout(layout); + + connect(frameComboBox, SIGNAL(currentIndexChanged(QString)), + this, SLOT(selectFrame(QString))); + connect(gridCheckBox, SIGNAL(stateChanged(int)), + this, SLOT(showGrid(int))); + connect(trailCheckBox, SIGNAL(stateChanged(int)), + this, SLOT(showTrail(int))); + connect(waypointsCheckBox, SIGNAL(stateChanged(int)), + this, SLOT(showWaypoints(int))); + connect(mapComboBox, SIGNAL(currentIndexChanged(int)), + this, SLOT(selectMapSource(int))); + connect(modelComboBox, SIGNAL(currentIndexChanged(int)), + this, SLOT(selectVehicleModel(int))); + connect(recenterButton, SIGNAL(clicked()), this, SLOT(recenter())); + connect(followCameraCheckBox, SIGNAL(stateChanged(int)), + this, SLOT(toggleFollowCamera(int))); +} + +void +Pixhawk3DWidget::display(void) +{ + if (uas == NULL) + { + return; + } + + double robotX, robotY, robotZ, robotRoll, robotPitch, robotYaw; + QString utmZone; + getPose(robotX, robotY, robotZ, robotRoll, robotPitch, robotYaw, utmZone); + + if (lastRobotX == 0.0f && lastRobotY == 0.0f && lastRobotZ == 0.0f) + { + lastRobotX = robotX; + lastRobotY = robotY; + lastRobotZ = robotZ; + + recenterCamera(robotY, robotX, -robotZ); + + return; + } + + if (followCamera) + { + double dx = robotY - lastRobotY; + double dy = robotX - lastRobotX; + double dz = lastRobotZ - robotZ; + + moveCamera(dx, dy, dz); + } + + robotPosition->setPosition(osg::Vec3d(robotY, robotX, -robotZ)); + robotAttitude->setAttitude(osg::Quat(-robotYaw, osg::Vec3d(0.0f, 0.0f, 1.0f), + robotPitch, osg::Vec3d(1.0f, 0.0f, 0.0f), + robotRoll, osg::Vec3d(0.0f, 1.0f, 0.0f))); + + if (displayTrail) + { + updateTrail(robotX, robotY, robotZ); + } + + if (frame == MAV_FRAME_GLOBAL && displayImagery) + { + updateImagery(robotX, robotY, robotZ, utmZone); + } + + if (displayWaypoints) + { + updateWaypoints(); + } + +#ifdef QGC_LIBFREENECT_ENABLED + if (enableFreenect && (displayRGBD2D || displayRGBD3D)) + { + updateRGBD(); + } +#endif + updateHUD(robotX, robotY, robotZ, robotRoll, robotPitch, robotYaw, utmZone); + + // set node visibility + + rollingMap->setChildValue(gridNode, displayGrid); + rollingMap->setChildValue(trailNode, displayTrail); + rollingMap->setChildValue(mapNode, displayImagery); + rollingMap->setChildValue(waypointGroupNode, displayWaypoints); + if (enableFreenect) + { + egocentricMap->setChildValue(rgbd3DNode, displayRGBD3D); + } + hudGroup->setChildValue(rgb2DGeode, displayRGBD2D); + hudGroup->setChildValue(depth2DGeode, displayRGBD2D); + + lastRobotX = robotX; + lastRobotY = robotY; + lastRobotZ = robotZ; +} + +void +Pixhawk3DWidget::keyPressEvent(QKeyEvent* event) +{ + if (!event->text().isEmpty()) + { + switch (*(event->text().toAscii().data())) + { + case '1': + displayRGBD2D = !displayRGBD2D; + break; + case '2': + displayRGBD3D = !displayRGBD3D; + break; + case 'c': case 'C': + enableRGBDColor = !enableRGBDColor; + break; + } + } + + Q3DWidget::keyPressEvent(event); +} + +void +Pixhawk3DWidget::mousePressEvent(QMouseEvent* event) +{ + if (event->button() == Qt::LeftButton) + { + if (mode == MOVE_WAYPOINT_MODE) + { + setWaypoint(); + mode = DEFAULT_MODE; + + return; + } + + if (event->modifiers() == Qt::ShiftModifier) + { + selectedWpIndex = findWaypoint(event->x(), event->y()); + if (selectedWpIndex == -1) + { + showInsertWaypointMenu(event->globalPos()); + } + else + { + showEditWaypointMenu(event->globalPos()); + } + + return; + } + } + + Q3DWidget::mousePressEvent(event); +} + +void +Pixhawk3DWidget::getPose(double& x, double& y, double& z, + double& roll, double& pitch, double& yaw, + QString& utmZone) +{ + if (uas) + { + if (frame == MAV_FRAME_GLOBAL) + { + double latitude = uas->getLatitude(); + double longitude = uas->getLongitude(); + double altitude = uas->getAltitude(); + + Imagery::LLtoUTM(latitude, longitude, x, y, utmZone); + z = -altitude; + } + else if (frame == MAV_FRAME_LOCAL) + { + x = uas->getLocalX(); + y = uas->getLocalY(); + z = uas->getLocalZ(); + } + + + roll = uas->getRoll(); + pitch = uas->getPitch(); + yaw = uas->getYaw(); + } +} + +void +Pixhawk3DWidget::getPose(double& x, double& y, double& z, + double& roll, double& pitch, double& yaw) +{ + QString utmZone; + getPose(x, y, z, roll, pitch, yaw); +} + +void +Pixhawk3DWidget::getPosition(double& x, double& y, double& z, + QString& utmZone) +{ + if (uas) + { + if (frame == MAV_FRAME_GLOBAL) + { + double latitude = uas->getLatitude(); + double longitude = uas->getLongitude(); + double altitude = uas->getAltitude(); + + Imagery::LLtoUTM(latitude, longitude, x, y, utmZone); + z = -altitude; + } + else if (frame == MAV_FRAME_LOCAL) + { + x = uas->getLocalX(); + y = uas->getLocalY(); + z = uas->getLocalZ(); + } + } +} + +void +Pixhawk3DWidget::getPosition(double& x, double& y, double& z) +{ + QString utmZone; + getPosition(x, y, z, utmZone); +} + +osg::ref_ptr +Pixhawk3DWidget::createGrid(void) +{ + osg::ref_ptr geode(new osg::Geode()); + osg::ref_ptr fineGeometry(new osg::Geometry()); + osg::ref_ptr coarseGeometry(new osg::Geometry()); + geode->addDrawable(fineGeometry); + geode->addDrawable(coarseGeometry); + + float radius = 10.0f; + float resolution = 0.25f; + + osg::ref_ptr fineCoords(new osg::Vec3Array); + osg::ref_ptr coarseCoords(new osg::Vec3Array); + + // draw a 20m x 20m grid with 0.25m resolution + for (float i = -radius; i <= radius; i += resolution) + { + if (fabsf(i - floor(i + 0.5f)) < 0.01f) + { + coarseCoords->push_back(osg::Vec3(i, -radius, 0.0f)); + coarseCoords->push_back(osg::Vec3(i, radius, 0.0f)); + coarseCoords->push_back(osg::Vec3(-radius, i, 0.0f)); + coarseCoords->push_back(osg::Vec3(radius, i, 0.0f)); + } + else + { + fineCoords->push_back(osg::Vec3(i, -radius, 0.0f)); + fineCoords->push_back(osg::Vec3(i, radius, 0.0f)); + fineCoords->push_back(osg::Vec3(-radius, i, 0.0f)); + fineCoords->push_back(osg::Vec3(radius, i, 0.0f)); + } + } + + fineGeometry->setVertexArray(fineCoords); + coarseGeometry->setVertexArray(coarseCoords); + + osg::ref_ptr color(new osg::Vec4Array); + color->push_back(osg::Vec4(0.5f, 0.5f, 0.5f, 1.0f)); + fineGeometry->setColorArray(color); + coarseGeometry->setColorArray(color); + fineGeometry->setColorBinding(osg::Geometry::BIND_OVERALL); + coarseGeometry->setColorBinding(osg::Geometry::BIND_OVERALL); + + fineGeometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINES, + 0, fineCoords->size())); + coarseGeometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINES, 0, + coarseCoords->size())); + + osg::ref_ptr fineStateset(new osg::StateSet); + osg::ref_ptr fineLinewidth(new osg::LineWidth()); + fineLinewidth->setWidth(0.25f); + fineStateset->setAttributeAndModes(fineLinewidth, osg::StateAttribute::ON); + fineStateset->setMode(GL_LIGHTING, osg::StateAttribute::OFF); + fineGeometry->setStateSet(fineStateset); + + osg::ref_ptr coarseStateset(new osg::StateSet); + osg::ref_ptr coarseLinewidth(new osg::LineWidth()); + coarseLinewidth->setWidth(2.0f); + coarseStateset->setAttributeAndModes(coarseLinewidth, osg::StateAttribute::ON); + coarseStateset->setMode(GL_LIGHTING, osg::StateAttribute::OFF); + coarseGeometry->setStateSet(coarseStateset); + + return geode; +} + +osg::ref_ptr +Pixhawk3DWidget::createTrail(void) +{ + osg::ref_ptr geode(new osg::Geode()); + trailGeometry = new osg::Geometry(); + trailGeometry->setUseDisplayList(false); + geode->addDrawable(trailGeometry.get()); + + trailVertices = new osg::Vec3dArray; + trailGeometry->setVertexArray(trailVertices); + + trailDrawArrays = new osg::DrawArrays(osg::PrimitiveSet::LINE_STRIP); + trailGeometry->addPrimitiveSet(trailDrawArrays); + + osg::ref_ptr color(new osg::Vec4Array); + color->push_back(osg::Vec4(1.0f, 0.0f, 0.0f, 1.0f)); + trailGeometry->setColorArray(color); + trailGeometry->setColorBinding(osg::Geometry::BIND_OVERALL); + + osg::ref_ptr stateset(new osg::StateSet); + osg::ref_ptr linewidth(new osg::LineWidth()); + linewidth->setWidth(1.0f); + stateset->setAttributeAndModes(linewidth, osg::StateAttribute::ON); + stateset->setMode(GL_LIGHTING, osg::StateAttribute::OFF); + trailGeometry->setStateSet(stateset); + + return geode; +} + +osg::ref_ptr +Pixhawk3DWidget::createMap(void) +{ + return osg::ref_ptr(new Imagery()); +} + +osg::ref_ptr +Pixhawk3DWidget::createRGBD3D(void) +{ + int frameSize = 640 * 480; + + osg::ref_ptr geode(new osg::Geode); + osg::ref_ptr geometry(new osg::Geometry); + + osg::ref_ptr vertices(new osg::Vec3Array(frameSize)); + geometry->setVertexArray(vertices); + + osg::ref_ptr colors(new osg::Vec4Array(frameSize)); + geometry->setColorArray(colors); + geometry->setColorBinding(osg::Geometry::BIND_PER_VERTEX); + geometry->setUseDisplayList(false); + + geode->addDrawable(geometry); + + return geode; +} + +void +Pixhawk3DWidget::setupHUD(void) +{ + osg::ref_ptr hudColors(new osg::Vec4Array); + hudColors->push_back(osg::Vec4(0.0f, 0.0f, 0.0f, 0.5f)); + hudColors->push_back(osg::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); + + hudBackgroundGeometry = new osg::Geometry; + hudBackgroundGeometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::POLYGON, + 0, 4)); + hudBackgroundGeometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::POLYGON, + 4, 4)); + hudBackgroundGeometry->setColorArray(hudColors); + hudBackgroundGeometry->setColorBinding(osg::Geometry::BIND_PER_PRIMITIVE_SET); + hudBackgroundGeometry->setUseDisplayList(false); + + statusText = new osgText::Text; + statusText->setCharacterSize(11); + statusText->setFont("images/Vera.ttf"); + statusText->setAxisAlignment(osgText::Text::SCREEN); + statusText->setColor(osg::Vec4(255, 255, 255, 1)); + + resizeHUD(); + + osg::ref_ptr statusGeode = new osg::Geode; + statusGeode->addDrawable(hudBackgroundGeometry); + statusGeode->addDrawable(statusText); + hudGroup->addChild(statusGeode); + + rgbImage = new osg::Image; + rgb2DGeode = new ImageWindowGeode("RGB Image", + osg::Vec4(0.0f, 0.0f, 0.1f, 1.0f), + rgbImage); + hudGroup->addChild(rgb2DGeode); + + depthImage = new osg::Image; + depth2DGeode = new ImageWindowGeode("Depth Image", + osg::Vec4(0.0f, 0.0f, 0.1f, 1.0f), + depthImage); + hudGroup->addChild(depth2DGeode); + + scaleGeode = new HUDScaleGeode; + scaleGeode->init(); + hudGroup->addChild(scaleGeode); +} + +void +Pixhawk3DWidget::resizeHUD(void) +{ + int topHUDHeight = 25; + int bottomHUDHeight = 25; + + osg::Vec3Array* vertices = static_cast(hudBackgroundGeometry->getVertexArray()); + if (vertices == NULL || vertices->size() != 8) + { + osg::ref_ptr newVertices = new osg::Vec3Array(8); + hudBackgroundGeometry->setVertexArray(newVertices); + + vertices = static_cast(hudBackgroundGeometry->getVertexArray()); + } + + (*vertices)[0] = osg::Vec3(0, height(), -1); + (*vertices)[1] = osg::Vec3(width(), height(), -1); + (*vertices)[2] = osg::Vec3(width(), height() - topHUDHeight, -1); + (*vertices)[3] = osg::Vec3(0, height() - topHUDHeight, -1); + (*vertices)[4] = osg::Vec3(0, 0, -1); + (*vertices)[5] = osg::Vec3(width(), 0, -1); + (*vertices)[6] = osg::Vec3(width(), bottomHUDHeight, -1); + (*vertices)[7] = osg::Vec3(0, bottomHUDHeight, -1); + + statusText->setPosition(osg::Vec3(10, height() - 15, -1.5)); + + if (rgb2DGeode.valid() && depth2DGeode.valid()) + { + int windowWidth = (width() - 20) / 2; + int windowHeight = 3 * windowWidth / 4; + rgb2DGeode->setAttributes(10, (height() - windowHeight) / 2, + windowWidth, windowHeight); + depth2DGeode->setAttributes(width() / 2, (height() - windowHeight) / 2, + windowWidth, windowHeight); + } +} + +void +Pixhawk3DWidget::updateHUD(double robotX, double robotY, double robotZ, + double robotRoll, double robotPitch, double robotYaw, + const QString& utmZone) +{ + resizeHUD(); + + std::pair cursorPosition = + getGlobalCursorPosition(getMouseX(), getMouseY(), -robotZ); + + std::ostringstream oss; + oss.setf(std::ios::fixed, std::ios::floatfield); + oss.precision(2); + if (frame == MAV_FRAME_GLOBAL) + { + double latitude, longitude; + Imagery::UTMtoLL(robotX, robotY, utmZone, latitude, longitude); + + double cursorLatitude, cursorLongitude; + Imagery::UTMtoLL(cursorPosition.first, cursorPosition.second, + utmZone, cursorLatitude, cursorLongitude); + + oss.precision(6); + oss << " Lat = " << latitude << + " Lon = " << longitude; + + oss.precision(2); + oss << " Altitude = " << -robotZ << + " r = " << robotRoll << + " p = " << robotPitch << + " y = " << robotYaw; + + oss.precision(6); + oss << " Cursor [" << cursorLatitude << + " " << cursorLongitude << "]"; + } + else if (frame == MAV_FRAME_LOCAL) + { + oss << " x = " << robotX << + " y = " << robotY << + " z = " << robotZ << + " r = " << robotRoll << + " p = " << robotPitch << + " y = " << robotYaw << + " Cursor [" << cursorPosition.first << + " " << cursorPosition.second << "]"; + } + + statusText->setText(oss.str()); + + bool darkBackground = true; + if (mapNode->getImageryType() == Imagery::GOOGLE_MAP) + { + darkBackground = false; + } + + scaleGeode->update(height(), cameraParams.cameraFov, + cameraManipulator->getDistance(), darkBackground); +} + +void +Pixhawk3DWidget::updateTrail(double robotX, double robotY, double robotZ) +{ + if (robotX == 0.0f || robotY == 0.0f || robotZ == 0.0f) + { + return; + } + + bool addToTrail = false; + if (trail.size() > 0) + { + if (fabs(robotX - trail[trail.size() - 1].x()) > 0.01f || + fabs(robotY - trail[trail.size() - 1].y()) > 0.01f || + fabs(robotZ - trail[trail.size() - 1].z()) > 0.01f) + { + addToTrail = true; + } + } + else + { + addToTrail = true; + } + + if (addToTrail) + { + osg::Vec3d p(robotX, robotY, robotZ); + if (trail.size() == trail.capacity()) + { + memcpy(trail.data(), trail.data() + 1, + (trail.size() - 1) * sizeof(osg::Vec3d)); + trail[trail.size() - 1] = p; + } + else + { + trail.append(p); + } + } + + trailVertices->clear(); + for (int i = 0; i < trail.size(); ++i) + { + trailVertices->push_back(osg::Vec3d(trail[i].y() - robotY, + trail[i].x() - robotX, + -(trail[i].z() - robotZ))); + } + + trailDrawArrays->setFirst(0); + trailDrawArrays->setCount(trailVertices->size()); + trailGeometry->dirtyBound(); +} + +void +Pixhawk3DWidget::updateImagery(double originX, double originY, double originZ, + const QString& zone) +{ + if (mapNode->getImageryType() == Imagery::BLANK_MAP) + { + return; + } + + double viewingRadius = cameraManipulator->getDistance() * 10.0; + if (viewingRadius < 100.0) + { + viewingRadius = 100.0; + } + + double minResolution = 0.25; + double centerResolution = cameraManipulator->getDistance() / 50.0; + double maxResolution = 1048576.0; + + Imagery::ImageryType imageryType = mapNode->getImageryType(); + switch (imageryType) + { + case Imagery::GOOGLE_MAP: + minResolution = 0.25; + break; + case Imagery::GOOGLE_SATELLITE: + minResolution = 0.5; + break; + case Imagery::SWISSTOPO_SATELLITE: + minResolution = 0.25; + maxResolution = 0.25; + break; + default: {} + } + + double resolution = minResolution; + while (resolution * 2.0 < centerResolution) + { + resolution *= 2.0; + } + if (resolution > maxResolution) + { + resolution = maxResolution; + } + + mapNode->draw3D(viewingRadius, + resolution, + cameraManipulator->getCenter().y(), + cameraManipulator->getCenter().x(), + originX, + originY, + originZ, + zone); + + // prefetch map tiles + if (resolution / 2.0 >= minResolution) + { + mapNode->prefetch3D(viewingRadius / 2.0, + resolution / 2.0, + cameraManipulator->getCenter().y(), + cameraManipulator->getCenter().x(), + zone); + } + if (resolution * 2.0 <= maxResolution) + { + mapNode->prefetch3D(viewingRadius * 2.0, + resolution * 2.0, + cameraManipulator->getCenter().y(), + cameraManipulator->getCenter().x(), + zone); + } + + mapNode->update(); +} + +void +Pixhawk3DWidget::updateWaypoints(void) +{ + waypointGroupNode->update(frame, uas); +} + +float colormap_jet[128][3] = +{ + {0.0f,0.0f,0.53125f}, + {0.0f,0.0f,0.5625f}, + {0.0f,0.0f,0.59375f}, + {0.0f,0.0f,0.625f}, + {0.0f,0.0f,0.65625f}, + {0.0f,0.0f,0.6875f}, + {0.0f,0.0f,0.71875f}, + {0.0f,0.0f,0.75f}, + {0.0f,0.0f,0.78125f}, + {0.0f,0.0f,0.8125f}, + {0.0f,0.0f,0.84375f}, + {0.0f,0.0f,0.875f}, + {0.0f,0.0f,0.90625f}, + {0.0f,0.0f,0.9375f}, + {0.0f,0.0f,0.96875f}, + {0.0f,0.0f,1.0f}, + {0.0f,0.03125f,1.0f}, + {0.0f,0.0625f,1.0f}, + {0.0f,0.09375f,1.0f}, + {0.0f,0.125f,1.0f}, + {0.0f,0.15625f,1.0f}, + {0.0f,0.1875f,1.0f}, + {0.0f,0.21875f,1.0f}, + {0.0f,0.25f,1.0f}, + {0.0f,0.28125f,1.0f}, + {0.0f,0.3125f,1.0f}, + {0.0f,0.34375f,1.0f}, + {0.0f,0.375f,1.0f}, + {0.0f,0.40625f,1.0f}, + {0.0f,0.4375f,1.0f}, + {0.0f,0.46875f,1.0f}, + {0.0f,0.5f,1.0f}, + {0.0f,0.53125f,1.0f}, + {0.0f,0.5625f,1.0f}, + {0.0f,0.59375f,1.0f}, + {0.0f,0.625f,1.0f}, + {0.0f,0.65625f,1.0f}, + {0.0f,0.6875f,1.0f}, + {0.0f,0.71875f,1.0f}, + {0.0f,0.75f,1.0f}, + {0.0f,0.78125f,1.0f}, + {0.0f,0.8125f,1.0f}, + {0.0f,0.84375f,1.0f}, + {0.0f,0.875f,1.0f}, + {0.0f,0.90625f,1.0f}, + {0.0f,0.9375f,1.0f}, + {0.0f,0.96875f,1.0f}, + {0.0f,1.0f,1.0f}, + {0.03125f,1.0f,0.96875f}, + {0.0625f,1.0f,0.9375f}, + {0.09375f,1.0f,0.90625f}, + {0.125f,1.0f,0.875f}, + {0.15625f,1.0f,0.84375f}, + {0.1875f,1.0f,0.8125f}, + {0.21875f,1.0f,0.78125f}, + {0.25f,1.0f,0.75f}, + {0.28125f,1.0f,0.71875f}, + {0.3125f,1.0f,0.6875f}, + {0.34375f,1.0f,0.65625f}, + {0.375f,1.0f,0.625f}, + {0.40625f,1.0f,0.59375f}, + {0.4375f,1.0f,0.5625f}, + {0.46875f,1.0f,0.53125f}, + {0.5f,1.0f,0.5f}, + {0.53125f,1.0f,0.46875f}, + {0.5625f,1.0f,0.4375f}, + {0.59375f,1.0f,0.40625f}, + {0.625f,1.0f,0.375f}, + {0.65625f,1.0f,0.34375f}, + {0.6875f,1.0f,0.3125f}, + {0.71875f,1.0f,0.28125f}, + {0.75f,1.0f,0.25f}, + {0.78125f,1.0f,0.21875f}, + {0.8125f,1.0f,0.1875f}, + {0.84375f,1.0f,0.15625f}, + {0.875f,1.0f,0.125f}, + {0.90625f,1.0f,0.09375f}, + {0.9375f,1.0f,0.0625f}, + {0.96875f,1.0f,0.03125f}, + {1.0f,1.0f,0.0f}, + {1.0f,0.96875f,0.0f}, + {1.0f,0.9375f,0.0f}, + {1.0f,0.90625f,0.0f}, + {1.0f,0.875f,0.0f}, + {1.0f,0.84375f,0.0f}, + {1.0f,0.8125f,0.0f}, + {1.0f,0.78125f,0.0f}, + {1.0f,0.75f,0.0f}, + {1.0f,0.71875f,0.0f}, + {1.0f,0.6875f,0.0f}, + {1.0f,0.65625f,0.0f}, + {1.0f,0.625f,0.0f}, + {1.0f,0.59375f,0.0f}, + {1.0f,0.5625f,0.0f}, + {1.0f,0.53125f,0.0f}, + {1.0f,0.5f,0.0f}, + {1.0f,0.46875f,0.0f}, + {1.0f,0.4375f,0.0f}, + {1.0f,0.40625f,0.0f}, + {1.0f,0.375f,0.0f}, + {1.0f,0.34375f,0.0f}, + {1.0f,0.3125f,0.0f}, + {1.0f,0.28125f,0.0f}, + {1.0f,0.25f,0.0f}, + {1.0f,0.21875f,0.0f}, + {1.0f,0.1875f,0.0f}, + {1.0f,0.15625f,0.0f}, + {1.0f,0.125f,0.0f}, + {1.0f,0.09375f,0.0f}, + {1.0f,0.0625f,0.0f}, + {1.0f,0.03125f,0.0f}, + {1.0f,0.0f,0.0f}, + {0.96875f,0.0f,0.0f}, + {0.9375f,0.0f,0.0f}, + {0.90625f,0.0f,0.0f}, + {0.875f,0.0f,0.0f}, + {0.84375f,0.0f,0.0f}, + {0.8125f,0.0f,0.0f}, + {0.78125f,0.0f,0.0f}, + {0.75f,0.0f,0.0f}, + {0.71875f,0.0f,0.0f}, + {0.6875f,0.0f,0.0f}, + {0.65625f,0.0f,0.0f}, + {0.625f,0.0f,0.0f}, + {0.59375f,0.0f,0.0f}, + {0.5625f,0.0f,0.0f}, + {0.53125f,0.0f,0.0f}, + {0.5f,0.0f,0.0f} +}; + +#ifdef QGC_LIBFREENECT_ENABLED +void +Pixhawk3DWidget::updateRGBD(void) +{ + QSharedPointer rgb = freenect->getRgbData(); + if (!rgb.isNull()) + { + rgbImage->setImage(640, 480, 1, + GL_RGB, GL_RGB, GL_UNSIGNED_BYTE, + reinterpret_cast(rgb->data()), + osg::Image::NO_DELETE); + rgbImage->dirty(); + } + + QSharedPointer coloredDepth = freenect->getColoredDepthData(); + if (!coloredDepth.isNull()) + { + depthImage->setImage(640, 480, 1, + GL_RGB, GL_RGB, GL_UNSIGNED_BYTE, + reinterpret_cast(coloredDepth->data()), + osg::Image::NO_DELETE); + depthImage->dirty(); + } + + QSharedPointer< QVector > pointCloud = + freenect->get6DPointCloudData(); + + osg::Geometry* geometry = rgbd3DNode->getDrawable(0)->asGeometry(); + + osg::Vec3Array* vertices = static_cast(geometry->getVertexArray()); + osg::Vec4Array* colors = static_cast(geometry->getColorArray()); + for (int i = 0; i < pointCloud->size(); ++i) + { + double x = pointCloud->at(i).x; + double y = pointCloud->at(i).y; + double z = pointCloud->at(i).z; + (*vertices)[i].set(x, z, -y); + + if (enableRGBDColor) + { + (*colors)[i].set(pointCloud->at(i).r / 255.0f, + pointCloud->at(i).g / 255.0f, + pointCloud->at(i).b / 255.0f, + 1.0f); + } + else + { + double dist = sqrt(x * x + y * y + z * z); + int colorIndex = static_cast(fmin(dist / 7.0 * 127.0, 127.0)); + (*colors)[i].set(colormap_jet[colorIndex][0], + colormap_jet[colorIndex][1], + colormap_jet[colorIndex][2], + 1.0f); + } + } + + if (geometry->getNumPrimitiveSets() == 0) + { + geometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::POINTS, + 0, pointCloud->size())); + } + else + { + osg::DrawArrays* drawarrays = static_cast(geometry->getPrimitiveSet(0)); + drawarrays->setCount(pointCloud->size()); + } +} +#endif + +int +Pixhawk3DWidget::findWaypoint(int mouseX, int mouseY) +{ + if (getSceneData() != NULL) + { + osgUtil::LineSegmentIntersector::Intersections intersections; + + if (computeIntersections(mouseX, height() - mouseY, intersections)) + { + for (osgUtil::LineSegmentIntersector::Intersections::iterator + it = intersections.begin(); it != intersections.end(); it++) + { + for (uint i = 0 ; i < it->nodePath.size(); ++i) + { + std::string nodeName = it->nodePath[i]->getName(); + if (nodeName.substr(0, 2).compare("wp") == 0) + { + qDebug() << nodeName.c_str() << "Got!!"; + return atoi(nodeName.substr(2).c_str()); + } + } + } + } + } + + return -1; +} + +void +Pixhawk3DWidget::showInsertWaypointMenu(const QPoint &cursorPos) +{ + QMenu menu; + menu.addAction("Insert new waypoint", this, SLOT(insertWaypoint())); + menu.addAction("Clear all waypoints", this, SLOT(clearAllWaypoints())); + menu.exec(cursorPos); +} + +void +Pixhawk3DWidget::showEditWaypointMenu(const QPoint &cursorPos) +{ + QMenu menu; + + QString text; + text = QString("Move waypoint %1").arg(QString::number(selectedWpIndex)); + menu.addAction(text, this, SLOT(moveWaypoint())); + + text = QString("Change altitude of waypoint %1").arg(QString::number(selectedWpIndex)); + menu.addAction(text, this, SLOT(setWaypointAltitude())); + + text = QString("Delete waypoint %1").arg(QString::number(selectedWpIndex)); + menu.addAction(text, this, SLOT(deleteWaypoint())); + + menu.addAction("Clear all waypoints", this, SLOT(clearAllWaypoints())); + menu.exec(cursorPos); +} diff --git a/src/ui/map3D/Pixhawk3DWidget.h b/src/ui/map3D/Pixhawk3DWidget.h new file mode 100644 index 0000000000000000000000000000000000000000..2d3b1a57b9f0f14c5c54b8c89b0c2cde452f98c5 --- /dev/null +++ b/src/ui/map3D/Pixhawk3DWidget.h @@ -0,0 +1,169 @@ +///*===================================================================== +// +//QGroundControl Open Source Ground Control Station +// +//(c) 2009, 2010 QGROUNDCONTROL PROJECT +// +//This file is part of the QGROUNDCONTROL project +// +// QGROUNDCONTROL is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// QGROUNDCONTROL is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with QGROUNDCONTROL. If not, see . +// +//======================================================================*/ + +/** + * @file + * @brief Definition of the class Pixhawk3DWidget. + * + * @author Lionel Heng + * + */ + +#ifndef PIXHAWK3DWIDGET_H +#define PIXHAWK3DWIDGET_H + +#include + +#include "HUDScaleGeode.h" +#include "Imagery.h" +#include "ImageWindowGeode.h" +#include "WaypointGroupNode.h" + +#ifdef QGC_LIBFREENECT_ENABLED +#include "Freenect.h" +#endif + +#include "Q3DWidget.h" + +class UASInterface; + +/** + * @brief A 3D View widget which displays vehicle-centric information. + **/ +class Pixhawk3DWidget : public Q3DWidget +{ + Q_OBJECT + +public: + explicit Pixhawk3DWidget(QWidget* parent = 0); + ~Pixhawk3DWidget(); + +public slots: + void setActiveUAS(UASInterface* uas); + +private slots: + void selectFrame(QString text); + void showGrid(int state); + void showTrail(int state); + void showWaypoints(int state); + void selectMapSource(int index); + void selectVehicleModel(int index); + void recenter(void); + void toggleFollowCamera(int state); + + void insertWaypoint(void); + void moveWaypoint(void); + void setWaypoint(void); + void deleteWaypoint(void); + void setWaypointAltitude(void); + void clearAllWaypoints(void); + +protected: + QVector< osg::ref_ptr > findVehicleModels(void); + void buildLayout(void); + virtual void display(void); + virtual void keyPressEvent(QKeyEvent* event); + virtual void mousePressEvent(QMouseEvent* event); + + UASInterface* uas; + +private: + void getPose(double& x, double& y, double& z, + double& roll, double& pitch, double& yaw, + QString& utmZone); + void getPose(double& x, double& y, double& z, + double& roll, double& pitch, double& yaw); + void getPosition(double& x, double& y, double& z, + QString& utmZone); + void getPosition(double& x, double& y, double& z); + + osg::ref_ptr createGrid(void); + osg::ref_ptr createTrail(void); + osg::ref_ptr createMap(void); + osg::ref_ptr createRGBD3D(void); + + void setupHUD(void); + void resizeHUD(void); + + void updateHUD(double robotX, double robotY, double robotZ, + double robotRoll, double robotPitch, double robotYaw, + const QString& utmZone); + void updateTrail(double robotX, double robotY, double robotZ); + void updateImagery(double originX, double originY, double originZ, + const QString& zone); + void updateWaypoints(void); +#ifdef QGC_LIBFREENECT_ENABLED + void updateRGBD(void); +#endif + + int findWaypoint(int mouseX, int mouseY); + void showInsertWaypointMenu(const QPoint& cursorPos); + void showEditWaypointMenu(const QPoint& cursorPos); + + enum Mode { + DEFAULT_MODE, + MOVE_WAYPOINT_MODE + }; + Mode mode; + int selectedWpIndex; + + bool displayGrid; + bool displayTrail; + bool displayImagery; + bool displayWaypoints; + bool displayRGBD2D; + bool displayRGBD3D; + bool enableRGBDColor; + + bool followCamera; + + osg::ref_ptr trailVertices; + QVarLengthArray trail; + + osg::ref_ptr vehicleModel; + osg::ref_ptr hudBackgroundGeometry; + osg::ref_ptr statusText; + osg::ref_ptr scaleGeode; + osg::ref_ptr rgb2DGeode; + osg::ref_ptr depth2DGeode; + osg::ref_ptr rgbImage; + osg::ref_ptr depthImage; + osg::ref_ptr gridNode; + osg::ref_ptr trailNode; + osg::ref_ptr trailGeometry; + osg::ref_ptr trailDrawArrays; + osg::ref_ptr mapNode; + osg::ref_ptr waypointGroupNode; + osg::ref_ptr rgbd3DNode; +#ifdef QGC_LIBFREENECT_ENABLED + QScopedPointer freenect; +#endif + bool enableFreenect; + + QVector< osg::ref_ptr > vehicleModels; + + MAV_FRAME frame; + double lastRobotX, lastRobotY, lastRobotZ; +}; + +#endif // PIXHAWK3DWIDGET_H diff --git a/src/ui/map3D/CheetahGL.cc b/src/ui/map3D/PixhawkCheetahGeode.cc old mode 100755 new mode 100644 similarity index 99% rename from src/ui/map3D/CheetahGL.cc rename to src/ui/map3D/PixhawkCheetahGeode.cc index 01d6ff1ae54bc969f64b3d3968a4019ef3f1bd61..9db5faa4fcc7e5ef213f241c6a9cea18937de9cb --- a/src/ui/map3D/CheetahGL.cc +++ b/src/ui/map3D/PixhawkCheetahGeode.cc @@ -23,22 +23,16 @@ This file is part of the QGROUNDCONTROL project /** * @file - * @brief Generates a display list which renders a Pixhawk Cheetah MAV. + * @brief Generates a OpenSceneGraph geode which renders a + * Pixhawk Cheetah MAV. * * @author Lionel Heng * */ -#include "CheetahGL.h" - -#if (defined __APPLE__) & (defined __MACH__) -#include -#include -#else -#include -#include -#endif +#include "PixhawkCheetahGeode.h" +#include struct sample_MATERIAL { @@ -55,7 +49,7 @@ static sample_MATERIAL materials [1] = { {{0.117647f,0.117647f,0.117647f}, {0.596078f,0.666667f,0.686275f}, {0.301176f,0.301176f,0.301176f}, {0.0f,0.0f,0.0f}, 1.0f,8.0f,-1} //Material #1 }; -// 38747 Verticies +// 38747 Vertices // 0 Texture Coordinates // 22155 Normals // 77848 Triangles @@ -59306,9 +59300,10 @@ static GLfloat normals [22155][3] = { GLfloat textures[1][2]={{0.0f,0.0f}}; /*Material indicies*/ /*{material index,face count}*/ -static int material_ref [1][2] = { -{0,77848} -}; +//static int material_ref [1][2] = { +//{0,77848} +//}; + void MyMaterial(GLenum mode, GLfloat * f, GLfloat alpha) { GLfloat d[4]; @@ -59342,40 +59337,74 @@ void SelectMaterial(int i) }; -GLint generatePixhawkCheetah(float red, float green, float blue) +osg::ref_ptr PixhawkCheetahGeode::_instance; + +PixhawkCheetahGeode::PixhawkCheetahGeode() +{ + +} + +osg::ref_ptr +PixhawkCheetahGeode::instance(void) { - unsigned int i; - int j; + if (!_instance.valid()) + { + _instance = create(1.0f, 1.0f, 1.0f); + } - GLint lid=glGenLists(1); - int mcount=0; - int mindex=0; - glNewList(lid, GL_COMPILE); + return _instance; +} - glColor3f(red, green, blue); +osg::ref_ptr +PixhawkCheetahGeode::create(float red, float green, float blue) +{ + osg::ref_ptr geode(new osg::Geode()); + geode->setName("Pixhawk Bravo"); + osg::ref_ptr geometry(new osg::Geometry()); + geode->addDrawable(geometry.get()); - glBegin (GL_TRIANGLES); - for(i=0;i osgVertices(new osg::Vec3Array); + osg::ref_ptr osgNormals(new osg::Vec3Array); + osg::ref_ptr osgTextures(new osg::Vec2Array); + + unsigned int numFaces = sizeof(face_indicies)/sizeof(face_indicies[0]); + for (unsigned int i = 0; i < numFaces; ++i) + { + osg::ref_ptr face( + new osg::DrawElementsUInt(osg::PrimitiveSet::TRIANGLES, 0)); + + for (int j = 0; j < 3; ++j) { - int vi=face_indicies[i][j]; - int ni=face_indicies[i][j+3];//Normal index - int ti=face_indicies[i][j+6];//Texture index - glNormal3f (normals[ni][0],normals[ni][1],normals[ni][2]); - glTexCoord2f(textures[ti][0],textures[ti][1]); - glVertex3f (vertices[vi][0],vertices[vi][1],vertices[vi][2]); + int vi = face_indicies[i][j]; // Vertice index + int ni = face_indicies[i][j + 3]; // Normal index + int ti = face_indicies[i][j + 6]; // Texture index + + osgVertices->push_back(osg::Vec3(vertices[vi][0], + vertices[vi][1], + vertices[vi][2])); + + osgNormals->push_back(osg::Vec3(normals[ni][0], + normals[ni][1], + normals[ni][2])); + + osgTextures->push_back(osg::Vec2(textures[ti][0], + textures[ti][1])); + + face->push_back(i * 3 + j); } - } - glEnd (); - glEndList(); - return lid; + geometry->addPrimitiveSet(face.get()); + } + + geometry->setVertexArray(osgVertices.get()); + geometry->setNormalArray(osgNormals.get()); + geometry->setTexCoordArray(0, osgTextures.get()); + + osg::ref_ptr colors(new osg::Vec4Array); + colors->push_back(osg::Vec4(red, green, blue, 1.0f)); + + geometry->setColorArray(colors.get()); + geometry->setColorBinding(osg::Geometry::BIND_OVERALL); + + return geode; }; diff --git a/src/ui/map3D/PixhawkCheetahGeode.h b/src/ui/map3D/PixhawkCheetahGeode.h new file mode 100644 index 0000000000000000000000000000000000000000..d2c7a02b2d0f9043857b629754e1b1f3e741290d --- /dev/null +++ b/src/ui/map3D/PixhawkCheetahGeode.h @@ -0,0 +1,69 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Definition of the class PixhawkCheetahGeode. + * + * @author Lionel Heng + * + */ + +#ifndef PIXHAWKCHEETAHGEODE_H_ +#define PIXHAWKCHEETAHGEODE_H_ + +#include + +/** + * @brief The PixhawkCheetahGeode class. + * Generates an OpenSceneGraph geode which renders a Pixhawk Cheetah MAV. + **/ + +class PixhawkCheetahGeode +{ +public: + /** + * Constructor. + */ + PixhawkCheetahGeode(); + + /** + * Get a single instance of the geode. + */ + static osg::ref_ptr instance(void); + +private: + /** + * @brief Creates an OpenSceneGraph geode which renders a Pixhawk Cheetah MAV. + * @param red Red intensity of the MAV model. + * @param green Green intensity of the MAV model. + * @param blue Blue intensity of the MAV model. + * + * @return A smart pointer to the geode. + **/ + static osg::ref_ptr create(float red, float green, float blue); + + static osg::ref_ptr _instance; +}; + +#endif diff --git a/src/ui/map3D/Q3DWidget.cc b/src/ui/map3D/Q3DWidget.cc old mode 100755 new mode 100644 index c3a7370fe475f61a971ca6b48616d53100e4665e..8e3f3b4988e86b75c8c21ed388cd133f2f68251a --- a/src/ui/map3D/Q3DWidget.cc +++ b/src/ui/map3D/Q3DWidget.cc @@ -30,61 +30,38 @@ This file is part of the QGROUNDCONTROL project */ #include "Q3DWidget.h" +#include "QGC.h" -#include - -static const float KEY_ROTATE_AMOUNT = 5.0f; -static const float KEY_MOVE_AMOUNT = 5.0f; -static const float KEY_ZOOM_AMOUNT = 5.0f; +#include +#include +#include +#ifdef Q_OS_MACX +#include +#endif Q3DWidget::Q3DWidget(QWidget* parent) - : QGLWidget(QGLFormat(QGL::Rgba | QGL::DoubleBuffer | QGL:: DepthBuffer | - QGL::StencilBuffer), parent) - , userDisplayFunc(NULL) - , userKeyboardFunc(NULL) - , userMouseFunc(NULL) - , userMotionFunc(NULL) - , userDisplayFuncData(NULL) - , userKeyboardFuncData(NULL) - , userMouseFuncData(NULL) - , userMotionFuncData(NULL) - , windowWidth(0) - , windowHeight(0) - , requestedFps(0.0f) - , lastMouseX(0) - , lastMouseY(0) - , _is3D(true) - , _forceRedraw(false) - , allow2DRotation(true) - , limitCamera(false) - , timerFunc(NULL) - , timerFuncData(NULL) -{ - cameraPose.state = IDLE; - cameraPose.pan = 50.0f; - cameraPose.tilt = 200.0f; - cameraPose.distance = 5.0f; - cameraPose.xOffset = 0.0f; - cameraPose.yOffset = 0.0f; - cameraPose.zOffset = 0.0f; - - cameraPose.xOffset2D = 0.0f; - cameraPose.yOffset2D = 0.0f; - cameraPose.rotation2D = 0.0f; - cameraPose.zoom = 1.0f; - cameraPose.warpX = 1.0f; - cameraPose.warpY = 1.0f; - - cameraParams.zoomSensitivity = 0.05f; - cameraParams.rotateSensitivity = 0.5f; - cameraParams.moveSensitivity = 0.001f; - cameraParams.minZoomRange = 0.5f; + : QGLWidget(parent) + , root(new osg::Group()) + , allocentricMap(new osg::Switch()) + , rollingMap(new osg::Switch()) + , egocentricMap(new osg::Switch()) + , robotPosition(new osg::PositionAttitudeTransform()) + , robotAttitude(new osg::PositionAttitudeTransform()) + , hudGroup(new osg::Switch()) + , hudProjectionMatrix(new osg::Projection) + , fps(30.0f) +{ + // set initial camera parameters + cameraParams.minZoomRange = 2.0f; cameraParams.cameraFov = 30.0f; cameraParams.minClipRange = 1.0f; - cameraParams.maxClipRange = 400.0f; - cameraParams.zoomSensitivity2D = 0.02f; - cameraParams.rotateSensitivity2D = 0.005f; - cameraParams.moveSensitivity2D = 1.0f; + cameraParams.maxClipRange = 10000.0f; + + osgGW = new osgViewer::GraphicsWindowEmbedded(0, 0, width(), height()); + + setThreadingModel(osgViewer::Viewer::SingleThreaded); + + setFocusPolicy(Qt::StrongFocus); } Q3DWidget::~Q3DWidget() @@ -93,255 +70,203 @@ Q3DWidget::~Q3DWidget() } void -Q3DWidget::initialize(int32_t windowX, int32_t windowY, - int32_t windowWidth, int32_t windowHeight, float fps) +Q3DWidget::init(float fps) { - this->windowWidth = windowWidth; - this->windowHeight = windowHeight; + this->fps = fps; - requestedFps = fps; + getCamera()->setGraphicsContext(osgGW); - resize(windowWidth, windowHeight); - move(windowX, windowY); + // manually specify near and far clip planes + getCamera()->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR); + + setLightingMode(osg::View::SKY_LIGHT); - timer.start(static_cast(floorf(1000.0f / requestedFps)), this); + // set up various maps + // allocentric - world map + // rolling - map aligned to the world axes and centered on the robot + // egocentric - vehicle-centric map + root->addChild(allocentricMap); + allocentricMap->addChild(robotPosition); + robotPosition->addChild(rollingMap); + rollingMap->addChild(robotAttitude); + robotAttitude->addChild(egocentricMap); - _is3D = true; -} + setSceneData(root); -void -Q3DWidget::setCameraParams(float zoomSensitivity, float rotateSensitivity, - float moveSensitivity, float minZoomRange, - float cameraFov, float minClipRange, - float maxClipRange) -{ - cameraParams.zoomSensitivity = zoomSensitivity; - cameraParams.rotateSensitivity = rotateSensitivity; - cameraParams.moveSensitivity = moveSensitivity; - cameraParams.minZoomRange = minZoomRange; - cameraParams.cameraFov = cameraFov; - cameraParams.minClipRange = minClipRange; - cameraParams.maxClipRange = maxClipRange; + // set up HUD + root->addChild(createHUD()); - limitCamera = true; - _forceRedraw = true; -} + // set up robot + egocentricMap->addChild(createRobot()); -void -Q3DWidget::setCameraLimit(bool onoff) -{ - limitCamera = onoff; -} + // set up camera control + cameraManipulator = new GCManipulator(); + setCameraManipulator(cameraManipulator); + cameraManipulator->setMinZoomRange(cameraParams.minZoomRange); + cameraManipulator->setDistance(cameraParams.minZoomRange * 2.0); -void -Q3DWidget::set2DCameraParams(float zoomSensitivity2D, - float rotateSensitivity2D, - float moveSensitivity2D) -{ - cameraParams.zoomSensitivity2D = zoomSensitivity2D; - cameraParams.rotateSensitivity2D = rotateSensitivity2D; - cameraParams.moveSensitivity2D = moveSensitivity2D; + connect(&timer, SIGNAL(timeout()), this, SLOT(redraw())); + // DO NOT START TIMER IN INITIALIZATION! IT IS STARTED IN THE SHOW EVENT } -void -Q3DWidget::set3D(bool onoff) +void Q3DWidget::showEvent(QShowEvent* event) { - _is3D = onoff; + // React only to internal (pre/post-display) + // events + Q_UNUSED(event) + timer.start(static_cast(floorf(1000.0f / fps))); } -bool -Q3DWidget::is3D(void) const +void Q3DWidget::hideEvent(QHideEvent* event) { - return _is3D; + // React only to internal (pre/post-display) + // events + Q_UNUSED(event) + timer.stop(); } -void -Q3DWidget::setInitialCameraPos(float pan, float tilt, float range, - float xOffset, float yOffset, float zOffset) +osg::ref_ptr +Q3DWidget::createRobot(void) { - cameraPose.pan = pan; - cameraPose.tilt = tilt; - cameraPose.distance = range; - cameraPose.xOffset = xOffset; - cameraPose.yOffset = yOffset; - cameraPose.zOffset = zOffset; -} + // draw x,y,z-axes + osg::ref_ptr geode(new osg::Geode()); + osg::ref_ptr geometry(new osg::Geometry()); + geode->addDrawable(geometry.get()); -void -Q3DWidget::setInitial2DCameraPos(float xOffset, float yOffset, - float rotation, float zoom) -{ - cameraPose.xOffset2D = xOffset; - cameraPose.yOffset2D = yOffset; - cameraPose.rotation2D = rotation; - cameraPose.zoom = zoom; -} + osg::ref_ptr coords(new osg::Vec3Array(6)); + (*coords)[0] = (*coords)[2] = (*coords)[4] = + osg::Vec3(0.0f, 0.0f, 0.0f); + (*coords)[1] = osg::Vec3(0.15f, 0.0f, 0.0f); + (*coords)[3] = osg::Vec3(0.0f, 0.3f, 0.0f); + (*coords)[5] = osg::Vec3(0.0f, 0.0f, -0.15f); -void -Q3DWidget::setCameraPose(const CameraPose& cameraPose) -{ - this->cameraPose = cameraPose; -} + geometry->setVertexArray(coords); -CameraPose -Q3DWidget::getCameraPose(void) const -{ - return cameraPose; -} + osg::Vec4 redColor(1.0f, 0.0f, 0.0f, 0.0f); + osg::Vec4 greenColor(0.0f, 1.0f, 0.0f, 0.0f); + osg::Vec4 blueColor(0.0f, 0.0f, 1.0f, 0.0f); -void -Q3DWidget::setDisplayFunc(DisplayFunc func, void* clientData) -{ - userDisplayFunc = func; - userDisplayFuncData = clientData; -} + osg::ref_ptr color(new osg::Vec4Array(6)); + (*color)[0] = redColor; + (*color)[1] = redColor; + (*color)[2] = greenColor; + (*color)[3] = greenColor; + (*color)[4] = blueColor; + (*color)[5] = blueColor; -void -Q3DWidget::setKeyboardFunc(KeyboardFunc func, void* clientData) -{ - userKeyboardFunc = func; - userKeyboardFuncData = clientData; -} + geometry->setColorArray(color); + geometry->setColorBinding(osg::Geometry::BIND_PER_VERTEX); -void -Q3DWidget::setMouseFunc(MouseFunc func, void* clientData) -{ - userMouseFunc = func; - userMouseFuncData = clientData; -} + geometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINES, 0, 6)); -void -Q3DWidget::setMotionFunc(MotionFunc func, void* clientData) -{ - userMotionFunc = func; - userMotionFuncData = clientData; + osg::ref_ptr stateset(new osg::StateSet); + osg::ref_ptr linewidth(new osg::LineWidth()); + linewidth->setWidth(3.0f); + stateset->setAttributeAndModes(linewidth, osg::StateAttribute::ON); + stateset->setMode(GL_LIGHTING, osg::StateAttribute::OFF); + geometry->setStateSet(stateset); + + return geode; } -void -Q3DWidget::addTimerFunc(uint32_t msecs, void(*func)(void *), - void* clientData) +osg::ref_ptr +Q3DWidget::createHUD(void) { - timerFunc = func; - timerFuncData = clientData; + hudProjectionMatrix->setMatrix(osg::Matrix::ortho(0.0, width(), + 0.0, height(), + -10.0, 10.0)); - QTimer::singleShot(msecs, this, SLOT(userTimer())); -} + osg::ref_ptr hudModelViewMatrix( + new osg::MatrixTransform); + hudModelViewMatrix->setMatrix(osg::Matrix::identity()); + hudModelViewMatrix->setReferenceFrame(osg::Transform::ABSOLUTE_RF); -void -Q3DWidget::userTimer(void) -{ - if (timerFunc) - { - timerFunc(timerFuncData); - } -} + hudProjectionMatrix->addChild(hudModelViewMatrix); + hudModelViewMatrix->addChild(hudGroup); -void -Q3DWidget::forceRedraw(void) -{ - _forceRedraw = true; -} + osg::ref_ptr hudStateSet(new osg::StateSet); + hudGroup->setStateSet(hudStateSet); + hudStateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF); + hudStateSet->setMode(GL_LIGHTING, osg::StateAttribute::OFF); + hudStateSet->setMode(GL_BLEND, osg::StateAttribute::ON); + hudStateSet->setRenderingHint(osg::StateSet::TRANSPARENT_BIN); + hudStateSet->setRenderBinDetails(11, "RenderBin"); -void -Q3DWidget::set2DWarping(float warpX, float warpY) -{ - cameraPose.warpX = warpX; - cameraPose.warpY = warpY; + return hudProjectionMatrix; } void -Q3DWidget::recenter(void) +Q3DWidget::setCameraParams(float minZoomRange, float cameraFov, + float minClipRange, float maxClipRange) { - cameraPose.xOffset = 0.0f; - cameraPose.yOffset = 0.0f; - cameraPose.zOffset = 0.0f; + cameraParams.minZoomRange = minZoomRange; + cameraParams.cameraFov = cameraFov; + cameraParams.minClipRange = minClipRange; + cameraParams.maxClipRange = maxClipRange; } void -Q3DWidget::recenter2D(void) +Q3DWidget::moveCamera(double dx, double dy, double dz) { - cameraPose.xOffset2D = 0.0f; - cameraPose.yOffset2D = 0.0f; + cameraManipulator->move(dx, dy, dz); } void -Q3DWidget::set2DRotation(bool onoff) +Q3DWidget::recenterCamera(double x, double y, double z) { - allow2DRotation = onoff; + cameraManipulator->setCenter(osg::Vec3d(x, y, z)); } void -Q3DWidget::setDisplayMode2D(void) +Q3DWidget::setDisplayMode3D(void) { - glDisable(GL_DEPTH_TEST); - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - glOrtho(0.0, static_cast(getWindowWidth()), - 0.0, static_cast(getWindowHeight()), - -10.0, 10.0); - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); -} + double aspect = static_cast(width()) + / static_cast(height()); -std::pair -Q3DWidget::getPositionIn3DMode(int32_t mouseX, int32_t mouseY) -{ - float cx = windowWidth / 2.0f; - float cy = windowHeight / 2.0f; - float pan = d2r(-90.0f - cameraPose.pan); - float tilt = d2r(90.0f - cameraPose.tilt); - float d = cameraPose.distance; - float f = cy / tanf(d2r(cameraParams.cameraFov / 2.0f)); - - float px = (mouseX - cx) * cosf(tilt) * d / (cosf(tilt) * f + sinf(tilt) - * mouseY - sinf(tilt) * cy); - float py = -(mouseY - cy) * d / (cosf(tilt) * f + sinf(tilt) * mouseY - - sinf(tilt) * cy); - - std::pair sceneCoords; - sceneCoords.first = px * cosf(pan) + py * sinf(pan) + cameraPose.xOffset; - sceneCoords.second = -px * sinf(pan) + py * cosf(pan) + cameraPose.yOffset; - - return sceneCoords; + getCamera()->setViewport(new osg::Viewport(0, 0, width(), height())); + getCamera()->setProjectionMatrixAsPerspective(cameraParams.cameraFov, + aspect, + cameraParams.minClipRange, + cameraParams.maxClipRange); } -std::pair -Q3DWidget::getPositionIn2DMode(int32_t mouseX, int32_t mouseY) +std::pair +Q3DWidget::getGlobalCursorPosition(int32_t cursorX, int32_t cursorY, double z) { - float dx = (mouseX - windowWidth / 2.0f) / cameraPose.zoom; - float dy = (windowHeight / 2.0f - mouseY) / cameraPose.zoom; - float ctheta = cosf(-cameraPose.rotation2D); - float stheta = sinf(-cameraPose.rotation2D); + osgUtil::LineSegmentIntersector::Intersections intersections; - std::pair coords; - coords.first = cameraPose.xOffset2D + ctheta * dx - stheta * dy; - coords.second = cameraPose.yOffset2D + stheta * dx + ctheta * dy; + // normalize cursor position to value between -1 and 1 + double x = -1.0f + static_cast(2 * cursorX) + / static_cast(width()); + double y = -1.0f + static_cast(2 * (height() - cursorY)) + / static_cast(height()); - return coords; -} + // compute matrix which transforms screen coordinates to world coordinates + osg::Matrixd m = getCamera()->getViewMatrix() + * getCamera()->getProjectionMatrix(); + osg::Matrixd invM = osg::Matrixd::inverse(m); -int -Q3DWidget::getWindowWidth(void) -{ - return windowWidth; -} + osg::Vec3d nearPoint = osg::Vec3d(x, y, -1.0) * invM; + osg::Vec3d farPoint = osg::Vec3d(x, y, 1.0) * invM; -int -Q3DWidget::getWindowHeight(void) -{ - return windowHeight; -} + osg::ref_ptr line = + new osg::LineSegment(nearPoint, farPoint); -int -Q3DWidget::getLastMouseX(void) -{ - return lastMouseX; + osg::Plane p(osg::Vec3d(0.0, 0.0, 1.0), osg::Vec3d(0.0, 0.0, z)); + + osg::Vec3d projectedPoint; + getPlaneLineIntersection(p.asVec4(), *line, projectedPoint); + + return std::make_pair(projectedPoint.y(), projectedPoint.x()); } -int -Q3DWidget::getLastMouseY(void) +void +Q3DWidget::redraw(void) { - return lastMouseY; +#if (QGC_EVENTLOOP_DEBUG) + qDebug() << "EVENTLOOP:" << __FILE__ << __LINE__; +#endif + updateGL(); } int @@ -356,680 +281,269 @@ Q3DWidget::getMouseY(void) return mapFromGlobal(cursor().pos()).y(); } - void -Q3DWidget::rotateCamera(float dx, float dy) +Q3DWidget::resizeGL(int width, int height) { - cameraPose.pan += dx * cameraParams.rotateSensitivity; - cameraPose.tilt += dy * cameraParams.rotateSensitivity; - if (limitCamera) - { - if (cameraPose.tilt < 180.5f) - { - cameraPose.tilt = 180.5f; - } - else if (cameraPose.tilt > 269.5f) - { - cameraPose.tilt = 269.5f; - } - } -} + hudProjectionMatrix->setMatrix(osg::Matrix::ortho(0.0, width, + 0.0, height, + -10.0, 10.0)); -void -Q3DWidget::zoomCamera(float dy) -{ - cameraPose.distance -= - dy * cameraParams.zoomSensitivity * cameraPose.distance; - if (cameraPose.distance < cameraParams.minZoomRange) - { - cameraPose.distance = cameraParams.minZoomRange; - } + osgGW->getEventQueue()->windowResize(0, 0, width, height); + osgGW->resized(0 , 0, width, height); } void -Q3DWidget::moveCamera(float dx, float dy) -{ - cameraPose.xOffset += - -dy * cosf(d2r(cameraPose.pan)) * cameraParams.moveSensitivity - * cameraPose.distance; - cameraPose.yOffset += - -dy * sinf(d2r(cameraPose.pan)) * cameraParams.moveSensitivity - * cameraPose.distance; - cameraPose.xOffset += dx * cosf(d2r(cameraPose.pan - 90.0f)) - * cameraParams.moveSensitivity * cameraPose.distance; - cameraPose.yOffset += dx * sinf(d2r(cameraPose.pan - 90.0f)) - * cameraParams.moveSensitivity * cameraPose.distance; -} - -void -Q3DWidget::rotateCamera2D(float dx) -{ - if (allow2DRotation) - { - cameraPose.rotation2D += dx * cameraParams.rotateSensitivity2D; - } -} - -void -Q3DWidget::zoomCamera2D(float dx) -{ - cameraPose.zoom += dx * cameraParams.zoomSensitivity2D * cameraPose.zoom; - if (cameraPose.zoom > 1e7f) - { - cameraPose.zoom = 1e7f; - } - if (cameraPose.zoom < 1e-7f) - { - cameraPose.zoom = 1e-7f; - } -} - -void -Q3DWidget::moveCamera2D(float dx, float dy) -{ - float scaledX = dx / cameraPose.zoom; - float scaledY = dy / cameraPose.zoom; - - cameraPose.xOffset2D -= (scaledX * cosf(-cameraPose.rotation2D) - + scaledY * sinf(-cameraPose.rotation2D)) / cameraPose.warpX - * cameraParams.moveSensitivity2D; - cameraPose.yOffset2D -= (scaledX * sinf(-cameraPose.rotation2D) - - scaledY * cosf(-cameraPose.rotation2D)) / cameraPose.warpY - * cameraParams.moveSensitivity2D; -} - -void Q3DWidget::switchTo3DMode(void) +Q3DWidget::paintGL(void) { - // setup camera view - float cpan = d2r(cameraPose.pan); - float ctilt = d2r(cameraPose.tilt); - float cameraX = cameraPose.distance * cosf(cpan) * cosf(ctilt); - float cameraY = cameraPose.distance * sinf(cpan) * cosf(ctilt); - float cameraZ = cameraPose.distance * sinf(ctilt); setDisplayMode3D(); - glViewport(0, 0, static_cast(windowWidth), - static_cast(windowHeight)); - gluLookAt(cameraX + cameraPose.xOffset, cameraY + cameraPose.yOffset, - cameraZ + cameraPose.zOffset, cameraPose.xOffset, - cameraPose.yOffset, cameraPose.zOffset, 0.0, 0.0, 1.0); -} -void -Q3DWidget::setDisplayMode3D() -{ - float aspect = static_cast(getWindowWidth()) / - static_cast(getWindowHeight()); - - glEnable(GL_DEPTH_TEST); - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - gluPerspective(cameraParams.cameraFov, aspect, - cameraParams.minClipRange, cameraParams.maxClipRange); - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - glScalef(-1.0f, -1.0f, 1.0f); -} + getCamera()->setClearColor(osg::Vec4f(0.0f, 0.0f, 0.0f, 0.0f)); + getCamera()->setClearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); -float -Q3DWidget::r2d(float angle) const -{ - return angle * 57.295779513082320876f; -} + display(); -float -Q3DWidget::d2r(float angle) const -{ - return angle * 0.0174532925199432957692f; + frame(); } void -Q3DWidget::initializeGL(void) +Q3DWidget::display(void) { - float lightAmbient[] = {0.0f, 0.0f, 0.0f, 0.0f}; - float lightDiffuse[] = {1.0f, 1.0f, 1.0f, 1.0f}; - float lightSpecular[] = {1.0f, 1.0f, 1.0f, 1.0f}; - float lightPosition[] = {0.0f, 0.0f, 100.0f, 0.0f}; - - glEnable(GL_DEPTH_TEST); - glShadeModel(GL_SMOOTH); - - glLightfv(GL_LIGHT0, GL_AMBIENT, lightAmbient); - glLightfv(GL_LIGHT0, GL_DIFFUSE, lightDiffuse); - glLightfv(GL_LIGHT0, GL_SPECULAR, lightSpecular); - glLightfv(GL_LIGHT0, GL_POSITION, lightPosition); - glEnable(GL_LIGHT0); - glDisable(GL_LIGHTING); - glEnable(GL_NORMALIZE); + } void -Q3DWidget::paintGL(void) +Q3DWidget::keyPressEvent(QKeyEvent* event) { - if (_is3D) - { - // setup camera view - switchTo3DMode(); - } - else + QWidget::keyPressEvent(event); + if (event->isAccepted()) { - setDisplayMode2D(); - // do camera control - glTranslatef(static_cast(windowWidth) / 2.0f, - static_cast(windowHeight) / 2.0f, - 0.0f); - glScalef(cameraPose.zoom, cameraPose.zoom, 1.0f); - glRotatef(r2d(cameraPose.rotation2D), 0.0f, 0.0f, 1.0f); - glScalef(cameraPose.warpX, cameraPose.warpY, 1.0f); - glTranslatef(-cameraPose.xOffset2D, -cameraPose.yOffset2D, 0.0f); + return; } - // turn on smooth lines - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glEnable(GL_LINE_SMOOTH); - - glClearColor(0.0f, 0.0f, 0.0f, 0.0f); - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glLineWidth(1.0f); - - if (userDisplayFunc) + if (event->text().isEmpty()) { - userDisplayFunc(userDisplayFuncData); - } - glFlush(); -} - -void -Q3DWidget::resizeGL(int32_t width, int32_t height) -{ - glViewport(0, 0, width, height); - - windowWidth = width; - windowHeight = height; - - if (_is3D) - { - setDisplayMode3D(); + osgGW->getEventQueue()->keyPress(convertKey(event->key())); } else { - setDisplayMode2D(); + osgGW->getEventQueue()->keyPress( + static_cast( + *(event->text().toAscii().data()))); } } void -Q3DWidget::keyPressEvent(QKeyEvent* event) +Q3DWidget::keyReleaseEvent(QKeyEvent* event) { - float dx = 0.0f, dy = 0.0f; - - Qt::KeyboardModifiers modifiers = event->modifiers(); - if (_is3D) + QWidget::keyReleaseEvent(event); + if (event->isAccepted()) { - if (modifiers & Qt::ControlModifier) - { - switch (event->key()) - { - case Qt::Key_Left: - dx = -KEY_ROTATE_AMOUNT; - dy = 0.0f; - break; - case Qt::Key_Right: - dx = KEY_ROTATE_AMOUNT; - dy = 0.0f; - break; - case Qt::Key_Up: - dx = 0.0f; - dy = KEY_ROTATE_AMOUNT; - break; - case Qt::Key_Down: - dx = 0.0f; - dy = -KEY_ROTATE_AMOUNT; - break; - default: - QWidget::keyPressEvent(event); - } - if (dx != 0.0f || dy != 0.0f) - { - rotateCamera(dx, dy); - } - } - else if (modifiers & Qt::AltModifier) - { - switch (event->key()) - { - case Qt::Key_Up: - dy = KEY_ZOOM_AMOUNT; - break; - case Qt::Key_Down: - dy = -KEY_ZOOM_AMOUNT; - break; - default: - QWidget::keyPressEvent(event); - } - if (dy != 0.0f) - { - zoomCamera(dy); - } - } - else - { - switch (event->key()) - { - case Qt::Key_Left: - dx = KEY_MOVE_AMOUNT; - dy = 0.0f; - break; - case Qt::Key_Right: - dx = -KEY_MOVE_AMOUNT; - dy = 0.0f; - break; - case Qt::Key_Up: - dx = 0.0f; - dy = -KEY_MOVE_AMOUNT; - break; - case Qt::Key_Down: - dx = 0.0f; - dy = KEY_MOVE_AMOUNT; - break; - default: - QWidget::keyPressEvent(event); - } - if (dx != 0.0f || dy != 0.0f) - { - moveCamera(dx, dy); - } - } + return; } - else + if (event->text().isEmpty()) { - if (modifiers & Qt::ControlModifier) - { - switch (event->key()) - { - case Qt::Key_Left: - dx = KEY_ROTATE_AMOUNT; - dy = 0.0f; - break; - case Qt::Key_Right: - dx = -KEY_ROTATE_AMOUNT; - dy = 0.0f; - break; - default: - QWidget::keyPressEvent(event); - } - if (dx != 0.0f) - { - rotateCamera2D(dx); - } - } - else if (modifiers & Qt::AltModifier) - { - switch (event->key()) - { - case Qt::Key_Up: - dy = KEY_ZOOM_AMOUNT; - break; - case Qt::Key_Down: - dy = -KEY_ZOOM_AMOUNT; - break; - default: - QWidget::keyPressEvent(event); - } - if (dy != 0.0f) - { - zoomCamera2D(dy); - } - } - else - { - switch (event->key()) - { - case Qt::Key_Left: - dx = KEY_MOVE_AMOUNT; - dy = 0.0f; - break; - case Qt::Key_Right: - dx = -KEY_MOVE_AMOUNT; - dy = 0.0f; - break; - case Qt::Key_Up: - dx = 0.0f; - dy = KEY_MOVE_AMOUNT; - break; - case Qt::Key_Down: - dx = 0.0f; - dy = -KEY_MOVE_AMOUNT; - break; - default: - QWidget::keyPressEvent(event); - } - if (dx != 0.0f || dy != 0.0f) - { - moveCamera2D(dx, dy); - } - } + osgGW->getEventQueue()->keyRelease(convertKey(event->key())); } - - _forceRedraw = true; - - if (userKeyboardFunc) + else { - if (event->text().isEmpty()) - { - userKeyboardFunc(0, userKeyboardFuncData); - } - else - { - userKeyboardFunc(event->text().at(0).toAscii(), - userKeyboardFuncData); - } + osgGW->getEventQueue()->keyRelease( + static_cast( + *(event->text().toAscii().data()))); } } void Q3DWidget::mousePressEvent(QMouseEvent* event) { - Qt::KeyboardModifiers modifiers = event->modifiers(); - - if (!(modifiers & (Qt::ControlModifier | Qt::AltModifier))) + int button = 0; + switch (event->button()) { - lastMouseX = event->x(); - lastMouseY = event->y(); - if (event->button() == Qt::LeftButton) - { - cameraPose.state = ROTATING; - } - else if (event->button() == Qt::MidButton) - { - cameraPose.state = MOVING; - } - } - - _forceRedraw = true; - - if (userMouseFunc) - { - userMouseFunc(event->button(), MOUSE_STATE_DOWN, event->x(), event->y(), - userMouseFuncData); + case Qt::LeftButton: + button = 1; + break; + case Qt::MidButton: + button = 2; + break; + case Qt::RightButton: + button = 3; + break; + case Qt::NoButton: + button = 0; + break; + default: + {} } + osgGW->getEventQueue()->mouseButtonPress(event->x(), event->y(), button); } void Q3DWidget::mouseReleaseEvent(QMouseEvent* event) { - Qt::KeyboardModifiers modifiers = event->modifiers(); - - if (!(modifiers & (Qt::ControlModifier | Qt::AltModifier))) + int button = 0; + switch (event->button()) { - cameraPose.state = IDLE; - } - - _forceRedraw = true; - - if (userMouseFunc) - { - userMouseFunc(event->button(), MOUSE_STATE_UP, event->x(), event->y(), - userMouseFuncData); + case Qt::LeftButton: + button = 1; + break; + case Qt::MidButton: + button = 2; + break; + case Qt::RightButton: + button = 3; + break; + case Qt::NoButton: + button = 0; + break; + default: + {} } + osgGW->getEventQueue()->mouseButtonRelease(event->x(), event->y(), button); } void Q3DWidget::mouseMoveEvent(QMouseEvent* event) { - int32_t dx = event->x() - lastMouseX; - int32_t dy = event->y() - lastMouseY; - - if (_is3D) - { - if (cameraPose.state == ROTATING) - { - rotateCamera(static_cast(dx), static_cast(dy)); - } - else if (cameraPose.state == MOVING) - { - moveCamera(static_cast(dx), static_cast(dy)); - } - else if (cameraPose.state == ZOOMING) - { - zoomCamera(static_cast(dy)); - } - } - else - { - if (cameraPose.state == ROTATING) - { - if (event->x() > windowWidth / 2) - { - dy *= -1; - } - - rotateCamera2D(static_cast(dx)); - } - else if (cameraPose.state == MOVING) - { - moveCamera2D(static_cast(dx), static_cast(dy)); - } - else if (cameraPose.state == ZOOMING) - { - zoomCamera2D(static_cast(dy)); - } - } - - lastMouseX = event->x(); - lastMouseY = event->y(); - _forceRedraw = true; - - if (userMotionFunc) - { - userMotionFunc(event->x(), event->y(), userMotionFuncData); - } + osgGW->getEventQueue()->mouseMotion(event->x(), event->y()); } void Q3DWidget::wheelEvent(QWheelEvent* event) { - if (_is3D) - { - zoomCamera(static_cast(event->delta()) / 40.0f); - } - else - { - zoomCamera2D(static_cast(event->delta()) / 40.0f); - } - - _forceRedraw = true; + osgGW->getEventQueue()->mouseScroll((event->delta() > 0) ? + osgGA::GUIEventAdapter::SCROLL_UP : + osgGA::GUIEventAdapter::SCROLL_DOWN); } -void -Q3DWidget::timerEvent(QTimerEvent* event) +osgGA::GUIEventAdapter::KeySymbol +Q3DWidget::convertKey(int key) const { - if (event->timerId() == timer.timerId()) + switch (key) { - if (_forceRedraw) - { - updateGL(); - _forceRedraw = false; - } + case Qt::Key_Space : return osgGA::GUIEventAdapter::KEY_Space; + case Qt::Key_Backspace : return osgGA::GUIEventAdapter::KEY_BackSpace; + case Qt::Key_Tab : return osgGA::GUIEventAdapter::KEY_Tab; + case Qt::Key_Clear : return osgGA::GUIEventAdapter::KEY_Clear; + case Qt::Key_Return : return osgGA::GUIEventAdapter::KEY_Return; + case Qt::Key_Enter : return osgGA::GUIEventAdapter::KEY_KP_Enter; + case Qt::Key_Pause : return osgGA::GUIEventAdapter::KEY_Pause; + case Qt::Key_ScrollLock : return osgGA::GUIEventAdapter::KEY_Scroll_Lock; + case Qt::Key_SysReq : return osgGA::GUIEventAdapter::KEY_Sys_Req; + case Qt::Key_Escape : return osgGA::GUIEventAdapter::KEY_Escape; + case Qt::Key_Delete : return osgGA::GUIEventAdapter::KEY_Delete; + case Qt::Key_Home : return osgGA::GUIEventAdapter::KEY_Home; + case Qt::Key_Left : return osgGA::GUIEventAdapter::KEY_Left; + case Qt::Key_Up : return osgGA::GUIEventAdapter::KEY_Up; + case Qt::Key_Right : return osgGA::GUIEventAdapter::KEY_Right; + case Qt::Key_Down : return osgGA::GUIEventAdapter::KEY_Down; + case Qt::Key_PageUp : return osgGA::GUIEventAdapter::KEY_Page_Up; + case Qt::Key_PageDown : return osgGA::GUIEventAdapter::KEY_Page_Down; + case Qt::Key_End : return osgGA::GUIEventAdapter::KEY_End; + case Qt::Key_Select : return osgGA::GUIEventAdapter::KEY_Select; + case Qt::Key_Print : return osgGA::GUIEventAdapter::KEY_Print; + case Qt::Key_Execute : return osgGA::GUIEventAdapter::KEY_Execute; + case Qt::Key_Insert : return osgGA::GUIEventAdapter::KEY_Insert; + case Qt::Key_Menu : return osgGA::GUIEventAdapter::KEY_Menu; + case Qt::Key_Cancel : return osgGA::GUIEventAdapter::KEY_Cancel; + case Qt::Key_Help : return osgGA::GUIEventAdapter::KEY_Help; + case Qt::Key_Mode_switch : return osgGA::GUIEventAdapter::KEY_Mode_switch; + case Qt::Key_NumLock : return osgGA::GUIEventAdapter::KEY_Num_Lock; + case Qt::Key_Equal : return osgGA::GUIEventAdapter::KEY_KP_Equal; + case Qt::Key_Asterisk : return osgGA::GUIEventAdapter::KEY_KP_Multiply; + case Qt::Key_Plus : return osgGA::GUIEventAdapter::KEY_KP_Add; + case Qt::Key_Minus : return osgGA::GUIEventAdapter::KEY_KP_Subtract; + case Qt::Key_Comma : return osgGA::GUIEventAdapter::KEY_KP_Decimal; + case Qt::Key_Slash : return osgGA::GUIEventAdapter::KEY_KP_Divide; + case Qt::Key_0 : return osgGA::GUIEventAdapter::KEY_KP_0; + case Qt::Key_1 : return osgGA::GUIEventAdapter::KEY_KP_1; + case Qt::Key_2 : return osgGA::GUIEventAdapter::KEY_KP_2; + case Qt::Key_3 : return osgGA::GUIEventAdapter::KEY_KP_3; + case Qt::Key_4 : return osgGA::GUIEventAdapter::KEY_KP_4; + case Qt::Key_5 : return osgGA::GUIEventAdapter::KEY_KP_5; + case Qt::Key_6 : return osgGA::GUIEventAdapter::KEY_KP_6; + case Qt::Key_7 : return osgGA::GUIEventAdapter::KEY_KP_7; + case Qt::Key_8 : return osgGA::GUIEventAdapter::KEY_KP_8; + case Qt::Key_9 : return osgGA::GUIEventAdapter::KEY_KP_9; + case Qt::Key_F1 : return osgGA::GUIEventAdapter::KEY_F1; + case Qt::Key_F2 : return osgGA::GUIEventAdapter::KEY_F2; + case Qt::Key_F3 : return osgGA::GUIEventAdapter::KEY_F3; + case Qt::Key_F4 : return osgGA::GUIEventAdapter::KEY_F4; + case Qt::Key_F5 : return osgGA::GUIEventAdapter::KEY_F5; + case Qt::Key_F6 : return osgGA::GUIEventAdapter::KEY_F6; + case Qt::Key_F7 : return osgGA::GUIEventAdapter::KEY_F7; + case Qt::Key_F8 : return osgGA::GUIEventAdapter::KEY_F8; + case Qt::Key_F9 : return osgGA::GUIEventAdapter::KEY_F9; + case Qt::Key_F10 : return osgGA::GUIEventAdapter::KEY_F10; + case Qt::Key_F11 : return osgGA::GUIEventAdapter::KEY_F11; + case Qt::Key_F12 : return osgGA::GUIEventAdapter::KEY_F12; + case Qt::Key_F13 : return osgGA::GUIEventAdapter::KEY_F13; + case Qt::Key_F14 : return osgGA::GUIEventAdapter::KEY_F14; + case Qt::Key_F15 : return osgGA::GUIEventAdapter::KEY_F15; + case Qt::Key_F16 : return osgGA::GUIEventAdapter::KEY_F16; + case Qt::Key_F17 : return osgGA::GUIEventAdapter::KEY_F17; + case Qt::Key_F18 : return osgGA::GUIEventAdapter::KEY_F18; + case Qt::Key_F19 : return osgGA::GUIEventAdapter::KEY_F19; + case Qt::Key_F20 : return osgGA::GUIEventAdapter::KEY_F20; + case Qt::Key_F21 : return osgGA::GUIEventAdapter::KEY_F21; + case Qt::Key_F22 : return osgGA::GUIEventAdapter::KEY_F22; + case Qt::Key_F23 : return osgGA::GUIEventAdapter::KEY_F23; + case Qt::Key_F24 : return osgGA::GUIEventAdapter::KEY_F24; + case Qt::Key_F25 : return osgGA::GUIEventAdapter::KEY_F25; + case Qt::Key_F26 : return osgGA::GUIEventAdapter::KEY_F26; + case Qt::Key_F27 : return osgGA::GUIEventAdapter::KEY_F27; + case Qt::Key_F28 : return osgGA::GUIEventAdapter::KEY_F28; + case Qt::Key_F29 : return osgGA::GUIEventAdapter::KEY_F29; + case Qt::Key_F30 : return osgGA::GUIEventAdapter::KEY_F30; + case Qt::Key_F31 : return osgGA::GUIEventAdapter::KEY_F31; + case Qt::Key_F32 : return osgGA::GUIEventAdapter::KEY_F32; + case Qt::Key_F33 : return osgGA::GUIEventAdapter::KEY_F33; + case Qt::Key_F34 : return osgGA::GUIEventAdapter::KEY_F34; + case Qt::Key_F35 : return osgGA::GUIEventAdapter::KEY_F35; + case Qt::Key_Shift : return osgGA::GUIEventAdapter::KEY_Shift_L; +// case Qt::Key_Shift_R : return osgGA::GUIEventAdapter::KEY_Shift_R; + case Qt::Key_Control : return osgGA::GUIEventAdapter::KEY_Control_L; +// case Qt::Key_Control_R : return osgGA::GUIEventAdapter::KEY_Control_R; + case Qt::Key_CapsLock : return osgGA::GUIEventAdapter::KEY_Caps_Lock; + case Qt::Key_Meta : return osgGA::GUIEventAdapter::KEY_Meta_L; +// case Qt::Key_Meta_R: return osgGA::GUIEventAdapter::KEY_Meta_R; + case Qt::Key_Alt : return osgGA::GUIEventAdapter::KEY_Alt_L; +// case Qt::Key_Alt_R : return osgGA::GUIEventAdapter::KEY_Alt_R; + case Qt::Key_Super_L : return osgGA::GUIEventAdapter::KEY_Super_L; + case Qt::Key_Super_R : return osgGA::GUIEventAdapter::KEY_Super_R; + case Qt::Key_Hyper_L : return osgGA::GUIEventAdapter::KEY_Hyper_L; + case Qt::Key_Hyper_R : return osgGA::GUIEventAdapter::KEY_Hyper_R; + default: + return static_cast(key); } - else - { - QObject::timerEvent(event); - } -} - -void -Q3DWidget::closeEvent(QCloseEvent *) -{ - // exit application } -void -Q3DWidget::wireSphere(double radius, int slices, int stacks) const -{ - static GLUquadricObj* quadObj; - // Make sure quad object exists - if (!quadObj) quadObj = gluNewQuadric(); - gluQuadricDrawStyle(quadObj, GLU_LINE); - gluQuadricNormals(quadObj, GLU_SMOOTH); - /* If we ever changed/used the texture or orientation state - of quadObj, we'd need to change it to the defaults here - with gluQuadricTexture and/or gluQuadricOrientation. */ - gluSphere(quadObj, radius, slices, stacks); -} - -void -Q3DWidget::solidSphere(double radius, int slices, int stacks) const -{ - static GLUquadricObj* quadObj; - // Make sure quad object exists - if (!quadObj) quadObj = gluNewQuadric(); - gluQuadricDrawStyle(quadObj, GLU_FILL); - gluQuadricNormals(quadObj, GLU_SMOOTH); - /* If we ever changed/used the texture or orientation state - of quadObj, we'd need to change it to the defaults here - with gluQuadricTexture and/or gluQuadricOrientation. */ - gluSphere(quadObj, radius, slices, stacks); -} - -void -Q3DWidget::wireCone(double base, double height, int slices, int stacks) const +bool +Q3DWidget::getPlaneLineIntersection(const osg::Vec4d& plane, + const osg::LineSegment& line, + osg::Vec3d& isect) { - static GLUquadricObj* quadObj; - // Make sure quad object exists - if (!quadObj) quadObj = gluNewQuadric(); - gluQuadricDrawStyle(quadObj, GLU_LINE); - gluQuadricNormals(quadObj, GLU_SMOOTH); - /* If we ever changed/used the texture or orientation state - of quadObj, we'd need to change it to the defaults here - with gluQuadricTexture and/or gluQuadricOrientation. */ - gluCylinder(quadObj, base, 0.0, height, slices, stacks); -} + osg::Vec3d lineStart = line.start(); + osg::Vec3d lineEnd = line.end(); -void -Q3DWidget::solidCone(double base, double height, int slices, int stacks) const -{ - static GLUquadricObj* quadObj; - // Make sure quad object exists - if (!quadObj) quadObj = gluNewQuadric(); - gluQuadricDrawStyle(quadObj, GLU_FILL); - gluQuadricNormals(quadObj, GLU_SMOOTH); - /* If we ever changed/used the texture or orientation state - of quadObj, we'd need to change it to the defaults here - with gluQuadricTexture and/or gluQuadricOrientation. */ - gluCylinder(quadObj, base, 0.0, height, slices, stacks); -} + const double deltaX = lineEnd.x() - lineStart.x(); + const double deltaY = lineEnd.y() - lineStart.y(); + const double deltaZ = lineEnd.z() - lineStart.z(); -void -Q3DWidget::drawBox(float size, GLenum type) const -{ - static GLfloat n[6][3] = + const double denominator = plane[0] * deltaX + + plane[1] * deltaY + + plane[2] * deltaZ; + if (!denominator) { - {-1.0, 0.0, 0.0}, - {0.0, 1.0, 0.0}, - {1.0, 0.0, 0.0}, - {0.0, -1.0, 0.0}, - {0.0, 0.0, 1.0}, - {0.0, 0.0, -1.0} - }; - static GLint faces[6][4] = - { - {0, 1, 2, 3}, - {3, 2, 6, 7}, - {7, 6, 5, 4}, - {4, 5, 1, 0}, - {5, 6, 2, 1}, - {7, 4, 0, 3} - }; - GLfloat v[8][3]; - GLint i; - - v[0][0] = v[1][0] = v[2][0] = v[3][0] = -size / 2; - v[4][0] = v[5][0] = v[6][0] = v[7][0] = size / 2; - v[0][1] = v[1][1] = v[4][1] = v[5][1] = -size / 2; - v[2][1] = v[3][1] = v[6][1] = v[7][1] = size / 2; - v[0][2] = v[3][2] = v[4][2] = v[7][2] = -size / 2; - v[1][2] = v[2][2] = v[5][2] = v[6][2] = size / 2; - - for (i = 5; i >= 0; i--) - { - glBegin(type); - glNormal3fv(&n[i][0]); - glVertex3fv(&v[faces[i][0]][0]); - glVertex3fv(&v[faces[i][1]][0]); - glVertex3fv(&v[faces[i][2]][0]); - glVertex3fv(&v[faces[i][3]][0]); - glEnd(); + return false; } -} -void -Q3DWidget::wireCube(double size) const -{ - drawBox(size, GL_LINE_LOOP); -} + const double C = (plane[0] * lineStart.x() + + plane[1] * lineStart.y() + + plane[2] * lineStart.z() + + plane[3]) / denominator; -void -Q3DWidget::solidCube(double size) const -{ - drawBox(size, GL_QUADS); -} + isect.x() = lineStart.x() - deltaX * C; + isect.y() = lineStart.y() - deltaY * C; + isect.z() = lineStart.z() - deltaZ * C; -void -Q3DWidget::doughnut(float r, float R, int nsides, int rings) const -{ - int i, j; - GLfloat theta, phi, theta1; - GLfloat cosTheta, sinTheta; - GLfloat cosTheta1, sinTheta1; - GLfloat ringDelta, sideDelta; - - ringDelta = 2.0 * M_PI / rings; - sideDelta = 2.0 * M_PI / nsides; - - theta = 0.0; - cosTheta = 1.0; - sinTheta = 0.0; - for (i = rings - 1; i >= 0; i--) - { - theta1 = theta + ringDelta; - cosTheta1 = cos(theta1); - sinTheta1 = sin(theta1); - glBegin(GL_QUAD_STRIP); - phi = 0.0; - for (j = nsides; j >= 0; j--) - { - GLfloat cosPhi, sinPhi, dist; - - phi += sideDelta; - cosPhi = cos(phi); - sinPhi = sin(phi); - dist = R + r * cosPhi; - - glNormal3f(cosTheta1 * cosPhi, -sinTheta1 * cosPhi, sinPhi); - glVertex3f(cosTheta1 * dist, -sinTheta1 * dist, r * sinPhi); - glNormal3f(cosTheta * cosPhi, -sinTheta * cosPhi, sinPhi); - glVertex3f(cosTheta * dist, -sinTheta * dist, r * sinPhi); - } - glEnd(); - theta = theta1; - cosTheta = cosTheta1; - sinTheta = sinTheta1; - } -} - -void -Q3DWidget::wireTorus(double innerRadius, double outerRadius, - int nsides, int rings) const -{ - glPushAttrib(GL_POLYGON_BIT); - glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); - doughnut(innerRadius, outerRadius, nsides, rings); - glPopAttrib(); -} - -void -Q3DWidget::solidTorus(double innerRadius, double outerRadius, - int nsides, int rings) const -{ - doughnut(innerRadius, outerRadius, nsides, rings); + return true; } diff --git a/src/ui/map3D/Q3DWidget.h b/src/ui/map3D/Q3DWidget.h index 947deefccaca47b8b337b4c13620825794e2690b..3ba2d6f233dd345240c0bd8b8035d0e67cca14fc 100644 --- a/src/ui/map3D/Q3DWidget.h +++ b/src/ui/map3D/Q3DWidget.h @@ -29,198 +29,237 @@ This file is part of the QGROUNDCONTROL project * */ -#ifndef Q3DWIDGET_H_ -#define Q3DWIDGET_H_ +#ifndef Q3DWIDGET_H +#define Q3DWIDGET_H -#include -#include #include -#include - -//class GLUquadricObj; - -enum CameraState -{ - IDLE = 0, - ROTATING = 1, - MOVING = 2, - ZOOMING = 3 -}; - -struct CameraPose -{ - CameraState state; - float pan, tilt, distance; - float xOffset, yOffset, zOffset; - float xOffset2D, yOffset2D, rotation2D, zoom, warpX, warpY; -}; - -struct CameraParams -{ - float zoomSensitivity; - float rotateSensitivity; - float moveSensitivity; - - float minZoomRange; - float cameraFov; - float minClipRange; - float maxClipRange; - - float zoomSensitivity2D; - float rotateSensitivity2D; - float moveSensitivity2D; -}; +#include -enum MouseState -{ - MOUSE_STATE_UP = 0, - MOUSE_STATE_DOWN = 1 -}; +#include +#include +#include +#include -typedef void (*DisplayFunc)(void *); -typedef void (*KeyboardFunc)(char, void *); -typedef void (*MouseFunc)(Qt::MouseButton, MouseState, int32_t, int32_t, void *); -typedef void (*MotionFunc)(int32_t, int32_t, void *); +#include "GCManipulator.h" /** - * @brief A base 3D widget which executes OpenGL commands. - **/ -class Q3DWidget: public QGLWidget + * @brief Definition of the class Q3DWidget. + * The Q3DWidget widget uses the OpenSceneGraph framework to render + * user-defined objects in 3D. The world coordinate system in OSG is defined: + * - x-axis points to the east + * - y-axis points to the north + * - z-axis points upwards + */ +class Q3DWidget : public QGLWidget, public osgViewer::Viewer { Q_OBJECT public: - explicit Q3DWidget(QWidget* parent); - ~Q3DWidget(); - - void initialize(int32_t windowX, int32_t windowY, - int32_t windowWidth, int32_t windowHeight, float fps); - - void setCameraParams(float zoomSensitivity, float rotateSensitivity, - float moveSensitivity, float minZoomRange, - float cameraFov, float minClipRange, - float maxClipRange); - - void setCameraLimit(bool onoff); - - void set2DCameraParams(float zoomSensitivity, - float rotateSensitivity, - float moveSensitivity); - - void set3D(bool onoff); - bool is3D(void) const; - - void setInitialCameraPos(float pan, float tilt, float range, - float xOffset, float yOffset, float zOffset); - void setInitial2DCameraPos(float xOffset, float yOffset, - float rotation, float zoom); - void setCameraPose(const CameraPose& cameraPose); - CameraPose getCameraPose(void) const; - - void setDisplayFunc(DisplayFunc func, void* clientData); - void setKeyboardFunc(KeyboardFunc func, void* clientData); - void setMouseFunc(MouseFunc func, void* clientData); - void setMotionFunc(MotionFunc func, void* clientData); - void addTimerFunc(uint32_t msecs, void(*func)(void *), - void* clientData); - - void forceRedraw(void); - - void set2DWarping(float warpX, float warpY); - - void recenter(void); - void recenter2D(void); - - void set2DRotation(bool onoff); - - void setDisplayMode2D(void); - - std::pair getPositionIn3DMode(int32_t mouseX, - int32_t mouseY); - - std::pair getPositionIn2DMode(int32_t mouseX, - int32_t mouseY); - - int32_t getWindowWidth(void); - int32_t getWindowHeight(void); - int32_t getLastMouseX(void); - int32_t getLastMouseY(void); - int32_t getMouseX(void); - int32_t getMouseY(void); + /** + * Constructor. + * @param parent Parent widget. + */ + Q3DWidget(QWidget* parent = 0); + + /** + * Destructor. + */ + virtual ~Q3DWidget(); + + /** + * @brief Initializes the widget. + * @param fps Frames per second. + */ + void init(float fps); + + /** + * @brief Sets the camera parameters. + * @param minZoomRange Minimum distance from the viewer to the camera. + * @param cameraFov Camera field of view. + * @param minClipRange Distance from the viewer to the near clipping range. + * @param maxClipRange Distance from the viewer to the far clipping range. + */ + void setCameraParams(float minZoomRange, float cameraFov, + float minClipRange, float maxClipRange); + + /** + * @brief Moves the camera by [dx,dy,dz]. + * @param dx Translation along the x-axis in meters. + * @param dy Translation along the y-axis in meters. + * @param dz Translation along the z-axis in meters. + */ + void moveCamera(double dx, double dy, double dz); + + /** + * @brief Recenters the camera at (x,y,z). + */ + void recenterCamera(double x, double y, double z); + + /** + * @brief Sets up 3D display mode. + */ + void setDisplayMode3D(void); -private Q_SLOTS: - void userTimer(void); + /** + * @brief Gets the world 3D coordinates of the cursor. + * The function projects the 2D cursor position to a line in world space + * and returns the intersection of that line and the horizontal plane + * which contains the point (0, 0, z); + * @param cursorX x-coordinate of the cursor. + * @param cursorY y-coordinate of the cursor. + * @param z z-coordinate of the point in the plane. + * @return A pair of values containing the world 3D cursor coordinates. + */ + std::pair getGlobalCursorPosition(int32_t cursorX, + int32_t cursorY, + double z); + +protected slots: + /** + * @brief Updates the widget. + */ + void redraw(void); protected: - void rotateCamera(float dx, float dy); - void zoomCamera(float dy); - void moveCamera(float dx, float dy); - void rotateCamera2D(float dx); - void zoomCamera2D(float dx); - void moveCamera2D(float dx, float dy); - - void switchTo3DMode(void); - void setDisplayMode3D(void); - float r2d(float angle) const; - float d2r(float angle) const; - - void wireSphere(double radius, int slices, int stacks) const; - void solidSphere(double radius, int slices, int stacks) const; - void wireCone(double base, double height, int slices, int stacks) const; - void solidCone(double base, double height, int slices, int stacks) const; - void drawBox(float size, GLenum type) const; - void wireCube(double size) const; - void solidCube(double size) const; - void doughnut(float r, float R, int nsides, int rings) const; - void wireTorus(double innerRadius, double outerRadius, - int nsides, int rings) const; - void solidTorus(double innerRadius, double outerRadius, - int nsides, int rings) const; - - GLUquadricObj* quadObj; - - // QGLWidget events - void initializeGL(void); - void paintGL(void); - void resizeGL(int32_t width, int32_t height); - - // Qt events - void keyPressEvent(QKeyEvent* event); - void mousePressEvent(QMouseEvent* event); - void mouseReleaseEvent(QMouseEvent* event); - void mouseMoveEvent(QMouseEvent* event); - void wheelEvent(QWheelEvent *wheel); - void timerEvent(QTimerEvent* event); - void closeEvent(QCloseEvent* event); - - DisplayFunc userDisplayFunc; - KeyboardFunc userKeyboardFunc; - MouseFunc userMouseFunc; - MotionFunc userMotionFunc; - - void* userDisplayFuncData; - void* userKeyboardFuncData; - void* userMouseFuncData; - void* userMotionFuncData; - - int32_t windowWidth, windowHeight; - float requestedFps; - CameraPose cameraPose; - int32_t lastMouseX, lastMouseY; - - bool _is3D; - - bool _forceRedraw; - bool allow2DRotation; - bool limitCamera; - - CameraParams cameraParams; - - QBasicTimer timer; - - void (*timerFunc)(void *); - void* timerFuncData; + /** @brief Start widget updating */ + void showEvent(QShowEvent* event); + /** @brief Stop widget updating */ + void hideEvent(QHideEvent* event); + + /** + * @brief Get base robot geode. + * @return Smart pointer to the geode. + */ + osg::ref_ptr createRobot(void); + + /** + * @brief Get base HUD geode. + * @return Smart pointer to the geode. + */ + osg::ref_ptr createHUD(void); + + /** + * @brief Get screen x-coordinate of mouse cursor. + * @return screen x-coordinate of mouse cursor. + */ + int getMouseX(void); + + /** + * @brief Get screen y-coordinate of mouse cursor. + * @return screen y-coordinate of mouse cursor. + */ + int getMouseY(void); + + /** + * @brief Handle widget resize event. + * @param width New width of widget. + * @param height New height of widget. + */ + virtual void resizeGL(int width, int height); + + /** + * @brief Handle widget paint event. + */ + virtual void paintGL(void); + + /** + * @brief This function is a container for user-defined rendering. + * All code to render objects should be in this function. + */ + virtual void display(void); + + /** + * @brief Processes key press events. + * If this handler is reimplemented, it is very important that you call the + * base class implementation. + * @param event Key press event. + */ + virtual void keyPressEvent(QKeyEvent* event); + + /** + * @brief Processes key release events. + * If this handler is reimplemented, it is very important that you call the + * base class implementation. + * @param event Key release event. + */ + virtual void keyReleaseEvent(QKeyEvent* event); + + /** + * @brief Processes mouse press events. + * If this handler is reimplemented, it is very important that you call the + * base class implementation. + * @param event Mouse press event. + */ + virtual void mousePressEvent(QMouseEvent* event); + + /** + * @brief Processes mouse release events. + * If this handler is reimplemented, it is very important that you call the + * base class implementation. + * @param event Mouse release event. + */ + virtual void mouseReleaseEvent(QMouseEvent* event); + + /** + * @brief Processes mouse move events. + * If this handler is reimplemented, it is very important that you call the + * base class implementation. + * @param event Mouse move event. + */ + virtual void mouseMoveEvent(QMouseEvent* event); + + /** + * @brief Processes mouse wheel events. + * If this handler is reimplemented, it is very important that you call the + * base class implementation. + * @param event Mouse wheel event. + */ + virtual void wheelEvent(QWheelEvent* event); + + /** + * @brief Converts Qt-defined key to OSG-defined key. + * @param key Qt-defined key. + * @return OSG-defined key. + */ + osgGA::GUIEventAdapter::KeySymbol convertKey(int key) const; + + /** + * @brief Computes intersection of line and plane. + * @param plane Vector which represents the plane. + * @param line Line representation. + * @return 3D point which lies at the intersection of the line and plane. + */ + bool getPlaneLineIntersection(const osg::Vec4d& plane, + const osg::LineSegment& line, + osg::Vec3d& isect); + + osg::ref_ptr root; /**< Root node of scene graph. */ + osg::ref_ptr allocentricMap; + osg::ref_ptr rollingMap; + osg::ref_ptr egocentricMap; + osg::ref_ptr robotPosition; + osg::ref_ptr robotAttitude; + + osg::ref_ptr hudGroup; /**< A group which contains renderable HUD objects. */ + osg::ref_ptr hudProjectionMatrix; /**< An orthographic projection matrix for HUD display. */ + + osg::ref_ptr osgGW; /**< A class which manages OSG graphics windows and events. */ + + osg::ref_ptr cameraManipulator; /**< Camera manipulator. */ + + QTimer timer; /**< Timer which draws graphics based on specified fps. */ + + struct CameraParams + { + float minZoomRange; + float cameraFov; + float minClipRange; + float maxClipRange; + }; + + CameraParams cameraParams; /**< Struct representing camera parameters. */ + float fps; }; -#endif +#endif // Q3DWIDGET_H diff --git a/src/ui/map3D/CheetahGL.h b/src/ui/map3D/Q3DWidgetFactory.cc similarity index 66% rename from src/ui/map3D/CheetahGL.h rename to src/ui/map3D/Q3DWidgetFactory.cc index 7f7d2c1b16a2a28ece6eb6538d5ea16dc75c3037..3c298d86284d48e94704b377970522e38844bfb7 100644 --- a/src/ui/map3D/CheetahGL.h +++ b/src/ui/map3D/Q3DWidgetFactory.cc @@ -23,29 +23,34 @@ This file is part of the QGROUNDCONTROL project /** * @file - * @brief Generates a display list which renders a Pixhawk Cheetah MAV. + * @brief Definition of the class Q3DWidgetFactory. * * @author Lionel Heng * */ -#ifndef CHEETAHGL_H_ -#define CHEETAHGL_H_ +#include "Q3DWidgetFactory.h" -#if (defined __APPLE__) & (defined __MACH__) -#include -#else -#include +#include "Pixhawk3DWidget.h" +#ifdef QGC_OSGEARTH_ENABLED +#include "QMap3D.h" #endif -/** - * @brief Creates a display list which renders a Pixhawk Cheetah MAV. - * @param red Red intensity of the MAV model - * @param green Green intensity of the MAV model - * @param blue Blue intensity of the MAV model - * - * @return The index of the display list. - **/ -GLint generatePixhawkCheetah(float red, float green, float blue); - +QPointer +Q3DWidgetFactory::get(const std::string& type) +{ + if (type == "PIXHAWK") + { + return QPointer(new Pixhawk3DWidget()); + } +#ifdef QGC_OSGEARTH_ENABLED + else if (type == "MAP3D") + { + return QPointer(new QMap3D()); + } #endif + else + { + return QPointer(new Q3DWidget()); + } +} diff --git a/src/ui/map3D/CheetahModel.h b/src/ui/map3D/Q3DWidgetFactory.h similarity index 60% rename from src/ui/map3D/CheetahModel.h rename to src/ui/map3D/Q3DWidgetFactory.h index 02bb2b2ac264ea2e7662bbb90e20c191d5f08b2d..43e2283bc23fc612f743bbf2cda407199b71cccd 100644 --- a/src/ui/map3D/CheetahModel.h +++ b/src/ui/map3D/Q3DWidgetFactory.h @@ -23,44 +23,34 @@ This file is part of the QGROUNDCONTROL project /** * @file - * @brief Definition of the class CheetahModel. + * @brief Definition of the class Q3DWidgetFactory. * * @author Lionel Heng * */ -#ifndef CHEETAHMODEL_H_ -#define CHEETAHMODEL_H_ +#ifndef Q3DWIDGETFACTORY_H +#define Q3DWIDGETFACTORY_H -#if (defined __APPLE__) & (defined __MACH__) -#include -#else -#include -#endif +#include + +#include "Q3DWidget.h" /** - * @brief Container for display list which renders the Pixhawk Cheetah MAV. - **/ -class CheetahModel + * @brief A factory which creates project-specific 3D widgets without + * specifying the exact widget class. + */ + +class Q3DWidgetFactory { public: - CheetahModel(); - - /** - * @brief Initializes the display list. - * @param red Red intensity of the MAV model - * @param green Green intensity of the MAV model - * @param blue Blue intensity of the MAV model - **/ - void init(float red, float green, float blue); - /** - * @brief Executes the display list. - **/ - void draw(void); + * @brief Returns a Q3DWidget instance of the appropriate type. + * @param type String specifying the required type name. + * @return A smart pointer to the Q3DWidget instance. + */ -private: - GLint cheetah_dl; + static QPointer get(const std::string& type); }; -#endif /* CHEETAHMODEL_H_ */ +#endif // Q3DWIDGETFACTORY_H diff --git a/src/ui/map3D/QGCGoogleEarthView.cc b/src/ui/map3D/QGCGoogleEarthView.cc new file mode 100644 index 0000000000000000000000000000000000000000..1ec7fe25453215a5db76d2f4ffce618fbe737734 --- /dev/null +++ b/src/ui/map3D/QGCGoogleEarthView.cc @@ -0,0 +1,417 @@ +#include +#include +#include +#include + +#include +#include +#include +#include "UASManager.h" + +#ifdef Q_OS_MAC +#include +#include +#include "QGCWebPage.h" +#endif + +#ifdef _MSC_VER +#include +#include +#include +#endif + +#include "QGC.h" +#include "ui_QGCGoogleEarthView.h" +#include "QGCGoogleEarthView.h" + +#define QGCGOOGLEEARTHVIEWSETTINGS QString("GoogleEarthViewSettings_") + +QGCGoogleEarthView::QGCGoogleEarthView(QWidget *parent) : + QWidget(parent), + updateTimer(new QTimer(this)), + refreshRateMs(40), + mav(NULL), + followCamera(true), + trailEnabled(true), + webViewInitialized(false), + jScriptInitialized(false), + gEarthInitialized(false), +#if (defined Q_OS_MAC) + webViewMac(new QWebView(this)), +#endif +#ifdef _MSC_VER + webViewWin(new QGCWebAxWidget(this)), +#endif +#if (defined _MSC_VER) + ui(new Ui::QGCGoogleEarthView) +#else + ui(new Ui::QGCGoogleEarthView) +#endif +{ +#ifdef _MSC_VER + // Create layout and attach webViewWin + + + QFile file("doc.html"); + if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) + qDebug() << __FILE__ << __LINE__ << "Could not open log file"; + + QTextStream out(&file); + out << webViewWin->generateDocumentation(); + out.flush(); + file.flush(); + file.close(); + + +#else +#endif + + // Load settings + QSettings settings; + followCamera = settings.value(QGCGOOGLEEARTHVIEWSETTINGS + "follow", followCamera).toBool(); + trailEnabled = settings.value(QGCGOOGLEEARTHVIEWSETTINGS + "trail", trailEnabled).toBool(); + + ui->setupUi(this); +#if (defined Q_OS_MAC) + ui->webViewLayout->addWidget(webViewMac); + //connect(webViewMac, SIGNAL(loadFinished(bool)), this, SLOT(initializeGoogleEarth(bool))); +#endif + +#ifdef _MSC_VER + ui->webViewLayout->addWidget(webViewWin); +#endif + + connect(updateTimer, SIGNAL(timeout()), this, SLOT(updateState())); +} + +QGCGoogleEarthView::~QGCGoogleEarthView() +{ + QSettings settings; + settings.setValue(QGCGOOGLEEARTHVIEWSETTINGS + "follow", followCamera); + settings.setValue(QGCGOOGLEEARTHVIEWSETTINGS + "trail", trailEnabled); + settings.sync(); +#if (defined Q_OS_MAC) + delete webViewMac; +#endif +#ifdef _MSC_VER + delete webViewWin; +#endif + delete ui; +} + +/** + * @param range in centimeters + */ +void QGCGoogleEarthView::setViewRangeScaledInt(int range) +{ + setViewRange(range/100.0f); +} + +/** + * @param range in meters (SI-units) + */ +void QGCGoogleEarthView::setViewRange(float range) +{ + javaScript(QString("setViewRange(%1);").arg(range, 0, 'f', 5)); +} + +void QGCGoogleEarthView::addUAS(UASInterface* uas) +{ + // uasid, type, color (in #rrbbgg format) + QString uasColor = uas->getColor().name().remove(0, 1); + // Convert to bbggrr format + QString rChannel = uasColor.mid(0, 2); + uasColor.remove(0, 2); + uasColor.prepend(rChannel); + // Set alpha value to 0x66, append JavaScript quotes ('') + uasColor.prepend("'66").append("'"); + javaScript(QString("createAircraft(%1, %2, %3);").arg(uas->getUASID()).arg(uas->getSystemType()).arg(uasColor)); + + if (trailEnabled) javaScript(QString("showTrail(%1);").arg(uas->getUASID())); + + //javaScript(QString("createAircraft(%1, %2, %3);").arg(uas->getUASID()).arg(uas->getSystemType()).arg("0")); + // Automatically receive further position updates + connect(uas, SIGNAL(globalPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(updateGlobalPosition(UASInterface*,double,double,double,quint64))); +} + +void QGCGoogleEarthView::setActiveUAS(UASInterface* uas) +{ + if (uas) + { + mav = uas; + javaScript(QString("setCurrAircraft(%1);").arg(uas->getUASID())); + } +} + +void QGCGoogleEarthView::updateGlobalPosition(UASInterface* uas, double lon, double lat, double alt, quint64 usec) +{ + Q_UNUSED(usec); + javaScript(QString("addTrailPosition(%1, %2, %3, %4);").arg(uas->getUASID()).arg(lat, 0, 'f', 15).arg(lon, 0, 'f', 15).arg(alt, 0, 'f', 15)); + + //qDebug() << QString("addTrailPosition(%1, %2, %3, %4);").arg(uas->getUASID()).arg(lat, 0, 'f', 15).arg(lon, 0, 'f', 15).arg(alt, 0, 'f', 15); +} + +void QGCGoogleEarthView::showTrail(bool state) +{ + // Check if the current trail has to be hidden + if (trailEnabled && !state) + { + QList mavs = UASManager::instance()->getUASList(); + foreach (UASInterface* currMav, mavs) + { + javaScript(QString("hideTrail(%1);").arg(currMav->getUASID())); + } + } + + // Check if the current trail has to be shown + if (!trailEnabled && state) + { + QList mavs = UASManager::instance()->getUASList(); + foreach (UASInterface* currMav, mavs) + { + javaScript(QString("showTrail(%1);").arg(currMav->getUASID())); + } + } + trailEnabled = state; + ui->trailCheckbox->setChecked(state); +} + +void QGCGoogleEarthView::showWaypoints(bool state) +{ + waypointsEnabled = state; +} + +void QGCGoogleEarthView::follow(bool follow) +{ + ui->followAirplaneCheckbox->setChecked(follow); + followCamera = follow; +} + +void QGCGoogleEarthView::goHome() +{ + // Disable follow and update + follow(false); + updateState(); + // Go to home location + javaScript("goHome();"); +} + +void QGCGoogleEarthView::setHome(double lat, double lon, double alt) +{ + javaScript(QString("setGCSHome(%1,%2,%3);").arg(lat, 0, 'f', 15).arg(lon, 0, 'f', 15).arg(alt, 0, 'f', 15)); +} + +void QGCGoogleEarthView::hideEvent(QHideEvent* event) +{ + Q_UNUSED(event); + updateTimer->stop(); +} + +void QGCGoogleEarthView::showEvent(QShowEvent* event) +{ + // React only to internal (pre-display) + // events + Q_UNUSED(event) + // Enable widget, initialize on first run + + if (!webViewInitialized) + { +#if (defined Q_OS_MAC) + webViewMac->setPage(new QGCWebPage(webViewMac)); + webViewMac->settings()->setAttribute(QWebSettings::PluginsEnabled, true); + webViewMac->load(QUrl(QCoreApplication::applicationDirPath()+"/earth.html")); +#endif + +#ifdef _MSC_VER + //webViewWin->dynamicCall("GoHome()"); + webViewWin->dynamicCall("Navigate(const QString&)", QApplication::applicationDirPath() + "/earth.html"); +#endif + + webViewInitialized = true; + // Reloading the webpage, this resets Google Earth + gEarthInitialized = false; + + QTimer::singleShot(10000, this, SLOT(initializeGoogleEarth())); + } + else + { + updateTimer->start(refreshRateMs); + } +} + +void QGCGoogleEarthView::printWinException(int no, QString str1, QString str2, QString str3) +{ + qDebug() << no << str1 << str2 << str3; +} + +QVariant QGCGoogleEarthView::javaScript(QString javaScript) +{ +#ifdef Q_OS_MAC + return webViewMac->page()->currentFrame()->evaluateJavaScript(javaScript); +#endif +#ifdef _MSC_VER + if(!jScriptInitialized) + { + qDebug() << "TOO EARLY JAVASCRIPT CALL, ABORTING"; + return QVariant(false); + } + else + { + QVariantList params; + params.append(javaScript); + params.append("JScript"); + return jScriptWin->dynamicCall("execScript(QString, QString)", params); + } +#endif +} + +void QGCGoogleEarthView::initializeGoogleEarth() +{ + if (!jScriptInitialized) + { +#ifdef Q_OS_MAC + jScriptInitialized = true; +#endif +#ifdef _MSC_VER + QAxObject* doc = webViewWin->querySubObject("Document()"); + IDispatch* Disp; + IDispatch* winDoc = NULL; + + //332C4425-26CB-11D0-B483-00C04FD90119 IHTMLDocument2 + //25336920-03F9-11CF-8FD0-00AA00686F13 HTMLDocument + doc->queryInterface(QUuid("{332C4425-26CB-11D0-B483-00C04FD90119}"), (void**)(&winDoc)); + if (winDoc) + { + // Security: + // CoInternetSetFeatureEnabled + // (FEATURE_LOCALMACHINE_LOCKDOWN, SET_FEATURE_ON_PROCESS, TRUE); + // + IHTMLDocument2* document = NULL; + winDoc->QueryInterface( IID_IHTMLDocument2, (void**)&document ); + IHTMLWindow2 *window = NULL; + document->get_parentWindow( &window ); + + jScriptWin = new QAxObject(window, webViewWin); + connect(jScriptWin, SIGNAL(exception(int,QString,QString,QString)), this, SLOT(printWinException(int,QString,QString,QString))); + jScriptInitialized = true; + } + else + { + qDebug() << "COULD NOT GET DOCUMENT OBJECT! Aborting"; + } +#endif + QTimer::singleShot(2500, this, SLOT(initializeGoogleEarth())); + return; + } + + if (!gEarthInitialized) + { + if (0 == 1)//(!javaScript("isInitialized();").toBool()) + { + QTimer::singleShot(500, this, SLOT(initializeGoogleEarth())); + qDebug() << "NOT INITIALIZED, WAITING"; + } + else + { + // Set home location + setHome(47.3769, 8.549444, 500); + + // Move to home location + goHome(); + + // Add all MAVs + QList mavs = UASManager::instance()->getUASList(); + foreach (UASInterface* currMav, mavs) + { + addUAS(currMav); + } + + // Set current UAS + setActiveUAS(UASManager::instance()->getActiveUAS()); + + // Add any further MAV automatically + connect(UASManager::instance(), SIGNAL(UASCreated(UASInterface*)), this, SLOT(addUAS(UASInterface*))); + connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(setActiveUAS(UASInterface*))); + + // Connect UI signals/slots + + // Follow checkbox + ui->followAirplaneCheckbox->setChecked(followCamera); + connect(ui->followAirplaneCheckbox, SIGNAL(toggled(bool)), this, SLOT(follow(bool))); + + // Trail checkbox + ui->trailCheckbox->setChecked(trailEnabled); + connect(ui->trailCheckbox, SIGNAL(toggled(bool)), this, SLOT(showTrail(bool))); + + // Go home + connect(ui->goHomeButton, SIGNAL(clicked()), this, SLOT(goHome())); + + // Cam distance slider + connect(ui->camDistanceSlider, SIGNAL(valueChanged(int)), this, SLOT(setViewRangeScaledInt(int))); + setViewRangeScaledInt(ui->camDistanceSlider->value()); + + // Start update timer + updateTimer->start(refreshRateMs); + + gEarthInitialized = true; + } + } +} + +void QGCGoogleEarthView::updateState() +{ +#if (QGC_EVENTLOOP_DEBUG) + qDebug() << "EVENTLOOP:" << __FILE__ << __LINE__; +#endif + if (gEarthInitialized) + { + int uasId = 0; + double lat = 47.3769; + double lon = 8.549444; + double alt = 470.0; + + float roll = 0.0f; + float pitch = 0.0f; + float yaw = 0.0f; + + // Update all MAVs + QList mavs = UASManager::instance()->getUASList(); + foreach (UASInterface* currMav, mavs) + { + uasId = currMav->getUASID(); + lat = currMav->getLatitude(); + lon = currMav->getLongitude(); + alt = currMav->getAltitude(); + roll = currMav->getRoll(); + pitch = currMav->getPitch(); + yaw = currMav->getYaw(); + + javaScript(QString("setAircraftPositionAttitude(%1, %2, %3, %4, %6, %7, %8);") + .arg(uasId) + .arg(lat, 0, 'f', 15) + .arg(lon, 0, 'f', 15) + .arg(alt, 0, 'f', 15) + .arg(roll, 0, 'f', 9) + .arg(pitch, 0, 'f', 9) + .arg(yaw, 0, 'f', 9)); + } + + if (followCamera) + { + javaScript(QString("updateFollowAircraft()")); + } + } +} + + +void QGCGoogleEarthView::changeEvent(QEvent *e) +{ + QWidget::changeEvent(e); + switch (e->type()) { + case QEvent::LanguageChange: + ui->retranslateUi(this); + break; + default: + break; + } +} diff --git a/src/ui/map3D/QGCGoogleEarthView.h b/src/ui/map3D/QGCGoogleEarthView.h new file mode 100644 index 0000000000000000000000000000000000000000..80131dc7ed1079d3a23d133a797a2a4169c0450f --- /dev/null +++ b/src/ui/map3D/QGCGoogleEarthView.h @@ -0,0 +1,141 @@ +#ifndef QGCGOOGLEEARTHVIEW_H +#define QGCGOOGLEEARTHVIEW_H + +#include +#include +#include + +#if (defined Q_OS_MAC) +#include +#endif + +#ifdef _MSC_VER +#include +#include +#include "windows.h" + +class QGCWebAxWidget : public QAxWidget +{ +public: + //Q_OBJECT + QGCWebAxWidget(QWidget* parent = 0, Qt::WindowFlags f = 0) + : QAxWidget(parent, f)/*, + _document(NULL)*/ + { + // Set web browser control + setControl("{8856F961-340A-11D0-A96B-00C04FD705A2}"); + // WARNING: Makes it impossible to actually debug javascript. But useful in production mode + setProperty("ScriptErrorsSuppressed", true); + // see: http://www.codeproject.com/KB/cpp/ExtendedWebBrowser.aspx?fid=285594&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=151#GoalScriptError + + //this->dynamicCall("setProperty(const QString&, + //QObject::connect(this, SIGNAL(DocumentComplete(IDispatch*, QVariant&)), this, SLOT(setDocument(IDispatch*, QVariant&))); + + + } + /* + QAxObject* document() + { + return _document; + }*/ + +protected: + /* + void setDocument(IDispatch* dispatch, QVariant& variant) + { + _document = this->querySubObject("Document()"); + } + QAxObject* _document;*/ + virtual bool translateKeyEvent(int message, int keycode) const + { + if (message >= WM_KEYFIRST && message <= WM_KEYLAST) + return true; + else + return QAxWidget::translateKeyEvent(message, keycode); + } + +}; +#endif + +namespace Ui { +#ifdef _MSC_VER + class QGCGoogleEarthView; +#else + class QGCGoogleEarthView; +#endif +} + +class QGCGoogleEarthView : public QWidget +{ + Q_OBJECT + +public: + explicit QGCGoogleEarthView(QWidget *parent = 0); + ~QGCGoogleEarthView(); + +public slots: + /** @brief Update the internal state. Does not trigger a redraw */ + void updateState(); + /** @brief Add a new MAV/UAS to the visualization */ + void addUAS(UASInterface* uas); + /** @brief Set the currently selected UAS */ + void setActiveUAS(UASInterface* uas); + /** @brief Update the global position */ + void updateGlobalPosition(UASInterface* uas, double lon, double lat, double alt, quint64 usec); + /** @brief Show the vehicle trail */ + void showTrail(bool state); + /** @brief Show the waypoints */ + void showWaypoints(bool state); + /** @brief Follow the aircraft during flight */ + void follow(bool follow); + /** @brief Go to the home location */ + void goHome(); + /** @brief Set the home location */ + void setHome(double lat, double lon, double alt); + /** @brief Set camera view range to aircraft in meters */ + void setViewRange(float range); + /** @brief Set camera view range to aircraft in centimeters */ + void setViewRangeScaledInt(int range); + + /** @brief Initialize Google Earth */ + void initializeGoogleEarth(); + /** @brief Print a Windows exception */ + void printWinException(int no, QString str1, QString str2, QString str3); + +public: + /** @brief Execute java script inside the Google Earth window */ + QVariant javaScript(QString javascript); + +protected: + void changeEvent(QEvent *e); + QTimer* updateTimer; + int refreshRateMs; + UASInterface* mav; + bool followCamera; + bool trailEnabled; + bool waypointsEnabled; + bool webViewInitialized; + bool jScriptInitialized; + bool gEarthInitialized; +#ifdef _MSC_VER + QGCWebAxWidget* webViewWin; + QAxObject* jScriptWin; +#endif +#if (defined Q_OS_MAC) + QWebView* webViewMac; +#endif + + /** @brief Start widget updating */ + void showEvent(QShowEvent* event); + /** @brief Stop widget updating */ + void hideEvent(QHideEvent* event); + +private: +#ifdef _MSC_VER + Ui::QGCGoogleEarthView* ui; +#else + Ui::QGCGoogleEarthView* ui; +#endif +}; + +#endif // QGCGOOGLEEARTHVIEW_H diff --git a/src/ui/map3D/QGCGoogleEarthView.ui b/src/ui/map3D/QGCGoogleEarthView.ui new file mode 100644 index 0000000000000000000000000000000000000000..53269ab8f5c67477b0cd32ac7a50666e7e130fd2 --- /dev/null +++ b/src/ui/map3D/QGCGoogleEarthView.ui @@ -0,0 +1,120 @@ + + + QGCGoogleEarthView + + + + 0 + 0 + 828 + 300 + + + + Form + + + + 10 + + + 5 + + + 2 + + + + + + + + + + + Home + + + + + + + Follow + + + + + + + Trail + + + + + + + Clear WPs + + + + + + + Qt::Horizontal + + + + 177 + 20 + + + + + + + + 30 + + + 10000 + + + 3000 + + + Qt::Horizontal + + + + + + + Cam Distance + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Waypoints + + + + + + + + diff --git a/src/ui/map3D/QGCGoogleEarthViewWin.ui b/src/ui/map3D/QGCGoogleEarthViewWin.ui new file mode 100644 index 0000000000000000000000000000000000000000..6191eaebb2358c8b8934b41f4dd4fc5307842172 --- /dev/null +++ b/src/ui/map3D/QGCGoogleEarthViewWin.ui @@ -0,0 +1,19 @@ + + + QGCGoogleEarthViewWin + + + + 0 + 0 + 400 + 300 + + + + Form + + + + + diff --git a/src/ui/map3D/QGCWebPage.cc b/src/ui/map3D/QGCWebPage.cc new file mode 100644 index 0000000000000000000000000000000000000000..ffdd649701b06481510e68279c643950f1e3ea37 --- /dev/null +++ b/src/ui/map3D/QGCWebPage.cc @@ -0,0 +1,12 @@ +#include "QGCWebPage.h" +#include + +QGCWebPage::QGCWebPage(QObject *parent) : + QWebPage(parent) +{ +} + +void QGCWebPage::javaScriptConsoleMessage ( const QString & message, int lineNumber, const QString & sourceID ) +{ + qDebug() << "JAVASCRIPT: " << lineNumber << sourceID << message; +} diff --git a/src/ui/map3D/QGCWebPage.h b/src/ui/map3D/QGCWebPage.h new file mode 100644 index 0000000000000000000000000000000000000000..f7783c9a33c6d84206043188031ca50a54ac0e08 --- /dev/null +++ b/src/ui/map3D/QGCWebPage.h @@ -0,0 +1,21 @@ +#ifndef QGCWEBPAGE_H +#define QGCWEBPAGE_H + +#include + +class QGCWebPage : public QWebPage +{ + Q_OBJECT +public: + explicit QGCWebPage(QObject *parent = 0); + +signals: + +public slots: + +protected: + void javaScriptConsoleMessage ( const QString & message, int lineNumber, const QString & sourceID ); + +}; + +#endif // QGCWEBPAGE_H diff --git a/src/ui/map3D/QMap3D.cc b/src/ui/map3D/QMap3D.cc new file mode 100644 index 0000000000000000000000000000000000000000..f5d7ffb8e5932903602f610677d6b066adca6a4f --- /dev/null +++ b/src/ui/map3D/QMap3D.cc @@ -0,0 +1,73 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +#ifdef QGC_OSGEARTH_ENABLED + +/** + * @file + * @brief Definition of the class QMap3D. + * + * @author James Goppert + * + */ + +#include "QMap3D.h" +#include +#include + +QMap3D::QMap3D(QWidget * parent, const char * name, WindowFlags f) : + QWidget(parent,f) +{ + Q_UNUSED(name); + setupUi(this); +#if ((OPENSCENEGRAPH_MAJOR_VERSION == 2) & (OPENSCENEGRAPH_MINOR_VERSION > 8)) | (OPENSCENEGRAPH_MAJOR_VERSION > 2) + graphicsView->setCameraManipulator(new osgEarth::Util::EarthManipulator); +#else + graphicsView->setCameraManipulator(new osgEarthUtil::EarthManipulator); +#endif + graphicsView->setSceneData(new osg::Group); + graphicsView->updateCamera(); + show(); +} + +QMap3D::~QMap3D() +{ +} + +void QMap3D::on_pushButton_map_clicked() +{ + QString mapName = QFileDialog::getOpenFileName(this, tr("Select an OsgEarth map file"), + QDesktopServices::storageLocation(QDesktopServices::DesktopLocation), tr("OsgEarth file (*.earth);;")); + graphicsView->getSceneData()->asGroup()->addChild(osgDB::readNodeFile(mapName.toStdString())); + graphicsView->updateCamera(); +} + +void QMap3D::on_pushButton_vehicle_clicked() +{ + QString vehicleName = QFileDialog::getOpenFileName(this, tr("Select a 3D model for your vehicle"), + QDesktopServices::storageLocation(QDesktopServices::DesktopLocation), tr("OsgEarth file (*.osg, *.ac, *.3ds);;")); + graphicsView->getSceneData()->asGroup()->addChild(osgDB::readNodeFile(vehicleName.toStdString())); + graphicsView->updateCamera(); +} + +#endif diff --git a/src/ui/map3D/QMap3D.h b/src/ui/map3D/QMap3D.h new file mode 100644 index 0000000000000000000000000000000000000000..a9598843d44cc72770eb7c763e4a3e92c5a0cd2f --- /dev/null +++ b/src/ui/map3D/QMap3D.h @@ -0,0 +1,57 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Definition of the class QMap3D.h + * + * @author James Goppert + * + */ + +#ifdef QGC_OSGEARTH_ENABLED + +#ifndef QMAP3D_H +#define QMAP3D_H + +#include "QOSGWidget.h" +#include "ui_QMap3D.h" + +namespace Ui { + class QMap3D; +} + +class QMap3D : public QWidget, private Ui::QMap3D +{ + Q_OBJECT +public: + QMap3D(QWidget * parent = 0, const char * name = 0, WindowFlags f = 0); + ~QMap3D(); +public slots: + void on_pushButton_map_clicked(); + void on_pushButton_vehicle_clicked(); +}; + +#endif // QMAP3D_H + +#endif diff --git a/src/ui/map3D/QMap3DWidget.cc b/src/ui/map3D/QMap3DWidget.cc deleted file mode 100644 index 830c7b8d1df4d98823c1aebcbc2a7986a02cc343..0000000000000000000000000000000000000000 --- a/src/ui/map3D/QMap3DWidget.cc +++ /dev/null @@ -1,794 +0,0 @@ -/*===================================================================== - -QGroundControl Open Source Ground Control Station - -(c) 2009, 2010 QGROUNDCONTROL PROJECT - -This file is part of the QGROUNDCONTROL project - - QGROUNDCONTROL is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - QGROUNDCONTROL is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with QGROUNDCONTROL. If not, see . - -======================================================================*/ - -/** - * @file - * @brief Definition of the class QMap3DWidget. - * - * @author Lionel Heng - * - */ - -#include "QMap3DWidget.h" - -#include -#include - -//#include "QGCGlut.h" -#include "CheetahModel.h" -#include "UASManager.h" -#include "UASInterface.h" -#include "QGC.h" - -QMap3DWidget::QMap3DWidget(QWidget* parent) - : Q3DWidget(parent) - , uas(NULL) - , lastRedrawTime(0.0) - , displayGrid(true) - , displayImagery(false) - , displayTrail(false) - , lockCamera(true) - , updateLastUnlockedPose(true) - , displayTarget(false) - , displayWaypoints(true) - , imagery(0) -{ - setFocusPolicy(Qt::StrongFocus); - - initialize(10, 10, 1000, 900, 15.0f); - setCameraParams(0.05f, 0.5f, 0.01f, 0.5f, 30.0f, 0.01f, 1000000.0f); - - setDisplayFunc(display, this); - setMouseFunc(mouse, this); - addTimerFunc(100, timer, this); - - buildLayout(); - - connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), - this, SLOT(setActiveUAS(UASInterface*))); -} - -QMap3DWidget::~QMap3DWidget() -{ - -} - -void -QMap3DWidget::buildLayout(void) -{ - QCheckBox* gridCheckBox = new QCheckBox(this); - gridCheckBox->setText("Grid"); - gridCheckBox->setChecked(displayGrid); - - QCheckBox* trailCheckBox = new QCheckBox(this); - trailCheckBox->setText("Trail"); - trailCheckBox->setChecked(displayTrail); - - QCheckBox* waypointsCheckBox = new QCheckBox(this); - waypointsCheckBox->setText("Waypoints"); - waypointsCheckBox->setChecked(displayWaypoints); - - QLabel* imageryLabel = new QLabel(this); - imageryLabel->setText("Imagery"); - - imageryComboBox = new QComboBox(this); - imageryComboBox->addItem("None"); - imageryComboBox->addItem("Map (Google)"); - imageryComboBox->addItem("Satellite (Google)"); - - QPushButton* recenterButton = new QPushButton(this); - recenterButton->setText("Recenter Camera"); - - QCheckBox* lockCameraCheckBox = new QCheckBox(this); - lockCameraCheckBox->setText("Lock Camera"); - lockCameraCheckBox->setChecked(lockCamera); - - //positionLabel = new QLabel(this); - //positionLabel->setText(tr("Waiting for first position update.. ")); - - QGridLayout* layout = new QGridLayout(this); - layout->setMargin(0); - layout->setSpacing(2); - layout->addWidget(gridCheckBox, 1, 0); - layout->addWidget(trailCheckBox, 1, 1); - layout->addWidget(waypointsCheckBox, 1, 2); - layout->addItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Expanding), 1, 3); - layout->addWidget(imageryLabel, 1, 4); - layout->addWidget(imageryComboBox, 1, 5); - layout->addItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Expanding), 1, 6); - layout->addWidget(recenterButton, 1, 7); - layout->addWidget(lockCameraCheckBox, 1, 8); - layout->setRowStretch(0, 100); - layout->setRowStretch(1, 1); - layout->setColumnStretch(3, 50); - layout->setColumnStretch(6, 50); - setLayout(layout); - - connect(gridCheckBox, SIGNAL(stateChanged(int)), - this, SLOT(showGrid(int))); - connect(trailCheckBox, SIGNAL(stateChanged(int)), - this, SLOT(showTrail(int))); - connect(imageryComboBox, SIGNAL(currentIndexChanged(const QString &)), - this, SLOT(showImagery(const QString &))); - connect(recenterButton, SIGNAL(clicked()), this, SLOT(recenterCamera())); - connect(lockCameraCheckBox, SIGNAL(stateChanged(int)), - this, SLOT(toggleLockCamera(int))); -} - -void -QMap3DWidget::display(void* clientData) -{ - QMap3DWidget* map3d = reinterpret_cast(clientData); - map3d->displayHandler(); -} - - - -//void QMap3DWidget::paintEvent(QPaintEvent *event) -//{ -// Q_UNUSED(event); -//} - -void -QMap3DWidget::displayHandler(void) -{ - if (cheetahModel.data() == 0) - { - cheetahModel.reset(new CheetahModel); - cheetahModel->init(1.0f, 1.0f, 1.0f); - } - - float robotX = 0.0f, robotY = 0.0f, robotZ = 0.0f; - float robotRoll = 0.0f, robotPitch = 0.0f, robotYaw = 0.0f; - if (uas != NULL) - { - robotX = uas->getLocalX(); - robotY = uas->getLocalY(); - robotZ = uas->getLocalZ(); - robotRoll = uas->getRoll(); - robotPitch = uas->getPitch(); - robotYaw = uas->getYaw(); - } - - if (updateLastUnlockedPose && uas != NULL) - { - lastUnlockedPose.x = robotX; - lastUnlockedPose.y = robotY; - lastUnlockedPose.z = robotZ; - - camOffset.x = 0.0f; - camOffset.y = 0.0f; - camOffset.z = 0.0f; - - updateLastUnlockedPose = false; - } - - if (!lockCamera) - { - camOffset.x = robotX - lastUnlockedPose.x; - camOffset.y = robotY - lastUnlockedPose.y; - camOffset.z = robotZ - lastUnlockedPose.z; - } - - // turn on smooth lines - makeCurrent(); - glEnable(GL_LINE_SMOOTH); - glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - - // clear window - glClearColor(0.0f, 0.0f, 0.0f, 1.0f); - glClear(GL_COLOR_BUFFER_BIT); - - glPushMatrix(); - glTranslatef(camOffset.x, camOffset.y, camOffset.z); - - // draw Cheetah model - drawPlatform(robotRoll, robotPitch, robotYaw); - - if (displayGrid) - { - drawGrid(-camOffset.x, -camOffset.y, robotZ); - } - - if (displayTrail) - { - drawTrail(robotX, robotY, robotZ); - } - - if (displayTarget) - { - drawTarget(robotX, robotY, robotZ); - } - - if (displayWaypoints) - { - drawWaypoints(); - } - - if (displayImagery) - { - drawImagery(robotX, robotY, robotZ, "32T", true); - } - - glPopMatrix(); - - // switch to 2D - setDisplayMode2D(); - - drawLegend(); - - // display pose information - glColor4f(0.0f, 0.0f, 0.0f, 1.0f); - glBegin(GL_POLYGON); - glVertex2f(0.0f, 0.0f); - glVertex2f(0.0f, 30.0f); - glVertex2f(getWindowWidth(), 30.0f); - glVertex2f(getWindowWidth(), 0.0f); - glEnd(); - glColor4f(0.1f, 0.1f, 0.1f, 1.0f); - glBegin(GL_POLYGON); - glVertex2f(0.0f, getWindowHeight()); - glVertex2f(0.0f, getWindowHeight() - 25.0f); - glVertex2f(getWindowWidth(), getWindowHeight() - 25.0f); - glVertex2f(getWindowWidth(), getWindowHeight()); - glEnd(); - - glFlush(); - - std::pair mouseWorldCoords = - getPositionIn3DMode(getMouseX(), getMouseY()); - - // QT QPAINTER OPENGL PAINTING - - QPainter painter; - painter.begin(this); - painter.setRenderHint(QPainter::Antialiasing, true); - painter.setRenderHint(QPainter::HighQualityAntialiasing, true); - paintText(QString("x = %1 y = %2 z = %3 r = %4 p = %5 y = %6 Cursor [%7 %8]").arg(robotX, 0, 'f', 2).arg(robotY, 0, 'f', 2).arg(robotZ, 0, 'f', 2).arg(robotRoll, 0, 'f', 2).arg(robotPitch, 0, 'f', 2).arg(robotYaw, 0, 'f', 2).arg( mouseWorldCoords.first + robotX, 0, 'f', 2).arg( mouseWorldCoords.second + robotY, 0, 'f', 2), - QColor(255, 255, 255), - 11, - 5, - 5, - &painter); - painter.end(); -} - -void QMap3DWidget::drawWaypoints(void) const -{ - if (uas) - { - const QVector& list = uas->getWaypointManager().getWaypointList(); - QColor color; - - QPointF lastWaypoint; - - for (int i = 0; i < list.size(); i++) - { - QPointF in(list.at(i)->getX(), list.at(i)->getY()); - // Transform from world to body coordinates - //in = metricWorldToBody(in); - - // DRAW WAYPOINT - float waypointRadius = 0.1f;// = vwidth / 20.0f * 2.0f; - - - // Select color based on if this is the current waypoint - if (list.at(i)->getCurrent()) - { - color = QGC::colorCyan;//uas->getColor(); - - } - else - { - color = uas->getColor(); - - } - - //float radius = (waypointSize/2.0f) * 0.8 * (1/sqrt(2.0f)); - // Draw yaw - // Draw sphere - - - - - - static double radius = 0.2; - - glPushMatrix(); - glTranslatef(in.x() - uas->getLocalX(), in.y() - uas->getLocalY(), 0.0f); - glColor3f(1.0f, 0.3f, 0.3f); - glLineWidth(1.0f); - - wireSphere(radius, 10, 10); - - glPopMatrix(); - - // DRAW CONNECTING LINE - // Draw line from last waypoint to this one - if (!lastWaypoint.isNull()) - { - // OpenGL line - } - lastWaypoint = in; - } - } -} - -void -QMap3DWidget::drawLegend(void) -{ - // draw marker outlines - glColor3f(1.0f, 1.0f, 1.0f); - glLineWidth(3.0f); - glBegin(GL_LINES); - glVertex2f(20.0f, 60.0f); - glVertex2f(20.0f, 80.0f); - glVertex2f(20.0f, 70.0f); - glVertex2f(100.0f, 70.0f); - glVertex2f(100.0f, 60.0f); - glVertex2f(100.0f, 80.0f); - glEnd(); - - // draw markers - glColor3f(0.0f, 0.0f, 0.0f); - glLineWidth(1.5f); - glBegin(GL_LINES); - glVertex2f(20.0f, 60.0f); - glVertex2f(20.0f, 80.0f); - glVertex2f(20.0f, 70.0f); - glVertex2f(100.0f, 70.0f); - glVertex2f(100.0f, 60.0f); - glVertex2f(100.0f, 80.0f); - glEnd(); - - float f = windowHeight / 2.0f / tanf(d2r(cameraParams.cameraFov / 2.0f)); - float dist = cameraPose.distance / f * 80.0f; - - QPainter painter; - painter.begin(this); - painter.setRenderHint(QPainter::Antialiasing, true); - painter.setRenderHint(QPainter::HighQualityAntialiasing, true); - - QColor rgb(255, 255, 255); - if (imageryComboBox->currentText().compare("Map (Google)") == 0) - { - rgb.setRgb(0, 0, 0); - } - - paintText(QString("%1 m").arg(dist, 0, 'f', 2), - rgb, - 10, - 25, - getWindowHeight() - 65, - &painter); - painter.end(); -} - -void -QMap3DWidget::paintText(QString text, QColor color, float fontSize, - float refX, float refY, QPainter* painter) const -{ - QPen prevPen = painter->pen(); - - float pPositionX = refX; - float pPositionY = refY; - - QFont font("Bitstream Vera Sans"); - // Enforce minimum font size of 5 pixels - int fSize = qMax(5, (int)(fontSize)); - font.setPixelSize(fSize); - - QFontMetrics metrics = QFontMetrics(font); - int border = qMax(4, metrics.leading()); - QRect rect = metrics.boundingRect(0, 0, width() - 2*border, int(height()*0.125), - Qt::AlignLeft | Qt::TextWordWrap, text); - painter->setPen(color); - painter->setFont(font); - painter->setRenderHint(QPainter::TextAntialiasing); - painter->drawText(pPositionX, pPositionY, - rect.width(), rect.height(), - Qt::AlignCenter | Qt::TextWordWrap, text); - painter->setPen(prevPen); -} - -void -QMap3DWidget::mouse(Qt::MouseButton button, MouseState state, - int32_t x, int32_t y, void* clientData) -{ - QMap3DWidget* map3d = reinterpret_cast(clientData); - map3d->mouseHandler(button, state, x, y); -} - -void -QMap3DWidget::mouseHandler(Qt::MouseButton button, MouseState state, - int32_t x, int32_t y) -{ - if (button == Qt::RightButton && state == MOUSE_STATE_DOWN) - { - QMenu menu(this); - QAction* targetAction = menu.addAction(tr("Mark as Target")); - connect(targetAction, SIGNAL(triggered()), this, SLOT(markTarget())); - menu.exec(mapToGlobal(QPoint(x, y))); - } -} - -void -QMap3DWidget::timer(void* clientData) -{ - QMap3DWidget* map3d = reinterpret_cast(clientData); - map3d->timerHandler(); -} - -void -QMap3DWidget::timerHandler(void) -{ - if (imagery.isNull()) - { - imagery.reset(new Imagery); - } - - double timeLapsed = getTime() - lastRedrawTime; - if (timeLapsed > 0.1) - { - imagery->update(); - forceRedraw(); - lastRedrawTime = getTime(); - } - addTimerFunc(100, timer, this); -} - -double -QMap3DWidget::getTime(void) const -{ - struct timeval tv; - - gettimeofday(&tv, NULL); - - return static_cast(tv.tv_sec) + - static_cast(tv.tv_usec) / 1000000.0; -} - -/** - * - * @param uas the UAS/MAV to monitor/display with the HUD - */ -void QMap3DWidget::setActiveUAS(UASInterface* uas) -{ - if (this->uas != NULL && this->uas != uas) - { - // Disconnect any previously connected active MAV - //disconnect(uas, SIGNAL(valueChanged(UASInterface*,QString,double,quint64)), this, SLOT(updateValue(UASInterface*,QString,double,quint64))); - } - - this->uas = uas; -} - -void -QMap3DWidget::markTarget(void) -{ - std::pair mouseWorldCoords = - getPositionIn3DMode(getLastMouseX(), getLastMouseY()); - - float robotX = 0.0f, robotY = 0.0f, robotZ = 0.0f; - if (uas != NULL) - { - robotX = uas->getLocalX(); - robotY = uas->getLocalY(); - robotZ = uas->getLocalZ(); - } - - targetPosition.x = mouseWorldCoords.first + robotX; - targetPosition.y = mouseWorldCoords.second + robotY; - targetPosition.z = robotZ; - - displayTarget = true; - - if (uas) - { - uas->setTargetPosition(targetPosition.x, targetPosition.y, - targetPosition.z, 0.0f); - } -} - -void -QMap3DWidget::showGrid(int32_t state) -{ - if (state == Qt::Checked) - { - displayGrid = true; - } - else - { - displayGrid = false; - } -} - -void -QMap3DWidget::showImagery(const QString& text) -{ - if (text.compare("None") == 0) - { - displayImagery = false; - } - else - { - if (text.compare("Map (Google)") == 0) - { - imagery->setImageryType(Imagery::MAP); - } - else if (text.compare("Satellite (Google)") == 0) - { - imagery->setImageryType(Imagery::SATELLITE); - } - displayImagery = true; - } -} - - -void -QMap3DWidget::showTrail(int32_t state) -{ - if (state == Qt::Checked) - { - if (!displayTrail) - { - trail.clear(); - } - - displayTrail = true; - } - else - { - displayTrail = false; - } -} - -void -QMap3DWidget::recenterCamera(void) -{ - updateLastUnlockedPose = true; - - recenter(); -} - -void -QMap3DWidget::toggleLockCamera(int32_t state) -{ - if (state == Qt::Checked) - { - lockCamera = true; - } - else - { - lockCamera = false; - } -} - -void -QMap3DWidget::drawPlatform(float roll, float pitch, float yaw) const -{ - glPushMatrix(); - - glRotatef(yaw * 180.0f / M_PI, 0.0f, 0.0f, 1.0f); - glRotatef(pitch * 180.0f / M_PI, 0.0f, 1.0f, 0.0f); - glRotatef(roll * 180.0f / M_PI, 1.0f, 0.0f, 0.0f); - - glLineWidth(3.0f); - - // X AXIS - glColor3f(1.0f, 0.0f, 0.0f); - glBegin(GL_LINES); - glVertex3f(0.0f, 0.0f, 0.0f); - glVertex3f(0.3f, 0.0f, 0.0f); - glEnd(); - - // Y AXIS - glColor3f(0.0f, 1.0f, 0.0f); - glBegin(GL_LINES); - glVertex3f(0.0f, 0.0f, 0.0f); - glVertex3f(0.0f, 0.15f, 0.0f); - glEnd(); - - // Z AXIS - glColor3f(0.0f, 0.0f, 1.0f); - glBegin(GL_LINES); - glVertex3f(0.0f, 0.0f, 0.0f); - glVertex3f(0.0f, 0.0f, 0.15f); - glEnd(); - - cheetahModel->draw(); - - glPopMatrix(); -} - -void -QMap3DWidget::drawGrid(float x, float y, float z) const -{ - float radius = 10.0f; - float resolution = 0.25f; - - glPushMatrix(); - - // draw a 20m x 20m grid with 0.25m resolution - glColor3f(0.5f, 0.5f, 0.5f); - for (float i = -radius; i <= radius; i += resolution) - { - if (fabsf(i - roundf(i)) < 0.01f) - { - glLineWidth(2.0f); - } - else - { - glLineWidth(0.25f); - } - - glBegin(GL_LINES); - glVertex3f(x + i, y - radius, -z); - glVertex3f(x + i, y + radius, -z); - glVertex3f(x - radius, y + i, -z); - glVertex3f(x + radius, y + i, -z); - glEnd(); - } - - glPopMatrix(); -} - -void -QMap3DWidget::drawImagery(double originX, double originY, double originZ, - const QString& zone, bool prefetch) const -{ - glPushMatrix(); - glEnable(GL_BLEND); - - glTranslatef(0, 0, -originZ); - - double viewingRadius = cameraPose.distance / 4000.0 * 3000.0; - if (viewingRadius < 100.0) - { - viewingRadius = 100.0; - } - - double minResolution = 0.25; - double centerResolution = cameraPose.distance / 100.0; - double maxResolution = 1048576.0; - - if (imageryComboBox->currentText().compare("Map (Google)") == 0) - { - minResolution = 0.25; - } - else if (imageryComboBox->currentText().compare("Satellite (Google)") == 0) - { - minResolution = 0.5; - } - - double resolution = minResolution; - while (resolution * 2.0 < centerResolution) - { - resolution *= 2.0; - } - if (resolution > maxResolution) - { - resolution = maxResolution; - } - - imagery->draw3D(viewingRadius, resolution, originX, originY, - cameraPose.xOffset, cameraPose.yOffset, zone); - - if (prefetch) - { - if (resolution / 2.0 >= minResolution) - { - imagery->prefetch3D(viewingRadius / 2.0, resolution / 2.0, - originX, originY, - cameraPose.xOffset, cameraPose.yOffset, zone); - } - if (resolution * 2.0 <= maxResolution) - { - imagery->prefetch3D(viewingRadius * 2.0, resolution * 2.0, - originX, originY, - cameraPose.xOffset, cameraPose.yOffset, zone); - } - } - - glDisable(GL_BLEND); - glPopMatrix(); -} - -void -QMap3DWidget::drawTrail(float x, float y, float z) -{ - bool addToTrail = false; - if (trail.size() > 0) - { - if (fabsf(x - trail[trail.size() - 1].x) > 0.01f || - fabsf(y - trail[trail.size() - 1].y) > 0.01f || - fabsf(z - trail[trail.size() - 1].z) > 0.01f) - { - addToTrail = true; - } - } - else - { - addToTrail = true; - } - - if (addToTrail) - { - Pose3D p = {x, y, z}; - if (trail.size() == trail.capacity()) - { - memcpy(trail.data(), trail.data() + 1, - (trail.size() - 1) * sizeof(Pose3D)); - trail[trail.size() - 1] = p; - } - else - { - trail.append(p); - } - } - - glColor3f(1.0f, 0.0f, 0.0f); - glLineWidth(1.0f); - glBegin(GL_LINE_STRIP); - for (int32_t i = 0; i < trail.size(); ++i) - { - glVertex3f(trail[i].x - x, trail[i].y - y, trail[i].z - z); - } - glEnd(); -} - -void -QMap3DWidget::drawTarget(float x, float y, float z) const -{ - static double radius = 0.2; - static bool expand = true; - - if (radius < 0.1) - { - expand = true; - } - else if (radius > 0.25) - { - expand = false; - } - - glPushMatrix(); - glTranslatef(targetPosition.x - x, targetPosition.y - y, 0.0f); - glColor3f(0.0f, 0.7f, 1.0f); - glLineWidth(1.0f); - - wireSphere(radius, 10, 10); - - if (expand) - { - radius += 0.02; - } - else - { - radius -= 0.02; - } - - glPopMatrix(); -} diff --git a/src/ui/map3D/QMap3DWidget.h b/src/ui/map3D/QMap3DWidget.h deleted file mode 100644 index 1b547b8ceb5a049ec34d2aa84dcb41c2957d4ffb..0000000000000000000000000000000000000000 --- a/src/ui/map3D/QMap3DWidget.h +++ /dev/null @@ -1,127 +0,0 @@ -/*===================================================================== - -QGroundControl Open Source Ground Control Station - -(c) 2009, 2010 QGROUNDCONTROL PROJECT - -This file is part of the QGROUNDCONTROL project - - QGROUNDCONTROL is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - QGROUNDCONTROL is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with QGROUNDCONTROL. If not, see . - -======================================================================*/ - -/** - * @file - * @brief Definition of the class QMap3DWidget. - * - * @author Lionel Heng - * - */ - -#ifndef QMAP3DWIDGET_H -#define QMAP3DWIDGET_H - -#include - -#include "Imagery.h" -#include "Q3DWidget.h" - -class CheetahModel; -class UASInterface; - -/** - * @brief A 3D View widget which displays vehicle-centric information. - **/ -class QMap3DWidget : public Q3DWidget -{ - Q_OBJECT - -public: - explicit QMap3DWidget(QWidget* parent); - ~QMap3DWidget(); - - void buildLayout(void); - - static void display(void* clientData); - void displayHandler(void); -// void paintEvent(QPaintEvent *event); - - static void mouse(Qt::MouseButton button, MouseState state, - int32_t x, int32_t y, void* clientData); - void mouseHandler(Qt::MouseButton button, MouseState state, - int32_t x, int32_t y); - - static void timer(void* clientData); - void timerHandler(void); - - double getTime(void) const; - -public slots: - void setActiveUAS(UASInterface* uas); - void markTarget(void); - -private slots: - void showGrid(int state); - void showTrail(int state); - void showImagery(const QString& text); - void recenterCamera(void); - void toggleLockCamera(int state); - -protected: - UASInterface* uas; - void paintText(QString text, QColor color, float fontSize, - float refX, float refY, QPainter* painter) const; - void drawWaypoints(void) const; - -private: - void drawPlatform(float roll, float pitch, float yaw) const; - void drawGrid(float x, float y, float z) const; - void drawImagery(double originX, double originY, double originZ, - const QString& zone, bool prefetch) const; - void drawTrail(float x, float y, float z); - void drawTarget(float x, float y, float z) const; - - void drawLegend(void); - - double lastRedrawTime; - - bool displayGrid; - bool displayImagery; - bool displayTrail; - - typedef struct - { - float x; - float y; - float z; - } Pose3D; - - bool lockCamera; - Pose3D lastUnlockedPose; - bool updateLastUnlockedPose; - Pose3D camOffset; - - QVarLengthArray trail; - - bool displayTarget; - bool displayWaypoints; - Pose3D targetPosition; - - QScopedPointer cheetahModel; - QScopedPointer imagery; - - QComboBox* imageryComboBox; -}; - -#endif // QMAP3DWIDGET_H diff --git a/src/ui/map3D/QOSGWidget.cc b/src/ui/map3D/QOSGWidget.cc new file mode 100644 index 0000000000000000000000000000000000000000..c97eab99d58aaf4ccca27dd86bdc280193820e9d --- /dev/null +++ b/src/ui/map3D/QOSGWidget.cc @@ -0,0 +1,261 @@ +/* OpenSceneGraph example, osganimate. +* +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE. +*/ + +#include "QOSGWidget.h" + +#ifdef Q_OS_MACX + +#endif + +QOSGWidget::QOSGWidget( QWidget * parent, const char * name, WindowFlags f, bool overrideTraits): + QWidget(parent, f), _overrideTraits (overrideTraits) +{ + createContext(); + Q_UNUSED(name); + setAttribute(Qt::WA_PaintOnScreen); + setAttribute(Qt::WA_NoSystemBackground); + setFocusPolicy(Qt::ClickFocus); +} + +void QOSGWidget::createContext() +{ + osg::DisplaySettings* ds = osg::DisplaySettings::instance(); + + osg::ref_ptr traits = new osg::GraphicsContext::Traits; + + traits->readDISPLAY(); + if (traits->displayNum<0) traits->displayNum = 0; + + traits->windowName = "osgViewerQt"; + traits->screenNum = 0; + traits->x = x(); + traits->y = y(); + traits->width = width(); + traits->height = height(); + traits->alpha = ds->getMinimumNumAlphaBits(); + traits->stencil = ds->getMinimumNumStencilBits(); + traits->windowDecoration = false; + traits->doubleBuffer = true; + traits->sharedContext = 0; + traits->sampleBuffers = ds->getMultiSamples(); + traits->samples = ds->getNumMultiSamples(); + +#if defined(__APPLE__) + // Extract a WindowPtr from the HIViewRef that QWidget::winId() returns. + // Without this change, the peer tries to call GetWindowPort on the HIViewRef + // which returns 0 and we only render white. + traits->inheritedWindowData = new WindowData(HIViewGetWindow((HIViewRef)winId())); + +#else // all others + traits->inheritedWindowData = new WindowData(winId()); +#endif + + + if (ds->getStereo()) + { + switch(ds->getStereoMode()) + { + case(osg::DisplaySettings::QUAD_BUFFER): traits->quadBufferStereo = true; break; + case(osg::DisplaySettings::VERTICAL_INTERLACE): + case(osg::DisplaySettings::CHECKERBOARD): + case(osg::DisplaySettings::HORIZONTAL_INTERLACE): traits->stencil = 8; break; + default: break; + } + } + + osg::ref_ptr gc = osg::GraphicsContext::createGraphicsContext(traits.get()); + _gw = dynamic_cast(gc.get()); + + // get around dearanged traits on X11 (MTCompositeViewer only) + if (_overrideTraits) + { + traits->x = x(); + traits->y = y(); + traits->width = width(); + traits->height = height(); + } + +} + +#ifndef WIN32 +void QOSGWidget::destroyEvent(bool destroyWindow, bool destroySubWindows) +{ + Q_UNUSED(destroyWindow); + Q_UNUSED(destroySubWindows); + _gw->getEventQueue()->closeWindow(); +} + + +void QOSGWidget::closeEvent( QCloseEvent * event ) +{ + event->accept(); + + _gw->getEventQueue()->closeWindow(); +} + + +void QOSGWidget::resizeEvent( QResizeEvent * event ) +{ + const QSize & size = event->size(); + _gw->getEventQueue()->windowResize(0, 0, size.width(), size.height() ); + _gw->resized(0, 0, size.width(), size.height()); +} + +void QOSGWidget::keyPressEvent( QKeyEvent* event ) +{ + _gw->getEventQueue()->keyPress( (osgGA::GUIEventAdapter::KeySymbol) *(event->text().toAscii().data() ) ); +} + +void QOSGWidget::keyReleaseEvent( QKeyEvent* event ) +{ + int c = *event->text().toAscii().data(); + + _gw->getEventQueue()->keyRelease( (osgGA::GUIEventAdapter::KeySymbol) (c) ); +} + +void QOSGWidget::mousePressEvent( QMouseEvent* event ) +{ + int button = 0; + switch(event->button()) + { + case(Qt::LeftButton): button = 1; break; + case(Qt::MidButton): button = 2; break; + case(Qt::RightButton): button = 3; break; + case(Qt::NoButton): button = 0; break; + default: button = 0; break; + } + _gw->getEventQueue()->mouseButtonPress(event->x(), event->y(), button); +} +void QOSGWidget::mouseDoubleClickEvent ( QMouseEvent * event ) +{ + int button = 0; + switch(event->button()) + { + case(Qt::LeftButton): button = 1; break; + case(Qt::MidButton): button = 2; break; + case(Qt::RightButton): button = 3; break; + case(Qt::NoButton): button = 0; break; + default: button = 0; break; + } + _gw->getEventQueue()->mouseDoubleButtonPress(event->x(), event->y(), button); +} +void QOSGWidget::mouseReleaseEvent( QMouseEvent* event ) +{ + int button = 0; + switch(event->button()) + { + case(Qt::LeftButton): button = 1; break; + case(Qt::MidButton): button = 2; break; + case(Qt::RightButton): button = 3; break; + case(Qt::NoButton): button = 0; break; + default: button = 0; break; + } + _gw->getEventQueue()->mouseButtonRelease(event->x(), event->y(), button); +} + +void QOSGWidget::mouseMoveEvent( QMouseEvent* event ) +{ + _gw->getEventQueue()->mouseMotion(event->x(), event->y()); +} +#endif + + + + +void CompositeViewerQOSG::Tile() +{ + int n = getNumViews() - 1; // -1 to account for dummy view + + for ( int i = 0; i < n; ++i ) + { + osgViewer::View * view = getView(i+1); // +1 to account for dummy view + view->getCamera()->setViewport( new osg::Viewport( 0, i*height()/n , width(), height()/n ) ); + view->getCamera()->setProjectionMatrixAsPerspective( 30.0f, double( width() ) / double( height()/n ), 1.0f, 10000.0f ); + } +} + + +void CompositeViewerQOSG::AddView( osg::Node * scene ) +{ + osgViewer::View* view = new osgViewer::View; + addView(view); + + view->setSceneData( scene ); + view->setCameraManipulator(new osgGA::TrackballManipulator); + + // add the state manipulator + osg::ref_ptr statesetManipulator = new osgGA::StateSetManipulator; + statesetManipulator->setStateSet(view->getCamera()->getOrCreateStateSet()); + + view->getCamera()->setGraphicsContext( getGraphicsWindow() ); + view->getCamera()->setClearColor( osg::Vec4( 0.08, 0.08, 0.5, 1.0 ) ); + Tile(); +} + +void CompositeViewerQOSG::RemoveView() +{ + if ( getNumViews() > 1 ) + { + removeView( getView( getNumViews() - 1 ) ); + } + Tile(); +} + +// we use this wrapper for CompositeViewer ONLY because of the timer +// NOTE: this is a workaround because we're not using QT's moc precompiler here. +// +class QViewerTimer : public QWidget +{ + + public: + + QViewerTimer (int fps = 20, QWidget * parent = 0, WindowFlags f = 0): + QWidget (parent, f) + { + _viewer = new osgViewer::CompositeViewer (); + _viewer->setThreadingModel(osgViewer::CompositeViewer::DrawThreadPerContext); + connect(&_timer, SIGNAL(timeout()), this, SLOT(repaint())); + _timer.start(1000.0f/fps); + } + + ~QViewerTimer () + { + _timer.stop (); + } + + virtual void paintEvent (QPaintEvent * event) { Q_UNUSED(event); _viewer->frame(); } + + osg::ref_ptr _viewer; + QTimer _timer; + +}; + +void setupHandlers(osgViewer::View * viewer) +{ + // add the state manipulator + viewer->addEventHandler( new osgGA::StateSetManipulator(viewer->getCamera()->getOrCreateStateSet()) ); + + // add the thread model handler + viewer->addEventHandler(new osgViewer::ThreadingHandler); + + // add the window size toggle handler + viewer->addEventHandler(new osgViewer::WindowSizeHandler); + + // add the stats handler + viewer->addEventHandler(new osgViewer::StatsHandler); +} diff --git a/src/ui/map3D/QOSGWidget.h b/src/ui/map3D/QOSGWidget.h new file mode 100644 index 0000000000000000000000000000000000000000..3e788e03da5d53cee3776e23bf6765cff695187f --- /dev/null +++ b/src/ui/map3D/QOSGWidget.h @@ -0,0 +1,193 @@ +/* OpenSceneGraph example, osganimate. +* +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE. +*/ + +#include + +#if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS) +// disable warning "'QtConcurrent::BlockSizeManager' : assignment operator could not be generated" +#pragma warning( disable : 4512 ) +#endif + +#include +#include +#include +#include +#include +#include +using Qt::WindowFlags; + +#include +#include +#include +#include + +#include + +#if defined(WIN32) && !defined(__CYGWIN__) +#include +typedef HWND WindowHandle; +typedef osgViewer::GraphicsWindowWin32::WindowData WindowData; +#elif defined(__APPLE__) // Assume using Carbon on Mac. +#include +typedef WindowRef WindowHandle; +typedef osgViewer::GraphicsWindowCarbon::WindowData WindowData; +#else // all other unix +#include +typedef Window WindowHandle; +typedef osgViewer::GraphicsWindowX11::WindowData WindowData; +#endif + + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include +#include + +#ifndef QOSGWIDGET_H +#define QOSGWIDGET_H + +class QOSGWidget : public QWidget +{ +public: + + QOSGWidget( QWidget * parent = 0, const char * name = 0, WindowFlags f = 0, bool overrideTraits = false); + + virtual ~QOSGWidget() {} + + osgViewer::GraphicsWindow* getGraphicsWindow() { return _gw.get(); } + const osgViewer::GraphicsWindow* getGraphicsWindow() const { return _gw.get(); } + +protected: + + void init(); + void createContext(); + + // The GraphincsWindowWin32 implementation already takes care of message handling. + // We don't want to relay these on Windows, it will just cause duplicate messages + // with further problems downstream (i.e. not being able to throw the trackball +#ifndef WIN32 + virtual void mouseDoubleClickEvent ( QMouseEvent * event ); + virtual void closeEvent( QCloseEvent * event ); + virtual void destroyEvent( bool destroyWindow = true, bool destroySubWindows = true); + virtual void resizeEvent( QResizeEvent * event ); + virtual void keyPressEvent( QKeyEvent* event ); + virtual void keyReleaseEvent( QKeyEvent* event ); + virtual void mousePressEvent( QMouseEvent* event ); + virtual void mouseReleaseEvent( QMouseEvent* event ); + virtual void mouseMoveEvent( QMouseEvent* event ); +#endif + osg::ref_ptr _gw; + bool _overrideTraits; +}; + +class ViewerQOSG : public osgViewer::Viewer, public QOSGWidget +{ +public: + + ViewerQOSG(QWidget * parent = 0, const char * name = 0, WindowFlags f = 0, int fps = 20): + QOSGWidget( parent, name, f ) + { + setThreadingModel(osgViewer::Viewer::SingleThreaded); + + connect(&_timer, SIGNAL(timeout()), this, SLOT(update())); + _timer.start(1000.0f/fps); + } + + void updateCamera() + { + getCamera()->setViewport(new osg::Viewport(0,0,width(),height())); + getCamera()->setProjectionMatrixAsPerspective(30.0f, 1.0f , static_cast(width())/static_cast(height()), 10000.0f); + getCamera()->setGraphicsContext(getGraphicsWindow()); + } + + virtual void paintEvent( QPaintEvent * event ) { Q_UNUSED(event); frame(); } + +protected: + + QTimer _timer; +}; + + +class CompositeViewerQOSG : public osgViewer::CompositeViewer, public QOSGWidget +{ +public: + CompositeViewerQOSG(QWidget * parent = 0, const char * name = 0, WindowFlags f = 0, int fps = 20) + : QOSGWidget( parent, name, f ) + { + setThreadingModel(osgViewer::CompositeViewer::SingleThreaded); + + connect(&_timer, SIGNAL(timeout()), this, SLOT(repaint())); + + // The composite viewer needs at least one view to work + // Create a dummy view with a zero sized viewport and no + // scene to keep the viewer alive. + osgViewer::View * pView = new osgViewer::View; + pView->getCamera()->setGraphicsContext( getGraphicsWindow() ); + pView->getCamera()->setViewport( 0, 0, 0, 0 ); + addView( pView ); + + // Clear the viewer of removed views + getGraphicsWindow()->setClearMask( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); + getGraphicsWindow()->setClearColor( osg::Vec4( 0.08, 0.08, 0.5, 1.0 ) ); + + // The app would hang on exit when using start(1). Behaves better with 10 + // like the non-composite viewer. Was this just a typo? + _timer.start(1000.0f/fps); + } + + virtual void paintEvent( QPaintEvent * event ) { Q_UNUSED(event); frame(); } + + void keyPressEvent( QKeyEvent* event ) + { + if ( event->text() == "a" ) + { + AddView( _scene.get() ); + } + + if ( event->text() == "r" ) + { + RemoveView(); + } + + QOSGWidget::keyPressEvent( event ); + } + + + void AddView( osg::Node * scene ); + void RemoveView(); + void Tile(); + + osg::ref_ptr< osg::Node > _scene; + +protected: + QTimer _timer; +}; + +void setupHandlers(osgViewer::View * viewer); + + +#endif // QOSGWIDGET_H + diff --git a/src/ui/map3D/Texture.cc b/src/ui/map3D/Texture.cc index 184f44fe957fc149065007968300ebac027099c3..54c3f39461eb5ab37310041ec2fcd9c4aa76bd79 100644 --- a/src/ui/map3D/Texture.cc +++ b/src/ui/map3D/Texture.cc @@ -29,11 +29,50 @@ This file is part of the QGROUNDCONTROL project * */ +#include + #include "Texture.h" -Texture::Texture() +Texture::Texture(unsigned int _id) + : id(_id) + , texture2D(new osg::Texture2D) + , geometry(new osg::Geometry) { + texture2D->setFilter(osg::Texture::MIN_FILTER, osg::Texture::NEAREST); + texture2D->setFilter(osg::Texture::MAG_FILTER, osg::Texture::NEAREST); + + texture2D->setDataVariance(osg::Object::DYNAMIC); + texture2D->setResizeNonPowerOfTwoHint(false); + + osg::ref_ptr image = new osg::Image; + texture2D->setImage(image); + + osg::ref_ptr vertices(new osg::Vec3dArray(4)); + geometry->setVertexArray(vertices); + + osg::ref_ptr textureCoords = new osg::Vec2Array; + textureCoords->push_back(osg::Vec2(0.0f, 1.0f)); + textureCoords->push_back(osg::Vec2(1.0f, 1.0f)); + textureCoords->push_back(osg::Vec2(1.0f, 0.0f)); + textureCoords->push_back(osg::Vec2(0.0f, 0.0f)); + geometry->setTexCoordArray(0, textureCoords); + geometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINES, + 0, 4)); + + osg::ref_ptr colors(new osg::Vec4Array); + colors->push_back(osg::Vec4(0.0f, 0.0f, 1.0f, 1.0f)); + geometry->setColorArray(colors); + geometry->setColorBinding(osg::Geometry::BIND_OVERALL); + + geometry->setUseDisplayList(false); + + osg::ref_ptr linewidth(new osg::LineWidth); + linewidth->setWidth(2.0f); + geometry->getOrCreateStateSet()-> + setAttributeAndModes(linewidth, osg::StateAttribute::ON); + geometry->getOrCreateStateSet()-> + setMode(GL_LIGHTING, osg::StateAttribute::OFF); } const QString& @@ -42,12 +81,6 @@ Texture::getSourceURL(void) const return sourceURL; } -void -Texture::setID(GLuint id) -{ - this->id = id; -} - void Texture::sync(const WebImagePtr& image) { @@ -63,95 +96,74 @@ Texture::sync(const WebImagePtr& image) { image->setSyncFlag(false); - if (image->getWidth() != imageWidth || - image->getHeight() != imageHeight) + if (texture2D->getImage() != NULL) { - imageWidth = image->getWidth(); - textureWidth = 32; - while (textureWidth < imageWidth) - { - textureWidth *= 2; - } - imageHeight = image->getHeight(); - textureHeight = 32; - while (textureHeight < imageHeight) - { - textureHeight *= 2; - } - - maxU = static_cast(imageWidth) - / static_cast(textureWidth); - maxV = static_cast(imageHeight) - / static_cast(textureHeight); - - glBindTexture(GL_TEXTURE_2D, id); - glTexImage2D(GL_TEXTURE_2D, 0, 3, textureWidth, textureHeight, - 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); + texture2D->getImage()->setImage(image->getWidth(), + image->getHeight(), + 1, + GL_RGBA, + GL_RGBA, + GL_UNSIGNED_BYTE, + image->getImageData(), + osg::Image::NO_DELETE); + texture2D->getImage()->dirty(); } - - glBindTexture(GL_TEXTURE_2D, id); - glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, imageWidth, imageHeight, - GL_RGBA, GL_UNSIGNED_BYTE, image->getData()); } } -void -Texture::draw(float x1, float y1, float x2, float y2, +osg::ref_ptr +Texture::draw(double x1, double y1, double x2, double y2, + double z, bool smoothInterpolation) const { - draw(x1, y1, x2, y1, x2, y2, x1, y2, smoothInterpolation); + return draw(x1, y1, x2, y1, x2, y2, x1, y2, z, smoothInterpolation); } -void -Texture::draw(float x1, float y1, float x2, float y2, - float x3, float y3, float x4, float y4, +osg::ref_ptr +Texture::draw(double x1, double y1, double x2, double y2, + double x3, double y3, double x4, double y4, + double z, bool smoothInterpolation) const { + osg::Vec3dArray* vertices = + static_cast(geometry->getVertexArray()); + (*vertices)[0].set(x1, y1, z); + (*vertices)[1].set(x2, y2, z); + (*vertices)[2].set(x3, y3, z); + (*vertices)[3].set(x4, y4, z); + + osg::DrawArrays* drawarrays = + static_cast(geometry->getPrimitiveSet(0)); + osg::Vec4Array* colors = + static_cast(geometry->getColorArray()); + if (state == REQUESTED) { - glBegin(GL_LINE_LOOP); - glColor3f(0.0f, 0.0f, 1.0f); - glVertex2f(x1, y1); - glVertex2f(x2, y2); - glVertex2f(x3, y3); - glVertex2f(x4, y4); - glEnd(); - - return; - } + drawarrays->set(osg::PrimitiveSet::LINE_LOOP, 0, 4); + (*colors)[0].set(0.0f, 0.0f, 1.0f, 1.0f); + + geometry->getOrCreateStateSet()-> + setTextureAttributeAndModes(0, texture2D, osg::StateAttribute::OFF); - glEnable(GL_TEXTURE_2D); - glBindTexture(GL_TEXTURE_2D, id); + return geometry; + } - float dx, dy; if (smoothInterpolation) { - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - dx = 1.0f / (2.0f * textureWidth); - dy = 1.0f / (2.0f * textureHeight); + texture2D->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR); + texture2D->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR); } else { - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); - dx = 0.0f; - dy = 0.0f; + texture2D->setFilter(osg::Texture::MIN_FILTER, osg::Texture::NEAREST); + texture2D->setFilter(osg::Texture::MAG_FILTER, osg::Texture::NEAREST); } - glColor3f(1.0f, 1.0f, 1.0f); - glBegin(GL_QUADS); - - glTexCoord2f(dx, maxV - dy); - glVertex2f(x1, y1); - glTexCoord2f(maxU - dx, maxV - dy); - glVertex2f(x2, y2); - glTexCoord2f(maxU - dx, dy); - glVertex2f(x3, y3); - glTexCoord2f(dx, dy); - glVertex2f(x4, y4); + drawarrays->set(osg::PrimitiveSet::POLYGON, 0, 4); + (*colors)[0].set(1.0f, 1.0f, 1.0f, 1.0f); - glEnd(); + geometry->getOrCreateStateSet()-> + setTextureAttributeAndModes(0, texture2D, osg::StateAttribute::ON); - glDisable(GL_TEXTURE_2D); + return geometry; } diff --git a/src/ui/map3D/Texture.h b/src/ui/map3D/Texture.h index 4b81617c6dc230c6a63ec2f1994fa22926e5d7ca..8bf82ab3b677a8e1a29198d8b1f60f5b4f1fda96 100644 --- a/src/ui/map3D/Texture.h +++ b/src/ui/map3D/Texture.h @@ -32,12 +32,10 @@ This file is part of the QGROUNDCONTROL project #ifndef TEXTURE_H #define TEXTURE_H -#if (defined __APPLE__) & (defined __MACH__) -#include -#else -#include -#endif #include +#include +#include +#include #include #include "WebImage.h" @@ -45,19 +43,21 @@ This file is part of the QGROUNDCONTROL project class Texture { public: - Texture(); + explicit Texture(unsigned int _id); const QString& getSourceURL(void) const; - void setID(GLuint id); + void setId(unsigned int _id); void sync(const WebImagePtr& image); - void draw(float x1, float y1, float x2, float y2, - bool smoothInterpolation) const; - void draw(float x1, float y1, float x2, float y2, - float x3, float y3, float x4, float y4, - bool smoothInterpolation) const; + osg::ref_ptr draw(double x1, double y1, double x2, double y2, + double z, + bool smoothInterpolation) const; + osg::ref_ptr draw(double x1, double y1, double x2, double y2, + double x3, double y3, double x4, double y4, + double z, + bool smoothInterpolation) const; private: enum State @@ -69,16 +69,9 @@ private: State state; QString sourceURL; - GLuint id; - - int32_t textureWidth; - int32_t textureHeight; - - int32_t imageWidth; - int32_t imageHeight; - - float maxU; - float maxV; + unsigned int id; + osg::ref_ptr texture2D; + osg::ref_ptr geometry; }; typedef QSharedPointer TexturePtr; diff --git a/src/ui/map3D/TextureCache.cc b/src/ui/map3D/TextureCache.cc index 477c2b7f4906282878cd1114e110350ababbb4c3..5e36a72c79a6dda90858f4a522f3d3583d496b2d 100644 --- a/src/ui/map3D/TextureCache.cc +++ b/src/ui/map3D/TextureCache.cc @@ -37,15 +37,7 @@ TextureCache::TextureCache(uint32_t _cacheSize) { for (uint32_t i = 0; i < cacheSize; ++i) { - TexturePtr t(new Texture); - - GLuint id; - glGenTextures(1, &id); - t->setID(id); - glBindTexture(GL_TEXTURE_2D, id); - glPixelStorei(GL_UNPACK_ALIGNMENT, 1); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + TexturePtr t(new Texture(i)); textures.push_back(t); } diff --git a/src/ui/map3D/WaypointGroupNode.cc b/src/ui/map3D/WaypointGroupNode.cc new file mode 100644 index 0000000000000000000000000000000000000000..26ba1612905ad043d683df3e87105158ac21bb92 --- /dev/null +++ b/src/ui/map3D/WaypointGroupNode.cc @@ -0,0 +1,175 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009, 2010 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief Definition of the class WaypointGroupNode. + * + * @author Lionel Heng + * + */ + +#include "WaypointGroupNode.h" + +#include +#include +#include + +#include "Imagery.h" + +WaypointGroupNode::WaypointGroupNode() +{ + +} + +void +WaypointGroupNode::init(void) +{ + +} + +void +WaypointGroupNode::update(MAV_FRAME frame, UASInterface *uas) +{ + if (uas) + { + double robotX = 0.0; + double robotY = 0.0; + double robotZ = 0.0; + if (frame == MAV_FRAME_GLOBAL) + { + double latitude = uas->getLatitude(); + double longitude = uas->getLongitude(); + double altitude = uas->getAltitude(); + + QString utmZone; + Imagery::LLtoUTM(latitude, longitude, robotX, robotY, utmZone); + robotZ = -altitude; + } + else if (frame == MAV_FRAME_LOCAL) + { + robotX = uas->getLocalX(); + robotY = uas->getLocalY(); + robotZ = uas->getLocalZ(); + } + + if (getNumChildren() > 0) + { + removeChild(0, getNumChildren()); + } + + const QVector& list = uas->getWaypointManager().getWaypointList(); + + for (int i = 0; i < list.size(); i++) + { + Waypoint* wp = list.at(i); + + double wpX, wpY, wpZ; + getPosition(wp, wpX, wpY, wpZ); + + osg::ref_ptr sd = new osg::ShapeDrawable; + osg::ref_ptr cylinder = + new osg::Cylinder(osg::Vec3d(0.0, 0.0, -wpZ / 2.0), + wp->getOrbit(), + fabs(wpZ)); + + sd->setShape(cylinder); + sd->getOrCreateStateSet()->setMode(GL_BLEND, osg::StateAttribute::ON); + + if (wp->getCurrent()) + { + sd->setColor(osg::Vec4(1.0f, 0.3f, 0.3f, 0.5f)); + } + else + { + sd->setColor(osg::Vec4(0.0f, 1.0f, 0.0f, 0.5f)); + } + + osg::ref_ptr geode = new osg::Geode; + geode->addDrawable(sd); + + char wpLabel[10]; + sprintf(wpLabel, "wp%d", i); + geode->setName(wpLabel); + + if (i < list.size() - 1) + { + double nextWpX, nextWpY, nextWpZ; + getPosition(list.at(i + 1), nextWpX, nextWpY, nextWpZ); + + osg::ref_ptr geometry = new osg::Geometry; + osg::ref_ptr vertices = new osg::Vec3dArray; + vertices->push_back(osg::Vec3d(0.0, 0.0, -wpZ)); + vertices->push_back(osg::Vec3d(nextWpY - wpY, + nextWpX - wpX, + -nextWpZ)); + geometry->setVertexArray(vertices); + + osg::ref_ptr colors = new osg::Vec4Array; + colors->push_back(osg::Vec4(0.0f, 1.0f, 0.0f, 0.5f)); + geometry->setColorArray(colors); + geometry->setColorBinding(osg::Geometry::BIND_OVERALL); + + geometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINES, 0, 2)); + + osg::ref_ptr linewidth(new osg::LineWidth()); + linewidth->setWidth(2.0f); + geometry->getOrCreateStateSet()->setAttributeAndModes(linewidth, osg::StateAttribute::ON); + geometry->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF); + + geode->addDrawable(geometry); + } + + osg::ref_ptr pat = + new osg::PositionAttitudeTransform; + + pat->setPosition(osg::Vec3d(wpY - robotY, + wpX - robotX, + robotZ)); + + addChild(pat); + pat->addChild(geode); + } + } +} + +void +WaypointGroupNode::getPosition(Waypoint* wp, double &x, double &y, double &z) +{ + if (wp->getFrame() == MAV_FRAME_GLOBAL) + { + double latitude = wp->getY(); + double longitude = wp->getX(); + double altitude = wp->getZ(); + + QString utmZone; + Imagery::LLtoUTM(latitude, longitude, x, y, utmZone); + z = -altitude; + } + else if (wp->getFrame() == MAV_FRAME_LOCAL) + { + x = wp->getX(); + y = wp->getY(); + z = wp->getZ(); + } +} diff --git a/src/ui/map3D/CheetahModel.cc b/src/ui/map3D/WaypointGroupNode.h similarity index 71% rename from src/ui/map3D/CheetahModel.cc rename to src/ui/map3D/WaypointGroupNode.h index 665323fb0c70f29a3f7eae5116055bed21f9bd83..1c1c4de8ec46e55c2f8ccb0bdfd1bd1e8d360f91 100644 --- a/src/ui/map3D/CheetahModel.cc +++ b/src/ui/map3D/WaypointGroupNode.h @@ -23,33 +23,29 @@ This file is part of the QGROUNDCONTROL project /** * @file - * @brief Definition of the class CheetahModel. + * @brief Definition of the class WaypointGroupNode. * * @author Lionel Heng * */ -#include "CheetahModel.h" +#ifndef WAYPOINTGROUPNODE_H +#define WAYPOINTGROUPNODE_H -#include "CheetahGL.h" +#include -CheetahModel::CheetahModel() - : cheetah_dl(-1) +#include "UASInterface.h" + +class WaypointGroupNode : public osg::Group { +public: + WaypointGroupNode(); -} + void init(void); + void update(MAV_FRAME frame, UASInterface* uas); -void -CheetahModel::init(float red, float green, float blue) -{ - cheetah_dl = generatePixhawkCheetah(red, green, blue); -} +private: + void getPosition(Waypoint* wp, double& x, double& y, double& z); +}; -void -CheetahModel::draw(void) -{ - glPushMatrix(); - glScalef(0.5f, 0.5f, -0.5f); - glCallList(cheetah_dl); - glPopMatrix(); -} +#endif // WAYPOINTGROUPNODE_H diff --git a/src/ui/map3D/WebImage.cc b/src/ui/map3D/WebImage.cc index be97fa39454e6eb455fdcc83e234b880635b11ef..23cf20769b09c795dcc0dbfeeb96aa549c5362c1 100644 --- a/src/ui/map3D/WebImage.cc +++ b/src/ui/map3D/WebImage.cc @@ -31,7 +31,7 @@ This file is part of the QGROUNDCONTROL project #include "WebImage.h" -#include +#include #include WebImage::WebImage() @@ -77,13 +77,13 @@ WebImage::setSourceURL(const QString& url) sourceURL = url; } -const uint8_t* -WebImage::getData(void) const +uchar* +WebImage::getImageData(void) const { return image->scanLine(0); } -void +bool WebImage::setData(const QByteArray& data) { QImage tempImage; @@ -94,39 +94,61 @@ WebImage::setData(const QByteArray& data) image.reset(new QImage); } *image = QGLWidget::convertToGLFormat(tempImage); + + return true; + } + else + { + return false; + } +} + +bool +WebImage::setData(const QString& filename) +{ + QImage tempImage; + if (tempImage.load(filename)) + { + if (image.isNull()) + { + image.reset(new QImage); + } + *image = QGLWidget::convertToGLFormat(tempImage); + + return true; } else { - qDebug() << "# WARNING: cannot load image data for" << sourceURL; + return false; } } -int32_t +int WebImage::getWidth(void) const { return image->width(); } -int32_t +int WebImage::getHeight(void) const { return image->height(); } -int32_t +int WebImage::getByteCount(void) const { return image->byteCount(); } -uint64_t +ulong WebImage::getLastReference(void) const { return lastReference; } void -WebImage::setLastReference(uint64_t value) +WebImage::setLastReference(ulong value) { lastReference = value; } diff --git a/src/ui/map3D/WebImage.h b/src/ui/map3D/WebImage.h index ac601dcf4bea7688ee54e276458418c72c6a3492..21d8546b3ea1990fce4b49b39bd8cf8bc4bb7c2b 100644 --- a/src/ui/map3D/WebImage.h +++ b/src/ui/map3D/WebImage.h @@ -57,15 +57,16 @@ public: const QString& getSourceURL(void) const; void setSourceURL(const QString& url); - const uint8_t* getData(void) const; - void setData(const QByteArray& data); + uchar* getImageData(void) const; + bool setData(const QByteArray& data); + bool setData(const QString& filename); - int32_t getWidth(void) const; - int32_t getHeight(void) const; - int32_t getByteCount(void) const; + int getWidth(void) const; + int getHeight(void) const; + int getByteCount(void) const; - uint64_t getLastReference(void) const; - void setLastReference(uint64_t value); + ulong getLastReference(void) const; + void setLastReference(ulong value); bool getSyncFlag(void) const; void setSyncFlag(bool onoff); @@ -74,7 +75,7 @@ private: State state; QString sourceURL; QScopedPointer image; - uint64_t lastReference; + ulong lastReference; bool syncFlag; }; diff --git a/src/ui/map3D/WebImageCache.cc b/src/ui/map3D/WebImageCache.cc index 77e3f716600b78d17ffaf8cd4b0b159ca421a7a4..aca9e4fa4360cc4226e59f7b6bfaf1e95f6f512a 100644 --- a/src/ui/map3D/WebImageCache.cc +++ b/src/ui/map3D/WebImageCache.cc @@ -104,7 +104,22 @@ WebImageCache::lookup(const QString& url) ++currentReference; cacheEntry.first->setState(WebImage::REQUESTED); - networkManager->get(QNetworkRequest(QUrl(url))); + if (url.left(4).compare("http") == 0) + { + networkManager->get(QNetworkRequest(QUrl(url))); + } + else + { + if (cacheEntry.first->setData(url)) + { + cacheEntry.first->setSyncFlag(true); + cacheEntry.first->setState(WebImage::READY); + } + else + { + cacheEntry.first->setState(WebImage::UNINITIALIZED); + } + } return cacheEntry; } diff --git a/src/ui/uas/QGCUnconnectedInfoWidget.cc b/src/ui/uas/QGCUnconnectedInfoWidget.cc new file mode 100644 index 0000000000000000000000000000000000000000..dbd9e8e0eb36c0511f14b36adccbe606c0f27706 --- /dev/null +++ b/src/ui/uas/QGCUnconnectedInfoWidget.cc @@ -0,0 +1,46 @@ +#include "QGCUnconnectedInfoWidget.h" +#include "LinkInterface.h" +#include "LinkManager.h" +#include "MAVLinkSimulationLink.h" +#include "MainWindow.h" +#include "ui_QGCUnconnectedInfoWidget.h" + +QGCUnconnectedInfoWidget::QGCUnconnectedInfoWidget(QWidget *parent) : + QWidget(parent), + ui(new Ui::QGCUnconnectedInfoWidget) +{ + ui->setupUi(this); + + connect(ui->simulationButton, SIGNAL(clicked()), this, SLOT(simulate())); + connect(ui->connectButton, SIGNAL(clicked()), this, SLOT(addLink())); +} + +QGCUnconnectedInfoWidget::~QGCUnconnectedInfoWidget() +{ + delete ui; +} + +/** + * @brief Starts the system simulation + */ +void QGCUnconnectedInfoWidget::simulate() +{ + // Try to get reference to MAVLinkSimulationlink + QList links = LinkManager::instance()->getLinks(); + foreach(LinkInterface* link, links) + { + MAVLinkSimulationLink* sim = dynamic_cast(link); + if (sim) + { + sim->connectLink(); + } + } +} + +/** + * @return Opens a "Connect new Link" popup + */ +void QGCUnconnectedInfoWidget::addLink() +{ + MainWindow::instance()->addLink(); +} diff --git a/src/ui/uas/QGCUnconnectedInfoWidget.h b/src/ui/uas/QGCUnconnectedInfoWidget.h new file mode 100644 index 0000000000000000000000000000000000000000..0e758537a1a7c976f4209d3a4e5aa76a6e9018ab --- /dev/null +++ b/src/ui/uas/QGCUnconnectedInfoWidget.h @@ -0,0 +1,37 @@ +#ifndef QGCUNCONNECTEDINFOWIDGET_H +#define QGCUNCONNECTEDINFOWIDGET_H + +#include + +namespace Ui { + class QGCUnconnectedInfoWidget; +} + +/** + * @brief Widget providing initial instructions + * + * This widget provides initial instructions to new users how + * to connect a simulation or a live link to a system to + * QGroundControl. The widget should be automatically be + * unloaded and destroyed once the first MAV/UAS is connected. + * + * @see UASListWidget + */ +class QGCUnconnectedInfoWidget : public QWidget +{ + Q_OBJECT + +public: + explicit QGCUnconnectedInfoWidget(QWidget *parent = 0); + ~QGCUnconnectedInfoWidget(); + + Ui::QGCUnconnectedInfoWidget *ui; + +public slots: + /** @brief Start simulation */ + void simulate(); + /** @brief Add a link */ + void addLink(); +}; + +#endif // QGCUNCONNECTEDINFOWIDGET_H diff --git a/src/ui/uas/QGCUnconnectedInfoWidget.ui b/src/ui/uas/QGCUnconnectedInfoWidget.ui new file mode 100644 index 0000000000000000000000000000000000000000..4eaac71aab3a8d00bbcdcb9fee01101470b6835e --- /dev/null +++ b/src/ui/uas/QGCUnconnectedInfoWidget.ui @@ -0,0 +1,86 @@ + + + QGCUnconnectedInfoWidget + + + + 0 + 0 + 400 + 300 + + + + Form + + + + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + QTextEdit::AutoAll + + + false + + + true + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Lucida Grande'; font-size:13pt; font-weight:400; font-style:normal;"> +<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;"> +<tr> +<td style="border: none;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:14pt; font-weight:600;">Unmanned System List</span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:6pt; font-weight:600;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:11pt; font-weight:600;">No Systems are connected yet.</span><span style=" font-family:'Ubuntu'; font-size:11pt;"> Please either connect a link or use the simulation function to see QGroundControl in action.</span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:11pt;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:11pt; font-style:italic;">Click on the simulation button below to simulate a micro air vehicle or on the connect link button to connect a serial port link. A UDP link is already open for connections on port </span><span style=" font-family:'Ubuntu'; font-size:11pt; font-weight:600; font-style:italic;">14550</span><span style=" font-family:'Ubuntu'; font-size:11pt; font-style:italic;">.</span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:11pt; font-style:italic;"></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:11pt; font-style:italic;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:11pt; font-weight:600;">Communication Link Help:</span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:11pt; font-style:italic;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu'; font-size:11pt;">If you encounter communication problems on your link (e.g. no MAV is shown in the list after connecting the link), please check if you receive data on the link using the communication console. Select </span><span style=" font-family:'Ubuntu'; font-size:11pt; font-weight:600;">Tools -&gt; Communication Console</span><span style=" font-family:'Ubuntu'; font-size:11pt;"> to enable it. The console should show incoming traffic and some used bandwidth (e.g. 1.43 kB/s on the indicator).</span></p></td></tr></table></body></html> + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Simulate MAV + + + + + + + Connect Link + + + + + + + + diff --git a/src/ui/uas/UASControlWidget.cc b/src/ui/uas/UASControlWidget.cc index 647b6831f842de6ea7a1d715dd74536fca2232fc..a007e7c96c0ee3bd9df2969ec93d210723cc23c1 100644 --- a/src/ui/uas/UASControlWidget.cc +++ b/src/ui/uas/UASControlWidget.cc @@ -49,6 +49,8 @@ This file is part of the PIXHAWK project #define CONTROL_MODE_TEST1 "MODE TEST1" #define CONTROL_MODE_TEST2 "MODE TEST2" #define CONTROL_MODE_TEST3 "MODE TEST3" +#define CONTROL_MODE_READY "MODE TEST3" +#define CONTROL_MODE_RC_TRAINING "RC SIMULATION" #define CONTROL_MODE_LOCKED_INDEX 1 #define CONTROL_MODE_MANUAL_INDEX 2 @@ -57,6 +59,8 @@ This file is part of the PIXHAWK project #define CONTROL_MODE_TEST1_INDEX 5 #define CONTROL_MODE_TEST2_INDEX 6 #define CONTROL_MODE_TEST3_INDEX 7 +#define CONTROL_MODE_READY_INDEX 8 +#define CONTROL_MODE_RC_TRAINING_INDEX 9 UASControlWidget::UASControlWidget(QWidget *parent) : QWidget(parent), uas(0), @@ -74,6 +78,8 @@ engineOn(false) ui.modeComboBox->insertItem(CONTROL_MODE_TEST1_INDEX, CONTROL_MODE_TEST1); ui.modeComboBox->insertItem(CONTROL_MODE_TEST2_INDEX, CONTROL_MODE_TEST2); ui.modeComboBox->insertItem(CONTROL_MODE_TEST3_INDEX, CONTROL_MODE_TEST3); + ui.modeComboBox->insertItem(CONTROL_MODE_READY_INDEX, CONTROL_MODE_READY); + ui.modeComboBox->insertItem(CONTROL_MODE_RC_TRAINING_INDEX, CONTROL_MODE_RC_TRAINING); connect(ui.modeComboBox, SIGNAL(activated(int)), this, SLOT(setMode(int))); connect(ui.setModeButton, SIGNAL(clicked()), this, SLOT(transmitMode())); @@ -89,6 +95,7 @@ void UASControlWidget::setUAS(UASInterface* uas) disconnect(ui.liftoffButton, SIGNAL(clicked()), oldUAS, SLOT(launch())); disconnect(ui.landButton, SIGNAL(clicked()), oldUAS, SLOT(home())); disconnect(ui.shutdownButton, SIGNAL(clicked()), oldUAS, SLOT(shutdown())); + connect(ui.setHomeButton, SIGNAL(clicked()), uas, SLOT(setLocalOriginAtCurrentGPSPosition())); disconnect(uas, SIGNAL(modeChanged(int,QString,QString)), this, SLOT(updateMode(int,QString,QString))); disconnect(uas, SIGNAL(statusChanged(int)), this, SLOT(updateState(int))); } @@ -98,6 +105,7 @@ void UASControlWidget::setUAS(UASInterface* uas) connect(ui.liftoffButton, SIGNAL(clicked()), uas, SLOT(launch())); connect(ui.landButton, SIGNAL(clicked()), uas, SLOT(home())); connect(ui.shutdownButton, SIGNAL(clicked()), uas, SLOT(shutdown())); + connect(ui.setHomeButton, SIGNAL(clicked()), uas, SLOT(setLocalOriginAtCurrentGPSPosition())); connect(uas, SIGNAL(modeChanged(int,QString,QString)), this, SLOT(updateMode(int,QString,QString))); connect(uas, SIGNAL(statusChanged(int)), this, SLOT(updateState(int))); @@ -212,6 +220,11 @@ void UASControlWidget::setMode(int mode) uasMode = (unsigned int)MAV_MODE_TEST3; ui.modeComboBox->setCurrentIndex(mode); } + else if (mode == CONTROL_MODE_RC_TRAINING_INDEX) + { + uasMode = (unsigned int)MAV_MODE_RC_TRAINING; + ui.modeComboBox->setCurrentIndex(mode); + } else { qDebug() << "ERROR! MODE NOT FOUND"; @@ -226,8 +239,12 @@ void UASControlWidget::transmitMode() { if (uasMode != 0) { - UASManager::instance()->getUASForId(this->uas)->setMode(uasMode); - ui.lastActionLabel->setText(QString("Set new mode for system %1").arg(UASManager::instance()->getUASForId(uas)->getUASName())); + UASInterface* mav = UASManager::instance()->getUASForId(this->uas); + if (mav) + { + mav->setMode(uasMode); + ui.lastActionLabel->setText(QString("Set new mode for system %1").arg(mav->getUASName())); + } } } diff --git a/src/ui/uas/UASListWidget.cc b/src/ui/uas/UASListWidget.cc index e4fb0026fecea3cbf4974d4e12a5fff1e2c7749f..1d6bd7814869004af5a3f511fd7967b6cfadeb67 100644 --- a/src/ui/uas/UASListWidget.cc +++ b/src/ui/uas/UASListWidget.cc @@ -33,12 +33,17 @@ This file is part of the PIXHAWK project #include #include #include +#include #include "MG.h" #include "UASListWidget.h" #include "UASManager.h" #include "UAS.h" #include "UASView.h" +#include "QGCUnconnectedInfoWidget.h" +#include "MainWindow.h" +#include "MAVLinkSimulationLink.h" +#include "LinkManager.h" UASListWidget::UASListWidget(QWidget *parent) : QWidget(parent), m_ui(new Ui::UASList) { @@ -48,6 +53,10 @@ UASListWidget::UASListWidget(QWidget *parent) : QWidget(parent), m_ui(new Ui::UA listLayout->setAlignment(Qt::AlignTop); this->setLayout(listLayout); + // Construct initial widget + uWidget = new QGCUnconnectedInfoWidget(this); + listLayout->addWidget(uWidget); + this->setMinimumWidth(250); uasViews = QMap(); @@ -74,9 +83,11 @@ void UASListWidget::changeEvent(QEvent *e) void UASListWidget::addUAS(UASInterface* uas) { - if (uasViews.size() == 0) + if (uasViews.isEmpty()) { - // TODO Add label when no UAS is present yet. + listLayout->removeWidget(uWidget); + delete uWidget; + uWidget = NULL; } if (!uasViews.contains(uas)) diff --git a/src/ui/uas/UASListWidget.h b/src/ui/uas/UASListWidget.h index 33d0c7b88a88882c28476a1e8e4b627fdee04248..45f0c735edf9a7bd00076f2b667c45a2a9c28d15 100644 --- a/src/ui/uas/UASListWidget.h +++ b/src/ui/uas/UASListWidget.h @@ -36,6 +36,7 @@ This file is part of the QGROUNDCONTROL project #include #include "UASInterface.h" #include "UASView.h" +#include "QGCUnconnectedInfoWidget.h" #include "ui_UASList.h" class UASListWidget : public QWidget @@ -54,6 +55,7 @@ public slots: protected: QMap uasViews; QVBoxLayout* listLayout; + QGCUnconnectedInfoWidget* uWidget; void changeEvent(QEvent *e); private: diff --git a/src/ui/uas/UASView.cc b/src/ui/uas/UASView.cc index 5c906feb9a367c70529a3a077189f7f42ecd2a3c..01bd37d7fc52d85d7af111347b501dc41498a69a 100644 --- a/src/ui/uas/UASView.cc +++ b/src/ui/uas/UASView.cc @@ -1,5 +1,4 @@ /*===================================================================== - PIXHAWK Micro Air Vehicle Flying Robotics Toolkit (c) 2009, 2010 PIXHAWK PROJECT @@ -10,15 +9,15 @@ This file is part of the PIXHAWK project it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + PIXHAWK is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with PIXHAWK. If not, see . - + ======================================================================*/ /** @@ -33,6 +32,7 @@ This file is part of the PIXHAWK project #include #include +#include "QGC.h" #include "MG.h" #include "UASManager.h" #include "UASView.h" @@ -62,7 +62,7 @@ UASView::UASView(UASInterface* uas, QWidget *parent) : m_ui(new Ui::UASView) { m_ui->setupUi(this); - + // Setup communication //connect(uas, SIGNAL(valueChanged(int,QString,double,quint64)), this, SLOT(receiveValue(int,QString,double,quint64))); connect(uas, SIGNAL(batteryChanged(UASInterface*, double, double, int)), this, SLOT(updateBattery(UASInterface*, double, double, int))); @@ -79,10 +79,10 @@ UASView::UASView(UASInterface* uas, QWidget *parent) : connect(&(uas->getWaypointManager()), SIGNAL(currentWaypointChanged(quint16)), this, SLOT(currentWaypointUpdated(quint16))); connect(uas, SIGNAL(systemTypeSet(UASInterface*,uint)), this, SLOT(setSystemType(UASInterface*,uint))); connect(UASManager::instance(), SIGNAL(activeUASStatusChanged(UASInterface*,bool)), this, SLOT(updateActiveUAS(UASInterface*,bool))); - + // Setup UAS selection connect(m_ui->uasViewFrame, SIGNAL(clicked(bool)), this, SLOT(setUASasActive(bool))); - + // Setup user interaction connect(m_ui->liftoffButton, SIGNAL(clicked()), uas, SLOT(launch())); connect(m_ui->haltButton, SIGNAL(clicked()), uas, SLOT(halt())); @@ -91,9 +91,9 @@ UASView::UASView(UASInterface* uas, QWidget *parent) : connect(m_ui->abortButton, SIGNAL(clicked()), uas, SLOT(emergencySTOP())); connect(m_ui->killButton, SIGNAL(clicked()), uas, SLOT(emergencyKILL())); connect(m_ui->shutdownButton, SIGNAL(clicked()), uas, SLOT(shutdown())); - + // Set static values - + // Name if (uas->getUASName() == "") { @@ -103,13 +103,12 @@ UASView::UASView(UASInterface* uas, QWidget *parent) : { m_ui->nameLabel->setText(uas->getUASName()); } - + setBackgroundColor(); - + // Heartbeat fade refreshTimer = new QTimer(this); connect(refreshTimer, SIGNAL(timeout()), this, SLOT(refresh())); - refreshTimer->start(updateInterval); } UASView::~UASView() @@ -173,30 +172,56 @@ void UASView::mouseDoubleClickEvent (QMouseEvent * event) void UASView::enterEvent(QEvent* event) { - if (event->MouseMove) emit uasInFocus(uas); + if (event->type() == QEvent::MouseMove) + { + emit uasInFocus(uas); + if (uas != UASManager::instance()->getActiveUAS()) + { + grabMouse(QCursor(Qt::PointingHandCursor)); + } + } qDebug() << __FILE__ << __LINE__ << "IN FOCUS"; + + if (event->type() == QEvent::MouseButtonDblClick) + { + qDebug() << __FILE__ << __LINE__ << "UAS CLICKED!"; + } } void UASView::leaveEvent(QEvent* event) { - if (event->MouseMove) emit uasOutFocus(uas); - qDebug() << __FILE__ << __LINE__ << "OUT OF FOCUS"; + if (event->type() == QEvent::MouseMove) + { + emit uasOutFocus(uas); + releaseMouse(); + } +} + +void UASView::showEvent(QShowEvent* event) +{ + // React only to internal (pre-display) + // events + Q_UNUSED(event); + refreshTimer->start(updateInterval); +} + +void UASView::hideEvent(QHideEvent* event) +{ + // React only to internal (pre-display) + // events + Q_UNUSED(event); + refreshTimer->stop(); } void UASView::receiveHeartbeat(UASInterface* uas) { - if (uas == this->uas) - { - refreshTimer->stop(); - QString colorstyle; - heartbeatColor = QColor(20, 200, 20); - colorstyle = colorstyle.sprintf("QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #%02X%02X%02X;}", - heartbeatColor.red(), heartbeatColor.green(), heartbeatColor.blue()); - m_ui->heartbeatIcon->setStyleSheet(colorstyle); - m_ui->heartbeatIcon->setAutoFillBackground(true); - refreshTimer->stop(); - refreshTimer->start(updateInterval); - } + Q_UNUSED(uas); + QString colorstyle; + heartbeatColor = QColor(20, 200, 20); + colorstyle = colorstyle.sprintf("QGroupBox { border: 1px solid #EEEEEE; border-radius: 4px; padding: 0px; margin: 0px; background-color: #%02X%02X%02X;}", + heartbeatColor.red(), heartbeatColor.green(), heartbeatColor.blue()); + m_ui->heartbeatIcon->setStyleSheet(colorstyle); + m_ui->heartbeatIcon->setAutoFillBackground(true); } /** @@ -229,7 +254,27 @@ void UASView::setSystemType(UASInterface* uas, unsigned int systemType) m_ui->typeButton->setIcon(QIcon(":/images/mavs/helicopter.svg")); break; case 5: - m_ui->typeButton->setIcon(QIcon(":/images/mavs/groundstation.svg")); + m_ui->typeButton->setIcon(QIcon(":/images/mavs/unknown.svg")); + break; + case 6: + { + // A groundstation is a special system type, update widget + QString result; + m_ui->nameLabel->setText(tr("OCU ") + result.sprintf("%03d", uas->getUASID())); + m_ui->waypointLabel->setText(""); + m_ui->timeRemainingLabel->setText("Online:"); + m_ui->batteryBar->hide(); + m_ui->thrustBar->hide(); + m_ui->stateLabel->hide(); + m_ui->statusTextLabel->hide(); + m_ui->waypointLabel->hide(); + m_ui->liftoffButton->hide(); + m_ui->haltButton->hide(); + m_ui->landButton->hide(); + m_ui->shutdownButton->hide(); + m_ui->abortButton->hide(); + m_ui->typeButton->setIcon(QIcon(":/images/mavs/groundstation.svg")); + } break; default: m_ui->typeButton->setIcon(QIcon(":/images/mavs/unknown.svg")); @@ -343,90 +388,93 @@ void UASView::refresh() if (generalUpdateCount == 4) { +#if (QGC_EVENTLOOP_DEBUG) + qDebug() << "EVENTLOOP:" << __FILE__ << __LINE__; +#endif generalUpdateCount = 0; //qDebug() << "UPDATING EVERYTHING"; - // State - m_ui->stateLabel->setText(state); - m_ui->statusTextLabel->setText(stateDesc); - - // Battery - m_ui->batteryBar->setValue(static_cast(this->chargeLevel)); - //m_ui->loadBar->setValue(static_cast(this->load)); - m_ui->thrustBar->setValue(this->thrust); - - // Position - QString position; - position = position.sprintf("%02.2f %02.2f %02.2f m", x, y, z); - m_ui->positionLabel->setText(position); - QString globalPosition; - QString latIndicator; - if (lat > 0) - { - latIndicator = "N"; - } - else - { - latIndicator = "S"; - } - QString lonIndicator; - if (lon > 0) - { - lonIndicator = "E"; - } - else - { - lonIndicator = "W"; - } - globalPosition = globalPosition.sprintf("%02.2f%s %02.2f%s %02.2f m", lon, lonIndicator.toStdString().c_str(), lat, latIndicator.toStdString().c_str(), alt); - m_ui->gpsLabel->setText(globalPosition); + // State + m_ui->stateLabel->setText(state); + m_ui->statusTextLabel->setText(stateDesc); + + // Battery + m_ui->batteryBar->setValue(static_cast(this->chargeLevel)); + //m_ui->loadBar->setValue(static_cast(this->load)); + m_ui->thrustBar->setValue(this->thrust); + + // Position + QString position; + position = position.sprintf("%02.2f %02.2f %02.2f m", x, y, z); + m_ui->positionLabel->setText(position); + QString globalPosition; + QString latIndicator; + if (lat > 0) + { + latIndicator = "N"; + } + else + { + latIndicator = "S"; + } + QString lonIndicator; + if (lon > 0) + { + lonIndicator = "E"; + } + else + { + lonIndicator = "W"; + } + globalPosition = globalPosition.sprintf("%02.2f%s %02.2f%s %02.2f m", lon, lonIndicator.toStdString().c_str(), lat, latIndicator.toStdString().c_str(), alt); + m_ui->gpsLabel->setText(globalPosition); - // Altitude - if (groundDistance == 0 && alt != 0) - { - m_ui->groundDistanceLabel->setText(QString("%1 m").arg(alt)); - } - else - { - m_ui->groundDistanceLabel->setText(QString("%1 m").arg(groundDistance)); - } + // Altitude + if (groundDistance == 0 && alt != 0) + { + m_ui->groundDistanceLabel->setText(QString("%1 m").arg(alt)); + } + else + { + m_ui->groundDistanceLabel->setText(QString("%1 m").arg(groundDistance)); + } - // Speed - QString speed; - speed = speed.sprintf("%02.2f m/s", totalSpeed); - m_ui->speedLabel->setText(speed); + // Speed + QString speed; + speed = speed.sprintf("%02.2f m/s", totalSpeed); + m_ui->speedLabel->setText(speed); - // Thrust - m_ui->thrustBar->setValue(thrust * 100); + // Thrust + m_ui->thrustBar->setValue(thrust * 100); - if(this->timeRemaining > 1 && this->timeRemaining < MG::MAX_FLIGHT_TIME) - { - // Filter output to get a higher stability - static double filterTime = static_cast(this->timeRemaining); - filterTime = 0.8 * filterTime + 0.2 * static_cast(this->timeRemaining); - int sec = static_cast(filterTime - static_cast(filterTime / 60.0f) * 60); + if(this->timeRemaining > 1 && this->timeRemaining < MG::MAX_FLIGHT_TIME) + { + // Filter output to get a higher stability + static double filterTime = static_cast(this->timeRemaining); + filterTime = 0.8 * filterTime + 0.2 * static_cast(this->timeRemaining); + int sec = static_cast(filterTime - static_cast(filterTime / 60.0f) * 60); + int min = static_cast(filterTime / 60); + int hours = static_cast(filterTime - min * 60 - sec); + + QString timeText; + timeText = timeText.sprintf("%02d:%02d:%02d", hours, min, sec); + m_ui->timeRemainingLabel->setText(timeText); + } + else + { + m_ui->timeRemainingLabel->setText(tr("Calculating")); + } + + // Time Elapsed + //QDateTime time = MG::TIME::msecToQDateTime(uas->getUptime()); + + quint64 filterTime = uas->getUptime() / 1000; + int sec = static_cast(filterTime - static_cast(filterTime / 60) * 60); int min = static_cast(filterTime / 60); int hours = static_cast(filterTime - min * 60 - sec); - QString timeText; timeText = timeText.sprintf("%02d:%02d:%02d", hours, min, sec); - m_ui->timeRemainingLabel->setText(timeText); - } - else - { - m_ui->timeRemainingLabel->setText(tr("Calculating")); + m_ui->timeElapsedLabel->setText(timeText); } - - // Time Elapsed - //QDateTime time = MG::TIME::msecToQDateTime(uas->getUptime()); - - quint64 filterTime = uas->getUptime() / 1000; - int sec = static_cast(filterTime - static_cast(filterTime / 60) * 60); - int min = static_cast(filterTime / 60); - int hours = static_cast(filterTime - min * 60 - sec); - QString timeText; - timeText = timeText.sprintf("%02d:%02d:%02d", hours, min, sec); - m_ui->timeElapsedLabel->setText(timeText); -} generalUpdateCount++; // Fade heartbeat icon diff --git a/src/ui/uas/UASView.h b/src/ui/uas/UASView.h index 2d69aa21b37788dc64fa345712bdfdaa9c979a43..74dcc3c963feb5629514d19e682b4acaef5e910f 100644 --- a/src/ui/uas/UASView.h +++ b/src/ui/uas/UASView.h @@ -107,6 +107,10 @@ protected: void enterEvent(QEvent* event); /** @brief Mouse leaves the widget */ void leaveEvent(QEvent* event); + /** @brief Start widget updating */ + void showEvent(QShowEvent* event); + /** @brief Stop widget updating */ + void hideEvent(QHideEvent* event); private: Ui::UASView *m_ui; diff --git a/user_config.pri.dist b/user_config.pri.dist index fa149a1d25c1d79760c9501fa6eae47896b75ca2..d42218893571c601190d9fdb9008bcdf99a00c6a 100644 --- a/user_config.pri.dist +++ b/user_config.pri.dist @@ -26,7 +26,8 @@ # Add or remove custom message specs here. The matching mavlink headers are # included in the main qgroundcontrol.pro file. -MAVLINK_CONF += pixhawk \ - slugs \ - ualberta +MAVLINK_CONF += pixhawk + +# slugs \ +# ualberta